summaryrefslogtreecommitdiff
path: root/src/core/scope.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/scope.h')
-rw-r--r--src/core/scope.h19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/core/scope.h b/src/core/scope.h
index 4452fe2c94..eaf8e8b447 100644
--- a/src/core/scope.h
+++ b/src/core/scope.h
@@ -1,5 +1,3 @@
-/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
-
#pragma once
/***
@@ -23,18 +21,9 @@
typedef struct Scope Scope;
+#include "cgroup.h"
#include "kill.h"
-
-typedef enum ScopeState {
- SCOPE_DEAD,
- SCOPE_RUNNING,
- SCOPE_ABANDONED,
- SCOPE_STOP_SIGTERM,
- SCOPE_STOP_SIGKILL,
- SCOPE_FAILED,
- _SCOPE_STATE_MAX,
- _SCOPE_STATE_INVALID = -1
-} ScopeState;
+#include "unit.h"
typedef enum ScopeResult {
SCOPE_SUCCESS,
@@ -56,6 +45,7 @@ struct Scope {
usec_t timeout_stop_usec;
char *controller;
+ bool was_abandoned;
sd_event_source *timer_event_source;
};
@@ -64,8 +54,5 @@ 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_;
-
const char* scope_result_to_string(ScopeResult i) _const_;
ScopeResult scope_result_from_string(const char *s) _pure_;