comparison src/protocols/trepia/trepia.c @ 5863:98ec3e394f59

[gaim-migrate @ 6294] This is in my way... just committing the Trepia code I was working on that currently does nothing. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sat, 14 Jun 2003 11:14:26 +0000
parents 082982a4acbd
children d048e5f2af27
comparison
equal deleted inserted replaced
5862:d0a311def860 5863:98ec3e394f59
38 # include <netinet/in.h> 38 # include <netinet/in.h>
39 # include <arpa/inet.h> 39 # include <arpa/inet.h>
40 # include <net/if_arp.h> 40 # include <net/if_arp.h>
41 #endif 41 #endif
42 42
43 #define TREPIA_VERSION "2.50"
44
43 static GaimPlugin *my_protocol = NULL; 45 static GaimPlugin *my_protocol = NULL;
44 46
45 typedef enum 47 typedef enum
46 { 48 {
47 TREPIA_LOGIN = 'C', 49 TREPIA_LOGIN = 'C',
1025 "<e>2.50</e>\n" 1027 "<e>2.50</e>\n"
1026 "</C>", 1028 "</C>",
1027 mac, gaim_account_get_username(account), 1029 mac, gaim_account_get_username(account),
1028 md5_password); 1030 md5_password);
1029 1031
1032 #if 0
1030 g_free(mac); 1033 g_free(mac);
1034 #endif
1031 1035
1032 if (trepia_write(session->fd, buffer, strlen(buffer)) < 0) { 1036 if (trepia_write(session->fd, buffer, strlen(buffer)) < 0) {
1033 gaim_connection_error(session->gc, _("Write error")); 1037 gaim_connection_error(session->gc, _("Write error"));
1034 return; 1038 return;
1035 } 1039 }
1190 } 1194 }
1191 1195
1192 static void 1196 static void
1193 trepia_register_user(GaimAccount *account) 1197 trepia_register_user(GaimAccount *account)
1194 { 1198 {
1195 #if 0
1196 char *buffer; 1199 char *buffer;
1200 char *mac = "00:01:02:03:04:05";
1197 1201
1198 buffer = g_strdup_printf( 1202 buffer = g_strdup_printf(
1199 "<J><a>%s</a><b1>%s</b1><c>2.0</c><d>%s</d><e>%s</e>" 1203 "<J><a>%s</a><b1>%s</b1><c>%s</c><d>%s</d><e>%s</e>"
1200 "<f>%s</f><g></g><h></h><i></i><j></j><k></k><l></l>" 1204 "<f></f><g></g><h></h><i></i><j></j><k></k><l></l>"
1201 "<m></m></J>"); 1205 "<m></m></J>",
1202 1206 mac, "", TREPIA_VERSION, gaim_account_get_username(account),
1203 #endif 1207 gaim_account_get_password(account));
1204 } 1208 }
1205 1209
1206 static GaimPluginProtocolInfo prpl_info = 1210 static GaimPluginProtocolInfo prpl_info =
1207 { 1211 {
1208 GAIM_PROTO_TREPIA, 1212 GAIM_PROTO_TREPIA,