X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fmanager.h;h=8a6475058486c2f5ff38fdeaff4aeed72ffe77c0;hp=10ff24c798aec59577fecda1c2271cd8901a636a;hb=008d348eddce97ef807fb908484efb0ade3172c5;hpb=07459bb6b92268beb2599f65cf195708d88c51cc diff --git a/src/manager.h b/src/manager.h index 10ff24c79..8a6475058 100644 --- a/src/manager.h +++ b/src/manager.h @@ -41,6 +41,10 @@ typedef enum ManagerExitCode { MANAGER_EXIT, MANAGER_RELOAD, MANAGER_REEXECUTE, + MANAGER_REBOOT, + MANAGER_POWEROFF, + MANAGER_HALT, + MANAGER_KEXEC, _MANAGER_EXIT_CODE_MAX, _MANAGER_EXIT_CODE_INVALID = -1 } ManagerExitCode; @@ -60,6 +64,7 @@ enum WatchType { WATCH_UNIT_TIMER, WATCH_JOB_TIMER, WATCH_MOUNT, + WATCH_SWAP, WATCH_UDEV, WATCH_DBUS_WATCH, WATCH_DBUS_TIMEOUT @@ -155,6 +160,9 @@ struct Manager { /* Data specific to the swap filesystem */ FILE *proc_swaps; + Hashmap *swaps_by_proc_swaps; + bool request_reload; + Watch swap_watch; /* Data specific to the D-Bus subsystem */ DBusConnection *api_bus, *system_bus; @@ -195,7 +203,7 @@ struct Manager { /* Flags */ ManagerRunningAs running_as; - ManagerExitCode exit_code:4; + ManagerExitCode exit_code:5; bool dispatching_load_queue:1; bool dispatching_run_queue:1; @@ -264,6 +272,7 @@ bool manager_is_booting_or_shutting_down(Manager *m); void manager_reset_failed(Manager *m); void manager_send_unit_audit(Manager *m, Unit *u, int type, bool success); +void manager_send_unit_plymouth(Manager *m, Unit *u); bool manager_unit_pending_inactive(Manager *m, const char *name);