soc.2010.msn-tlc: 1914b79c: Add P2PFooter helper functions.

masca at cpw.pidgin.im masca at cpw.pidgin.im
Tue Jun 8 18:25:41 EDT 2010


-----------------------------------------------------------------
Revision: 1914b79c4fd991f47bd28881bf51f40fa3885727
Ancestor: 43b3034bb9b038e1fcdd89ca9a8eb428ff33cadb
Author: masca at cpw.pidgin.im
Date: 2010-06-08T21:08:13
Branch: im.pidgin.soc.2010.msn-tlc
URL: http://d.pidgin.im/viewmtn/revision/info/1914b79c4fd991f47bd28881bf51f40fa3885727

Modified files:
        libpurple/protocols/msn/p2p.c libpurple/protocols/msn/p2p.h

ChangeLog: 

Add P2PFooter helper functions.

-------------- next part --------------
============================================================
--- libpurple/protocols/msn/p2p.c	7f02940362f6f50e19e6a58661a1300ac2d940c9
+++ libpurple/protocols/msn/p2p.c	f2aeb70f2342054a2655a620d9f3f4e7cd967f0a
@@ -43,3 +43,27 @@ msn_p2p_header_to_wire(MsnP2PHeader *hea
 
 }
 
+MsnP2PFooter *
+msn_p2p_footer_from_wire(MsnP2PFooter *wire)
+{
+	MsnP2PFooter *footer;
+
+	footer = g_new(MsnP2PFooter, 1);
+
+	footer->value = GUINT32_FROM_BE(wire->value);
+
+	return footer;
+}
+
+MsnP2PFooter *
+msn_p2p_footer_to_wire(MsnP2PFooter *footer)
+{
+	MsnP2PFooter *wire;
+
+	wire = g_new(MsnP2PFooter, 1);
+
+	wire->value = GUINT32_TO_BE(footer->value);
+
+	return wire;
+}
+
============================================================
--- libpurple/protocols/msn/p2p.h	1ce371e06f8263949aac41bea8e88a8698541103
+++ libpurple/protocols/msn/p2p.h	29d576e7dd3da553521a05ef018d9300e2d870ef
@@ -47,4 +47,10 @@ msn_p2p_header_to_wire(MsnP2PHeader *hea
 MsnP2PHeader *
 msn_p2p_header_to_wire(MsnP2PHeader *header);
 
+MsnP2PFooter *
+msn_p2p_footer_from_wire(MsnP2PFooter *wire);
+
+MsnP2PFooter *
+msn_p2p_footer_to_wire(MsnP2PFooter *footer);
+
 #endif /* MSN_P2P_H */


More information about the Commits mailing list