Mercurial > pidgin
comparison src/plugin.c @ 5211:0241d6b6702d
[gaim-migrate @ 5581]
Wrote a new debugging API, and of course core/ui split it. Debug statements
can now have debug levels and categories, for future filtering of stuff,
and color highlighting. It's nifty, m'kay?
committer: Tailor Script <tailor@pidgin.im>
author | Christian Hammond <chipx86@chipx86.com> |
---|---|
date | Sat, 26 Apr 2003 06:46:08 +0000 |
parents | fefad67de2c7 |
children | fd81a00480ac |
comparison
equal
deleted
inserted
replaced
5210:39bb2a35f8d9 | 5211:0241d6b6702d |
---|---|
193 if (!g_module_symbol(plugin->handle, "gaim_init_plugin", | 193 if (!g_module_symbol(plugin->handle, "gaim_init_plugin", |
194 (gpointer *)&gaim_init_plugin)) { | 194 (gpointer *)&gaim_init_plugin)) { |
195 g_module_close(plugin->handle); | 195 g_module_close(plugin->handle); |
196 plugin->handle = NULL; | 196 plugin->handle = NULL; |
197 | 197 |
198 debug_printf("%s is unloadable %s\n", | 198 gaim_debug(GAIM_DEBUG_ERROR, "plugins", "%s is unloadable: %s\n", |
199 plugin->path, g_module_error()); | 199 plugin->path, g_module_error()); |
200 | 200 |
201 gaim_plugin_destroy(plugin); | 201 gaim_plugin_destroy(plugin); |
202 | 202 |
203 return NULL; | 203 return NULL; |
204 } | 204 } |
290 | 290 |
291 loaded_plugins = g_list_remove(loaded_plugins, plugin); | 291 loaded_plugins = g_list_remove(loaded_plugins, plugin); |
292 | 292 |
293 g_return_val_if_fail(gaim_plugin_is_loaded(plugin), FALSE); | 293 g_return_val_if_fail(gaim_plugin_is_loaded(plugin), FALSE); |
294 | 294 |
295 debug_printf("Unloading plugin %s\n", plugin->info->name); | 295 gaim_debug(GAIM_DEBUG_INFO, "plugins", "Unloading plugin %s\n", |
296 plugin->info->name); | |
296 | 297 |
297 /* cancel any pending dialogs the plugin has */ | 298 /* cancel any pending dialogs the plugin has */ |
298 do_ask_cancel_by_handle(plugin); | 299 do_ask_cancel_by_handle(plugin); |
299 | 300 |
300 plugin->loaded = FALSE; | 301 plugin->loaded = FALSE; |