[json-glib] serializable: Fix introspection annotations
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [json-glib] serializable: Fix introspection annotations
- Date: Wed, 1 Jun 2011 16:10:49 +0000 (UTC)
commit c3b367ca8bac245712f8390acab1b38a314972a9
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Wed Jun 1 17:10:17 2011 +0100
serializable: Fix introspection annotations
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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]