soc.2009.telepathy: 7cf614ac: Added ChannelDispatcher proxy

sttwister at gmail.com sttwister at gmail.com
Sun Aug 9 11:35:36 EDT 2009


-----------------------------------------------------------------
Revision: 7cf614ac98c45ad6e1589c9410f091e959fb15c1
Ancestor: 39fa7d714d44c059fe876b47df43a6b0c2dc37ab
Author: sttwister at gmail.com
Date: 2009-08-09T15:31:38
Branch: im.pidgin.soc.2009.telepathy
URL: http://d.pidgin.im/viewmtn/revision/info/7cf614ac98c45ad6e1589c9410f091e959fb15c1

Modified files:
        libpurple/protocols/telepathy/telepathy.c
        libpurple/protocols/telepathy/telepathy.h

ChangeLog: 

Added ChannelDispatcher proxy

-------------- next part --------------
============================================================
--- libpurple/protocols/telepathy/telepathy.c	5305af69cef915b18a696f65b78ac2a870ef0e86
+++ libpurple/protocols/telepathy/telepathy.c	19b213736b918d496f8ca58ca47a9df413db2606
@@ -1176,15 +1176,24 @@ G_MODULE_EXPORT gboolean purple_init_plu
 		return FALSE;
 	}
 
-	/* Create an AccountManager interface */
+	/* Create an AccountManager proxy */
 	account_Manager = tp_account_manager_new(daemon);
 
 	if (account_Manager == NULL)
 	{
-		purple_debug_error("telepathy", "There is no AccountManager interface!\n");
+		purple_debug_error("telepathy", "There is no AccountManager bus name!\n");
 		return FALSE;
 	}
 
+	/* Create an AccountManager proxy */
+	channel_Dispatcher = tp_channel_dispatcher_new(daemon);
+
+	if (channel_Dispatcher == NULL)
+	{
+		purple_debug_error("telepathy", "There is no ChannelDispatcher bus name!\n");
+		return FALSE;
+	}
+
 	/* the list of connection managers will be returned in list_connection_managers_cb */
 	tp_list_connection_managers(daemon, list_connection_managers_cb, NULL, NULL, NULL);
 	
============================================================
--- libpurple/protocols/telepathy/telepathy.h	4fe1d4ed1f55846efc20463ef70a9100748b9d84
+++ libpurple/protocols/telepathy/telepathy.h	889858bd29f636de14311dd12a4dc577b4176f0b
@@ -24,6 +24,7 @@
 #include <glib.h>
 
 #include <telepathy-glib/account-manager.h>
+#include <telepathy-glib/channel-dispatcher.h>
 #include <telepathy-glib/connection-manager.h>
 
 #include "plugin.h"
@@ -34,6 +35,7 @@ TpAccountManager *account_Manager;
 void *module_handle;
 gchar *module_path;
 TpAccountManager *account_Manager;
+TpChannelDispatcher *channel_Dispatcher;
 
 /* This maps account object path to account_data struct */
 GHashTable *accounts_Hash_Table;


More information about the Commits mailing list