comparison src/protocols/qq/packet_parse.h @ 14021:ef8490f9e823

[gaim-migrate @ 16618] Replaced all C++-style comments with C-style ones. Cleaned up some comments and implemented a more consistent formatting scheme. committer: Tailor Script <tailor@pidgin.im>
author Mark Huetsch <markhuetsch>
date Wed, 02 Aug 2006 15:35:36 +0000
parents 983fd420e86b
children
comparison
equal deleted inserted replaced
14020:13e7ba964993 14021:ef8490f9e823
18 * You should have received a copy of the GNU General Public License 18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software 19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */ 21 */
22 22
23 // START OF FILE
24 /*****************************************************************************/
25 #ifndef _QQ_PACKET_PARSE_H_ 23 #ifndef _QQ_PACKET_PARSE_H_
26 #define _QQ_PACKED_PARSE_H_ 24 #define _QQ_PACKED_PARSE_H_
27 25
28 #include <glib.h> 26 #include <glib.h>
29 27
34 * 32 *
35 * TCP allows packet 64K 33 * TCP allows packet 64K
36 */ 34 */
37 #define MAX_PACKET_SIZE 65535 35 #define MAX_PACKET_SIZE 65535
38 36
39 gint read_packet_b(guint8 * buf, guint8 ** cursor, gint buflen, guint8 * b); 37 gint read_packet_b(guint8 *buf, guint8 **cursor, gint buflen, guint8 *b);
40 gint read_packet_w(guint8 * buf, guint8 ** cursor, gint buflen, guint16 * w); 38 gint read_packet_w(guint8 *buf, guint8 **cursor, gint buflen, guint16 *w);
41 gint read_packet_dw(guint8 * buf, guint8 ** cursor, gint buflen, guint32 * dw); 39 gint read_packet_dw(guint8 *buf, guint8 **cursor, gint buflen, guint32 *dw);
42 gint read_packet_data(guint8 * buf, guint8 ** cursor, gint buflen, guint8 * data, gint datalen); 40 gint read_packet_data(guint8 *buf, guint8 **cursor, gint buflen, guint8 *data, gint datalen);
43 gint create_packet_b(guint8 * buf, guint8 ** cursor, guint8 b); 41 gint create_packet_b(guint8 *buf, guint8 **cursor, guint8 b);
44 gint create_packet_w(guint8 * buf, guint8 ** cursor, guint16 w); 42 gint create_packet_w(guint8 *buf, guint8 **cursor, guint16 w);
45 gint create_packet_dw(guint8 * buf, guint8 ** cursor, guint32 dw); 43 gint create_packet_dw(guint8 *buf, guint8 **cursor, guint32 dw);
46 gint create_packet_data(guint8 * buf, guint8 ** cursor, guint8 * data, gint datalen); 44 gint create_packet_data(guint8 *buf, guint8 **cursor, guint8 *data, gint datalen);
47 45
48 #endif 46 #endif
49 /*****************************************************************************/
50 // END OF FILE