comparison src/oscar.c @ 840:595ac7759563

[gaim-migrate @ 850] lots of (mostly useless for us) libfaim changes. should help portability, but it was always portable between unices.... stupid win32ers. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Mon, 04 Sep 2000 23:37:32 +0000
parents 7714587cd1f9
children 41bfae606d39
comparison
equal deleted inserted replaced
839:8f66e00af045 840:595ac7759563
209 } 209 }
210 210
211 int oscar_login(char *username, char *password) { 211 int oscar_login(char *username, char *password) {
212 struct aim_session_t *sess; 212 struct aim_session_t *sess;
213 struct aim_conn_t *conn; 213 struct aim_conn_t *conn;
214 /* struct client_info_s info = {"AOL Instant Messenger (TM), version 2.1.1187/WIN32", 4, 30, 3141, "us", "en", 0x0004, 0x0001, 0x055}; */
215 struct aim_user *u; 214 struct aim_user *u;
216 char buf[256]; 215 char buf[256];
217 216
218 sprintf(debug_buff, _("Logging in %s\n"), username); 217 sprintf(debug_buff, _("Logging in %s\n"), username);
219 debug_print(debug_buff); 218 debug_print(debug_buff);
397 } 396 }
398 397
399 int gaim_parse_login(struct aim_session_t *sess, 398 int gaim_parse_login(struct aim_session_t *sess,
400 struct command_rx_struct *command, ...) { 399 struct command_rx_struct *command, ...) {
401 struct client_info_s info = {"AOL Instant Messenger (TM), version 2.1.1187/WIN32", 4, 30, 3141, "us", "en", 0x0004, 0x0001, 0x055}; 400 struct client_info_s info = {"AOL Instant Messenger (TM), version 2.1.1187/WIN32", 4, 30, 3141, "us", "en", 0x0004, 0x0001, 0x055};
402 unsigned char *key; 401 char *key;
403 va_list ap; 402 va_list ap;
404 403
405 va_start(ap, command); 404 va_start(ap, command);
406 key = va_arg(ap, char *); 405 key = va_arg(ap, char *);
407 va_end(ap); 406 va_end(ap);
453 int gaim_handle_redirect(struct aim_session_t *sess, 452 int gaim_handle_redirect(struct aim_session_t *sess,
454 struct command_rx_struct *command, ...) { 453 struct command_rx_struct *command, ...) {
455 va_list ap; 454 va_list ap;
456 int serviceid; 455 int serviceid;
457 char *ip; 456 char *ip;
458 char *cookie; 457 unsigned char *cookie;
459 458
460 va_start(ap, command); 459 va_start(ap, command);
461 serviceid = va_arg(ap, int); 460 serviceid = va_arg(ap, int);
462 ip = va_arg(ap, char *); 461 ip = va_arg(ap, char *);
463 cookie = va_arg(ap, char *); 462 cookie = va_arg(ap, unsigned char *);
464 463
465 switch(serviceid) { 464 switch(serviceid) {
466 case 0x7: /* Authorizer */ 465 case 0x7: /* Authorizer */
467 debug_print("Reconnecting with authorizor...\n"); 466 debug_print("Reconnecting with authorizor...\n");
468 { 467 {
1032 1031
1033 sprintf(debug_buff, "ratechange: %lu\n", newrate); 1032 sprintf(debug_buff, "ratechange: %lu\n", newrate);
1034 debug_print(debug_buff); 1033 debug_print(debug_buff);
1035 1034
1036 return 1; 1035 return 1;
1037 }; 1036 }
1038 1037
1039 int gaim_parse_evilnotify(struct aim_session_t *sess, struct command_rx_struct *command, ...) { 1038 int gaim_parse_evilnotify(struct aim_session_t *sess, struct command_rx_struct *command, ...) {
1040 va_list ap; 1039 va_list ap;
1041 char *sn; 1040 char *sn;
1042 1041