comparison src/plugin.c @ 5638:0bdfa28c678e

[gaim-migrate @ 6047] We're slowly killing off multi.h. The proto_user_split and proto_user_opt have been replaced with GaimAccountOption and GaimAccountUserSplit structures, which of course have an API. The account dialog is being rewritten as well, and will soon allow you to add and modify accounts again. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 01 Jun 2003 17:40:20 +0000
parents 5e7de337a053
children 48c63ee49961
comparison
equal deleted inserted replaced
5637:69c92ae58876 5638:0bdfa28c678e
38 #ifdef HAVE_CONFIG_H 38 #ifdef HAVE_CONFIG_H
39 #include <config.h> 39 #include <config.h>
40 #endif 40 #endif
41 41
42 #include "gaim.h" 42 #include "gaim.h"
43 #include "accountopt.h"
43 #include "prpl.h" 44 #include "prpl.h"
44 #include "event.h" 45 #include "event.h"
45 #include "notify.h" 46 #include "notify.h"
46 47
47 #include <string.h> 48 #include <string.h>
327 plugin->info->unload(plugin); 328 plugin->info->unload(plugin);
328 329
329 if (plugin->info->type == GAIM_PLUGIN_PROTOCOL) { 330 if (plugin->info->type == GAIM_PLUGIN_PROTOCOL) {
330 GaimPluginProtocolInfo *prpl_info; 331 GaimPluginProtocolInfo *prpl_info;
331 GList *l; 332 GList *l;
332 struct proto_user_split *pus;
333 struct proto_user_opt *puo;
334 333
335 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(plugin); 334 prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(plugin);
336 335
337 for (l = prpl_info->user_splits; l != NULL; l = l->next) { 336 for (l = prpl_info->user_splits; l != NULL; l = l->next)
338 pus = l->data; 337 gaim_account_user_split_destroy(l->data);
339 338
340 g_free(pus->label); 339 for (l = prpl_info->protocol_options; l != NULL; l = l->next)
341 g_free(pus->def); 340 gaim_account_option_destroy(l->data);
342 g_free(pus);
343 }
344 341
345 g_list_free(prpl_info->user_splits); 342 g_list_free(prpl_info->user_splits);
346 343 g_list_free(prpl_info->protocol_options);
347 for (l = prpl_info->user_opts; l != NULL; l = l->next) {
348 puo = l->data;
349
350 g_free(puo->label);
351 g_free(puo->def);
352 g_free(puo);
353 }
354
355 g_list_free(prpl_info->user_opts);
356 } 344 }
357 else if (plugin->info->type == GAIM_PLUGIN_LOADER) { 345 else if (plugin->info->type == GAIM_PLUGIN_LOADER) {
358 GaimPluginLoaderInfo *loader_info; 346 GaimPluginLoaderInfo *loader_info;
359 347
360 loader_info = GAIM_PLUGIN_LOADER_INFO(plugin); 348 loader_info = GAIM_PLUGIN_LOADER_INFO(plugin);