summaryrefslogtreecommitdiff
path: root/src/include/Conf.h
blob: 6a007b445a6cff94c5c96ed3c0671e2181193d2b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef CONF_H
#define CONF_H
#include <Eina.h>
#include <Ecore.h>
#include <Eio.h>

typedef struct _Conf Conf;

typedef void (*Conf_Done_Cb)(void *data, Conf *conf);
typedef void (*Conf_Error_Cb)(void *data, Conf *conf, const char *errstr);

const char * conf_file_get(Conf *conf);
Eina_Hash * conf_variables_get(Conf *conf);
Eina_Bool conf_load(char *file, Conf_Done_Cb done_cb, Conf_Error_Cb error_cb, const void *data);
int conf_init(void);
int conf_shutdown(void);
#endif