cascardo/atompub.git
15 years agoImplement new frontend functions for CGI frontend
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 03:17:08 +0000 (00:17 -0300)]
Implement new frontend functions for CGI frontend

15 years agoAdded function to serve requests from any frontend
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 03:29:54 +0000 (00:29 -0300)]
Added function to serve requests from any frontend

This function serves requests from any frontend. This would be common
code among all frontends. That's why implementing in the core makes more
sense.

15 years agoAdded functions to handle errors, entries or feeds in frontend
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 03:00:08 +0000 (00:00 -0300)]
Added functions to handle errors, entries or feeds in frontend

15 years agoAdded get_request function to the frontend
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 02:48:24 +0000 (23:48 -0300)]
Added get_request function to the frontend

15 years agoAdded request structure
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 02:38:07 +0000 (23:38 -0300)]
Added request structure

This is needed to allow the core to know about the request made to the
frontend. A request will need to represent more things besides a type
and the requested object, like the entry or data provided, in the case
of a POST or PUT, for example.

15 years agoFixed memory leak when setting error message
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 03:33:59 +0000 (00:33 -0300)]
Fixed memory leak when setting error message

15 years agoRemoved parameter name from header
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 02:29:06 +0000 (23:29 -0300)]
Removed parameter name from header

15 years agoEnumerate entries at the start of the program
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 01:47:17 +0000 (22:47 -0300)]
Enumerate entries at the start of the program

This is required to set the request mappings, so the frontend can
identify the backend request needed to retrieve an entry.

15 years agoCGI frontend now requests a feed or an entry depending on the request
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 01:06:59 +0000 (22:06 -0300)]
CGI frontend now requests a feed or an entry depending on the request

15 years agoFrontend maps request to Atom ID before retrieving resource
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 00:33:52 +0000 (21:33 -0300)]
Frontend maps request to Atom ID before retrieving resource

15 years agoBackend now retrieves a request, not an Atom ID
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 00:31:59 +0000 (21:31 -0300)]
Backend now retrieves a request, not an Atom ID

We map an Atom ID to a backend request and, then, retrieve this request
from the backend.

15 years agoThe frontend tells if a request is a feed or not
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 00:47:00 +0000 (21:47 -0300)]
The frontend tells if a request is a feed or not

15 years agoRemove Atom Resource
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 00:51:15 +0000 (21:51 -0300)]
Remove Atom Resource

This is required as the next step is to make the frontend decide if the
requested resource is a feed or an entry, instead of the backend.

15 years agoAdded functions to convert AtomID from and to frontend and backend requests
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 00:14:00 +0000 (21:14 -0300)]
Added functions to convert AtomID from and to frontend and backend requests

15 years agoSet up mappings when enumerating entries
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 20:16:04 +0000 (17:16 -0300)]
Set up mappings when enumerating entries

15 years agoRegister CGI frontend in main context
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 20:14:18 +0000 (17:14 -0300)]
Register CGI frontend in main context

15 years agoAdded CGI frontend structure implementation
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 20:12:58 +0000 (17:12 -0300)]
Added CGI frontend structure implementation

15 years agoAdded frontend requests mapping
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 20:11:39 +0000 (17:11 -0300)]
Added frontend requests mapping

15 years agoCreate frontend structure with map_entries function
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 20:07:19 +0000 (17:07 -0300)]
Create frontend structure with map_entries function

15 years agoInitialize is_feed function for backends to NULL
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 20:06:24 +0000 (17:06 -0300)]
Initialize is_feed function for backends to NULL

15 years agoMoved core implementation to the library
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 18:10:36 +0000 (15:10 -0300)]
Moved core implementation to the library

15 years agoUpdate entry xml node before using it
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 16:33:57 +0000 (13:33 -0300)]
Update entry xml node before using it

15 years agoFixed setting an entry title
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 16:06:56 +0000 (13:06 -0300)]
Fixed setting an entry title

15 years agoUse an array instead of a list for the entries in a feed
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 15:46:26 +0000 (12:46 -0300)]
Use an array instead of a list for the entries in a feed

15 years agoWhen converting feed to xml node, set the atom namespace
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 15:39:30 +0000 (12:39 -0300)]
When converting feed to xml node, set the atom namespace

15 years agoAllow more than one author, as required by specification
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 02:34:37 +0000 (23:34 -0300)]
Allow more than one author, as required by specification

The Atom RFC allows more than one author, which we didn't. Now, an entry
have an array of authors, which can be added to or retrieved. The header
also had the wrong function names.

15 years agoFixed the use of a dangling reference
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 02:10:45 +0000 (23:10 -0300)]
Fixed the use of a dangling reference

When unreferencing the info object, the name attribute would be
released, resulting in a bug when trying to copy it right after that.
So, we unreference the info object in the end of the loop now.

15 years agoFixed memory leak when enumerating entries
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 01:48:06 +0000 (22:48 -0300)]
Fixed memory leak when enumerating entries

15 years agoAdded map from atom:IDs to backend requests
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 01:43:42 +0000 (22:43 -0300)]
Added map from atom:IDs to backend requests

15 years agoUse local variables when calling backend enumerate function
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 01:32:26 +0000 (22:32 -0300)]
Use local variables when calling backend enumerate function

15 years agoWhen enumerating entries, return the requests backend understands
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 01:17:15 +0000 (22:17 -0300)]
When enumerating entries, return the requests backend understands

To be able to map atom:IDs to backend requests, let the backend return
the mapping when enumerating the entries.

15 years agoDo not output error when trying to parse XML data
Thadeu Lima de Souza Cascardo [Tue, 30 Sep 2008 08:19:12 +0000 (05:19 -0300)]
Do not output error when trying to parse XML data

15 years agoIgnore if an entry cannot be read when enumerating files
Thadeu Lima de Souza Cascardo [Tue, 30 Sep 2008 08:03:33 +0000 (05:03 -0300)]
Ignore if an entry cannot be read when enumerating files

15 years agoRetrieve an entry if backend can tell it's not a feed
Thadeu Lima de Souza Cascardo [Tue, 30 Sep 2008 07:53:42 +0000 (04:53 -0300)]
Retrieve an entry if backend can tell it's not a feed

15 years agoReturn error if backend is not able to tell a feed from an entry
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 20:04:30 +0000 (17:04 -0300)]
Return error if backend is not able to tell a feed from an entry

15 years agoAdded a .gitignore file to ignore building and built files
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 05:24:48 +0000 (02:24 -0300)]
Added a .gitignore file to ignore building and built files

15 years agoReturn after returning an error
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 05:17:44 +0000 (02:17 -0300)]
Return after returning an error

15 years agoConvert GIOError too when converting from GError to AtomError
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 05:12:44 +0000 (02:12 -0300)]
Convert GIOError too when converting from GError to AtomError

15 years agoIf GIO cannot enumerate directory, set error and return
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 04:54:51 +0000 (01:54 -0300)]
If GIO cannot enumerate directory, set error and return

15 years agoReturn NULL instead of an empty feed in case of a backend error
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 04:51:54 +0000 (01:51 -0300)]
Return NULL instead of an empty feed in case of a backend error

15 years agoAvoid a crash if there is no index configured
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 04:51:26 +0000 (01:51 -0300)]
Avoid a crash if there is no index configured

15 years agoDummy IRI parsing. Needed to fix segfault bug, when freeing person's URI
Thadeu Lima de Souza Cascardo [Sun, 10 Aug 2008 05:02:58 +0000 (02:02 -0300)]
Dummy IRI parsing. Needed to fix segfault bug, when freeing person's URI

15 years agoFix typo for AtomCtx type
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 04:20:58 +0000 (01:20 -0300)]
Fix typo for AtomCtx type

15 years agoInclude AtomID header into main Atom header
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 04:18:55 +0000 (01:18 -0300)]
Include AtomID header into main Atom header

15 years agoIntroducing AtomID, which is used in core, instead of IRI
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 04:16:24 +0000 (01:16 -0300)]
Introducing AtomID, which is used in core, instead of IRI

15 years agoBuild iri directory before other directories
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 02:09:13 +0000 (23:09 -0300)]
Build iri directory before other directories

15 years agoLibrary includes every module and sample main program links with it
Thadeu Lima de Souza Cascardo [Sun, 10 Aug 2008 13:29:26 +0000 (10:29 -0300)]
Library includes every module and sample main program links with it

15 years agoGIO is the default backend for sample main program
Thadeu Lima de Souza Cascardo [Sun, 10 Aug 2008 05:18:41 +0000 (02:18 -0300)]
GIO is the default backend for sample main program

15 years agoReturn a copy of the internal node, caller is the owner
Thadeu Lima de Souza Cascardo [Sun, 10 Aug 2008 04:40:04 +0000 (01:40 -0300)]
Return a copy of the internal node, caller is the owner

15 years agoIf backend cannot enumerate entries, return 0 entries with NULL array
Thadeu Lima de Souza Cascardo [Sun, 10 Aug 2008 03:21:44 +0000 (00:21 -0300)]
If backend cannot enumerate entries, return 0 entries with NULL array

15 years agoIf entry or feed is NULL, so should be the resource
Thadeu Lima de Souza Cascardo [Sun, 10 Aug 2008 03:12:19 +0000 (00:12 -0300)]
If entry or feed is NULL, so should be the resource

15 years agoCGI frontend uses AtomResource instead of AtomEntry
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 22:56:39 +0000 (19:56 -0300)]
CGI frontend uses AtomResource instead of AtomEntry

15 years agoRetrieve resource returns either an entry or a feed
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 22:55:36 +0000 (19:55 -0300)]
Retrieve resource returns either an entry or a feed

15 years agoAdded AtomResource as a generalization for entries and feeds
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 22:50:45 +0000 (19:50 -0300)]
Added AtomResource as a generalization for entries and feeds

15 years agoRenamed retrieve_resource to retrieve_entry
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 22:26:27 +0000 (19:26 -0300)]
Renamed retrieve_resource to retrieve_entry

15 years agoCreate feed using entries from backend
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 22:18:03 +0000 (19:18 -0300)]
Create feed using entries from backend

15 years agoGet string from AtomFeed
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 22:11:27 +0000 (19:11 -0300)]
Get string from AtomFeed

15 years agoAtom namespace is in a common header now
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 22:06:44 +0000 (19:06 -0300)]
Atom namespace is in a common header now

15 years agoGenerate feed with many entries
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 22:00:15 +0000 (19:00 -0300)]
Generate feed with many entries

15 years agoDistribute XML headers
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 21:52:33 +0000 (18:52 -0300)]
Distribute XML headers

15 years agoCreate a xml node from an AtomEntry
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 21:51:35 +0000 (18:51 -0300)]
Create a xml node from an AtomEntry

15 years agoModify interface to get string from entry
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 21:41:38 +0000 (18:41 -0300)]
Modify interface to get string from entry

15 years agolibxml2 may return document with null root node
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 20:28:16 +0000 (17:28 -0300)]
libxml2 may return document with null root node

15 years agoIf it is not possible to parse document, return NULL
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 20:25:05 +0000 (17:25 -0300)]
If it is not possible to parse document, return NULL

15 years agoAtomEntry requires AtomPerson
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 20:18:49 +0000 (17:18 -0300)]
AtomEntry requires AtomPerson

15 years agoAtomEntry has some of the interesting nodes as properties
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 20:15:19 +0000 (17:15 -0300)]
AtomEntry has some of the interesting nodes as properties

15 years agoReading AtomPerson from a XML node
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 20:14:48 +0000 (17:14 -0300)]
Reading AtomPerson from a XML node

15 years agoURI property is of IRI type, not string
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 20:08:25 +0000 (17:08 -0300)]
URI property is of IRI type, not string

15 years agoCreate a XML node from an AtomPerson
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 18:51:51 +0000 (15:51 -0300)]
Create a XML node from an AtomPerson

15 years agoCopy IRI when setting AtomPerson uri
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 18:50:22 +0000 (15:50 -0300)]
Copy IRI when setting AtomPerson uri

15 years agoAdded more interface for IRI
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 18:46:43 +0000 (15:46 -0300)]
Added more interface for IRI

You can set scheme and host part of IRIs now. You can also get it as a
string, which should be revised, because of the needed separators. You
can also make a copy of a IRI.

15 years agoInclude IRI header into AtomPerson header and this into main header
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 18:14:49 +0000 (15:14 -0300)]
Include IRI header into AtomPerson header and this into main header

15 years agoAdded AtomPerson structure
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 18:08:44 +0000 (15:08 -0300)]
Added AtomPerson structure

15 years agoDistribute headers in pkgincludedir instead of includedir
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 17:57:15 +0000 (14:57 -0300)]
Distribute headers in pkgincludedir instead of includedir

15 years agoCopies error message from GError
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 09:26:15 +0000 (06:26 -0300)]
Copies error message from GError

15 years agoRecover from errors when reading XML
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 09:20:51 +0000 (06:20 -0300)]
Recover from errors when reading XML

15 years agoUnused old Atom type variable in main
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 08:56:55 +0000 (05:56 -0300)]
Unused old Atom type variable in main

15 years agoFixes build with missing comma
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 08:47:13 +0000 (05:47 -0300)]
Fixes build with missing comma

15 years agoFinished chaging some Atom into AtomEntry types
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 08:44:51 +0000 (05:44 -0300)]
Finished chaging some Atom into AtomEntry types

15 years agoRegistered implementation of enumerate_entries for GIO backend
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 06:26:14 +0000 (03:26 -0300)]
Registered implementation of enumerate_entries for GIO backend

15 years agoImplement enumeration of entries for GIO backend
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 06:09:18 +0000 (03:09 -0300)]
Implement enumeration of entries for GIO backend

15 years agoDoes not unref a GFile when creating an Atom, do it in the caller
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 06:01:36 +0000 (03:01 -0300)]
Does not unref a GFile when creating an Atom, do it in the caller

15 years agoGiven a GFile, return an Atom, so we can use it for enumeration
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 03:37:31 +0000 (00:37 -0300)]
Given a GFile, return an Atom, so we can use it for enumeration

When enumerating/summarizing many entries into one feed, we may need to
read each entry. Making it easier to do this with a function and using
it for retrieving the resource itself.

15 years agoAdded backend interface to enumerate entries
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 06:24:46 +0000 (03:24 -0300)]
Added backend interface to enumerate entries

15 years agoChanged from Atom to AtomEntry and atom_ to atom_entry_
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 08:03:50 +0000 (05:03 -0300)]
Changed from Atom to AtomEntry and atom_ to atom_entry_

15 years agoMerge branch 'master' into entry
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 07:59:01 +0000 (04:59 -0300)]
Merge branch 'master' into entry

Conflicts:

Makefile.am
atom/Makefile.am
atom/entry.c
configure.ac

Get atom entry implementation from libatom. Some changes needed in
headers and usage of it.

15 years agoMoving atom entry implementation to merge it with atompub
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 07:54:31 +0000 (04:54 -0300)]
Moving atom entry implementation to merge it with atompub

15 years agoAtomEntry is now an opaque structure and may be read from a file
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 07:45:06 +0000 (04:45 -0300)]
AtomEntry is now an opaque structure and may be read from a file

15 years agoDescription of requirements for IRIs
Thadeu Lima de Souza Cascardo [Fri, 8 Aug 2008 01:29:46 +0000 (22:29 -0300)]
Description of requirements for IRIs

15 years agoSome comments about what need to be done for text constructs
Thadeu Lima de Souza Cascardo [Thu, 7 Aug 2008 23:32:05 +0000 (20:32 -0300)]
Some comments about what need to be done for text constructs

15 years agoInterface to retrieve data in a buffer and its size
Thadeu Lima de Souza Cascardo [Thu, 7 Aug 2008 22:18:06 +0000 (19:18 -0300)]
Interface to retrieve data in a buffer and its size

15 years agoAdded function to create an atom entry with a namespace prefix
Thadeu Lima de Souza Cascardo [Thu, 7 Aug 2008 22:09:14 +0000 (19:09 -0300)]
Added function to create an atom entry with a namespace prefix

15 years agoAtom namespace is now a macro
Thadeu Lima de Souza Cascardo [Thu, 7 Aug 2008 22:07:21 +0000 (19:07 -0300)]
Atom namespace is now a macro

15 years agoFirst commit of an atom format library
Thadeu Lima de Souza Cascardo [Thu, 7 Aug 2008 21:56:54 +0000 (18:56 -0300)]
First commit of an atom format library

Autoconf and automake support, with license file. The interface is just
to create and delete an entry. It is not even published in a header. The
implementation uses libxml2. However, the interface should not expose
this and allow the implementation to change.

15 years agoNew error interface: migrated core, backends and frontends to it
Thadeu Lima de Souza Cascardo [Sun, 3 Aug 2008 21:15:54 +0000 (18:15 -0300)]
New error interface: migrated core, backends and frontends to it

15 years agoFixed leak in Atom entry
Thadeu Lima de Souza Cascardo [Sat, 2 Aug 2008 14:31:27 +0000 (11:31 -0300)]
Fixed leak in Atom entry

15 years agoDoes not leak memory with ctx and backend
Thadeu Lima de Souza Cascardo [Sat, 2 Aug 2008 14:21:37 +0000 (11:21 -0300)]
Does not leak memory with ctx and backend

15 years agoUse new backend interface in main program
Thadeu Lima de Souza Cascardo [Sat, 2 Aug 2008 02:27:19 +0000 (23:27 -0300)]
Use new backend interface in main program

15 years agoFunctions to create new backend and usage of it in existing backends
Thadeu Lima de Souza Cascardo [Sat, 2 Aug 2008 02:23:25 +0000 (23:23 -0300)]
Functions to create new backend and usage of it in existing backends

15 years agoAdded a backend per context
Thadeu Lima de Souza Cascardo [Sat, 2 Aug 2008 02:22:33 +0000 (23:22 -0300)]
Added a backend per context