X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fstrv.h;h=47618bd26c8c44099e463ad6cdb5fd7466109d51;hb=0c124f8b2c93d2c7d6eefca3bdc59b28250fc077;hp=3034073d3288e5a28871769b4561b4d53d70837c;hpb=9a00f57a5ba7ed431e6bac8d8b36518708503b4e;p=elogind.git diff --git a/src/shared/strv.h b/src/shared/strv.h index 3034073d3..47618bd26 100644 --- a/src/shared/strv.h +++ b/src/shared/strv.h @@ -28,6 +28,7 @@ char *strv_find(char **l, const char *name) _pure_; char *strv_find_prefix(char **l, const char *name) _pure_; +char *strv_find_startswith(char **l, const char *name) _pure_; void strv_free(char **l); DEFINE_TRIVIAL_CLEANUP_FUNC(char**, strv_free); @@ -62,9 +63,10 @@ static inline bool strv_isempty(char * const *l) { } char **strv_split(const char *s, const char *separator); -char **strv_split_quoted(const char *s); char **strv_split_newlines(const char *s); +int strv_split_quoted(char ***t, const char *s, bool relax); + char *strv_join(char **l, const char *separator); char *strv_join_quoted(char **l);