Mercurial > pidgin
comparison libpurple/plugin.c @ 25572:d5cf115b7c58
disapproval of revision '2f2d084c77a5b905a47b7b28508172451a2bb82f'
| author | Ethan Blanton <elb@pidgin.im> |
|---|---|
| date | Wed, 29 Apr 2009 00:39:13 +0000 |
| parents | 1b8c18ab762f |
| children | 01f1929d0936 |
comparison
equal
deleted
inserted
replaced
| 25571:1b8c18ab762f | 25572:d5cf115b7c58 |
|---|---|
| 1227 | 1227 |
| 1228 #endif /* PURPLE_PLUGINS */ | 1228 #endif /* PURPLE_PLUGINS */ |
| 1229 } | 1229 } |
| 1230 | 1230 |
| 1231 void | 1231 void |
| 1232 purple_plugins_unload(PurplePluginType type) | |
| 1233 { | |
| 1234 #ifdef PURPLE_PLUGINS | |
| 1235 GList *l; | |
| 1236 | |
| 1237 for (l = plugins; l; l = l->next) { | |
| 1238 PurplePlugin *plugin = l->data; | |
| 1239 if (plugin->info->type == type && purple_plugin_is_loaded(plugin)) | |
| 1240 purple_plugin_unload(plugin); | |
| 1241 } | |
| 1242 | |
| 1243 #endif /* PURPLE_PLUGINS */ | |
| 1244 } | |
| 1245 | |
| 1246 void | |
| 1247 purple_plugins_destroy_all(void) | 1232 purple_plugins_destroy_all(void) |
| 1248 { | 1233 { |
| 1249 #ifdef PURPLE_PLUGINS | 1234 #ifdef PURPLE_PLUGINS |
| 1250 | 1235 |
| 1251 while (plugins != NULL) | 1236 while (plugins != NULL) |
