David 'Digit' Turner | a5d4120 | 2010-05-10 18:37:10 -0700 | [diff] [blame] | 1 | #ifndef ENVLIST_H |
| 2 | #define ENVLIST_H |
| 3 | |
| 4 | #ifdef __cplusplus |
| 5 | extern "C" { |
| 6 | #endif |
| 7 | |
| 8 | typedef struct envlist envlist_t; |
| 9 | |
David 'Digit' Turner | 17410ee | 2011-05-10 10:55:21 +0200 | [diff] [blame] | 10 | envlist_t *envlist_create(void); |
| 11 | void envlist_free(envlist_t *); |
| 12 | int envlist_setenv(envlist_t *, const char *); |
| 13 | int envlist_unsetenv(envlist_t *, const char *); |
| 14 | int envlist_parse_set(envlist_t *, const char *); |
| 15 | int envlist_parse_unset(envlist_t *, const char *); |
| 16 | char **envlist_to_environ(const envlist_t *, size_t *); |
David 'Digit' Turner | a5d4120 | 2010-05-10 18:37:10 -0700 | [diff] [blame] | 17 | |
| 18 | #ifdef __cplusplus |
| 19 | } |
| 20 | #endif |
| 21 | |
| 22 | #endif /* ENVLIST_H */ |