[next] telepathy-glib: TpClientFactory: Add getter for its GDBusConnection

Simon McVittie smcv at kemper.freedesktop.org
Thu Apr 3 07:25:27 PDT 2014


Module: telepathy-glib
Branch: next
Commit: a9116957ae25f3f8e165b6e2897c63329414ca9f
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=a9116957ae25f3f8e165b6e2897c63329414ca9f

Author: Xavier Claessens <xavier.claessens at collabora.com>
Date:   Sat Mar 29 14:20:37 2014 -0400

TpClientFactory: Add getter for its GDBusConnection

---

 .../telepathy-glib/telepathy-glib-sections.txt      |    1 +
 telepathy-glib/client-factory.c                     |   19 +++++++++++++++++++
 telepathy-glib/client-factory.h                     |    1 +
 3 files changed, 21 insertions(+)

diff --git a/docs/reference/telepathy-glib/telepathy-glib-sections.txt b/docs/reference/telepathy-glib/telepathy-glib-sections.txt
index 8ba81ea..675cc4d 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 7dfb58c..2a86a90 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 38bccb5..ed409ec 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,



More information about the telepathy-commits mailing list