summaryrefslogtreecommitdiff
path: root/gdata/gdata-parsable.c
Commit message (Collapse)AuthorAgeFilesLines
* drop usage of deprecated gobject functionsDaniel Kolesa2021-06-031-4/+2
|
* Release version 0.17.70.17.7Philip Withnall2017-03-051-1/+1
|
* core: Add a public wrapper for GDataParsable:get_content_typeDebarshi Ray2017-01-311-0/+23
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=777980
* docs: Replace ‘**/’ gtk-doc comment endings with ‘*/’Philip Withnall2017-01-241-4/+4
| | | | | ‘*/’ is more standard, so this is basically a housekeeping improvement in coding style.
* core: Correctly track JSON reader state when cloning nodesPhilip Withnall2015-04-141-5/+8
| | | | | | It is not safe to call json_reader_get_member_name() after recursing the parser state, so we have to copy the list of member names before iterating.
* core: Fix JSON parser state on hitting an errorPhilip Withnall2015-04-141-0/+1
| | | | | Close the entry element on error, otherwise the JsonParser stays in its error state.
* core: Mark all API as stable and impose API and ABI stability guaranteesPhilip Withnall2014-11-031-1/+1
| | | | | | | | It’s time for libgdata to grow up and start guaranteeing some stability for its users. In this vein, it’s already been API stable for around 3 years (since 0.9.1) — it’s about time that was made explicit. http://upstream-tracker.org/versions/libgdata.html is quite interesting.
* Release version 0.15.0LIBGDATA_0_15_0Philip Withnall2013-12-191-3/+3
|
* core: Add get_content_type virtual function to GDataParsablePeteris Krisjanis2013-09-281-0/+7
| | | | | | | | | | | | | | | Adding get_content_type virtual function to GDataParsable to allow insert/update/delete_entry functions in GDataService to distinguish between JSON and XML based GDataParsables. GDataParsable subclass who uses JSON format data define their virtual function and return const gchar* string application/json. Otherwise GDataParsable own defined virtual function will return application/atom+xml. For insert/update_entry it allows to choose between two different calls to build xml or json message, and also in return parse returned data from online service correctly. For delete_entry it allows to choose different link from links list, as for json it is stored in different place. Helps: https://bugzilla.gnome.org/show_bug.cgi?id=657539
* core: Add support for JSON to GDataParsable, GDataEntry and GDataFeedPeteris Krisjanis2013-08-291-0/+292
| | | | | | | | | | | | | | | This also includes initial code for detection of the Content-Type of received messages, and parsing JSON or XML depending on that. This breaks ABI (but not API), and adds a dependency on json-glib ≥ 0.15. Complete unit tests are included. Further work is expected for integrating JSON support into GDataService, ready for use with the Tasks service. This work is originally by Pēteris Krišjānis <pecisk@gmail.com>, with additions by Philip Withnall <philip@tecnocode.co.uk>. Helps: https://bugzilla.gnome.org/show_bug.cgi?id=657539
* core: Make ‘Unhandled XML’ messages be debug-only messagesPhilip Withnall2012-12-251-1/+1
| | | | | | | | | | | | This stops them filling up people’s .xsession-errors files unnecessarily. There is little point to having them as normal GLib messages, since it didn’t encourage many people to file bugs about unhandled XML and missing features. If anybody still needs this output, just enable debug output using G_MESSAGES_DEBUG=all LIBGDATA_DEBUG=3. Closes: https://bugzilla.gnome.org/show_bug.cgi?id=690656
* [core] Add a GDataParsable:constructed-from-xml propertyPhilip Withnall2010-08-111-1/+77
| | | | | | This allows code which was previously in GDataParsable subclasses' *_new() functions to be moved into their constructor() functions, making them more suitable for bindings.
* [core] Fix a memory leak in an unlikely error conditionPhilip Withnall2010-08-111-1/+3
|
* [core] Fix a return typePhilip Withnall2010-07-081-1/+1
|
* [core] Include an XML declaration in the result of gdata_parsable_get_xml()Philip Withnall2010-04-121-1/+2
| | | | | Make the results of gdata_parsable_get_xml() valid XML documents in themselves.
* [core] Whitespace fixesPhilip Withnall2010-04-121-11/+12
| | | | | Make indentation and whitespacing consistent throughout the entire project. I am so sad.
* [core] Tidy up preconditionsPhilip Withnall2010-04-101-0/+11
| | | | | Tidy up the public API preconditions and ensure they're present for all public (and most semi-public) functions.
* [core] Removed unnecessary *_GET_PRIVATE macros everywherePhilip Withnall2010-03-251-2/+1
|
* [picasaweb] Add functions to get album and file IDsPhilip Withnall2010-03-251-1/+5
| | | | | | Add gdata_picasaweb_album_get_id() and gdata_picasaweb_file_get_id() to get the forms of ID which were previously (incorrectly) returned by gdata_entry_get_id() for the two classes.
* [docs] Added missing Since tagsPhilip Withnall2010-03-221-0/+8
|
* [core] Fix memory leaksPhilip Withnall2010-01-221-4/+9
| | | | | Fix a few memory leaks, including a fairly large one which would leak the entire XML parse tree for each GDataParsable.
* [core] Use GLib memory functions with libxml2Philip Withnall2010-01-221-1/+11
| | | | | | | | | | | | | | Set the libxml2 memory allocation functions to be the GLib ones, allowing us to free libxml2's memory with g_free(), meaning all return values from libxml2 functions no longer have to be marshalled into the GLib memory pool. This saves lots of string duplication. Some statistics: * g_strdup() calls before: 223; after: 170 * xmlFree() calls before: 296; after: 179 This only (apparently) gives a 2% decrease in memory usage according to tests/memory, but it's better than nothing.
* [core] Improve GDataEntry, GDataFeed and GDataAccessHandler test coveragePhilip Withnall2010-01-211-4/+4
| | | | | Improve the test coverage for those three classes, which necessitates allowing GDataFeeds to be parsed from XML.
* [documents] Test case fixesPhilip Withnall2009-08-061-2/+2
| | | | | | | Use the correct HTTP method when updating documents, check more strictly for missing XML responses, use the Google-provided URI for removing documents from folders, and don't try to parse a response to the same request which doesn't exist.
* [core] Added a method to escape text and append it to a GStringPhilip Withnall2009-08-031-1/+1
| | | | | | This reduces the number of small allocations required when building up an XML output tree by a large number. XML output checks in the test suites can act as a test case.
* Bug 587073 – Add Google Documents serviceThibault Saunier2009-07-171-3/+4
| | | | | Added support for Google Documents, from work done by Thibault Saunier <saunierthibault@gmail.com>. Closes bgo#587073 and bgo#588282.
* [core] Made the get_xml functions use a single GString throughoutPhilip Withnall2009-07-031-7/+5
| | | | | | | Previously, each call to _gdata_parsable_get_xml would create its own GString, then destroy it at the end. Now, the same GString is reused throughout a tree of calls to _gdata_parsable_get_xml, saving quite a few allocations/frees (in exchange for more reallocations).
* Bug 587277 – Some files are GPLv3 but license is LGPLv2.1?Philip Withnall2009-06-291-9/+9
| | | | Fix licencing headers to consistently be LGPLv2.1+.
* [atom] Added test cases for the Atom elements with classesPhilip Withnall2009-06-291-2/+7
| | | | | | Added test cases for all the Atom elements represented in gdata/atom. A few bugs in GDataParsable, GDataGenerator and GDataLink were fixed as a result. Most notably, gdata_link_get_uri will now always return a valid IRI.
* [core] Link element names and namespaces to the relevant classesPhilip Withnall2009-06-281-17/+76
| | | | | | | This introduces new element_name and element_namespaces fields to the GDataParsableClass struct, allowing for simpler parsing of XML by linking XML element names to parsable object types. Some of the GDataParsable API is now public, which will allow for a more comprehensive test suite in future.
* [core] Converted GData structs to GObjectsPhilip Withnall2009-06-141-12/+9
| | | | | | Converted all the GData structs to GObjects, and moved them to a "gd" directory. The documentation for the new objects is mostly complete, but no new test cases have been added. Helps: bgo#579170
* [core] Converted Atom structs to GObjectsPhilip Withnall2009-06-141-8/+74
| | | | | | | Converted all the Atom structs to GObjects, and moved them to an "atom" directory. This entailed moving get_xml and get_namespaces to GDataParsable, which simplifies things anyway. The documentation for the new Atom objects is mostly complete, but no new test cases have been added. Helps: bgo#579170
* Bug 584417 – Strings are not properly formed for localisationPhilip Withnall2009-06-031-0/+2
| | | | | | | Reworded a number of strings to make them (hopefully) easier to translate, and added translator comments to every string which takes parameters. Moved a few existing translator comments so gettext actually picks them up. Closes: bgo#584417
* [core] Abstract XML parsing from GDataFeed and GDataEntry into GDataParsablePhilip Withnall2009-05-171-0/+210
Adds a new abstract class, GDataParsable, which adds extensible XML parsing functionality to inheriting classes. A little documentation is included, but there is no real public API for the class.