summaryrefslogtreecommitdiff
path: root/telepathy-glib/dbus.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2009-08-17 12:48:57 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2009-08-17 16:09:09 +0100
commit645df3a45148d8520f4994e455851ff0d7beee82 (patch)
treef93f3693a349fcc19c465b913bc139cada2e6ad7 /telepathy-glib/dbus.c
parent9bf3c6147d8d97590c7963524f88891d51d5fcd1 (diff)
downloadtelepathy-glib-645df3a45148d8520f4994e455851ff0d7beee82.tar.gz
Add tp_dbus_daemon_get_unique_name (convenience API for dbus_bus_get_unique_name)
Diffstat (limited to 'telepathy-glib/dbus.c')
-rw-r--r--telepathy-glib/dbus.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/telepathy-glib/dbus.c b/telepathy-glib/dbus.c
index ce68fc79d..d833509b2 100644
--- a/telepathy-glib/dbus.c
+++ b/telepathy-glib/dbus.c
@@ -1456,6 +1456,23 @@ tp_dbus_daemon_release_name (TpDBusDaemon *self,
}
}
+/**
+ * tp_dbus_daemon_get_unique_name:
+ *
+ * <!-- Returns: is enough -->
+ *
+ * Returns: the unique name of this connection to the bus, which is valid for
+ * as long as this #TpDBusDaemon is
+ * Since: 0.7.UNRELEASED
+ */
+const gchar *
+tp_dbus_daemon_get_unique_name (TpDBusDaemon *self)
+{
+ g_return_val_if_fail (TP_IS_DBUS_DAEMON (self), NULL);
+
+ return dbus_bus_get_unique_name (self->priv->libdbus);
+}
+
static void
free_daemon_list (gpointer p)
{