summaryrefslogtreecommitdiffstats
path: root/src/basic/env-util.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-15 14:52:39 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2021-02-16 16:10:14 +0100
commitf08231fe07fe15933c3a2de399ac5deb22cf7901 (patch)
treef48ffe849579a95df26f4b4c5af02504cf89f25e /src/basic/env-util.h
parentshared/user-record: inline iterator variable declarations (diff)
downloadsystemd-f08231fe07fe15933c3a2de399ac5deb22cf7901.tar.xz
systemd-f08231fe07fe15933c3a2de399ac5deb22cf7901.zip
basic/env-util: add strv_env_assign() helper
Diffstat (limited to 'src/basic/env-util.h')
-rw-r--r--src/basic/env-util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/basic/env-util.h b/src/basic/env-util.h
index 922cfe1c44..3f8995bf3d 100644
--- a/src/basic/env-util.h
+++ b/src/basic/env-util.h
@@ -47,6 +47,7 @@ char **strv_env_unset(char **l, const char *p); /* In place ... */
char **strv_env_unset_many(char **l, ...) _sentinel_;
int strv_env_replace(char ***l, char *p); /* In place ... */
int strv_env_replace_strdup(char ***l, const char *assignment);
+int strv_env_assign(char ***l, const char *key, const char *value);
char *strv_env_get_n(char **l, const char *name, size_t k, unsigned flags) _pure_;
char *strv_env_get(char **x, const char *n) _pure_;