aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2018-07-24 19:23:04 +1000
committerFurkan Sahin <furkan-dev@proton.me>2018-07-24 19:23:04 +1000
commit4b066d916d62dc5780a38f3ae03891442cdd2240 (patch)
tree429de47906f0ba1f114689c48cbabc5be8bb6e71 /include
parent5af7e2f618ed5c4132b55fa42a4a909abdd2c11e (diff)
parentab580452648ebe0a3231d9ce18f9cc020c89af80 (diff)
Merge branch 'master' into mouse-bindings
Diffstat (limited to 'include')
-rw-r--r--include/util.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/util.h b/include/util.h
index f68deae8..bda941ce 100644
--- a/include/util.h
+++ b/include/util.h
@@ -51,6 +51,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, bool current);
+
+/**
* Given a path string, recurseively resolves any symlinks to their targets
* (which may be a file, directory) and returns the result.
* argument is returned. Caller must free the returned buffer.