changeset 8759:184b8c3b6d09

[gaim-migrate @ 9514] Patch by Stu Tomlinson to fix some screwups I made when moving things to the new plugin API version. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Thu, 22 Apr 2004 17:15:56 +0000
parents 2db51720fd09
children 16d91ca1a353
files plugins/tcl/tcl.c src/plugin.c
diffstat 2 files changed, 7 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/tcl/tcl.c	Thu Apr 22 16:24:05 2004 +0000
+++ b/plugins/tcl/tcl.c	Thu Apr 22 17:15:56 2004 +0000
@@ -330,7 +330,7 @@
 
 static GaimPluginLoaderInfo tcl_loader_info =
 {
-	GAIM_PLUGIN_API_VERSION,
+	GAIM_LOADER_API_VERSION,
 	NULL,
 	tcl_probe_plugin,
 	tcl_load_plugin,
--- a/src/plugin.c	Thu Apr 22 16:24:05 2004 +0000
+++ b/src/plugin.c	Thu Apr 22 17:15:56 2004 +0000
@@ -232,8 +232,9 @@
 
 	if (plugin->info->api_version != GAIM_PLUGIN_API_VERSION)
 	{
+		gaim_debug(GAIM_DEBUG_ERROR, "plugins", "%s is unloadable: API version mismatch %d (need %d)\n",
+				   plugin->path, plugin->info->api_version, GAIM_PLUGIN_API_VERSION);
 		gaim_plugin_destroy(plugin);
-
 		return NULL;
 	}
 
@@ -941,6 +942,8 @@
 		if (loader_info == NULL ||
 			loader_info->api_version != GAIM_LOADER_API_VERSION)
 		{
+			gaim_debug(GAIM_DEBUG_ERROR, "plugins", "%s is unloadable: API version mismatch %d (need %d)\n",
+							   plugin->path, loader_info->api_version, GAIM_LOADER_API_VERSION);
 			return FALSE;
 		}
 
@@ -955,6 +958,8 @@
 		if (prpl_info == NULL ||
 			prpl_info->api_version != GAIM_PRPL_API_VERSION)
 		{
+			gaim_debug(GAIM_DEBUG_ERROR, "plugins", "%s is unloadable: API version mismatch %d (need %d)\n",
+							   plugin->path, prpl_info->api_version, GAIM_PRPL_API_VERSION);
 			return FALSE;
 		}