chiark / gitweb /
tree-wide: allow state to be passed through to parse_proc_cmdline_item
[elogind.git] / src / basic / util.h
index 346221ca0c99682f055db0374d1215b05149dd41..75631c436bdc560edc0395246ada2f6814e96b33 100644 (file)
@@ -61,6 +61,10 @@ static inline const char* one_zero(bool b) {
         return b ? "1" : "0";
 }
 
+static inline const char* enable_disable(bool b) {
+        return b ? "enable" : "disable";
+}
+
 void execute_directories(const char* const* directories, usec_t timeout, char *argv[]);
 
 #if 0 /// UNNEEDED by elogind