chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: add tests for environment serialization
[elogind.git]
/
src
/
basic
/
cgroup-util.h
diff --git
a/src/basic/cgroup-util.h
b/src/basic/cgroup-util.h
index 33b7ba7f44549d7d5ca7d89e9b15a5cc06995c86..1ea4d3d0872cfe94077960e41e0c890c5541138a 100644
(file)
--- 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);
#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);
#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
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);
int cg_unified_flush(void);
bool cg_is_unified_wanted(void);
-#endif // 0
bool cg_is_legacy_wanted(void);
bool cg_is_legacy_wanted(void);
-#if 0 /// UNNEEDED by elogind
bool cg_is_hybrid_wanted(void);
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_;
const char* cgroup_controller_to_string(CGroupController c) _const_;
CGroupController cgroup_controller_from_string(const char *s) _pure_;