blob: b9addcc11f7d39c2f18b01ff709e517608eea3c9 [file] [log] [blame]
David 'Digit' Turnera5d41202010-05-10 18:37:10 -07001#ifndef ENVLIST_H
2#define ENVLIST_H
3
4#ifdef __cplusplus
5extern "C" {
6#endif
7
8typedef struct envlist envlist_t;
9
David 'Digit' Turner17410ee2011-05-10 10:55:21 +020010envlist_t *envlist_create(void);
11void envlist_free(envlist_t *);
12int envlist_setenv(envlist_t *, const char *);
13int envlist_unsetenv(envlist_t *, const char *);
14int envlist_parse_set(envlist_t *, const char *);
15int envlist_parse_unset(envlist_t *, const char *);
16char **envlist_to_environ(const envlist_t *, size_t *);
David 'Digit' Turnera5d41202010-05-10 18:37:10 -070017
18#ifdef __cplusplus
19}
20#endif
21
22#endif /* ENVLIST_H */