X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fmanager.h;h=fdf60ae69640ac45bfabf568e2d5968b4b8805b9;hb=99f37ad86e114b2d1c9eaedf2bc1a0004a265d26;hp=d6a6bce424ee992b9211c402c1bfa80408cf385d;hpb=5bcb0f2ba0615897662fcd4f6227d066781c6fc2;p=elogind.git diff --git a/src/core/manager.h b/src/core/manager.h index d6a6bce42..fdf60ae69 100644 --- a/src/core/manager.h +++ b/src/core/manager.h @@ -138,8 +138,9 @@ struct Manager { char *generator_unit_path_early; char *generator_unit_path_late; - /* Data specific to the device subsystem */ struct udev* udev; + + /* Data specific to the device subsystem */ struct udev_monitor* udev_monitor; sd_event_source *udev_event_source; Hashmap *devices_by_sysfs; @@ -151,7 +152,7 @@ struct Manager { /* Data specific to the swap filesystem */ FILE *proc_swaps; sd_event_source *swap_event_source; - Hashmap *swaps_by_proc_swaps; + Hashmap *swaps_by_devnode; /* Data specific to the D-Bus subsystem */ sd_bus *api_bus, *system_bus; @@ -233,9 +234,12 @@ struct Manager { * them. It's a hashmap with a path string as key and a Set as * value where Unit objects are contained. */ Hashmap *units_requiring_mounts_for; + + /* Reference to the kdbus bus control fd */ + int kdbus_fd; }; -int manager_new(SystemdRunningAs running_as, bool reexecuting, Manager **m); +int manager_new(SystemdRunningAs running_as, Manager **m); void manager_free(Manager *m); int manager_enumerate(Manager *m);