diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-10-30 02:06:55 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-10-30 02:08:57 +0100 |
commit | c335068380fe8c9d843cdb2cf8a00f822cfabed3 (patch) | |
tree | 3dadd6e1f6f7172daedd97de789e39a527c23c3f /src/machine/machine.h | |
parent | 07459db69f3c48ef4d69308faa14f457bd903bcf (diff) |
machined: port over to libsystemd-bus
Diffstat (limited to 'src/machine/machine.h')
-rw-r--r-- | src/machine/machine.h | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/src/machine/machine.h b/src/machine/machine.h index c5d52a968b..bfb28d1e8e 100644 --- a/src/machine/machine.h +++ b/src/machine/machine.h @@ -73,7 +73,7 @@ struct Machine { bool in_gc_queue:1; bool started:1; - DBusMessage *create_message; + sd_bus_message *create_message; LIST_FIELDS(Machine, gc_queue); }; @@ -82,22 +82,21 @@ Machine* machine_new(Manager *manager, const char *name); void machine_free(Machine *m); int machine_check_gc(Machine *m, bool drop_not_started); void machine_add_to_gc_queue(Machine *m); -int machine_start(Machine *m, DBusMessageIter *iter); +int machine_start(Machine *m, sd_bus_message *properties, sd_bus_error *error); int machine_stop(Machine *m); int machine_save(Machine *m); int machine_load(Machine *m); int machine_kill(Machine *m, KillWho who, int signo); -char *machine_bus_path(Machine *s); - MachineState machine_get_state(Machine *u); -extern const DBusObjectPathVTable bus_machine_vtable; +extern const sd_bus_vtable machine_vtable[]; -int machine_send_signal(Machine *m, bool new_machine); -int machine_send_changed(Machine *m, const char *properties); +char *machine_bus_path(Machine *s); +int machine_object_find(sd_bus *bus, const char *path, const char *interface, void **found, void *userdata); -int machine_send_create_reply(Machine *m, DBusError *error); +int machine_send_signal(Machine *m, bool new_machine); +int machine_send_create_reply(Machine *m, sd_bus_error *error); const char* machine_class_to_string(MachineClass t) _const_; MachineClass machine_class_from_string(const char *s) _pure_; |