Added functions to handle errors, entries or feeds in frontend
[cascardo/atompub.git] / include / atompub / frontend.h
index e3b97d5..80555eb 100644 (file)
@@ -21,6 +21,8 @@
 #define ATOMPUB_FRONTEND_H
 
 #include <atompub/ctx.h>
+#include <atompub/entry.h>
+#include <atompub/feed.h>
 
 typedef struct _atom_frontend AtomFrontend;
 
@@ -32,9 +34,18 @@ void atom_frontend_map_entries_set (AtomFrontend *,
 void atom_frontend_is_feed_set (AtomFrontend *, int (AtomCtx *, char *));
 void atom_frontend_get_request_set (AtomFrontend *,
                                    AtomRequest * (AtomCtx *));
+void atom_frontend_handle_error_set (AtomFrontend *,
+                                    void (AtomCtx *));
+void atom_frontend_handle_entry_set (AtomFrontend *,
+                                    void (AtomCtx *, AtomEntry *));
+void atom_frontend_handle_feed_set (AtomFrontend *,
+                                   void (AtomCtx *, AtomFeed *));
 void atom_map_entries (AtomCtx *, char **, AtomEntry **, size_t);
 int atom_is_feed (AtomCtx *, char *);
 AtomRequest * atom_get_request (AtomCtx *);
+void atom_handle_error (AtomCtx *);
+void atom_handle_entry (AtomCtx *, AtomEntry *);
+void atom_handle_feed (AtomCtx *, AtomFeed *);
 AtomFrontend * atom_frontend (AtomCtx *);
 void atom_frontend_set (AtomCtx *, AtomFrontend *);