Mercurial > pidgin.yaz
diff src/protocols/oscar/oscar.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 | 960fe32ea9b7 |
children | 48c63ee49961 |
line wrap: on
line diff
--- a/src/protocols/oscar/oscar.c Sun Jun 01 16:17:15 2003 +0000 +++ b/src/protocols/oscar/oscar.c Sun Jun 01 17:40:20 2003 +0000 @@ -45,6 +45,7 @@ #include <signal.h> #include "gaim.h" +#include "accountopt.h" #include "multi.h" #include "prpl.h" #include "core.h" @@ -55,9 +56,6 @@ #include "win32dep.h" #endif -/* constants to identify proto_opts */ -#define USEROPT_AUTH 0 -#define USEROPT_AUTHPORT 1 #define UC_AOL 0x02 #define UC_ADMIN 0x04 @@ -6104,19 +6102,16 @@ static void __init_plugin(GaimPlugin *plugin) { - struct proto_user_opt *puo; - - puo = g_new0(struct proto_user_opt, 1); - puo->label = g_strdup(_("Auth Host:")); - puo->def = g_strdup("login.oscar.aol.com"); - puo->pos = USEROPT_AUTH; - prpl_info.user_opts = g_list_append(prpl_info.user_opts, puo); - - puo = g_new0(struct proto_user_opt, 1); - puo->label = g_strdup(_("Auth Port:")); - puo->def = g_strdup("5190"); - puo->pos = USEROPT_AUTHPORT; - prpl_info.user_opts = g_list_append(prpl_info.user_opts, puo); + GaimAccountOption *option; + + option = gaim_account_option_string_new(_("Auth Host"), "server", + "login.oscar.aol.com"); + prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, + option); + + option = gaim_account_option_int_new(_("Auth Port"), "port", 5190); + prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, + option); my_protocol = plugin; }