Mercurial > pidgin
comparison libpurple/plugin.c @ 21512:166b7949be3d
Compile when plugins are disabled
| author | Mark Doliner <mark@kingant.net> |
|---|---|
| date | Wed, 14 Nov 2007 23:09:03 +0000 |
| parents | fb8f9bf86315 |
| children | 14afe5a92fc2 |
comparison
equal
deleted
inserted
replaced
| 21511:9090555d7ad9 | 21512:166b7949be3d |
|---|---|
| 761 } | 761 } |
| 762 | 762 |
| 763 void | 763 void |
| 764 purple_plugin_disable(PurplePlugin *plugin) | 764 purple_plugin_disable(PurplePlugin *plugin) |
| 765 { | 765 { |
| 766 #ifdef PURPLE_PLUGINS | |
| 766 g_return_if_fail(plugin != NULL); | 767 g_return_if_fail(plugin != NULL); |
| 767 | 768 |
| 768 if (!g_list_find(plugins_to_disable, plugin)) | 769 if (!g_list_find(plugins_to_disable, plugin)) |
| 769 plugins_to_disable = g_list_prepend(plugins_to_disable, plugin); | 770 plugins_to_disable = g_list_prepend(plugins_to_disable, plugin); |
| 771 #endif | |
| 770 } | 772 } |
| 771 | 773 |
| 772 gboolean | 774 gboolean |
| 773 purple_plugin_reload(PurplePlugin *plugin) | 775 purple_plugin_reload(PurplePlugin *plugin) |
| 774 { | 776 { |
