gchar *giochannel_iri_to_filename (AtomCtx *ctx, IRI *iri)
{
- gchar *root = atom_config_get_str (ctx, "root");
+ gchar *root = atom_config_get_str (ctx, "giochannel", "root");
gchar *path = iri_get_path (iri);
gchar *filename = g_build_filename (root, path, NULL);
g_free (root);
#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);
#include <atompub/ctx.h>
void atom_config_init (AtomCtx *);
-char *atom_config_get_str (AtomCtx *, char *);
+char *atom_config_get_str (AtomCtx *, char *, char *);
#endif
#include <atompub/atom.h>
extern void gkeyfile_atom_config_init (AtomCtx *);
-extern char *gkeyfile_atom_config_get_str (AtomCtx *, char *);
+extern char *gkeyfile_atom_config_get_str (AtomCtx *, char *, char *);
void
atom_config_init (AtomCtx *ctx)
}
char *
-atom_config_get_str (AtomCtx *ctx, char *key)
+atom_config_get_str (AtomCtx *ctx, char *namespace, char *key)
{
- return gkeyfile_atom_config_get_str (ctx, key);
+ return gkeyfile_atom_config_get_str (ctx, namespace, key);
}