X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=manager.h;h=817bc00bc825ac1cd92e9a8a2324405e16965088;hb=37d88da701d75a3893b262580dc59042147a9b89;hp=312ed879e68f8403ef108c6810c19fe90f57944a;hpb=23a177ef7c8c38c238ef06666f900f581b48298f;p=elogind.git diff --git a/manager.h b/manager.h index 312ed879e..817bc00bc 100644 --- a/manager.h +++ b/manager.h @@ -82,7 +82,8 @@ struct Watch { #define SPECIAL_REMOTE_FS_TARGET "remote-fs.target" #define SPECIAL_SYSLOG_TARGET "syslog.target" /* Should pull in syslog.socket or syslog.service */ #define SPECIAL_RTC_SET_TARGET "rtc-set.target" /* LSB's $time */ -#define SPECIAL_SYSINIT_SERVICE "sysinit.service" +#define SPECIAL_BASIC_TARGET "basic.target" +#define SPECIAL_RESCUE_TARGET "rescue.target" /* For SysV compatibility. Usually an alias for a saner target. On * SysV-free systems this doesn't exist. */ @@ -135,7 +136,7 @@ struct Manager { bool dispatching_run_queue:1; bool dispatching_dbus_queue:1; - bool request_bus_dispatch:1; + bool request_api_bus_dispatch:1; bool request_system_bus_dispatch:1; Hashmap *watch_pids; /* pid => Unit object n:1 */ @@ -146,6 +147,7 @@ struct Manager { char **unit_path; char **sysvinit_path; + char **sysvrcnd_path; /* Data specific to the device subsystem */ struct udev* udev; @@ -157,7 +159,7 @@ struct Manager { Watch mount_watch; /* Data specific to the D-Bus subsystem */ - DBusConnection *bus, *system_bus; + DBusConnection *api_bus, *system_bus; Set *subscribed; /* Data specific to the cgroup subsystem */ @@ -166,7 +168,7 @@ struct Manager { char *cgroup_hierarchy; }; -int manager_new(Manager **m); +int manager_new(ManagerRunningAs running_as, Manager **m); void manager_free(Manager *m); int manager_coldplug(Manager *m);