/** * @file environment.h */ #ifndef STASIS_ENVIRONMENT_H #define STASIS_ENVIRONMENT_H #include #include #include #include "environment.h" typedef struct StrList RuntimeEnv; ssize_t runtime_contains(RuntimeEnv *env, const char *key); RuntimeEnv *runtime_copy(char **env); int runtime_replace(RuntimeEnv **dest, char **src); char *runtime_get(RuntimeEnv *env, const char *key); void runtime_set(RuntimeEnv *env, const char *_key, char *_value); char *runtime_expand_var(RuntimeEnv *env, char *input); void runtime_export(RuntimeEnv *env, char **keys); void runtime_apply(RuntimeEnv *env); void runtime_free(RuntimeEnv *env); #endif //STASIS_ENVIRONMENT_H