/soc/2013/ankitkv/gobjectification: 08b47c055830: Made libpurple...

Ankit Vani a at nevitus.org
Wed Jul 10 18:46:12 EDT 2013


Changeset: 08b47c055830241b51e4f5f15314ad290b5f7712
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2013-07-11 04:16 +0530
Branch:	 soc.2013.gobjectification
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/08b47c055830

Description:

Made libpurple plugins compile with initial GObject connection API

diffstat:

 libpurple/plugins/perl/common/Connection.xs |  2 +-
 libpurple/plugins/perl/common/Prpl.xs       |  2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diffs (24 lines):

diff --git a/libpurple/plugins/perl/common/Connection.xs b/libpurple/plugins/perl/common/Connection.xs
--- a/libpurple/plugins/perl/common/Connection.xs
+++ b/libpurple/plugins/perl/common/Connection.xs
@@ -8,7 +8,7 @@ BOOT:
 	HV *stash = gv_stashpv("Purple::Connection::State", 1);
 
 	static const constiv *civ, const_iv[] = {
-#define const_iv(name) {#name, (IV)PURPLE_##name}
+#define const_iv(name) {#name, (IV)PURPLE_CONNECTION_##name}
 		const_iv(DISCONNECTED),
 		const_iv(CONNECTED),
 		const_iv(CONNECTING),
diff --git a/libpurple/plugins/perl/common/Prpl.xs b/libpurple/plugins/perl/common/Prpl.xs
--- a/libpurple/plugins/perl/common/Prpl.xs
+++ b/libpurple/plugins/perl/common/Prpl.xs
@@ -65,7 +65,7 @@ CODE:
 	if (!gc)
 		RETVAL = 0;
 	else {
-		prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(gc->prpl);
+		prpl_info = PURPLE_PLUGIN_PROTOCOL_INFO(purple_connection_get_prpl(gc));
 		if (prpl_info && prpl_info->send_raw != NULL) {
 			RETVAL = prpl_info->send_raw(gc, str, strlen(str));
 		} else {



More information about the Commits mailing list