libpurple/protocols/qq/file_trans.h

branch
openq
changeset 31393
04447b1f6403
parent 19859
71d37b57eff2
equal deleted inserted replaced
31392:93902a4213b6 31393:04447b1f6403
24 24
25 #ifndef _QQ_QQ_FILE_TRANS_H_ 25 #ifndef _QQ_QQ_FILE_TRANS_H_
26 #define _QQ_QQ_FILE_TRANS_H_ 26 #define _QQ_QQ_FILE_TRANS_H_
27 27
28 #include "server.h" 28 #include "server.h"
29 #include "qq.h"
29 30
30 enum { 31 enum {
31 QQ_FILE_CMD_SENDER_SAY_HELLO = 0x31, 32 QQ_FILE_CMD_SENDER_SAY_HELLO = 0x31,
32 QQ_FILE_CMD_SENDER_SAY_HELLO_ACK = 0x32, 33 QQ_FILE_CMD_SENDER_SAY_HELLO_ACK = 0x32,
33 QQ_FILE_CMD_RECEIVER_SAY_HELLO = 0x33, 34 QQ_FILE_CMD_RECEIVER_SAY_HELLO = 0x33,
57 /* #define QQ_PACKET_TAG 0x02 */ /* all QQ text packets starts with it */ 58 /* #define QQ_PACKET_TAG 0x02 */ /* all QQ text packets starts with it */
58 #define QQ_FILE_DATA_PACKET_TAG 0x03 59 #define QQ_FILE_DATA_PACKET_TAG 0x03
59 #define QQ_FILE_AGENT_PACKET_TAG 0x04 60 #define QQ_FILE_AGENT_PACKET_TAG 0x04
60 /* #define QQ_PACKET_TAIL 0x03 */ /* all QQ text packets end with it */ 61 /* #define QQ_PACKET_TAIL 0x03 */ /* all QQ text packets end with it */
61 62
62 void qq_send_file_ctl_packet(PurpleConnection *gc, guint16 packet_type, guint32 to_uid, guint8 hellobyte); 63 void qq_send_file_ctl_packet(PurpleConnection *gc, guint16 packet_type, UID to_uid, guint8 hellobyte);
63 void qq_process_recv_file(PurpleConnection *gc, guint8 *data, gint len); 64 void qq_process_recv_file(PurpleConnection *gc, guint8 *data, gint len);
64 /* void qq_send_file_data_packet(PurpleConnection *gc, guint16 packet_type, guint8 sub_type, guint32 fragment_index, guint16 seq, guint8 *data, gint len); */ 65 /* void qq_send_file_data_packet(PurpleConnection *gc, guint16 packet_type, guint8 sub_type, guint32 fragment_index, guint16 seq, guint8 *data, gint len); */
65 void qq_xfer_close_file(PurpleXfer *xfer); 66 void qq_xfer_close_file(PurpleXfer *xfer);
66 #endif 67 #endif

mercurial