comparison src/plugin.c @ 10950:4b0f64ab869c

[gaim-migrate @ 12750] sf patch #1211747, from Richard Laager Update the comment about G_MODULE_BIND_LOCAL committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 31 May 2005 23:34:31 +0000
parents 5cda52915a1f
children 50224ac8184d
comparison
equal deleted inserted replaced
10949:1adca5a37fb8 10950:4b0f64ab869c
208 plugin = gaim_plugin_new(has_file_extension(filename, GAIM_PLUGIN_EXT), filename); 208 plugin = gaim_plugin_new(has_file_extension(filename, GAIM_PLUGIN_EXT), filename);
209 209
210 if (plugin->native_plugin) { 210 if (plugin->native_plugin) {
211 const char *error; 211 const char *error;
212 /* 212 /*
213 * TODO: Should pass the G_MODULE_BIND_LOCAL parameter to 213 * We pass G_MODULE_BIND_LOCAL here to prevent symbols from
214 * g_module_open(). It enforces plugin separation so that 214 * plugins being added to the global name space.
215 * symbols from plugins are not added to the global name
216 * space. However, it caused problems with using a
217 * perl script for me. If it works for you then go for it.
218 */ 215 */
219 plugin->handle = g_module_open(filename, G_MODULE_BIND_LOCAL); 216 plugin->handle = g_module_open(filename, G_MODULE_BIND_LOCAL);
220 217
221 if (plugin->handle == NULL) 218 if (plugin->handle == NULL)
222 { 219 {