summaryrefslogtreecommitdiff
path: root/telepathy-glib/dbus-properties-mixin.c
diff options
context:
space:
mode:
authorWill Thompson <will.thompson@collabora.co.uk>2008-09-11 16:22:23 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2008-09-15 18:18:40 +0100
commit87e2c3440afa9775f0b41b430c8a7cf702f3f6ae (patch)
treefc2c3e9c692465bb2fd82c9f9d772addb9f9d6a7 /telepathy-glib/dbus-properties-mixin.c
parenta4a478436d940ce519e4e305e91763f7ce9add81 (diff)
downloadtelepathy-glib-87e2c3440afa9775f0b41b430c8a7cf702f3f6ae.tar.gz
Document tp_dbus_properties_mixin_make_properties_hash
Diffstat (limited to 'telepathy-glib/dbus-properties-mixin.c')
-rw-r--r--telepathy-glib/dbus-properties-mixin.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/telepathy-glib/dbus-properties-mixin.c b/telepathy-glib/dbus-properties-mixin.c
index 173126099..07c6e7960 100644
--- a/telepathy-glib/dbus-properties-mixin.c
+++ b/telepathy-glib/dbus-properties-mixin.c
@@ -753,6 +753,24 @@ tp_dbus_properties_mixin_get (GObject *self,
}
+/**
+ * tp_dbus_properties_mixin_make_properties_hash:
+ * @object: an object which uses the D-Bus properties mixin
+ * @first_interface: the interface of the first property to be retrieved
+ * @first_property: the name of the first property to be retrieved
+ * @...: more (interface name, property name) pairs, terminated by %NULL.
+ *
+ * Retrieves the values of several D-Bus properties from an object, and builds
+ * a hash mapping the fully-qualified name of the property to its value. This
+ * is equivalent to calling tp_dbus_properties_mixin_get() for each property
+ * and building the table yourself, with the proviso that this function will
+ * g_assert() if retrieving a property fails (for instance, because it does not
+ * exist).
+ *
+ * Returns: a hash table mapping (gchar *) fully-qualified property names to
+ * GValues, which must be freed by the caller (at which point its
+ * contents will also be freed).
+ */
GHashTable *
tp_dbus_properties_mixin_make_properties_hash (
GObject *object,