diff options
Diffstat (limited to 'linux-user/envlist.h')
-rw-r--r-- | linux-user/envlist.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/linux-user/envlist.h b/linux-user/envlist.h new file mode 100644 index 0000000..e76d4a1 --- /dev/null +++ b/linux-user/envlist.h @@ -0,0 +1,22 @@ +#ifndef ENVLIST_H +#define ENVLIST_H + +#ifdef __cplusplus +extern "C" { +#endif + +typedef struct envlist envlist_t; + +extern envlist_t *envlist_create(void); +extern void envlist_free(envlist_t *); +extern int envlist_setenv(envlist_t *, const char *); +extern int envlist_unsetenv(envlist_t *, const char *); +extern int envlist_parse_set(envlist_t *, const char *); +extern int envlist_parse_unset(envlist_t *, const char *); +extern char **envlist_to_environ(const envlist_t *, size_t *); + +#ifdef __cplusplus +} +#endif + +#endif /* ENVLIST_H */ |