summaryrefslogtreecommitdiff
path: root/json-glib/json-serializable.c
diff options
context:
space:
mode:
authorNiels De Graef <niels.degraef@barco.com>2020-01-07 11:58:06 +0100
committerNiels De Graef <niels.degraef@barco.com>2020-01-07 11:58:06 +0100
commit725cfc3410b66bd749183b6e9e9b6a8bb0c63d0f (patch)
tree1b739c45ba5eaa5878852cf2e0f14cc70c87c4a7 /json-glib/json-serializable.c
parent4188c7574d25e4be2d30789b1465708813dbe6fb (diff)
downloadjson-glib-725cfc3410b66bd749183b6e9e9b6a8bb0c63d0f.tar.gz
serializable: Add (nullable) annotation
`json_serializable_serialize_property()` can return NULL, so make that clear in the documentation (and to GIR).
Diffstat (limited to 'json-glib/json-serializable.c')
-rw-r--r--json-glib/json-serializable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/json-glib/json-serializable.c b/json-glib/json-serializable.c
index d7a76d6..eb7556d 100644
--- a/json-glib/json-serializable.c
+++ b/json-glib/json-serializable.c
@@ -199,8 +199,8 @@ G_DEFINE_INTERFACE (JsonSerializable, json_serializable, G_TYPE_OBJECT);
* pspec);
* ]|
*
- * Return value: (transfer full): a #JsonNode containing the serialized
- * property
+ * Return value: (transfer full) (nullable): a #JsonNode containing the
+ * serialized property, or %NULL if it should be omitted.
*
* Since: 0.10
*/