Mercurial > pidgin.yaz
diff 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 |
line wrap: on
line diff
--- a/src/protocols/yahoo/yahoo_packet.h Thu Dec 16 21:57:58 2004 +0000 +++ b/src/protocols/yahoo/yahoo_packet.h Fri Dec 17 00:05:32 2004 +0000 @@ -119,7 +119,9 @@ struct yahoo_packet *yahoo_packet_new(enum yahoo_service service, enum yahoo_status status, int id); -void yahoo_packet_hash(struct yahoo_packet *pkt, int key, const char *value); +void yahoo_packet_hash(struct yahoo_packet *pkt, const char *fmt, ...); +void yahoo_packet_hash_str(struct yahoo_packet *pkt, int key, const char *value); +void yahoo_packet_hash_int(struct yahoo_packet *pkt, int key, int value); int yahoo_packet_send(struct yahoo_packet *pkt, struct yahoo_data *yd); int yahoo_packet_send_and_free(struct yahoo_packet *pkt, struct yahoo_data *yd); int yahoo_packet_send_special(struct yahoo_packet *pkt, int fd, int pad);