src/protocols/toc/toc.c

changeset 5638
53e752c88ea1
parent 5605
ee043c66dee9
child 5679
943eb70954b6
equal deleted inserted replaced
5637:78c02cfa43ea 5638:53e752c88ea1
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);

mercurial