summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.com>2014-03-29 14:20:37 -0400
committerXavier Claessens <xavier.claessens@collabora.com>2014-03-29 16:00:38 -0400
commita9116957ae25f3f8e165b6e2897c63329414ca9f (patch)
treec812b8ec42a57e7c7f61aa9e8d4ed5e7305d7578
parentbdb6dd9ff6aaae5690b29916c8f497a920014d1c (diff)
downloadtelepathy-glib-a9116957ae25f3f8e165b6e2897c63329414ca9f.tar.gz
TpClientFactory: Add getter for its GDBusConnection
-rw-r--r--docs/reference/telepathy-glib/telepathy-glib-sections.txt1
-rw-r--r--telepathy-glib/client-factory.c19
-rw-r--r--telepathy-glib/client-factory.h1
3 files changed, 21 insertions, 0 deletions
diff --git a/docs/reference/telepathy-glib/telepathy-glib-sections.txt b/docs/reference/telepathy-glib/telepathy-glib-sections.txt
index 8ba81eafb..675cc4d98 100644
--- a/docs/reference/telepathy-glib/telepathy-glib-sections.txt
+++ b/docs/reference/telepathy-glib/telepathy-glib-sections.txt
@@ -5732,6 +5732,7 @@ tp_client_factory_dup
tp_client_factory_set_default
tp_client_factory_can_set_default
tp_client_factory_get_dbus_daemon
+tp_client_factory_get_dbus_connection
<SUBSECTION>
tp_client_factory_ensure_account
tp_client_factory_dup_account_features
diff --git a/telepathy-glib/client-factory.c b/telepathy-glib/client-factory.c
index 7dfb58c6a..2a86a90e7 100644
--- a/telepathy-glib/client-factory.c
+++ b/telepathy-glib/client-factory.c
@@ -605,6 +605,25 @@ tp_client_factory_get_dbus_daemon (TpClientFactory *self)
}
/**
+ * tp_client_factory_get_dbus_connection:
+ * @self: a #TpClientFactory object
+ *
+ * <!-- -->
+ *
+ * Returns: (transfer none): the #TpClientFactory:dbus-daemon's
+ * #GDBusConnection.
+ *
+ * Since: 0.UNRELEASED
+ */
+GDBusConnection *
+tp_client_factory_get_dbus_connection (TpClientFactory *self)
+{
+ g_return_val_if_fail (TP_IS_CLIENT_FACTORY (self), NULL);
+
+ return tp_proxy_get_dbus_connection (self->priv->dbus);
+}
+
+/**
* tp_client_factory_ensure_account:
* @self: a #TpClientFactory object
* @object_path: the object path of an account
diff --git a/telepathy-glib/client-factory.h b/telepathy-glib/client-factory.h
index 38bccb5df..ed409ecce 100644
--- a/telepathy-glib/client-factory.h
+++ b/telepathy-glib/client-factory.h
@@ -129,6 +129,7 @@ void tp_client_factory_set_default (TpClientFactory *self);
gboolean tp_client_factory_can_set_default (void);
TpDBusDaemon *tp_client_factory_get_dbus_daemon (TpClientFactory *self);
+GDBusConnection *tp_client_factory_get_dbus_connection (TpClientFactory *self);
/* TpAccount */
TpAccount *tp_client_factory_ensure_account (TpClientFactory *self,