Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/p2p.h @ 31771:b8e076d51817
Add P2Pv2 parsing and saving functions. Tested by compiling them!
They aren't enabled yet, so we should still be doing v1 right now.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 10 Mar 2011 06:29:00 +0000 |
parents | 8cf9270acf4c |
children | ce968e115c95 |
comparison
equal
deleted
inserted
replaced
31770:40eb10487f87 | 31771:b8e076d51817 |
---|---|
48 typedef struct { | 48 typedef struct { |
49 guint8 header_len; | 49 guint8 header_len; |
50 guint8 opcode; | 50 guint8 opcode; |
51 guint16 message_len; | 51 guint16 message_len; |
52 guint32 base_id; | 52 guint32 base_id; |
53 GSList *header_tlv; | |
54 guint8 data_header_len; | |
55 guint8 data_tf; | |
56 guint16 package_number; | |
57 guint32 session_id; | |
58 GSList *data_tlv; | |
59 /* guint8 body[1]; */ | |
53 } MsnP2Pv2Header; | 60 } MsnP2Pv2Header; |
54 | 61 |
55 typedef struct | 62 typedef struct |
56 { | 63 { |
57 guint32 value; | 64 guint32 value; |
101 P2P_APPID_FILE = 0x2, /**< File transfer */ | 108 P2P_APPID_FILE = 0x2, /**< File transfer */ |
102 P2P_APPID_EMOTE = 0xB, /**< CustomEmoticon */ | 109 P2P_APPID_EMOTE = 0xB, /**< CustomEmoticon */ |
103 P2P_APPID_DISPLAY = 0xC /**< Display Image */ | 110 P2P_APPID_DISPLAY = 0xC /**< Display Image */ |
104 } MsnP2PAppId; | 111 } MsnP2PAppId; |
105 | 112 |
113 typedef enum | |
114 { | |
115 P2P_OPCODE_NONE = 0x00, | |
116 P2P_OPCODE_SYN = 0x01, | |
117 P2P_OPCODE_RAK = 0x02 | |
118 } MsnP2Pv2OpCode; | |
119 | |
106 MsnP2PInfo * | 120 MsnP2PInfo * |
107 msn_p2p_info_new(MsnP2PVersion version); | 121 msn_p2p_info_new(MsnP2PVersion version); |
108 | 122 |
109 MsnP2PInfo * | 123 MsnP2PInfo * |
110 msn_p2p_info_dup(MsnP2PInfo *info); | 124 msn_p2p_info_dup(MsnP2PInfo *info); |