Remove Atom Resource
[cascardo/atompub.git] / frontend / cgi / cgi.c
index 3c5d72a..069a073 100644 (file)
@@ -46,10 +46,10 @@ cgi_serve_request (AtomCtx *ctx)
   if (!strcmp (method, "GET"))
     {
       AtomID *id;
-      AtomResource *atom;
+      AtomEntry *atom;
       AtomError *error;
       id = atom_id_new (path);
-      atom = atom_retrieve_resource (ctx, id);
+      atom = atom_retrieve_entry (ctx, id);
       atom_id_delete (id);
       if (atom)
        {
@@ -57,10 +57,10 @@ cgi_serve_request (AtomCtx *ctx)
          size_t len;
          char *header = "Content-type: application/atom+xml\n\n";
          write (1, header, strlen (header));
-         atom_resource_string (atom, &str, &len);
+         atom_entry_string (atom, &str, &len);
          write (1, str, len);
          g_free (str);
-         atom_resource_delete (atom);
+         atom_entry_delete (atom);
        }
       else if ((error = atom_error_get (ctx)) != NULL)
        {