projects
/
cascardo
/
atompub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Enumerate entries at the start of the program
[cascardo/atompub.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index
673c702
..
4368fb4
100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-24,7
+24,8
@@
#include <stdlib.h>
extern void cgi_serve_request (AtomCtx *ctx);
#include <stdlib.h>
extern void cgi_serve_request (AtomCtx *ctx);
-extern AtomBackend * giochannel_backend (void);
+extern AtomBackend * gio_backend (void);
+extern AtomFrontend * cgi_frontend (void);
int
main (int argc, char **argv)
int
main (int argc, char **argv)
@@
-35,12
+36,14
@@
main (int argc, char **argv)
g_type_init ();
ctx = atom_ctx_new ();
atom_config_init (ctx);
g_type_init ();
ctx = atom_ctx_new ();
atom_config_init (ctx);
- atom_backend_set (ctx, giochannel_backend ());
+ atom_backend_set (ctx, gio_backend ());
+ atom_frontend_set (ctx, cgi_frontend ());
if ((error = atom_error_get (ctx)) != NULL)
{
g_message ("%s\n", atom_error_message (error));
exit (1);
}
if ((error = atom_error_get (ctx)) != NULL)
{
g_message ("%s\n", atom_error_message (error));
exit (1);
}
+ atom_backend_enumerate_entries (ctx, NULL, NULL, NULL);
cgi_serve_request (ctx);
atom_ctx_delete (ctx);
return 0;
cgi_serve_request (ctx);
atom_ctx_delete (ctx);
return 0;