X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fmanager.h;h=c486a16887938045f560fe9b27a65f75eddc7c9e;hb=0eff0f3bce1d0826765f6e84ff046b10fe5a1a12;hp=78e4bc64040a3a86bc4e07f9a43e51cbbdc069c1;hpb=7ed9f6cd785634dd093e1b1550c3c6183177abf6;p=elogind.git diff --git a/src/core/manager.h b/src/core/manager.h index 78e4bc640..c486a1688 100644 --- a/src/core/manager.h +++ b/src/core/manager.h @@ -61,7 +61,8 @@ enum WatchType { WATCH_UDEV, WATCH_DBUS_WATCH, WATCH_DBUS_TIMEOUT, - WATCH_TIME_CHANGE + WATCH_TIME_CHANGE, + WATCH_JOBS_IN_PROGRESS }; struct Watch { @@ -127,6 +128,7 @@ struct Manager { Watch notify_watch; Watch signal_watch; Watch time_change_watch; + Watch jobs_in_progress_watch; int epoll_fd; @@ -225,8 +227,10 @@ struct Manager { unsigned n_installed_jobs; unsigned n_failed_jobs; + /* Jobs in progress watching */ unsigned n_running_jobs; unsigned n_on_console; + unsigned jobs_in_progress_iteration; /* Type=idle pipes */ int idle_pipe[2];