*/
+#include <glib-object.h>
+
#include <atompub/atom.h>
#include <stdlib.h>
extern void cgi_serve_request (AtomCtx *ctx);
+extern AtomBackend * gio_backend (void);
int
main (int argc, char **argv)
{
AtomCtx *ctx;
IRI *iri;
- Atom *atom;
- GError *error;
+ AtomError *error;
+ g_type_init ();
ctx = atom_ctx_new ();
atom_config_init (ctx);
+ atom_backend_set (ctx, gio_backend ());
if ((error = atom_error_get (ctx)) != NULL)
{
- g_message ("%s\n", error->message);
+ g_message ("%s\n", atom_error_message (error));
exit (1);
}
cgi_serve_request (ctx);
+ atom_ctx_delete (ctx);
return 0;
}