summaryrefslogtreecommitdiff
path: root/json-glib/json-gvariant.c
diff options
context:
space:
mode:
authorAlexandre Mazari <scaroo@gmail.com>2011-03-22 17:28:55 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2011-05-28 11:16:35 +0100
commite20a8b0faeb45d1ae2f1bd12d49d31d12e357b24 (patch)
treed84faabfc527b7d27f3b97d33683622b4a552ad1 /json-glib/json-gvariant.c
parent4e41d26586991d2977c846fa4871b6df39fe4106 (diff)
downloadjson-glib-e20a8b0faeb45d1ae2f1bd12d49d31d12e357b24.tar.gz
gvariant: Fix introspection annotation
The 'signature' arguments of the json_gvariant_deserialize functions are optional. Signed-off-by: Emmanuele Bassi <ebassi@gnome.org>
Diffstat (limited to 'json-glib/json-gvariant.c')
-rw-r--r--json-glib/json-gvariant.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/json-glib/json-gvariant.c b/json-glib/json-gvariant.c
index efb86c1..276b871 100644
--- a/json-glib/json-gvariant.c
+++ b/json-glib/json-gvariant.c
@@ -1211,7 +1211,7 @@ out:
/**
* json_gvariant_deserialize:
* @json_node: A #JsonNode to convert
- * @signature: A valid #GVariant type string, or %NULL
+ * @signature: (allow-none): A valid #GVariant type string, or %NULL
* @error: A pointer to a #GError
*
* Converts a JSON data structure to a GVariant value using @signature to
@@ -1253,7 +1253,7 @@ json_gvariant_deserialize (JsonNode *json_node,
* json_gvariant_deserialize_data:
* @json: A JSON data string
* @length: The length of @json, or -1 if %NULL-terminated
- * @signature: A valid #GVariant type string, or %NULL
+ * @signature: (allow-none): A valid #GVariant type string, or %NULL
* @error: A pointer to a #GError
*
* Converts a JSON string to a #GVariant value. This method works exactly