#include <atompub/ctx.h>
#include <atompub/entry.h>
#include <atompub/iri.h>
+#include <atompub/feed.h>
typedef struct _atom_backend AtomBackend;
void (AtomCtx *, AtomEntry ***, size_t *));
AtomEntry * atom_retrieve_resource (AtomCtx *, IRI *);
void atom_enumerate_entries (AtomCtx *, AtomEntry ***, size_t *);
+AtomFeed * atom_retrieve_feed (AtomCtx *);
AtomBackend * atom_backend (AtomCtx *);
void atom_backend_set (AtomCtx *, AtomBackend *);
return;
}
}
+
+AtomFeed *
+atom_retrieve_feed (AtomCtx *ctx)
+{
+ AtomFeed *feed;
+ AtomEntry **entries;
+ size_t len;
+ atom_backend_enumerate_entries (ctx, &entries, &len);
+ feed = atom_feed_new ();
+ atom_feed_entry_append_array (feed, entries, len);
+ return feed;
+}