Mercurial > pidgin
comparison libpurple/plugin.h @ 23855:e23b447aa5ca
propagate from branch 'im.pidgin.pidgin' (head e3ceb09b71185a9074ce73733f2a65b437c9a545)
to branch 'im.pidgin.soc.2008.vv' (head a94b36f0065825b75de573746f680ae616b34f41)
author | Mike Ruprecht <maiku@soc.pidgin.im> |
---|---|
date | Wed, 16 Jul 2008 21:55:08 +0000 |
parents | 8c2650fb7253 |
children | 8282911d5e17 |
comparison
equal
deleted
inserted
replaced
23854:517062503b48 | 23855:e23b447aa5ca |
---|---|
197 | 197 |
198 /** | 198 /** |
199 * Handles the initialization of modules. | 199 * Handles the initialization of modules. |
200 */ | 200 */ |
201 #if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PRPL) | 201 #if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PRPL) |
202 # define _FUNC_NAME(x) purple_init_##x##_plugin | |
202 # define PURPLE_INIT_PLUGIN(pluginname, initfunc, plugininfo) \ | 203 # define PURPLE_INIT_PLUGIN(pluginname, initfunc, plugininfo) \ |
203 gboolean purple_init_##pluginname##_plugin(void);\ | 204 gboolean _FUNC_NAME(pluginname)(void);\ |
204 gboolean purple_init_##pluginname##_plugin(void) { \ | 205 gboolean _FUNC_NAME(pluginname)(void) { \ |
205 PurplePlugin *plugin = purple_plugin_new(TRUE, NULL); \ | 206 PurplePlugin *plugin = purple_plugin_new(TRUE, NULL); \ |
206 plugin->info = &(plugininfo); \ | 207 plugin->info = &(plugininfo); \ |
207 initfunc((plugin)); \ | 208 initfunc((plugin)); \ |
208 purple_plugin_load((plugin)); \ | 209 purple_plugin_load((plugin)); \ |
209 return purple_plugin_register(plugin); \ | 210 return purple_plugin_register(plugin); \ |