aboutsummaryrefslogtreecommitdiff
path: root/include/config.h
blob: 911a59cf74472f67fcdeec9bb75f26ffab80d9b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef __CONFIG_H
#define __CONFIG_H

#include <list.h>

#define DELIM "="
#define DELIM_ARRAY ","

typedef struct {
  list_t *keys;
  list_t *values;
  list_t *array_values;
} config_t;

config_t *config_parse(char *content);
void config_delete(config_t *config);
config_t *config_fetch_and_parse(char *path);

#endif