aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-handler.c
diff options
context:
space:
mode:
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>2009-09-03 01:29:32 +0800
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>2010-02-25 00:29:17 +0800
commiteb8a6e36a56cbc3342368baf8190e0ef17e9a8f7 (patch)
treec0b21c8180d2751e5393aa91adb6091163636b32 /libempathy/empathy-handler.c
parent871cd053641dfb087db16e120c53c338cc442d4a (diff)
downloadgsoc2013-empathy-eb8a6e36a56cbc3342368baf8190e0ef17e9a8f7.tar
gsoc2013-empathy-eb8a6e36a56cbc3342368baf8190e0ef17e9a8f7.tar.gz
gsoc2013-empathy-eb8a6e36a56cbc3342368baf8190e0ef17e9a8f7.tar.bz2
gsoc2013-empathy-eb8a6e36a56cbc3342368baf8190e0ef17e9a8f7.tar.lz
gsoc2013-empathy-eb8a6e36a56cbc3342368baf8190e0ef17e9a8f7.tar.xz
gsoc2013-empathy-eb8a6e36a56cbc3342368baf8190e0ef17e9a8f7.tar.zst
gsoc2013-empathy-eb8a6e36a56cbc3342368baf8190e0ef17e9a8f7.zip
Add a convenience function to get the busname of a handler
Diffstat (limited to 'libempathy/empathy-handler.c')
-rw-r--r--libempathy/empathy-handler.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/libempathy/empathy-handler.c b/libempathy/empathy-handler.c
index c11227f68..8cfa41942 100644
--- a/libempathy/empathy-handler.c
+++ b/libempathy/empathy-handler.c
@@ -102,7 +102,7 @@ handler_constructor (GType type,
dbus = tp_dbus_daemon_dup (NULL);
- DEBUG ("Registering at '%s'", object_path);
+ DEBUG ("Registering at %s, %s", priv->busname, object_path);
g_assert (tp_dbus_daemon_request_name (dbus,
priv->busname, TRUE, NULL));
dbus_g_connection_register_g_object (tp_get_bus (),
@@ -374,6 +374,14 @@ error:
g_error_free (error);
}
+const gchar *
+empathy_handler_get_busname (EmpathyHandler *handler)
+{
+ EmpathyHandlerPriv *priv = GET_PRIV (handler);
+
+ return priv->busname;
+}
+
static void
empathy_handler_client_handler_iface_init (gpointer g_iface,
gpointer g_iface_data)