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=c404443f52caebee0b227c6bd01f030f58f8188c;hb=4e4343146ade25b1ccfc927e2807d854be863ec4;hpb=b0c918b97f1abb160d8df2b94deb03efcb4fcf8f diff --git a/src/manager.h b/src/manager.h index c404443f5..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,13 +211,16 @@ struct Manager { bool show_status; bool confirm_spawn; +#ifdef HAVE_SYSV_COMPAT bool sysv_console; +#endif bool mount_auto; bool swap_auto; int n_deserializing; unsigned n_installed_jobs; + unsigned n_failed_jobs; }; int manager_new(ManagerRunningAs running_as, Manager **m); @@ -261,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);