aboutsummaryrefslogtreecommitdiffstats
path: root/include/stringop.h
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-11-20 22:10:03 -0500
committerLibravatar Drew DeVault <sir@cmpwn.com>2019-11-21 10:36:15 -0500
commit2f858a1adaef17241ca6fda973f2b867b25e1971 (patch)
tree4942dfcbd3eeea04092ff1b40791b8c25e1f4403 /include/stringop.h
parentinput/keyboard: cleanup xkb_file error handing (diff)
downloadsway-2f858a1adaef17241ca6fda973f2b867b25e1971.tar.gz
sway-2f858a1adaef17241ca6fda973f2b867b25e1971.tar.zst
sway-2f858a1adaef17241ca6fda973f2b867b25e1971.zip
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 @@
1#ifndef _SWAY_STRINGOP_H 1#ifndef _SWAY_STRINGOP_H
2#define _SWAY_STRINGOP_H 2#define _SWAY_STRINGOP_H
3 3
4#include <stdbool.h>
4#include "list.h" 5#include "list.h"
5 6
6void strip_whitespace(char *str); 7void strip_whitespace(char *str);
@@ -26,4 +27,7 @@ char *join_args(char **argv, int argc);
26// Split string into 2 by delim, handle quotes 27// Split string into 2 by delim, handle quotes
27char *argsep(char **stringp, const char *delim, char *matched_delim); 28char *argsep(char **stringp, const char *delim, char *matched_delim);
28 29
30// Expand a path using shell replacements such as $HOME and ~
31bool expand_path(char **path);
32
29#endif 33#endif