comparison src/protocols/yahoo/yahoo_packet.h @ 10394:45a0a07e8b25

[gaim-migrate @ 11623] Renamed yahoo_packet_hash to yahoo_packet_hash_str, added yahoo_packet_hash_int, and a new variable arg yahoo_packet_hash that calls either of them. I was going to add some more format chars to yahoo_packet_hash, and may yet. Stuff like automaticly converting strings' character sets or html to yahoo codes, etc. But first I want to look at how yahoo 6 handles character sets and see if it's any different. Feel free to give opinions on if these changes are actually better, assuming you actually look at them, as opposed to running away like a girly man when you see yahoo protocol code. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Fri, 17 Dec 2004 00:05:32 +0000
parents a8f9e5ce4f92
children b4919e8c634c
comparison
equal deleted inserted replaced
10393:a7a2c27248af 10394:45a0a07e8b25
117 #define YAHOO_PACKET_HDRLEN (4 + 2 + 2 + 2 + 2 + 4 + 4) 117 #define YAHOO_PACKET_HDRLEN (4 + 2 + 2 + 2 + 2 + 4 + 4)
118 118
119 119
120 struct yahoo_packet *yahoo_packet_new(enum yahoo_service service, 120 struct yahoo_packet *yahoo_packet_new(enum yahoo_service service,
121 enum yahoo_status status, int id); 121 enum yahoo_status status, int id);
122 void yahoo_packet_hash(struct yahoo_packet *pkt, int key, const char *value); 122 void yahoo_packet_hash(struct yahoo_packet *pkt, const char *fmt, ...);
123 void yahoo_packet_hash_str(struct yahoo_packet *pkt, int key, const char *value);
124 void yahoo_packet_hash_int(struct yahoo_packet *pkt, int key, int value);
123 int yahoo_packet_send(struct yahoo_packet *pkt, struct yahoo_data *yd); 125 int yahoo_packet_send(struct yahoo_packet *pkt, struct yahoo_data *yd);
124 int yahoo_packet_send_and_free(struct yahoo_packet *pkt, struct yahoo_data *yd); 126 int yahoo_packet_send_and_free(struct yahoo_packet *pkt, struct yahoo_data *yd);
125 int yahoo_packet_send_special(struct yahoo_packet *pkt, int fd, int pad); 127 int yahoo_packet_send_special(struct yahoo_packet *pkt, int fd, int pad);
126 void yahoo_packet_read(struct yahoo_packet *pkt, guchar *data, int len); 128 void yahoo_packet_read(struct yahoo_packet *pkt, guchar *data, int len);
127 void yahoo_packet_write(struct yahoo_packet *pkt, guchar *data); 129 void yahoo_packet_write(struct yahoo_packet *pkt, guchar *data);