cpw.masca.p2p: 33ca865d: Add Peer Info TLV struct and values.
masca at cpw.pidgin.im
masca at cpw.pidgin.im
Tue Jan 4 01:50:52 EST 2011
----------------------------------------------------------------------
Revision: 33ca865dacb9e5bcf763d06f6a42cbaca337cc64
Parent: 96eaf1261ab12a5f9098848a186c50dea3d712ee
Author: masca at cpw.pidgin.im
Date: 01/04/11 00:05:06
Branch: im.pidgin.cpw.masca.p2p
URL: http://d.pidgin.im/viewmtn/revision/info/33ca865dacb9e5bcf763d06f6a42cbaca337cc64
Changelog:
Add Peer Info TLV struct and values.
Changes against parent 96eaf1261ab12a5f9098848a186c50dea3d712ee
patched libpurple/protocols/msn/p2p.h
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/p2p.h 9073ff79960e8fce0113cb6a2829d96bc5b02678
+++ libpurple/protocols/msn/p2p.h 51af0af860f74a8648b556062276484f3e15c451
@@ -66,6 +66,14 @@ typedef struct {
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 @@ typedef enum
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
More information about the Commits
mailing list