comparison src/protocols/yahoo/yahoo.c @ 6059:d8cd876e613e

[gaim-migrate @ 6509] I made a lot of server.c functions use const chat * instead of const * Made the alias entry have focus in the alias buddy dialog. Fixed a typo thanks to J. Silvestri committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Tue, 08 Jul 2003 03:36:41 +0000
parents 8642749e55ca
children c28dea25983c
comparison
equal deleted inserted replaced
6058:d5f4ae4f9a02 6059:d8cd876e613e
1212 yahoo_packet_free(pkt); 1212 yahoo_packet_free(pkt);
1213 1213
1214 return 1; 1214 return 1;
1215 } 1215 }
1216 1216
1217 int yahoo_send_typing(GaimConnection *gc, char *who, int typ) 1217 int yahoo_send_typing(GaimConnection *gc, const char *who, int typ)
1218 { 1218 {
1219 struct yahoo_data *yd = gc->proto_data; 1219 struct yahoo_data *yd = gc->proto_data;
1220 struct yahoo_packet *pkt = yahoo_packet_new(YAHOO_SERVICE_NOTIFY, YAHOO_STATUS_TYPING, 0); 1220 struct yahoo_packet *pkt = yahoo_packet_new(YAHOO_SERVICE_NOTIFY, YAHOO_STATUS_TYPING, 0);
1221 yahoo_packet_hash(pkt, 49, "TYPING"); 1221 yahoo_packet_hash(pkt, 49, "TYPING");
1222 yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc)); 1222 yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc));
1230 yahoo_packet_free(pkt); 1230 yahoo_packet_free(pkt);
1231 1231
1232 return 0; 1232 return 0;
1233 } 1233 }
1234 1234
1235 static void yahoo_set_away(GaimConnection *gc, char *state, char *msg) 1235 static void yahoo_set_away(GaimConnection *gc, const char *state, const char *msg)
1236 { 1236 {
1237 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; 1237 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data;
1238 struct yahoo_packet *pkt; 1238 struct yahoo_packet *pkt;
1239 int service; 1239 int service;
1240 char s[4]; 1240 char s[4];
1374 yahoo_packet_hash(pkt, 65, group); 1374 yahoo_packet_hash(pkt, 65, group);
1375 yahoo_send_packet(yd, pkt); 1375 yahoo_send_packet(yd, pkt);
1376 yahoo_packet_free(pkt); 1376 yahoo_packet_free(pkt);
1377 } 1377 }
1378 1378
1379 static void yahoo_remove_buddy(GaimConnection *gc, char *who, char *group) 1379 static void yahoo_remove_buddy(GaimConnection *gc, const char *who, const char *group)
1380 { 1380 {
1381 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; 1381 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data;
1382 1382
1383 struct yahoo_packet *pkt = yahoo_packet_new(YAHOO_SERVICE_REMBUDDY, YAHOO_STATUS_AVAILABLE, 0); 1383 struct yahoo_packet *pkt = yahoo_packet_new(YAHOO_SERVICE_REMBUDDY, YAHOO_STATUS_AVAILABLE, 0);
1384 yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc)); 1384 yahoo_packet_hash(pkt, 1, gaim_connection_get_display_name(gc));