When enumerating entries, return the requests backend understands
[cascardo/atompub.git] / include / atompub / backend.h
index a76c7b8..5a42ae2 100644 (file)
 #include <atompub/ctx.h>
 #include <atompub/entry.h>
 #include <atompub/iri.h>
+#include <atompub/feed.h>
 
 typedef struct _atom_backend AtomBackend;
 
 AtomBackend *atom_backend_new (void);
-void atom_backend_retrieve_resource_set (AtomBackend *,
-                                        Atom * (AtomCtx *, IRI *));
-Atom * atom_retrieve_resource (AtomCtx *, IRI *);
+void atom_backend_delete (AtomBackend *);
+void atom_backend_retrieve_entry_set (AtomBackend *,
+                                     AtomEntry * (AtomCtx *, AtomID *));
+void atom_backend_enumerate_entries_set (AtomBackend *,
+                                        void (AtomCtx *, char ***,
+                                              AtomEntry ***, size_t *));
+void atom_backend_is_feed_set (AtomBackend *, int (AtomCtx *, AtomID *));
+AtomEntry * atom_retrieve_entry (AtomCtx *, AtomID *);
+void atom_enumerate_entries (AtomCtx *, char ***, AtomEntry ***, size_t *);
+int atom_is_feed (AtomCtx *, AtomID *);
+AtomFeed * atom_retrieve_feed (AtomCtx *);
+AtomResource *atom_retrieve_resource (AtomCtx *, AtomID *);
 AtomBackend * atom_backend (AtomCtx *);
 void atom_backend_set (AtomCtx *, AtomBackend *);