changeset 31557:f021d93a1f9b

Add Peer Info TLV struct and values.
author masca@cpw.pidgin.im
date Tue, 04 Jan 2011 05:05:06 +0000
parents b2c25156081c
children ce968e115c95
files libpurple/protocols/msn/p2p.h
diffstat 1 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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