X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Futil.h;h=124c7c06d49348de85c44ad48db61d136ec51535;hb=a7f7d1bde43fc825c49afea3f946f5b4b3d563e0;hp=29e85bb7e14fb7a2dcb56d520b2173fedcd8764a;hpb=5b9fbd354eddd80051de3cd17510d6be60274931;p=elogind.git diff --git a/src/shared/util.h b/src/shared/util.h index 29e85bb7e..124c7c06d 100644 --- a/src/shared/util.h +++ b/src/shared/util.h @@ -1017,8 +1017,13 @@ int take_password_lock(const char *root); int is_symlink(const char *path); int is_dir(const char *path, bool follow); -int unquote_first_word(const char **p, char **ret, bool relax); -int unquote_many_words(const char **p, ...) _sentinel_; +typedef enum UnquoteFlags{ + UNQUOTE_RELAX = 1, + UNQUOTE_CUNESCAPE = 2, +} UnquoteFlags; + +int unquote_first_word(const char **p, char **ret, UnquoteFlags flags); +int unquote_many_words(const char **p, UnquoteFlags flags, ...) _sentinel_; int free_and_strdup(char **p, const char *s);