aboutsummaryrefslogtreecommitdiff
path: root/include/environment.h
blob: ad53bf01ee4d0d0e1268c343ec0e36da680198a4 (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 OHMYCAL_ENVIRONMENT_H
#define OHMYCAL_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, const 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 //OHMYCAL_ENVIRONMENT_H