X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fcore%2Fscope.h;h=6c591264226c6bf2448b2eca6bec1617552f2c05;hb=454f7158c6cecd18555c5e7dd556e3d544301b52;hp=4d8a1714bcc1a9385787bec346469fe07b52598f;hpb=718db96199eb307751264e4163555662c9a389fa;p=elogind.git diff --git a/src/core/scope.h b/src/core/scope.h index 4d8a1714b..6c5912642 100644 --- a/src/core/scope.h +++ b/src/core/scope.h @@ -29,6 +29,7 @@ typedef struct Scope Scope; typedef enum ScopeState { SCOPE_DEAD, SCOPE_RUNNING, + SCOPE_ABANDONED, SCOPE_STOP_SIGTERM, SCOPE_STOP_SIGKILL, SCOPE_FAILED, @@ -55,13 +56,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_;