summaryrefslogtreecommitdiff
path: root/json-glib/json-serializable.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'serializable-docs' into 'master'Emmanuele Bassi2022-10-181-0/+3
|\ | | | | | | | | Document behaviour for deserializing `construct-only` properties See merge request GNOME/json-glib!48
| * serializable: Improve wording of `construct-only` properties commentEmmanuele Bassi2022-10-121-1/+2
| |
| * serializable: Document behaviour for `construct-only` propertiesMatt Jakeman2022-02-061-0/+2
| |
* | Drop or mark unused parametersEmmanuele Bassi2022-10-111-4/+4
|/ | | | Avoid compiler warnings when running with `-Wunused-parameter`.
* Update the JsonSerializable documentationEmmanuele Bassi2021-06-101-62/+69
|
* docs: Initial, rough port away from gtk-docEmmanuele Bassi2021-06-081-25/+27
| | | | | | | | | | Drop `SECTION` blurbs. Use gi-docgen syntax for internal links. Use summary lines for gi-docgen indices. Use Markdown syntax for code fragments.
* serializable: Fix default deserialization method.Jeremy Philippe2020-01-131-0/+9
| | | | | | | | | json_serializable_default_deserialize_property() fails when called with an uninitialized value. This violates the API since value is marked as an out parameter. Fixes https://gitlab.gnome.org/GNOME/json-glib/issues/39
* serializable: Add (nullable) annotationNiels De Graef2020-01-071-2/+2
| | | | | `json_serializable_serialize_property()` can return NULL, so make that clear in the documentation (and to GIR).
* introspection: fix nullable annotation for return values in the following ↵Alberto Ruiz2017-03-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | methods json_builder_add_boolean_value json_builder_add_double_value json_builder_add_int_value json_builder_add_null_value json_builder_add_string_value json_builder_add_value json_builder_begin_array json_builder_begin_object json_builder_end_array json_builder_end_object json_builder_get_root json_builder_set_member_name json_generator_get_root json_reader_get_error json_reader_get_member_name json_reader_get_value json_serializable_find_property json_serializable_find_property json_boxed_serialize
* docs: Add missing annotationsEmmanuele Bassi2015-03-131-2/+26
|
* 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-4/+6
| | | | | Drop the DocBook documentation, and move everything to the MarkDown format used by modern gtk-doc.
* Avoid serializing default property values only afterTristan Van Berkom2011-07-091-0/+4
| | | | | | | | consulting the JsonSerializable. This patch gives the JsonSerializable class a chance to decide whether it's appropriate to serialize a property before JsonGObject checks for a default value and skips the property.
* serializable: Fix introspection annotationsEmmanuele Bassi2011-06-011-0/+25
|
* serializable: Allow introspecting propertiesEmmanuele Bassi2011-06-011-0/+81
| | | | | This allows a Serializable implementation to override the property list, and the setter and the getter function.
* Add missing introspection annotations.Luca Bruno2011-01-101-1/+1
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=638932
* Use G_DEFINE_INTERFACE()Emmanuele Bassi2010-10-191-28/+7
|
* debug: Add debug notes in the GObject codeEmmanuele Bassi2010-09-251-0/+3
|
* serializable: Add methods proxying default implementationsEmmanuele Bassi2009-11-121-0/+92
| | | | | | | | | | If you want to use the default implementation of serialize_property() and/or deserialize_property() from an object class implementing JsonSerializable you currently have to peek the interface vtable and then call the vfunc pointers. We can expose the default implementation through functions ourselves and simplify the required code.
* docs: Add long descriptionsEmmanuele Bassi2009-10-281-1/+4
| | | | | The json-boxed and json-serializable sections are missing the long description for the API reference.
* build: Split out GBoxed and SerializableEmmanuele Bassi2009-10-271-0/+154
The json-gobject.c is getting pretty crowded; we should split out the JsonBoxed API and the JsonSerialized implementation into their separate source files.