aboutsummaryrefslogtreecommitdiff
path: root/include/stringop.h
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-11-20 22:10:03 -0500
committerFurkan Sahin <furkan-dev@proton.me>2019-11-20 22:10:03 -0500
commit061773337aa0bf2ac17609b96fbcfa00f59e3efc (patch)
tree4942dfcbd3eeea04092ff1b40791b8c25e1f4403 /include/stringop.h
parentb720e6279a58f15264f453b3c76b798a0a56028d (diff)
input_cmd_xkb_file: allow shell path expansion
This allows for shell path expansion for input_cmd_xkb_file. The logic has been extracted from output_cmd_background
Diffstat (limited to 'include/stringop.h')
-rw-r--r--include/stringop.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/stringop.h b/include/stringop.h
index 2aabcee7..e3f4f0f7 100644
--- a/include/stringop.h
+++ b/include/stringop.h
@@ -1,6 +1,7 @@
#ifndef _SWAY_STRINGOP_H
#define _SWAY_STRINGOP_H
+#include <stdbool.h>
#include "list.h"
void strip_whitespace(char *str);
@@ -26,4 +27,7 @@ char *join_args(char **argv, int argc);
// Split string into 2 by delim, handle quotes
char *argsep(char **stringp, const char *delim, char *matched_delim);
+// Expand a path using shell replacements such as $HOME and ~
+bool expand_path(char **path);
+
#endif