chiark / gitweb /
greatly extend what we enforce as process properties
[elogind.git] / strv.h
diff --git a/strv.h b/strv.h
index 43a5c5954b8b959a3f29895e5d36a4016d0df713..cc21eb19303010cac2c79a9bafeef17cbece5928 100644 (file)
--- a/strv.h
+++ b/strv.h
@@ -10,10 +10,14 @@ void strv_free(char **l);
 char **strv_copy(char **l);
 unsigned strv_length(char **l);
 
+char **strv_merge(char **a, char **b);
+
+bool strv_contains(char **l, const char *s);
+
 char **strv_new(const char *x, ...) __sentinel;
 
 #define STRV_FOREACH(s, l)                      \
-        for ((s) = (l); (l) && *(s); (s)++)
+        for ((s) = (l); (s) && *(s); (s)++)
 
 #define STRV_FOREACH_BACKWARDS(s, l)            \
         for (; (l) && ((s) >= (l)); (s)--)