From 6af5a2524646ddc027114d80912cdd8ee0b7c7c8 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sat, 15 Aug 2009 08:47:42 +0000 Subject: linux-user: compile envlist.c only once Signed-off-by: Blue Swirl --- envlist.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 envlist.h (limited to 'envlist.h') diff --git a/envlist.h b/envlist.h new file mode 100644 index 000000000..e76d4a101 --- /dev/null +++ b/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 */ -- cgit v1.2.3-65-gdbad