summaryrefslogtreecommitdiff
path: root/src/include/Conf.h
blob: c54a03992f13572bd6c36686136884f86fa36520 (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
24
25
26
#ifndef CONF_H
#define CONF_H
#include <Eina.h>
#include <Ecore.h>
#include <Eio.h>

/**
 * @addtogroup Lib-Conf-Functions
 * @{
 */

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