Mercurial > pidgin.yaz
comparison 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 |
comparison
equal
deleted
inserted
replaced
5637:69c92ae58876 | 5638:0bdfa28c678e |
---|---|
43 #include <time.h> | 43 #include <time.h> |
44 #include <sys/stat.h> | 44 #include <sys/stat.h> |
45 #include <signal.h> | 45 #include <signal.h> |
46 | 46 |
47 #include "gaim.h" | 47 #include "gaim.h" |
48 #include "accountopt.h" | |
48 #include "multi.h" | 49 #include "multi.h" |
49 #include "prpl.h" | 50 #include "prpl.h" |
50 #include "core.h" | 51 #include "core.h" |
51 #include "proxy.h" | 52 #include "proxy.h" |
52 #include "aim.h" | 53 #include "aim.h" |
53 | 54 |
54 #ifdef _WIN32 | 55 #ifdef _WIN32 |
55 #include "win32dep.h" | 56 #include "win32dep.h" |
56 #endif | 57 #endif |
57 | 58 |
58 /* constants to identify proto_opts */ | |
59 #define USEROPT_AUTH 0 | |
60 #define USEROPT_AUTHPORT 1 | |
61 | 59 |
62 #define UC_AOL 0x02 | 60 #define UC_AOL 0x02 |
63 #define UC_ADMIN 0x04 | 61 #define UC_ADMIN 0x04 |
64 #define UC_UNCONFIRMED 0x08 | 62 #define UC_UNCONFIRMED 0x08 |
65 #define UC_NORMAL 0x10 | 63 #define UC_NORMAL 0x10 |
6102 }; | 6100 }; |
6103 | 6101 |
6104 static void | 6102 static void |
6105 __init_plugin(GaimPlugin *plugin) | 6103 __init_plugin(GaimPlugin *plugin) |
6106 { | 6104 { |
6107 struct proto_user_opt *puo; | 6105 GaimAccountOption *option; |
6108 | 6106 |
6109 puo = g_new0(struct proto_user_opt, 1); | 6107 option = gaim_account_option_string_new(_("Auth Host"), "server", |
6110 puo->label = g_strdup(_("Auth Host:")); | 6108 "login.oscar.aol.com"); |
6111 puo->def = g_strdup("login.oscar.aol.com"); | 6109 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, |
6112 puo->pos = USEROPT_AUTH; | 6110 option); |
6113 prpl_info.user_opts = g_list_append(prpl_info.user_opts, puo); | 6111 |
6114 | 6112 option = gaim_account_option_int_new(_("Auth Port"), "port", 5190); |
6115 puo = g_new0(struct proto_user_opt, 1); | 6113 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, |
6116 puo->label = g_strdup(_("Auth Port:")); | 6114 option); |
6117 puo->def = g_strdup("5190"); | |
6118 puo->pos = USEROPT_AUTHPORT; | |
6119 prpl_info.user_opts = g_list_append(prpl_info.user_opts, puo); | |
6120 | 6115 |
6121 my_protocol = plugin; | 6116 my_protocol = plugin; |
6122 } | 6117 } |
6123 | 6118 |
6124 GAIM_INIT_PLUGIN(oscar, __init_plugin, info); | 6119 GAIM_INIT_PLUGIN(oscar, __init_plugin, info); |