Thadeu Lima de Souza Cascardo [Thu, 27 Nov 2008 03:30:15 +0000 (01:30 -0200)]
Fix some building and linking problems with the soup backend
The soup backend was not being linked to the atom library and it used
the wrong names for some error functions.
Thadeu Lima de Souza Cascardo [Mon, 27 Oct 2008 02:43:49 +0000 (00:43 -0200)]
Add initial support for libsoup backend
Thadeu Lima de Souza Cascardo [Sun, 26 Oct 2008 21:18:34 +0000 (19:18 -0200)]
Add Slug header support to CGI frontend
Thadeu Lima de Souza Cascardo [Sun, 26 Oct 2008 20:50:50 +0000 (18:50 -0200)]
Implement publish handler in CGI frontend
Thadeu Lima de Souza Cascardo [Sat, 11 Oct 2008 22:39:50 +0000 (19:39 -0300)]
Get Base URL from HTTP Headers
Thadeu Lima de Souza Cascardo [Sun, 26 Oct 2008 17:46:55 +0000 (15:46 -0200)]
Implement publish_entry function in GIO backend
Thadeu Lima de Souza Cascardo [Sun, 26 Oct 2008 17:07:37 +0000 (15:07 -0200)]
Handle POST requests in the core
Thadeu Lima de Souza Cascardo [Sun, 26 Oct 2008 15:51:04 +0000 (13:51 -0200)]
Added publish handler to frontend
Thadeu Lima de Souza Cascardo [Sun, 26 Oct 2008 15:47:14 +0000 (13:47 -0200)]
Initialize all frontend functions when creating a new frontend
Thadeu Lima de Souza Cascardo [Fri, 24 Oct 2008 23:49:59 +0000 (21:49 -0200)]
Implement backend interface to publish entries
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 04:40:51 +0000 (01:40 -0300)]
Implemented POST request in CGI frontend
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 04:28:06 +0000 (01:28 -0300)]
Added content data to request
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 03:42:04 +0000 (00:42 -0300)]
Fix building including request header into frontend header
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 03:17:08 +0000 (00:17 -0300)]
Implement new frontend functions for CGI 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.
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
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 02:48:24 +0000 (23:48 -0300)]
Added get_request function to the frontend
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.
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 03:33:59 +0000 (00:33 -0300)]
Fixed memory leak when setting error message
Thadeu Lima de Souza Cascardo [Mon, 13 Oct 2008 02:29:06 +0000 (23:29 -0300)]
Removed parameter name from header
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.
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
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
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.
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
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.
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
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 20:16:04 +0000 (17:16 -0300)]
Set up mappings when enumerating entries
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 20:14:18 +0000 (17:14 -0300)]
Register CGI frontend in main context
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 20:12:58 +0000 (17:12 -0300)]
Added CGI frontend structure implementation
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 20:11:39 +0000 (17:11 -0300)]
Added frontend requests mapping
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 20:07:19 +0000 (17:07 -0300)]
Create frontend structure with map_entries function
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 20:06:24 +0000 (17:06 -0300)]
Initialize is_feed function for backends to NULL
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 18:10:36 +0000 (15:10 -0300)]
Moved core implementation to the library
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 16:33:57 +0000 (13:33 -0300)]
Update entry xml node before using it
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 16:06:56 +0000 (13:06 -0300)]
Fixed setting an entry title
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
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
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.
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.
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 01:48:06 +0000 (22:48 -0300)]
Fixed memory leak when enumerating entries
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 01:43:42 +0000 (22:43 -0300)]
Added map from atom:IDs to backend requests
Thadeu Lima de Souza Cascardo [Sun, 12 Oct 2008 01:32:26 +0000 (22:32 -0300)]
Use local variables when calling backend enumerate function
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.
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
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
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
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
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
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 05:17:44 +0000 (02:17 -0300)]
Return after returning an error
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
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
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
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
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
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 04:20:58 +0000 (01:20 -0300)]
Fix typo for AtomCtx type
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 04:18:55 +0000 (01:18 -0300)]
Include AtomID header into main Atom header
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
Thadeu Lima de Souza Cascardo [Sun, 31 Aug 2008 02:09:13 +0000 (23:09 -0300)]
Build iri directory before other directories
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
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
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
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
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
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 22:56:39 +0000 (19:56 -0300)]
CGI frontend uses AtomResource instead of AtomEntry
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
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
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 22:26:27 +0000 (19:26 -0300)]
Renamed retrieve_resource to retrieve_entry
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 22:18:03 +0000 (19:18 -0300)]
Create feed using entries from backend
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 22:11:27 +0000 (19:11 -0300)]
Get string from AtomFeed
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 22:06:44 +0000 (19:06 -0300)]
Atom namespace is in a common header now
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 22:00:15 +0000 (19:00 -0300)]
Generate feed with many entries
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 21:52:33 +0000 (18:52 -0300)]
Distribute XML headers
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 21:51:35 +0000 (18:51 -0300)]
Create a xml node from an AtomEntry
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 21:41:38 +0000 (18:41 -0300)]
Modify interface to get string from entry
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 20:28:16 +0000 (17:28 -0300)]
libxml2 may return document with null root node
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
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 20:18:49 +0000 (17:18 -0300)]
AtomEntry requires AtomPerson
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
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 20:14:48 +0000 (17:14 -0300)]
Reading AtomPerson from a XML node
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 20:08:25 +0000 (17:08 -0300)]
URI property is of IRI type, not string
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 18:51:51 +0000 (15:51 -0300)]
Create a XML node from an AtomPerson
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 18:50:22 +0000 (15:50 -0300)]
Copy IRI when setting AtomPerson uri
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.
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
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 18:08:44 +0000 (15:08 -0300)]
Added AtomPerson structure
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 17:57:15 +0000 (14:57 -0300)]
Distribute headers in pkgincludedir instead of includedir
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 09:26:15 +0000 (06:26 -0300)]
Copies error message from GError
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 09:20:51 +0000 (06:20 -0300)]
Recover from errors when reading XML
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 08:56:55 +0000 (05:56 -0300)]
Unused old Atom type variable in main
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 08:47:13 +0000 (05:47 -0300)]
Fixes build with missing comma
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 08:44:51 +0000 (05:44 -0300)]
Finished chaging some Atom into AtomEntry types
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 06:26:14 +0000 (03:26 -0300)]
Registered implementation of enumerate_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
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
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.
Thadeu Lima de Souza Cascardo [Sat, 9 Aug 2008 06:24:46 +0000 (03:24 -0300)]
Added backend interface to enumerate entries
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_
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.
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