| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=777980
|
|
|
|
|
| |
‘*/’ is more standard, so this is basically a housekeeping improvement
in coding style.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Close the entry element on error, otherwise the JsonParser stays in its
error state.
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
This allows code which was previously in GDataParsable subclasses' *_new()
functions to be moved into their constructor() functions, making them more
suitable for bindings.
|
| |
|
| |
|
|
|
|
|
| |
Make the results of gdata_parsable_get_xml() valid XML documents in
themselves.
|
|
|
|
|
| |
Make indentation and whitespacing consistent throughout the entire project.
I am so sad.
|
|
|
|
|
| |
Tidy up the public API preconditions and ensure they're present for all
public (and most semi-public) functions.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
| |
Fix a few memory leaks, including a fairly large one which would leak the
entire XML parse tree for each GDataParsable.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Improve the test coverage for those three classes, which necessitates
allowing GDataFeeds to be parsed from XML.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
Added support for Google Documents, from work done by Thibault Saunier
<saunierthibault@gmail.com>. Closes bgo#587073 and bgo#588282.
|
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
Fix licencing headers to consistently be LGPLv2.1+.
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
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.
|