From 1c0ac6667f2f374edc70211edf3411e390dbc9b1 Mon Sep 17 00:00:00 2001 From: Thadeu Lima de Souza Cascardo Date: Sat, 9 Aug 2008 19:56:39 -0300 Subject: [PATCH] CGI frontend uses AtomResource instead of AtomEntry --- frontend/cgi/cgi.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/cgi/cgi.c b/frontend/cgi/cgi.c index 5497941..73adcda 100644 --- a/frontend/cgi/cgi.c +++ b/frontend/cgi/cgi.c @@ -37,9 +37,10 @@ cgi_serve_request (AtomCtx *ctx) } if (!strcmp (method, "GET")) { - IRI *iri = iri_new (); - AtomEntry *atom; + IRI *iri; + AtomResource *atom; AtomError *error; + iri = iri_new (); iri_set_path (iri, path); atom = atom_retrieve_resource (ctx, iri); iri_delete (iri); @@ -49,10 +50,10 @@ cgi_serve_request (AtomCtx *ctx) size_t len; char *header = "Content-type: application/atom+xml\n\n"; write (1, header, strlen (header)); - atom_entry_string (atom, &str, &len); + atom_resource_string (atom, &str, &len); write (1, str, len); g_free (str); - atom_entry_delete (atom); + atom_resource_delete (atom); } else if ((error = atom_error_get (ctx)) != NULL) { -- 2.20.1