diff options
author | 2009-08-15 08:47:42 +0000 | |
---|---|---|
committer | 2009-08-15 08:47:42 +0000 | |
commit | 6af5a2524646ddc027114d80912cdd8ee0b7c7c8 (patch) | |
tree | 07f0a8a0ecbe5144beac32f8c92f9bf5138abc93 /envlist.h | |
parent | user: compile ioport-user.c only for x86 (diff) | |
download | qemu-kvm-6af5a2524646ddc027114d80912cdd8ee0b7c7c8.tar.gz qemu-kvm-6af5a2524646ddc027114d80912cdd8ee0b7c7c8.tar.bz2 qemu-kvm-6af5a2524646ddc027114d80912cdd8ee0b7c7c8.zip |
linux-user: compile envlist.c only once
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'envlist.h')
-rw-r--r-- | envlist.h | 22 |
1 files changed, 22 insertions, 0 deletions
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 */ |