diff options
author | Emmanuele Bassi <ebassi@linux.intel.com> | 2011-06-01 17:10:17 +0100 |
---|---|---|
committer | Emmanuele Bassi <ebassi@linux.intel.com> | 2011-06-01 17:10:17 +0100 |
commit | c3b367ca8bac245712f8390acab1b38a314972a9 (patch) | |
tree | 69923ae2cd0a4a359e12e2416a6d7bf032936336 /json-glib/json-serializable.c | |
parent | aee5a7fbb70e5cb714bcfef79a96c000f62e80db (diff) | |
download | json-glib-c3b367ca8bac245712f8390acab1b38a314972a9.tar.gz |
serializable: Fix introspection annotations
Diffstat (limited to 'json-glib/json-serializable.c')
-rw-r--r-- | json-glib/json-serializable.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/json-glib/json-serializable.c b/json-glib/json-serializable.c index cd8ec1e..c90a687 100644 --- a/json-glib/json-serializable.c +++ b/json-glib/json-serializable.c @@ -264,6 +264,18 @@ json_serializable_default_deserialize_property (JsonSerializable *serializable, property_node); } +/** + * json_serializable_find_property: + * @serializable: a #JsonSerializable + * @name: the name of the property + * + * FIXME + * + * Return value: (transfer none): the #GParamSpec for the property + * or %NULL if no property was found + * + * Since: 0.14 + */ GParamSpec * json_serializable_find_property (JsonSerializable *serializable, const char *name) @@ -274,6 +286,19 @@ json_serializable_find_property (JsonSerializable *serializable, return JSON_SERIALIZABLE_GET_IFACE (serializable)->find_property (serializable, name); } +/** + * json_serializable_list_properties: + * @serializable: a #JsonSerializable + * @n_pspecs: (out): return location for the length of the array + * of #GParamSpec returned by the function + * + * FIXME + * + * Return value: (array length=n_pspecs) (transfer container): an array + * of #GParamSpec. Use g_free() to free the array when done. + * + * Since: 0.14 + */ GParamSpec ** json_serializable_list_properties (JsonSerializable *serializable, guint *n_pspecs) |