changeset 21571:e3bad210e005

Fixed static linkage of msnp9 in the most straightforward way I could see, which is to have the purple_init_##pluginname##_plugin() function match the directory name, msnp9
author Evan Schoenberg <evan.s@dreskin.net>
date Sat, 17 Nov 2007 19:39:21 +0000
parents dccfd999ffe7
children dee0c2dc1a85 54b992168888
files libpurple/Makefile.am libpurple/protocols/msnp9/msn.c libpurple/protocols/myspace/myspace.h libpurple/signals.c
diffstat 4 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/Makefile.am	Sat Nov 17 17:27:48 2007 +0000
+++ b/libpurple/Makefile.am	Sat Nov 17 19:39:21 2007 +0000
@@ -237,6 +237,8 @@
 	$(LIBXML_LIBS) \
 	$(LIBNM_LIBS) \
 	$(INTLLIBS) \
+	$(SASL_LIBS) \
+	$(MEANWHILE_LIBS) \
 	-lm
 
 AM_CPPFLAGS = \
--- a/libpurple/protocols/msnp9/msn.c	Sat Nov 17 17:27:48 2007 +0000
+++ b/libpurple/protocols/msnp9/msn.c	Sat Nov 17 19:39:21 2007 +0000
@@ -2218,4 +2218,4 @@
 		PURPLE_CALLBACK(msn_uri_handler), NULL);
 }
 
-PURPLE_INIT_PLUGIN(msn, init_plugin, info);
+PURPLE_INIT_PLUGIN(msnp9, init_plugin, info);
--- a/libpurple/protocols/myspace/myspace.h	Sat Nov 17 17:27:48 2007 +0000
+++ b/libpurple/protocols/myspace/myspace.h	Sat Nov 17 19:39:21 2007 +0000
@@ -41,7 +41,7 @@
 #include "notify.h"
 #include "plugin.h"
 #include "accountopt.h"
-#include "version.h"
+#include "libpurple/version.h"
 #include "cipher.h"     /* for SHA-1 */
 #include "util.h"       /* for base64 */
 #include "debug.h"      /* for purple_debug_info */
--- a/libpurple/signals.c	Sat Nov 17 17:27:48 2007 +0000
+++ b/libpurple/signals.c	Sat Nov 17 19:39:21 2007 +0000
@@ -450,6 +450,13 @@
 	instance_data =
 		(PurpleInstanceData *)g_hash_table_lookup(instance_table, instance);
 
+	if (instance_data == NULL)
+	{
+		purple_debug(PURPLE_DEBUG_ERROR, "signals",
+					 "Instance data for %s not found!\n", signal);
+		return;
+	}
+	
 	g_return_if_fail(instance_data != NULL);
 
 	signal_data =