Add enable_disable() helper
In this patch "enabled" and "disabled" is used exclusively, but "enable" and "disable" forms are need for the following patch.
This commit is contained in:
@@ -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[]);
|
||||
|
||||
bool plymouth_running(void);
|
||||
|
||||
Reference in New Issue
Block a user