Mercurial > pidgin
comparison src/plugin.h @ 5449:9442e8d0b21d
[gaim-migrate @ 5836]
Decklin Foster writes:
"this makes --enable-static-prpls compile again.
i'm so lazy. it's only been what, well over a week since the new plugin
api broke this? :) i'm not sure if everything here is "correct" but i'm
sure someone can look over it. mainly, because i made _load return TRUE
all the time, for the sake of consistency/completeness i changed the
other applicable functions to do so as well. my feeling is, the only
time these things are going to be called in the static case is from
static_proto_init (since there's no plugin UI or whatever) and therefore
they always "succeed".
oh, yeah, and someone please test it *without* static prpls turned on.
like i said, i'm lazy. :)"
it works for me with no static prpls.
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 19 May 2003 17:27:03 +0000 |
parents | fd81a00480ac |
children | 5e7de337a053 |
comparison
equal
deleted
inserted
replaced
5448:aed28286e4fc | 5449:9442e8d0b21d |
---|---|
115 ((GaimPluginLoaderInfo *)(plugin)->info->extra_info) | 115 ((GaimPluginLoaderInfo *)(plugin)->info->extra_info) |
116 | 116 |
117 /** | 117 /** |
118 * Handles the initialization of modules. | 118 * Handles the initialization of modules. |
119 */ | 119 */ |
120 #ifdef STATIC_MODULE | 120 #ifndef GAIM_PLUGINS |
121 # define GAIM_INIT_PLUGIN(pluginname, initfunc, plugininfo) \ | 121 # define GAIM_INIT_PLUGIN(pluginname, initfunc, plugininfo) \ |
122 gboolean gaim_init_##pluginname##_plugin(void) { \ | 122 gboolean gaim_init_##pluginname##_plugin(void) { \ |
123 GaimPlugin *plugin = gaim_plugin_new(TRUE, NULL); \ | 123 GaimPlugin *plugin = gaim_plugin_new(TRUE, NULL); \ |
124 plugin->info = &(plugininfo); \ | 124 plugin->info = &(plugininfo); \ |
125 initfunc((plugin)); \ | 125 initfunc((plugin)); \ |
126 return gaim_plugin_register(plugin); \ | 126 return gaim_plugin_register(plugin); \ |
127 } | 127 } |
128 #else /* if !STATIC_MODULE */ | 128 #else /* GAIM_PLUGINS */ |
129 # define GAIM_INIT_PLUGIN(pluginname, initfunc, plugininfo) \ | 129 # define GAIM_INIT_PLUGIN(pluginname, initfunc, plugininfo) \ |
130 G_MODULE_EXPORT gboolean gaim_init_plugin(GaimPlugin *plugin) { \ | 130 G_MODULE_EXPORT gboolean gaim_init_plugin(GaimPlugin *plugin) { \ |
131 plugin->info = &(plugininfo); \ | 131 plugin->info = &(plugininfo); \ |
132 initfunc((plugin)); \ | 132 initfunc((plugin)); \ |
133 return gaim_plugin_register(plugin); \ | 133 return gaim_plugin_register(plugin); \ |