Mercurial > pidgin.yaz
diff libpurple/protocols/qq/packet_parse.h @ 23050:9a5d140400f1
patch-02-fix-multiarch
author | SHiNE CsyFeK <csyfek@gmail.com> |
---|---|
date | Tue, 24 Jun 2008 11:58:57 +0000 |
parents | c956aff707eb |
children | 51dbe83ebbd3 |
line wrap: on
line diff
--- a/libpurple/protocols/qq/packet_parse.h Sat Jun 21 16:34:02 2008 +0000 +++ b/libpurple/protocols/qq/packet_parse.h Tue Jun 24 11:58:57 2008 +0000 @@ -37,14 +37,26 @@ */ #define MAX_PACKET_SIZE 65535 -gint read_packet_b(guint8 *buf, guint8 **cursor, gint buflen, guint8 *b); -gint read_packet_w(guint8 *buf, guint8 **cursor, gint buflen, guint16 *w); -gint read_packet_dw(guint8 *buf, guint8 **cursor, gint buflen, guint32 *dw); -gint read_packet_time(guint8 *buf, guint8 **cursor, gint buflen, time_t *t); -gint read_packet_data(guint8 *buf, guint8 **cursor, gint buflen, guint8 *data, gint datalen); -gint create_packet_b(guint8 *buf, guint8 **cursor, guint8 b); -gint create_packet_w(guint8 *buf, guint8 **cursor, guint16 w); -gint create_packet_dw(guint8 *buf, guint8 **cursor, guint32 dw); -gint create_packet_data(guint8 *buf, guint8 **cursor, guint8 *data, gint datalen); +gint qq_get8(guint8 *b, guint8 *buf); +gint qq_get16(guint16 *w, guint8 *buf); +gint qq_get32(guint32 *dw, guint8 *buf); +gint qq_getime(time_t *t, guint8 *buf); +gint qq_getdata(guint8 *data, gint datalen, guint8 *buf); + +gint qq_put8(guint8 *buf, guint8 b); +gint qq_put16(guint8 *buf, guint16 w); +gint qq_put32(guint8 *buf, guint32 dw); +gint qq_putdata(guint8 *buf, guint8 *data, const int datalen); + +//gint read_packet_b(guint8 *buf, guint8 **cursor, gint buflen, guint8 *b); +//gint read_packet_w(guint8 *buf, guint8 **cursor, gint buflen, guint16 *w); +//gint read_packet_dw(guint8 *buf, guint8 **cursor, gint buflen, guint32 *dw); +//gint read_packet_time(guint8 *buf, guint8 **cursor, gint buflen, time_t *t); +//gint read_packet_data(guint8 *buf, guint8 **cursor, gint buflen, guint8 *data, gint datalen); + +//gint create_packet_b(guint8 *buf, guint8 **cursor, guint8 b); +//gint create_packet_w(guint8 *buf, guint8 **cursor, guint16 w); +//gint create_packet_dw(guint8 *buf, guint8 **cursor, guint32 dw); +//gint create_packet_data(guint8 *buf, guint8 **cursor, guint8 *data, gint datalen); #endif