| 147 */ |
147 */ |
| 148 purple_plugins_init(); |
148 purple_plugins_init(); |
| 149 |
149 |
| 150 /* Initialize all static protocols. */ |
150 /* Initialize all static protocols. */ |
| 151 static_proto_init(); |
151 static_proto_init(); |
| 152 |
|
| 153 purple_plugins_probe(G_MODULE_SUFFIX); |
|
| 154 |
152 |
| 155 purple_keyring_init(); /* before accounts */ |
153 purple_keyring_init(); /* before accounts */ |
| 156 purple_theme_manager_init(); |
154 purple_theme_manager_init(); |
| 157 |
155 |
| 158 /* The buddy icon code uses the imgstore, so init it early. */ |
156 /* The buddy icon code uses the imgstore, so init it early. */ |
| 226 purple_certificate_uninit(); |
224 purple_certificate_uninit(); |
| 227 |
225 |
| 228 /* The SSL plugins must be uninit before they're unloaded */ |
226 /* The SSL plugins must be uninit before they're unloaded */ |
| 229 purple_ssl_uninit(); |
227 purple_ssl_uninit(); |
| 230 |
228 |
| 231 /* Unload all non-loader, non-prpl plugins before shutting down |
|
| 232 * subsystems. */ |
|
| 233 purple_debug_info("main", "Unloading normal plugins\n"); |
|
| 234 purple_plugins_unload(PURPLE_PLUGIN_STANDARD); |
|
| 235 |
|
| 236 /* Save .xml files, remove signals, etc. */ |
229 /* Save .xml files, remove signals, etc. */ |
| 237 purple_smileys_uninit(); |
230 purple_smileys_uninit(); |
| 238 purple_http_uninit(); |
231 purple_http_uninit(); |
| 239 purple_idle_uninit(); |
232 purple_idle_uninit(); |
| 240 purple_pounces_uninit(); |
233 purple_pounces_uninit(); |
| 253 purple_proxy_uninit(); |
246 purple_proxy_uninit(); |
| 254 purple_dnsquery_uninit(); |
247 purple_dnsquery_uninit(); |
| 255 purple_imgstore_uninit(); |
248 purple_imgstore_uninit(); |
| 256 purple_network_uninit(); |
249 purple_network_uninit(); |
| 257 |
250 |
| 258 /* Everything after unloading all plugins must not fail if prpls aren't |
|
| 259 * around */ |
|
| 260 purple_debug_info("main", "Unloading all plugins\n"); |
|
| 261 purple_plugins_destroy_all(); |
|
| 262 |
|
| 263 ops = purple_core_get_ui_ops(); |
251 ops = purple_core_get_ui_ops(); |
| 264 if (ops != NULL && ops->quit != NULL) |
252 if (ops != NULL && ops->quit != NULL) |
| 265 ops->quit(); |
253 ops->quit(); |
| 266 |
254 |
| 267 /* Everything after prefs_uninit must not try to read any prefs */ |
255 /* Everything after prefs_uninit must not try to read any prefs */ |