X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fstrv.h;h=774c67a8c81bfff6f114a29f9383d2a92fc46a1f;hb=befb6d54948480f836d53d633bef27e3505818c1;hp=9c9633c515f04db60488461c810c89af7cffe927;hpb=28849dbadb7cd127f7f89e8892ec94c6a05070da;p=elogind.git diff --git a/src/shared/strv.h b/src/shared/strv.h index 9c9633c51..774c67a8c 100644 --- a/src/shared/strv.h +++ b/src/shared/strv.h @@ -49,6 +49,8 @@ int strv_consume_prepend(char ***l, char *value); char **strv_remove(char **l, const char *s); char **strv_uniq(char **l); +bool strv_equal(char **a, char **b); + #define strv_contains(l, s) (!!strv_find((l), (s))) char **strv_new(const char *x, ...) _sentinel_; @@ -63,9 +65,10 @@ static inline bool strv_isempty(char * const *l) { } char **strv_split(const char *s, const char *separator); -int strv_split_quoted(char ***t, 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);