X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Fcgroup-util.h;h=1ea4d3d0872cfe94077960e41e0c890c5541138a;hb=d93247127eb2e073a6d3b5bcc67bcc4048d674fe;hp=f78f2355bc1717056dde63212af9012be91a3014;hpb=f000ad56fe2346cc8391eeb684681e707711b3ce;p=elogind.git diff --git a/src/basic/cgroup-util.h b/src/basic/cgroup-util.h index f78f2355b..1ea4d3d08 100644 --- a/src/basic/cgroup-util.h +++ b/src/basic/cgroup-util.h @@ -246,6 +246,8 @@ int cg_enable_everywhere(CGroupMask supported, CGroupMask mask, const char *p); #endif // 0 int cg_mask_supported(CGroupMask *ret); +int cg_mask_from_string(const char *s, CGroupMask *ret); +int cg_mask_to_string(CGroupMask mask, char **ret); #if 0 /// UNNEEDED by elogind int cg_kernel_controllers(Set *controllers); @@ -253,18 +255,14 @@ int cg_kernel_controllers(Set *controllers); bool cg_ns_supported(void); #endif // 0 -#if 0 /// UNNEEDED by elogind -bool cg_all_unified(void); -bool cg_hybrid_unified(void); -bool cg_unified(const char *controller); +int cg_all_unified(void); +int cg_hybrid_unified(void); +int cg_unified_controller(const char *controller); int cg_unified_flush(void); bool cg_is_unified_wanted(void); -#endif // 0 bool cg_is_legacy_wanted(void); -#if 0 /// UNNEEDED by elogind -bool cg_is_unified_systemd_controller_wanted(void); -#endif // 0 +bool cg_is_hybrid_wanted(void); const char* cgroup_controller_to_string(CGroupController c) _const_; CGroupController cgroup_controller_from_string(const char *s) _pure_;