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=df87ed6b62d8eac7b9b8e2fa62902f0db7bea676;hb=d674a4ab52b08dfa8d2221d903011ebf8ae2d11f;hpb=76bf48b7d09b6e22d1952ac2fa07fec8ee501b76 diff --git a/src/manager.h b/src/manager.h index df87ed6b6..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; @@ -203,7 +211,9 @@ struct Manager { bool show_status; bool confirm_spawn; +#ifdef HAVE_SYSV_COMPAT bool sysv_console; +#endif bool mount_auto; bool swap_auto; @@ -262,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);