X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fstrv.h;h=45558d8960e703f60afa50dcb1df34f16ab5d9c9;hb=0c0271841ab45595f71528c50bcf1904d4b841d5;hp=ae4e31f14c4246512ff50e5c9dafe54322beb141;hpb=c2f1db8f83618e60dcded8303d14656d7d26b436;p=elogind.git diff --git a/src/shared/strv.h b/src/shared/strv.h index ae4e31f14..45558d896 100644 --- a/src/shared/strv.h +++ b/src/shared/strv.h @@ -30,6 +30,7 @@ char *strv_find(char **l, const char *name); char *strv_find_prefix(char **l, const char *name); void strv_free(char **l); +void strv_freep(char ***l); char **strv_copy(char **l) _malloc_; unsigned strv_length(char **l); @@ -79,3 +80,5 @@ bool strv_overlap(char **a, char **b); #define STRV_FOREACH_BACKWARDS(s, l) \ for (; (l) && ((s) >= (l)); (s)--) + +char **strv_sort(char **l);