diff src/plugin.h @ 10682:c604c88a7530

[gaim-migrate @ 12228] This is the changes I made to plugin loading to oldstatus a few days ago. Luckily plugin.c is compiled before gtkstatusbox.c, so I can at least test that this compiles. It's basically the same code as oldstatus, so hopefully it'll work. Here's the commit message from that commit: sf patch #1118347, from Richard Laager, with changes by me This changes how plugins are loaded. Here's the run-down: 1. If a plugin is loaded, the plugin's full file name + path is stored in prefs.xml 2. When we attempt to load any saved plugins, we first try to load the plugin using the full path name. 3. If that fails, we strip the plugin's path and just use the base name. When doing this, if the plugin is a .so or .dll we also strip the plugin's extension. This change will hopefully allow people to use the same prefs.xml on Windows and "lunix" and have their list of loaded plugins not get cleared. committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Fri, 11 Mar 2005 03:54:23 +0000
parents 1a97d5e88d12
children a2c0ce632bec
line wrap: on
line diff
--- a/src/plugin.h	Thu Mar 10 23:47:30 2005 +0000
+++ b/src/plugin.h	Fri Mar 11 03:54:23 2005 +0000
@@ -30,13 +30,17 @@
 #include "signals.h"
 #include "value.h"
 
+#define GAIM_PLUGIN_EXT_WIN32 ".dll"
+#define GAIM_PLUGIN_EXT_HPUX ".sl"
+#define GAIM_PLUGIN_EXT_UNIX ".so"
+
 #ifdef _WIN32
-# define GAIM_PLUGIN_EXT ".dll"
+# define GAIM_PLUGIN_EXT GAIM_PLUGIN_EXT_WIN32
 #else
 # ifdef __hpux
-#  define GAIM_PLUGIN_EXT ".sl"
+#  define GAIM_PLUGIN_EXT GAIM_PLUGIN_EXT_HPUX
 # else
-#  define GAIM_PLUGIN_EXT ".so"
+#  define GAIM_PLUGIN_EXT GAIM_PLUGIN_EXT_UNIX
 # endif
 #endif