mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -05:00
Switch to using a function to parse booleans
This commit is contained in:
parent
224ade1382
commit
863914ec95
15 changed files with 62 additions and 85 deletions
|
|
@ -50,6 +50,14 @@ pid_t get_parent_pid(pid_t pid);
|
|||
*/
|
||||
uint32_t parse_color(const char *color);
|
||||
|
||||
/**
|
||||
* Given a string that represents a boolean, return the boolean value. This
|
||||
* function also takes in the current boolean value to support toggling. If
|
||||
* toggling is not desired, pass in true for current so that toggling values
|
||||
* get parsed as not true.
|
||||
*/
|
||||
bool parse_boolean(const char *boolean, const bool current);
|
||||
|
||||
/**
|
||||
* Given a path string, recurseively resolves any symlinks to their targets
|
||||
* (which may be a file, directory) and returns the result.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue