chiark / gitweb /
tree-wide: use our memset() macros instead of memset() itself
[elogind.git] / src / shared / env-util.h
index 93bf596ca889a1c45a972e71f09e59df7bc64dba..3c6f9d743f270dfa476c43055202e6568c6a1d3c 100644 (file)
@@ -30,12 +30,16 @@ bool env_assignment_is_valid(const char *e);
 
 bool strv_env_is_valid(char **e);
 char **strv_env_clean(char **l);
+char **strv_env_clean_log(char **e, const char *unit_id, const char *message);
+
+bool strv_env_name_or_assignment_is_valid(char **l);
 
 char **strv_env_merge(unsigned n_lists, ...);
 char **strv_env_delete(char **x, unsigned n_lists, ...); /* New copy */
 
 char **strv_env_set(char **x, const char *p); /* New copy ... */
 char **strv_env_unset(char **l, const char *p); /* In place ... */
+char **strv_env_unset_many(char **l, ...) _sentinel_;
 
-char *strv_env_get_n(char **l, const char *name, size_t k);
-char *strv_env_get(char **x, const char *n);
+char *strv_env_get_n(char **l, const char *name, size_t k) _pure_;
+char *strv_env_get(char **x, const char *n) _pure_;