summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge VillaseƱor <masca@cpw.pidgin.im>2011-01-04 05:05:06 +0000
committerJorge VillaseƱor <masca@cpw.pidgin.im>2011-01-04 05:05:06 +0000
commit34bc36c1a946d1e1efb5460d49c751eb1f163245 (patch)
tree423fe09519a73cb6eb75cbd85ee0e6b4ea73e93d
parente295e9ee8f4eca6a5b896483b767e9980c3a2ee3 (diff)
downloadpidgin-cpw.masca.p2p.tar.gz
Add Peer Info TLV struct and values.cpw.masca.p2p
-rw-r--r--libpurple/protocols/msn/p2p.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/libpurple/protocols/msn/p2p.h b/libpurple/protocols/msn/p2p.h
index c0747b5766..1313ed8d84 100644
--- a/libpurple/protocols/msn/p2p.h
+++ b/libpurple/protocols/msn/p2p.h
@@ -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