#include <glib.h>
#include <atompub/atom.h>
-gchar *giochannel_iri_to_filename (AtomCtx *ctx, IRI *iri)
+static gchar *
+giochannel_iri_to_filename (AtomCtx *ctx, IRI *iri)
{
gchar *root = atom_config_get_str (ctx, "giochannel", "root");
gchar *path = iri_get_path (iri);
return filename;
}
-Atom * giochannel_atom_retrieve_resource (AtomCtx *ctx, IRI *iri)
+static Atom *
+giochannel_atom_retrieve_resource (AtomCtx *ctx, IRI *iri)
{
gchar *filename;
GIOChannel *channel;
g_free (data);
return atom;
}
+
+AtomBackend *
+giochannel_backend (void)
+{
+ AtomBackend *backend;
+ backend = atom_backend_new ();
+ atom_backend_retrieve_resource_set (backend,
+ giochannel_atom_retrieve_resource);
+ return backend;
+}