comparison 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
comparison
equal deleted inserted replaced
10681:d29fae081061 10682:c604c88a7530
28 #include <glib/glist.h> 28 #include <glib/glist.h>
29 #include <gmodule.h> 29 #include <gmodule.h>
30 #include "signals.h" 30 #include "signals.h"
31 #include "value.h" 31 #include "value.h"
32 32
33 #define GAIM_PLUGIN_EXT_WIN32 ".dll"
34 #define GAIM_PLUGIN_EXT_HPUX ".sl"
35 #define GAIM_PLUGIN_EXT_UNIX ".so"
36
33 #ifdef _WIN32 37 #ifdef _WIN32
34 # define GAIM_PLUGIN_EXT ".dll" 38 # define GAIM_PLUGIN_EXT GAIM_PLUGIN_EXT_WIN32
35 #else 39 #else
36 # ifdef __hpux 40 # ifdef __hpux
37 # define GAIM_PLUGIN_EXT ".sl" 41 # define GAIM_PLUGIN_EXT GAIM_PLUGIN_EXT_HPUX
38 # else 42 # else
39 # define GAIM_PLUGIN_EXT ".so" 43 # define GAIM_PLUGIN_EXT GAIM_PLUGIN_EXT_UNIX
40 # endif 44 # endif
41 #endif 45 #endif
42 46
43 typedef struct _GaimPlugin GaimPlugin; 47 typedef struct _GaimPlugin GaimPlugin;
44 typedef struct _GaimPluginInfo GaimPluginInfo; 48 typedef struct _GaimPluginInfo GaimPluginInfo;