X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fscope.h;h=4452fe2c94a1b6da342af35197fdb262483dec35;hb=4543768d13946e9193b367330cb32ded4d96058a;hp=4d8a1714bcc1a9385787bec346469fe07b52598f;hpb=718db96199eb307751264e4163555662c9a389fa;p=elogind.git diff --git a/src/core/scope.h b/src/core/scope.h index 4d8a1714b..4452fe2c9 100644 --- a/src/core/scope.h +++ b/src/core/scope.h @@ -23,12 +23,12 @@ typedef struct Scope Scope; -#include "unit.h" #include "kill.h" typedef enum ScopeState { SCOPE_DEAD, SCOPE_RUNNING, + SCOPE_ABANDONED, SCOPE_STOP_SIGTERM, SCOPE_STOP_SIGKILL, SCOPE_FAILED, @@ -55,13 +55,15 @@ struct Scope { usec_t timeout_stop_usec; - Set *pids; + char *controller; sd_event_source *timer_event_source; }; extern const UnitVTable scope_vtable; +int scope_abandon(Scope *s); + const char* scope_state_to_string(ScopeState i) _const_; ScopeState scope_state_from_string(const char *s) _pure_;