Introducing AtomID, which is used in core, instead of IRI
[cascardo/atompub.git] / include / atompub / backend.h
index 728c580..087cb25 100644 (file)
@@ -30,13 +30,15 @@ typedef struct _atom_backend AtomBackend;
 AtomBackend *atom_backend_new (void);
 void atom_backend_delete (AtomBackend *);
 void atom_backend_retrieve_entry_set (AtomBackend *,
-                                     AtomEntry * (AtomCtx *, IRI *));
+                                     AtomEntry * (AtomCtx *, AtomID *));
 void atom_backend_enumerate_entries_set (AtomBackend *,
                                         void (AtomCtx *, AtomEntry ***, size_t *));
-AtomEntry * atom_retrieve_entry (AtomCtx *, IRI *);
+void atom_backend_is_feed_set (AtomBackend *, int (AtomCtx *, AtomID *));
+AtomEntry * atom_retrieve_entry (AtomCtx *, AtomID *);
 void atom_enumerate_entries (AtomCtx *, AtomEntry ***, size_t *);
+int atom_is_feed (AtomCtx *, AtomID *);
 AtomFeed * atom_retrieve_feed (AtomCtx *);
-AtomResource *atom_retrieve_resource (AtomCtx *, IRI *);
+AtomResource *atom_retrieve_resource (AtomCtx *, AtomID *);
 AtomBackend * atom_backend (AtomCtx *);
 void atom_backend_set (AtomCtx *, AtomBackend *);