Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/libpurple/protocols/msn/p2p.h Mon Feb 28 00:12:20 2011 +0000 +++ b/libpurple/protocols/msn/p2p.h Mon Feb 28 00:19:29 2011 +0000 @@ -58,8 +58,18 @@ } MsnP2PFooter; #define P2P_PACKET_FOOTER_SIZE (1 * 4) +typedef enum +{ + MSN_P2P_VERSION_ONE = 0, + MSN_P2P_VERSION_TWO = 1, +} MsnP2PVersion; + typedef struct { - MsnP2PHeader header; + MsnP2PVersion version; + union { + MsnP2PHeader v1; + MsnP2Pv2Header v2; + } header; MsnP2PFooter footer; } MsnP2PInfo; @@ -94,7 +104,7 @@ } MsnP2PAppId; MsnP2PInfo * -msn_p2p_info_new(void); +msn_p2p_info_new(MsnP2PVersion version); MsnP2PInfo * msn_p2p_info_dup(MsnP2PInfo *info);