summaryrefslogtreecommitdiff
path: root/src/basic/util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-06-17 20:41:30 +0200
committerLennart Poettering <lennart@poettering.net>2015-06-17 20:41:30 +0200
commit7391cb5d581c4d48dec689686fd9514fdb7d4888 (patch)
tree163a32ede563d6ea8a53316173d3562fdedbb110 /src/basic/util.h
parent07d210255b629ea97f9dc77c0fadcbc1c02be12c (diff)
parentc83f1f30b80253de8a1a6034e7b016fa55d24523 (diff)
Merge pull request #44 from filbranden/unquote_first_word1
Replace FOREACH_WORD_QUOTED with a loop using unquote_first_word in config_parse_exec()
Diffstat (limited to 'src/basic/util.h')
-rw-r--r--src/basic/util.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/basic/util.h b/src/basic/util.h
index 7aca46d777..a1d1dd15c3 100644
--- a/src/basic/util.h
+++ b/src/basic/util.h
@@ -839,11 +839,13 @@ int is_dir(const char *path, bool follow);
int is_device_node(const char *path);
typedef enum UnquoteFlags {
- UNQUOTE_RELAX = 1,
- UNQUOTE_CUNESCAPE = 2,
+ UNQUOTE_RELAX = 1,
+ UNQUOTE_CUNESCAPE = 2,
+ UNQUOTE_CUNESCAPE_RELAX = 4,
} UnquoteFlags;
int unquote_first_word(const char **p, char **ret, UnquoteFlags flags);
+int unquote_first_word_and_warn(const char **p, char **ret, UnquoteFlags flags, const char *unit, const char *filename, unsigned line, const char *rvalue);
int unquote_many_words(const char **p, UnquoteFlags flags, ...) _sentinel_;
int free_and_strdup(char **p, const char *s);