From 084e58da7bd3a86f959dbb8fe95ed4d457de8edb Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Sat, 26 Jan 2008 21:39:15 -0200 Subject: [PATCH] General config initialization interface. --- include/atompub/config.h | 1 + src/config.c | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/include/atompub/config.h b/include/atompub/config.h index fcd4dc2..5dca307 100644 --- a/include/atompub/config.h +++ b/include/atompub/config.h @@ -22,6 +22,7 @@ #include +void atom_config_init (AtomCtx *); char *atom_config_get_str (AtomCtx *, char *); #endif diff --git a/src/config.c b/src/config.c index 3d1fef4..523e5b9 100644 --- a/src/config.c +++ b/src/config.c @@ -19,8 +19,15 @@ #include +extern void gkeyfile_atom_config_init (AtomCtx *); extern char *gkeyfile_atom_config_get_str (AtomCtx *, char *); +void +atom_config_init (AtomCtx *ctx) +{ + gkeyfile_atom_config_init (ctx); +} + char * atom_config_get_str (AtomCtx *ctx, char *key) { -- 2.20.1