summaryrefslogtreecommitdiff
path: root/src/lib/conf/conf_private.h
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-17 15:31:53 +0100
committerGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-17 15:31:53 +0100
commit6b427971ed5c8c26786e77fb33140cca117737c1 (patch)
tree549e9005366b8312d5aba93759c7a22c8ef61c22 /src/lib/conf/conf_private.h
parent208c0f4277dcd39db4a9c6a10bf12a7e29a114eb (diff)
Rewrite of libconf to be clean. SMMAN BROKEN AT THIS COMMIT!
Diffstat (limited to '')
-rw-r--r--src/lib/conf/conf_private.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/lib/conf/conf_private.h b/src/lib/conf/conf_private.h
new file mode 100644
index 0000000..693f36e
--- /dev/null
+++ b/src/lib/conf/conf_private.h
@@ -0,0 +1,38 @@
1#include <Conf.h>
2
3extern int _conf_log_dom_global;
4
5#define ERR(...) EINA_LOG_DOM_ERR(_conf_log_dom_global, __VA_ARGS__)
6#define DBG(...) EINA_LOG_DOM_DBG(_conf_log_dom_global, __VA_ARGS__)
7#define NFO(...) EINA_LOG_DOM_INFO(_conf_log_dom_global, __VA_ARGS__)
8#define WRN(...) EINA_LOG_DOM_WARN(_conf_log_dom_global, __VA_ARGS__)
9#define CRI(...) EINA_LOG_DOM_CRIT(_conf_log_dom_global, __VA_ARGS__)
10
11struct _Conf
12{
13 const char *file;
14 Eina_File *ef;
15
16 Eina_Hash *variables;
17};
18
19
20typedef struct _Conf_Load
21{
22 Conf *conf;
23
24 struct
25 {
26 Conf_Done_Cb done;
27 Conf_Error_Cb error;
28 const void *data;
29 } cb;
30} Conf_Load;
31
32void conf_free(Conf *conf);
33
34Eina_Bool conf_load_map_filter(void *data, Eio_File *handler, void *map, size_t length);
35void conf_load_map_main(void *data, Eio_File *handler, void *map, size_t length);
36void conf_load_map_error(void *data, Eio_File *handler, int error);
37
38void conf_load_line_free(void *data);