Mercurial > pidgin
comparison src/protocols/toc/toc.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 | 4fa8ca4f4259 |
| children | 0a0116686d51 |
comparison
equal
deleted
inserted
replaced
| 5637:69c92ae58876 | 5638:0bdfa28c678e |
|---|---|
| 42 #include <stdio.h> | 42 #include <stdio.h> |
| 43 #include <time.h> | 43 #include <time.h> |
| 44 #include <sys/types.h> | 44 #include <sys/types.h> |
| 45 #include <sys/stat.h> | 45 #include <sys/stat.h> |
| 46 #include "prpl.h" | 46 #include "prpl.h" |
| 47 #include "accountopt.h" | |
| 47 #include "multi.h" | 48 #include "multi.h" |
| 48 #include "gaim.h" | 49 #include "gaim.h" |
| 49 #include "proxy.h" | 50 #include "proxy.h" |
| 50 | 51 |
| 51 #ifdef _WIN32 | 52 #ifdef _WIN32 |
| 2072 }; | 2073 }; |
| 2073 | 2074 |
| 2074 static void | 2075 static void |
| 2075 __init_plugin(GaimPlugin *plugin) | 2076 __init_plugin(GaimPlugin *plugin) |
| 2076 { | 2077 { |
| 2077 struct proto_user_opt *puo; | 2078 GaimAccountOption *option; |
| 2078 | 2079 |
| 2079 puo = g_new0(struct proto_user_opt, 1); | 2080 option = gaim_account_option_string_new(_("TOC Host"), "server", TOC_HOST); |
| 2080 puo->label = g_strdup(_("TOC Host:")); | 2081 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, |
| 2081 puo->def = g_strdup("toc.oscar.aol.com"); | 2082 option); |
| 2082 puo->pos = USEROPT_AUTH; | 2083 |
| 2083 prpl_info.user_opts = g_list_append(prpl_info.user_opts, puo); | 2084 option = gaim_account_option_int_new(_("TOC Host"), "port", TOC_PORT); |
| 2084 | 2085 prpl_info.protocol_options = g_list_append(prpl_info.protocol_options, |
| 2085 puo = g_new0(struct proto_user_opt, 1); | 2086 option); |
| 2086 puo->label = g_strdup(_("TOC Port:")); | |
| 2087 puo->def = g_strdup("9898"); | |
| 2088 puo->pos = USEROPT_AUTHPORT; | |
| 2089 prpl_info.user_opts = g_list_append(prpl_info.user_opts, puo); | |
| 2090 | 2087 |
| 2091 my_protocol = plugin; | 2088 my_protocol = plugin; |
| 2092 } | 2089 } |
| 2093 | 2090 |
| 2094 GAIM_INIT_PLUGIN(toc, __init_plugin, info); | 2091 GAIM_INIT_PLUGIN(toc, __init_plugin, info); |
