summaryrefslogtreecommitdiff
path: root/json-glib/json-gvariant.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'fix-deserialize-data-memory-leak' into 'master'Emmanuele Bassi2022-10-111-1/+4
|\ | | | | | | | | fix deserialize data memory leak See merge request GNOME/json-glib!51
| * fix deserialize data memory leakGeoffrey Van Landeghem2022-10-111-1/+4
| |
* | Drop or mark unused parametersEmmanuele Bassi2022-10-111-6/+9
| | | | | | | | Avoid compiler warnings when running with `-Wunused-parameter`.
* | Fix sign comparison warningsEmmanuele Bassi2022-10-111-2/+2
|/ | | | | When running with `-Wsign-compare` we're raising a lot of signed/unsigned comparison warnings.
* Update the JSON/GVariant API documentationEmmanuele Bassi2021-06-101-3/+3
|
* docs: Initial, rough port away from gtk-docEmmanuele Bassi2021-06-081-71/+38
| | | | | | | | | | Drop `SECTION` blurbs. Use gi-docgen syntax for internal links. Use summary lines for gi-docgen indices. Use Markdown syntax for code fragments.
* json-gvariant: Fix poorly written patch in 212f925Robert Ancell2020-04-071-6/+9
| | | | | | | | Don't double do the integer conversion. Catch errors in double conversion. Do correct unsiged conversion. Friends don't let friends do end-of-day last minute MRs.
* json-gvariant: Stop string to GVariant conversion failing due to unrelated ↵Robert Ancell2020-04-061-7/+26
| | | | | | | | | | errno changes This was observed as failing due to some codepath inside g_variant_new_string setting errno to EAGAIN. Json Glib was erroneously detecting this in the checks designed to catch string to integer conversions. Solved by making errno only checked after the integer conversions.
* core: Avoid json_object_get_members()Garrett Regier2017-06-161-13/+7
| | | | | | | Use JsonObject's private members_ordered GQueue instead. This avoids a g_list_copy(). https://bugzilla.gnome.org/show_bug.cgi?id=773504
* Use Unicode in translatable stringsPiotr Drąg2017-03-181-3/+3
| | | | | | See https://developer.gnome.org/hig/stable/typography.html https://bugzilla.gnome.org/show_bug.cgi?id=772753
* Quell a compiler warningEmmanuele Bassi2017-03-131-1/+1
| | | | Original patch by: Thibault Saunier <tsaunier@gnome.org>
* Fix translator commentsPiotr Drąg2017-01-281-1/+1
| | | | They need to be exactly one line above a string to show up in .po files.
* node: Add json_node_ref() and json_node_unref()Philip Withnall2016-03-011-1/+1
| | | | | | | | | | | | | | Add reference counting semantics to JsonNode, in addition to the existing init/unset and alloc/free semantics. json_node_free() must only be used with nodes allocated using json_node_alloc(). json_node_unref() may be used with all nodes (if correctly paired; it may be paired with json_node_alloc()). It is not valid to call json_node_free() on a node whose reference count is not 1. https://bugzilla.gnome.org/show_bug.cgi?id=756121
* json-gvariant: Parse json doubles that are whole numbersStef Walter2015-01-261-1/+5
| | | | | | | | | The json gvariant serializer encodes whole number doubles without a dot. The deserializer needs to be able to parse these as well. Fix problem, and add test cases. https://bugzilla.gnome.org/show_bug.cgi?id=724319
* Remove conditional inclusion of config.hEmmanuele Bassi2014-03-181-2/+0
| | | | All the platforms and build system we support have a config.h header.
* docs: Port to MarkDownEmmanuele Bassi2014-03-181-42/+22
| | | | | Drop the DocBook documentation, and move everything to the MarkDown format used by modern gtk-doc.
* Make json-gvariant.h conform to the other headersEmmanuele Bassi2013-12-041-0/+5
| | | | | Only include the necessary headers, and use a single-header inclusion guard to prevent people from including only json-gvariant.h.
* Make JSON to GVariant conversion handle some string to number conversions.Joseph Artsimovich2013-12-021-0/+24
| | | | | | | | | Consider the following JSON: ["123"] Trying to convert it to GVariant with signature "(i)" would previously fail, as string-to-number conversions weren't implemented. This patch implements string-to-number and string-to-boolean conversions. https://bugzilla.gnome.org/show_bug.cgi?id=707382
* variant: Fix documentation and annotations for deserialize()Emmanuele Bassi2013-03-131-4/+11
| | | | | The returned GVariant when deserializing from JSON has a floating reference that needs to be sunk.
* Fix GVariant creation on some architectures (bug #650483)Laurent Bigonville2011-07-061-6/+40
| | | | Fix casting issue in Gvariant creation on some architectures.
* Mark GError messages for translationsEmmanuele Bassi2011-06-011-22/+18
| | | | These errors might find their way into a UI.
* Add i18n machineryEmmanuele Bassi2011-06-011-0/+6
| | | | We need to translate the GError messages.
* gvariant: Fix introspection annotationAlexandre Mazari2011-05-281-2/+2
| | | | | | | The 'signature' arguments of the json_gvariant_deserialize functions are optional. Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
* gvariant: Pass NULL down the chain for *signatureRob Taylor2011-03-231-1/+1
| | | | | | | | Some small internal change from passing the signature to a pointer to the signature down the call chain caused all the checks for signature==NULL to fail. Signed-off-by: Emmanuele Bassi <ebassi@linux.intel.com>
* Coding style fixes and compiler warnings removalEmmanuele Bassi2011-01-261-31/+36
| | | | | | | | | G_VARIANT_CLASS_DICTIONARY is a define; GCC complais loudly when trying to use a switch() on an enumeration type with case values not from the enumeration. Plus: coding style in JSON-GLib is mostly the same as GTK+ and Clutter, so we should adhere to it.
* gvariant: Adds JSON GVariant integration API, with docs and testsEduardo Lima Mitev2011-01-261-0/+1296
https://bugzilla.gnome.org/show_bug.cgi?id=632940