X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fmanager.h;h=5b3aaf3364fe95d8be0a9d926253f125653d2fc1;hp=aff4cb82efe328a19efad9963cb6985612d463ef;hb=af2ab1f9a30a3a2897ee8d0991467ae61bb7cba0;hpb=a567261a29b4e19c0c195240411b7562063d99f8 diff --git a/src/manager.h b/src/manager.h index aff4cb82e..5b3aaf336 100644 --- a/src/manager.h +++ b/src/manager.h @@ -160,6 +160,7 @@ struct Manager { * before the reload we queue the * reply message here, and * afterwards we send it */ + DBusConnection *queued_message_connection; /* The connection to send the queued message on */ Hashmap *watch_bus; /* D-Bus names => Unit object n:1 */ int32_t name_data_slot; @@ -192,10 +193,11 @@ struct Manager { bool utmp_reboot_written:1; + bool show_status; bool confirm_spawn; }; -int manager_new(ManagerRunningAs running_as, bool confirm_spawn, Manager **m); +int manager_new(ManagerRunningAs running_as, Manager **m); void manager_free(Manager *m); int manager_enumerate(Manager *m); @@ -240,6 +242,8 @@ int manager_deserialize(Manager *m, FILE *f, FDSet *fds); int manager_reload(Manager *m); +bool manager_is_booting_or_shutting_down(Manager *m); + const char *manager_running_as_to_string(ManagerRunningAs i); ManagerRunningAs manager_running_as_from_string(const char *s);