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)
{
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)
{