Support namespace in the config interface.
[cascardo/atompub.git] / config / gkeyfile.c
index 9023d83..33e54e7 100644 (file)
 #include <glib.h>
 
 gchar *
-gkeyfile_atom_config_get_str (AtomCtx *ctx, gchar * key)
+gkeyfile_atom_config_get_str (AtomCtx *ctx, gchar *group, gchar * key)
 {
   GKeyFile *keyfile;
   gchar *value;
   GError *error = NULL;
   keyfile = atom_config_data (ctx);
-  value = g_key_file_get_string (keyfile, "", key, &error);
+  value = g_key_file_get_string (keyfile, group, key, &error);
   if (value == NULL)
     {
       atom_error_set (ctx, error);