Mercurial > pidgin
comparison libgaim/protocols/yahoo/yahoo_packet.h @ 14446:1bee09450652
[gaim-migrate @ 17160]
This patch was mentioned by Mark on gaim-devel; Tim replied, "That sounds good. As long as they're both #define's I can easily change." which they are :)
Yahoo! Japan appears to not support - or at least not support in its current iteration -- the new Yahoo protocol version (0x000f), disconnecting us immediately if we send it. When connecting to Yahoo Japan, we now send the old version, (0x000c).
committer: Tailor Script <tailor@pidgin.im>
author | Evan Schoenberg <evan.s@dreskin.net> |
---|---|
date | Mon, 04 Sep 2006 21:58:49 +0000 |
parents | cb2714fdf274 |
children | 61c3edbaf048 |
comparison
equal
deleted
inserted
replaced
14445:b1a6effcb37a | 14446:1bee09450652 |
---|---|
115 GSList *hash; | 115 GSList *hash; |
116 }; | 116 }; |
117 | 117 |
118 #define YAHOO_WEBMESSENGER_PROTO_VER 0x0065 | 118 #define YAHOO_WEBMESSENGER_PROTO_VER 0x0065 |
119 #define YAHOO_PROTO_VER 0x000f | 119 #define YAHOO_PROTO_VER 0x000f |
120 #define YAHOO_PROTO_VER_JAPAN 0x000c | |
120 | 121 |
121 #define YAHOO_PACKET_HDRLEN (4 + 2 + 2 + 2 + 2 + 4 + 4) | 122 #define YAHOO_PACKET_HDRLEN (4 + 2 + 2 + 2 + 2 + 4 + 4) |
122 | 123 |
123 struct yahoo_packet *yahoo_packet_new(enum yahoo_service service, | 124 struct yahoo_packet *yahoo_packet_new(enum yahoo_service service, |
124 enum yahoo_status status, int id); | 125 enum yahoo_status status, int id); |
125 void yahoo_packet_hash(struct yahoo_packet *pkt, const char *fmt, ...); | 126 void yahoo_packet_hash(struct yahoo_packet *pkt, const char *fmt, ...); |
126 void yahoo_packet_hash_str(struct yahoo_packet *pkt, int key, const char *value); | 127 void yahoo_packet_hash_str(struct yahoo_packet *pkt, int key, const char *value); |
127 void yahoo_packet_hash_int(struct yahoo_packet *pkt, int key, int value); | 128 void yahoo_packet_hash_int(struct yahoo_packet *pkt, int key, int value); |
128 int yahoo_packet_send(struct yahoo_packet *pkt, struct yahoo_data *yd); | 129 int yahoo_packet_send(struct yahoo_packet *pkt, struct yahoo_data *yd); |
129 int yahoo_packet_send_and_free(struct yahoo_packet *pkt, struct yahoo_data *yd); | 130 int yahoo_packet_send_and_free(struct yahoo_packet *pkt, struct yahoo_data *yd); |
130 size_t yahoo_packet_build(struct yahoo_packet *pkt, int pad, gboolean wm, | 131 size_t yahoo_packet_build(struct yahoo_packet *pkt, int pad, gboolean wm, gboolean jp, |
131 guchar **buf); | 132 guchar **buf); |
132 void yahoo_packet_read(struct yahoo_packet *pkt, const guchar *data, int len); | 133 void yahoo_packet_read(struct yahoo_packet *pkt, const guchar *data, int len); |
133 void yahoo_packet_write(struct yahoo_packet *pkt, guchar *data); | 134 void yahoo_packet_write(struct yahoo_packet *pkt, guchar *data); |
134 void yahoo_packet_dump(guchar *data, int len); | 135 void yahoo_packet_dump(guchar *data, int len); |
135 size_t yahoo_packet_length(struct yahoo_packet *pkt); | 136 size_t yahoo_packet_length(struct yahoo_packet *pkt); |