blob: 0685712f69ea5debf78ab7c6c55a158b9d92357b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/**
* @file environment.h
*/
#ifndef SPM_ENVIRONMENT_H
#define SPM_ENVIRONMENT_H
typedef StrList RuntimeEnv;
ssize_t runtime_contains(RuntimeEnv *env, const char *key);
RuntimeEnv *runtime_copy(char **env);
char *runtime_get(RuntimeEnv *env, const char *key);
void runtime_set(RuntimeEnv *env, const char *_key, const char *_value);
char *runtime_expand_var(RuntimeEnv *env, const char *input);
void runtime_export(RuntimeEnv *env, char **keys);
void runtime_apply(RuntimeEnv *env);
void runtime_free(RuntimeEnv *env);
#endif //SPM_ENVIRONMENT_H
|