1 /* SPDX-License-Identifier: LGPL-2.1+ */
5 This file is part of systemd.
7 Copyright 2013 Lennart Poettering
10 typedef struct Scope Scope
;
16 typedef enum ScopeResult
{
18 SCOPE_FAILURE_RESOURCES
,
19 SCOPE_FAILURE_TIMEOUT
,
21 _SCOPE_RESULT_INVALID
= -1
27 CGroupContext cgroup_context
;
28 KillContext kill_context
;
30 ScopeState state
, deserialized_state
;
33 usec_t timeout_stop_usec
;
36 sd_bus_track
*controller_track
;
40 sd_event_source
*timer_event_source
;
43 extern const UnitVTable scope_vtable
;
45 int scope_abandon(Scope
*s
);
47 const char* scope_result_to_string(ScopeResult i
) _const_
;
48 ScopeResult
scope_result_from_string(const char *s
) _pure_
;