X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Fstrv.h;fp=src%2Fshared%2Fstrv.h;h=2a2003c3d7e01e1f18f33bd845ce5c8346b18cd1;hp=22f8f98fdad09fc672ded27dba2eea1e732b7b60;hb=1cfc78c91965df340cdde100ad6cb3ed50b28927;hpb=86e97d599f8b1ca379dce64fadac9b8f6b002ac5 diff --git a/src/shared/strv.h b/src/basic/strv.h similarity index 94% rename from src/shared/strv.h rename to src/basic/strv.h index 22f8f98fd..2a2003c3d 100644 --- a/src/shared/strv.h +++ b/src/basic/strv.h @@ -43,19 +43,19 @@ unsigned strv_length(char * const *l) _pure_; int strv_extend_strv(char ***a, char **b); int strv_extend_strv_concat(char ***a, char **b, const char *suffix); int strv_extend(char ***l, const char *value); -int strv_extendf(char ***l, const char *format, ...) _printf_(2,0); +// UNNEEDED int strv_extendf(char ***l, const char *format, ...) _printf_(2,0); int strv_push(char ***l, char *value); int strv_push_pair(char ***l, char *a, char *b); int strv_push_prepend(char ***l, char *value); int strv_consume(char ***l, char *value); -int strv_consume_pair(char ***l, char *a, char *b); +// UNNEEDED int strv_consume_pair(char ***l, char *a, char *b); int strv_consume_prepend(char ***l, char *value); char **strv_remove(char **l, const char *s); char **strv_uniq(char **l); -bool strv_is_uniq(char **l); +// UNNEEDED bool strv_is_uniq(char **l); -bool strv_equal(char **a, char **b); +// UNNEEDED bool strv_equal(char **a, char **b); #define strv_contains(l, s) (!!strv_find((l), (s))) @@ -71,7 +71,7 @@ static inline bool strv_isempty(char * const *l) { } char **strv_split(const char *s, const char *separator); -char **strv_split_newlines(const char *s); +// UNNEEDED char **strv_split_newlines(const char *s); int strv_split_quoted(char ***t, const char *s, UnquoteFlags flags); @@ -144,7 +144,7 @@ void strv_print(char **l); _l[0]; \ })) -char **strv_reverse(char **l); +// UNNEEDED char **strv_reverse(char **l); bool strv_fnmatch(char* const* patterns, const char *s, int flags);