X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fmanager.h;h=6e74773f4d9e51cbbc6fb18137226a43e784d43e;hp=762a891ca61d7242700a77eee73208727579a451;hb=96551bae6107936a4576b9b4b391abbc9963bdfe;hpb=33be102a214e7010949496549f4c737b0f8269a3 diff --git a/src/manager.h b/src/manager.h index 762a891ca..6e74773f4 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; @@ -125,6 +124,8 @@ struct Manager { Hashmap *watch_pids; /* pid => Unit object n:1 */ + char *notify_socket; + Watch notify_watch; Watch signal_watch; @@ -152,6 +153,9 @@ struct Manager { /* Data specific to the D-Bus subsystem */ DBusConnection *api_bus, *system_bus; + 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 @@ -186,9 +190,6 @@ struct Manager { bool dispatching_run_queue:1; bool dispatching_dbus_queue:1; - bool request_api_bus_dispatch:1; - bool request_system_bus_dispatch:1; - bool utmp_reboot_written:1; bool confirm_spawn:1;