X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fstrv.h;h=9c9633c515f04db60488461c810c89af7cffe927;hb=592fd144ae313855f48d0ca52a103013b41e5d59;hp=3034073d3288e5a28871769b4561b4d53d70837c;hpb=9a00f57a5ba7ed431e6bac8d8b36518708503b4e;p=elogind.git diff --git a/src/shared/strv.h b/src/shared/strv.h index 3034073d3..9c9633c51 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,7 +63,7 @@ static inline bool strv_isempty(char * const *l) { } char **strv_split(const char *s, const char *separator); -char **strv_split_quoted(const char *s); +int strv_split_quoted(char ***t, const char *s); char **strv_split_newlines(const char *s); char *strv_join(char **l, const char *separator);