Mercurial > pidgin
comparison libpurple/protocols/msn/p2p.h @ 31268:9562a7baa9e4
Add P2Pv2 header information to the P2P info struct. Of course, all
the v2 stuff does nothing right now.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Mon, 28 Feb 2011 00:19:29 +0000 |
parents | 34da321b60f1 |
children | 8cf9270acf4c |
comparison
equal
deleted
inserted
replaced
31267:cdbca568eaf3 | 31268:9562a7baa9e4 |
---|---|
56 { | 56 { |
57 guint32 value; | 57 guint32 value; |
58 } MsnP2PFooter; | 58 } MsnP2PFooter; |
59 #define P2P_PACKET_FOOTER_SIZE (1 * 4) | 59 #define P2P_PACKET_FOOTER_SIZE (1 * 4) |
60 | 60 |
61 typedef enum | |
62 { | |
63 MSN_P2P_VERSION_ONE = 0, | |
64 MSN_P2P_VERSION_TWO = 1, | |
65 } MsnP2PVersion; | |
66 | |
61 typedef struct { | 67 typedef struct { |
62 MsnP2PHeader header; | 68 MsnP2PVersion version; |
69 union { | |
70 MsnP2PHeader v1; | |
71 MsnP2Pv2Header v2; | |
72 } header; | |
63 MsnP2PFooter footer; | 73 MsnP2PFooter footer; |
64 } MsnP2PInfo; | 74 } MsnP2PInfo; |
65 | 75 |
66 typedef enum | 76 typedef enum |
67 { | 77 { |
92 P2P_APPID_EMOTE = 0xB, /**< CustomEmoticon */ | 102 P2P_APPID_EMOTE = 0xB, /**< CustomEmoticon */ |
93 P2P_APPID_DISPLAY = 0xC /**< Display Image */ | 103 P2P_APPID_DISPLAY = 0xC /**< Display Image */ |
94 } MsnP2PAppId; | 104 } MsnP2PAppId; |
95 | 105 |
96 MsnP2PInfo * | 106 MsnP2PInfo * |
97 msn_p2p_info_new(void); | 107 msn_p2p_info_new(MsnP2PVersion version); |
98 | 108 |
99 MsnP2PInfo * | 109 MsnP2PInfo * |
100 msn_p2p_info_dup(MsnP2PInfo *info); | 110 msn_p2p_info_dup(MsnP2PInfo *info); |
101 | 111 |
102 void | 112 void |