Changed from Atom to AtomEntry and atom_ to atom_entry_
authorThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sat, 9 Aug 2008 08:03:50 +0000 (05:03 -0300)
committerThadeu Lima de Souza Cascardo <cascardo@holoscopio.com>
Sat, 9 Aug 2008 08:34:06 +0000 (05:34 -0300)
backend/files/giochannel.c
backend/gio/gio.c
frontend/cgi/cgi.c
include/atompub/entry.h

index dde0c56..cfce2f2 100644 (file)
@@ -61,7 +61,7 @@ giochannel_atom_retrieve_resource (AtomCtx *ctx, IRI *iri)
       return NULL;
     }
   g_io_channel_unref (channel);
-  atom = atom_new_data_len (data, len);
+  atom = atom_entry_new_data_len (data, len);
   g_free (data);
   return atom;
 }
index b930e10..84a801a 100644 (file)
@@ -53,7 +53,7 @@ gio_atom_retrieve_resource (AtomCtx *ctx, IRI *iri)
       return NULL;
     }
   g_object_unref (file);
-  atom = atom_new_data_len (data, len);
+  atom = atom_entry_new_data_len (data, len);
   g_free (data);
   return atom;
 }
index f61ea67..7e80b7d 100644 (file)
@@ -38,7 +38,7 @@ cgi_serve_request (AtomCtx *ctx)
   if (!strcmp (method, "GET"))
     {
       IRI *iri = iri_new ();
-      Atom *atom;
+      AtomEntry *atom;
       AtomError *error;
       iri_set_path (iri, path);
       atom = atom_retrieve_resource (ctx, iri);
@@ -47,8 +47,8 @@ cgi_serve_request (AtomCtx *ctx)
        {
          char *header = "Content-type: application/atom+xml\n\n";
          write (1, header, strlen (header));
-         write (1, atom_string (atom), atom_len (atom));
-         atom_delete (atom);
+         write (1, atom_entry_string (atom), atom_entry_len (atom));
+         atom_entry_delete (atom);
        }
       else if ((error = atom_error_get (ctx)) != NULL)
        {
index dd2cf05..a8eadb2 100644 (file)
 
 #include <sys/types.h>
 
-typedef struct _atom_entry Atom;
+typedef struct _atom_entry AtomEntry;
 
-Atom * atom_new_data_len (char *, size_t);
-void atom_delete (Atom *);
-char * atom_string (Atom *);
-size_t atom_len (Atom *);
+AtomEntry * atom_entry_new_with_prefix (char *);
+AtomEntry * atom_entry_new (void);
+AtomEntry * atom_entry_new_data_len (char *, size_t);
+void atom_entry_delete (AtomEntry *);
+char * atom_entry_string (AtomEntry *);
+size_t atom_entry_len (AtomEntry *);
 
 #endif