summaryrefslogtreecommitdiffstats
path: root/src/core/cgroup.h
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2024-05-24 16:52:28 +0200
committerMike Yuan <me@yhndnzj.com>2024-07-17 17:25:22 +0200
commit21fed6eaec011969c8550c6009c000e6e2e86852 (patch)
treec3395ff3dbab8669ccdec8542ac1a405d8954b2e /src/core/cgroup.h
parentcore/unit: drop pointless unit_freezer_state wrapper (diff)
downloadsystemd-21fed6eaec011969c8550c6009c000e6e2e86852.tar.xz
systemd-21fed6eaec011969c8550c6009c000e6e2e86852.zip
core,unit-def: use our usual way of asserting enums
Diffstat (limited to 'src/core/cgroup.h')
-rw-r--r--src/core/cgroup.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/cgroup.h b/src/core/cgroup.h
index e31e69364e..1c5c1f75ab 100644
--- a/src/core/cgroup.h
+++ b/src/core/cgroup.h
@@ -60,7 +60,6 @@ typedef enum FreezerAction {
FREEZER_PARENT_FREEZE,
FREEZER_THAW,
FREEZER_PARENT_THAW,
-
_FREEZER_ACTION_MAX,
_FREEZER_ACTION_INVALID = -EINVAL,
} FreezerAction;
@@ -514,6 +513,7 @@ void unit_cgroup_catchup(Unit *u);
bool unit_cgroup_delegate(Unit *u);
int unit_get_cpuset(Unit *u, CPUSet *cpus, const char *name);
+
int unit_cgroup_freezer_action(Unit *u, FreezerAction action);
const char* freezer_action_to_string(FreezerAction a) _const_;