GIO is the default backend for sample main program
[cascardo/atompub.git] / src / main.c
index 4c10bd1..3ae1815 100644 (file)
 #include <stdlib.h>
 
 extern void cgi_serve_request (AtomCtx *ctx);
-extern AtomBackend * giochannel_backend (void);
+extern AtomBackend * gio_backend (void);
 
 int
 main (int argc, char **argv)
 {
   AtomCtx *ctx;
   IRI *iri;
-  Atom *atom;
   AtomError *error;
   g_type_init ();
   ctx = atom_ctx_new ();
   atom_config_init (ctx);
-  atom_backend_set (ctx, giochannel_backend ());
+  atom_backend_set (ctx, gio_backend ());
   if ((error = atom_error_get (ctx)) != NULL)
     {
       g_message ("%s\n", atom_error_message (error));