# HG changeset patch # User masca@cpw.pidgin.im # Date 1294117506 0 # Node ID f021d93a1f9b3d0d3e8d6c5cab34d68cde39daf3 # Parent b2c25156081c9d2e38dbba85ff2ccce9102f9e86 Add Peer Info TLV struct and values. diff -r b2c25156081c -r f021d93a1f9b libpurple/protocols/msn/p2p.h --- a/libpurple/protocols/msn/p2p.h Tue Jan 04 04:51:48 2011 +0000 +++ b/libpurple/protocols/msn/p2p.h Tue Jan 04 05:05:06 2011 +0000 @@ -66,6 +66,14 @@ char *data; } MsnP2Pv2DataHeader; +typedef struct { + guint16 protocol_version; + guint16 implementation_id; + guint16 version; + guint16 reserved; + guint32 caps; +} PeerInfo; + typedef enum { OP_NONE = 0x00, /**< None, Nothing required. */ @@ -94,6 +102,16 @@ TLP_LEN_NAK = 4 } TLPLength; +typedef enum +{ + PI_PVER = 0x0200, + PI_IMP_ID = 0, + PI_VER = 0x0e00, + PI_RES = 0, + PI_CAPS = 0x0000010f +} PeerInfoVal; + + #define DLP_REMAINING 0x01; /**< Indicates the remaining data to transfer.*/ #define DLP_REMAINING_LEN 8