X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fmanager.h;h=aff4cb82efe328a19efad9963cb6985612d463ef;hb=74922904348e53a992af63c581d4ccd3317ccce0;hp=2a04bc7ddd1096987f98cf12789d7d38ebf173b4;hpb=5e8d1c9a9f15b7453474dc4879bdb4021c3f50a1;p=elogind.git diff --git a/src/manager.h b/src/manager.h index 2a04bc7dd..aff4cb82e 100644 --- a/src/manager.h +++ b/src/manager.h @@ -46,9 +46,8 @@ typedef enum ManagerExitCode { } ManagerExitCode; typedef enum ManagerRunningAs { - MANAGER_INIT, /* root and pid=1 */ - MANAGER_SYSTEM, /* root and pid!=1 */ - MANAGER_SESSION, /* non-root, for a session */ + MANAGER_SYSTEM, + MANAGER_SESSION, _MANAGER_RUNNING_AS_MAX, _MANAGER_RUNNING_AS_INVALID = -1 } ManagerRunningAs; @@ -138,7 +137,7 @@ struct Manager { char **environment; - timestamp startup_timestamp; + dual_timestamp startup_timestamp; /* Data specific to the device subsystem */ struct udev* udev; @@ -157,7 +156,6 @@ struct Manager { DBusServer *private_bus; Set *bus_connections, *bus_connections_for_dispatch; - Set *subscribed; DBusMessage *queued_message; /* This is used during reloading: * before the reload we queue the * reply message here, and @@ -165,6 +163,7 @@ struct Manager { Hashmap *watch_bus; /* D-Bus names => Unit object n:1 */ int32_t name_data_slot; + int32_t subscribed_data_slot; /* Data specific to the Automount subsystem */ int dev_autofs_fd; @@ -193,7 +192,7 @@ struct Manager { bool utmp_reboot_written:1; - bool confirm_spawn:1; + bool confirm_spawn; }; int manager_new(ManagerRunningAs running_as, bool confirm_spawn, Manager **m);