-include_HEADERS = atom.h config.h ctx.h entry.h error.h feed.h iri.h
+include_HEADERS = atom.h config.h ctx.h entry.h error.h feed.h iri.h backend.h
#include <atompub/iri.h>
#include <atompub/entry.h>
#include <atompub/feed.h>
+#include <atompub/backend.h>
#endif
--- /dev/null
+/*
+ * Copyright (C) 2007 Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+
+#ifndef ATOMPUB_BACKEND_H
+#define ATOMPUB_BACKEND_H
+
+#include <atompub/ctx.h>
+#include <atompub/entry.h>
+#include <atompub/iri.h>
+
+Atom * atom_retrieve_resource (AtomCtx *, IRI *);
+
+#endif
bin_PROGRAMS = atompub
-atompub_SOURCES = main.c config.c ctx.c
+atompub_SOURCES = main.c config.c ctx.c backend.c
atompub_CFLAGS = -I$(top_srcdir)/include
atompub_CFLAGS += $(GLIB_CFLAGS)
atompub_LDADD = -L$(top_builddir)/backend/files -lgiochannel
--- /dev/null
+/*
+ * Copyright (C) 2007 Thadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+
+#include <atompub/atom.h>
+
+extern Atom *giochannel_atom_retrieve_resource (AtomCtx *, IRI *);
+
+Atom *
+atom_retrieve_resource (AtomCtx *ctx, IRI *iri)
+{
+ return giochannel_atom_retrieve_resource (ctx, iri);
+}