]> git.0d.be Git - empathy.git/commitdiff
Add a convenience function to get the busname of a handler
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 2 Sep 2009 17:29:32 +0000 (18:29 +0100)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Wed, 24 Feb 2010 16:29:17 +0000 (16:29 +0000)
libempathy/empathy-handler.c
libempathy/empathy-handler.h

index c11227f686e8228eee4ab1fd8348e6f3e5d30918..8cfa419425394431d1dad45f6a9b535642d7d7e3 100644 (file)
@@ -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)
index 684ec0cc93ec41aa09349871baf41bc3b7a6322e..f6b894ba02674fe14c890592f0a9a921476c9b11 100644 (file)
@@ -62,6 +62,8 @@ EmpathyHandler * empathy_handler_new (const gchar *name,
     GPtrArray *filters,
     GStrv capabilities);
 
+const gchar *empathy_handler_get_busname (EmpathyHandler *handler);
+
 typedef gboolean (EmpathyHandlerHandleChannelsFunc) (EmpathyHandler *handler,
     const gchar *account_path,
     const gchar *connection_path,