blob: 484f02cf4bce7ea53dd58629e51a93d03c8fca64 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
/**
* @file environment.h
*/
#ifndef OMC_ENVIRONMENT_H
#define OMC_ENVIRONMENT_H
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
#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 //OMC_ENVIRONMENT_H
|