envlist.h 533 B

12345678910111213141516171819202122
  1. #ifndef ENVLIST_H
  2. #define ENVLIST_H
  3. #ifdef __cplusplus
  4. extern "C" {
  5. #endif
  6. typedef struct envlist envlist_t;
  7. extern envlist_t *envlist_create(void);
  8. extern void envlist_free(envlist_t *);
  9. extern int envlist_setenv(envlist_t *, const char *);
  10. extern int envlist_unsetenv(envlist_t *, const char *);
  11. extern int envlist_parse_set(envlist_t *, const char *);
  12. extern int envlist_parse_unset(envlist_t *, const char *);
  13. extern char **envlist_to_environ(const envlist_t *, size_t *);
  14. #ifdef __cplusplus
  15. }
  16. #endif
  17. #endif /* ENVLIST_H */