summaryrefslogtreecommitdiff
path: root/src/lib/conf.c
diff options
context:
space:
mode:
authorGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-13 11:19:40 +0100
committerGuillaume Friloux <guillaume.friloux@gmail.com>2013-12-13 11:19:40 +0100
commit02a8661864a46f83287cf07320635743191b2b92 (patch)
treef2c58baa0af0289a0e9e93c54459de3a23eb6682 /src/lib/conf.c
parent99db593250aa02e957135966f501c8a49d33513f (diff)
Rework build, move libconf to lib folder.
Diffstat (limited to '')
-rw-r--r--src/lib/conf.c (renamed from src/bin/libconf.c)8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/bin/libconf.c b/src/lib/conf.c
index 0be5eba..acca01e 100644
--- a/src/bin/libconf.c
+++ b/src/lib/conf.c
@@ -65,10 +65,9 @@
65 * @verbatim gcc -o main main.c `pkg-config --cflags libconf` `pkg-config --libs libconf` `pkg-config --cflags eina` @endverbatim 65 * @verbatim gcc -o main main.c `pkg-config --cflags libconf` `pkg-config --libs libconf` `pkg-config --cflags eina` @endverbatim
66 * @verbatim EINA_LOG_LEVEL=5 ./main /etc/docupack.conf@endverbatim 66 * @verbatim EINA_LOG_LEVEL=5 ./main /etc/docupack.conf@endverbatim
67 */ 67 */
68#include "libconf.h" 68#include <Conf.h>
69 69
70/** 70/**
71 * \fn int libconfig_init(char *file, struct libconfig *myconf)
72 * \brief Inits lib. 71 * \brief Inits lib.
73 * 72 *
74 * \param file full path to configuration file 73 * \param file full path to configuration file
@@ -80,7 +79,7 @@ int libconfig_init(char *file, struct libconfig *myconf)
80 strcpy(myconf->file, file); 79 strcpy(myconf->file, file);
81 myconf->lconfig = NULL; 80 myconf->lconfig = NULL;
82 81
83 ligconfig_einadom = eina_log_domain_register("Libconf", EINA_COLOR_ORANGE); 82 ligconfig_einadom = eina_log_domain_register("Libconf", EINA_COLOR_ORANGE);
84 83
85 EINA_LOG_DOM_DBG(ligconfig_einadom, "Using configuration file %s", myconf->file); 84 EINA_LOG_DOM_DBG(ligconfig_einadom, "Using configuration file %s", myconf->file);
86 85
@@ -89,7 +88,6 @@ int libconfig_init(char *file, struct libconfig *myconf)
89 88
90 89
91/** 90/**
92 * \fn int libconfig_load(struct libconfig *myconf)
93 * \brief Loads configuration file to store every variable into our Eina list 91 * \brief Loads configuration file to store every variable into our Eina list
94 * 92 *
95 * \param myconf Pointer to a libconfig structure 93 * \param myconf Pointer to a libconfig structure
@@ -178,7 +176,6 @@ int libconfig_load(struct libconfig *myconf)
178} 176}
179 177
180/** 178/**
181 * \fn int libconfig_list(struct libconfig *myconf, int (*callback_function)(char *variable, char *value))
182 * \brief Will send to a callback every entry of the Eina list 179 * \brief Will send to a callback every entry of the Eina list
183 * 180 *
184 * \param myconf Pointer to a libconfig structure 181 * \param myconf Pointer to a libconfig structure
@@ -197,7 +194,6 @@ int libconfig_list(struct libconfig *myconf, int (*callback_function)(char *vari
197} 194}
198 195
199/** 196/**
200 * \fn int libconfig_free(struct libconfig *myconf)
201 * \brief Will free our eina list 197 * \brief Will free our eina list
202 * 198 *
203 * \param myconf Pointer to a libconfig structure 199 * \param myconf Pointer to a libconfig structure