Use new backend interface in main program
[cascardo/atompub.git] / src / main.c
index 0091d1e..c6781a6 100644 (file)
@@ -24,6 +24,7 @@
 #include <stdlib.h>
 
 extern void cgi_serve_request (AtomCtx *ctx);
+extern AtomBackend * giochannel_backend (void);
 
 int
 main (int argc, char **argv)
@@ -35,6 +36,7 @@ main (int argc, char **argv)
   g_type_init ();
   ctx = atom_ctx_new ();
   atom_config_init (ctx);
+  atom_backend_set (ctx, giochannel_backend ());
   if ((error = atom_error_get (ctx)) != NULL)
     {
       g_message ("%s\n", error->message);