X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Fcgroup-util.h;h=1ea4d3d0872cfe94077960e41e0c890c5541138a;hp=d8b6ef3dca4e838c38f6bfb3068de2ca33685ec3;hb=d93247127eb2e073a6d3b5bcc67bcc4048d674fe;hpb=ed1d9d8147489c95859f436594ae837209c4907e diff --git a/src/basic/cgroup-util.h b/src/basic/cgroup-util.h index d8b6ef3dc..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 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_hybrid_wanted(void); -#endif // 0 const char* cgroup_controller_to_string(CGroupController c) _const_; CGroupController cgroup_controller_from_string(const char *s) _pure_;