core: introduce cg_mask_from_string()/cg_mask_to_string()

This commit is contained in:
Franck Bui
2017-05-04 09:41:19 +02:00
parent c7a5268a20
commit aae7e17f9c
3 changed files with 73 additions and 24 deletions
+2
View File
@@ -235,6 +235,8 @@ int cg_trim_everywhere(CGroupMask supported, const char *path, bool delete_root)
int cg_enable_everywhere(CGroupMask supported, CGroupMask mask, const char *p);
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);
int cg_kernel_controllers(Set *controllers);