void (*handle_error) (AtomCtx *);
void (*handle_entry) (AtomCtx *, AtomEntry *);
void (*handle_feed) (AtomCtx *, AtomFeed *);
+ void (*handle_publish) (AtomCtx *, AtomEntry *);
};
AtomFrontend *
frontend->handle_error = NULL;
frontend->handle_entry = NULL;
frontend->handle_feed = NULL;
+ frontend->handle_publish = NULL;
return frontend;
}
frontend->handle_feed = handle_feed;
}
+void
+atom_frontend_handle_publish_set (AtomFrontend *frontend,
+ void handle_publish (AtomCtx *, AtomEntry *))
+{
+ frontend->handle_publish = handle_publish;
+}
+
void
atom_frontend_map_entries (AtomCtx *ctx, char ** reqs,
AtomEntry ** entries, size_t len)
frontend->handle_feed (ctx, feed);
}
}
+
+void
+atom_handle_publish (AtomCtx *ctx, AtomEntry *entry)
+{
+ AtomFrontend *frontend;
+ frontend = atom_frontend (ctx);
+ if (frontend && frontend->handle_publish)
+ {
+ frontend->handle_publish (ctx, entry);
+ }
+}
void (AtomCtx *, AtomEntry *));
void atom_frontend_handle_feed_set (AtomFrontend *,
void (AtomCtx *, AtomFeed *));
+void atom_frontend_handle_publish_set (AtomFrontend *,
+ void (AtomCtx *, AtomEntry *));
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 *);
+void atom_handle_publish (AtomCtx *, AtomEntry *);
AtomFrontend * atom_frontend (AtomCtx *);
void atom_frontend_set (AtomCtx *, AtomFrontend *);