Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/p2p.c @ 31220:3ccddae82532
Add P2PFooter helper functions.
author | masca@cpw.pidgin.im |
---|---|
date | Tue, 08 Jun 2010 21:08:13 +0000 |
parents | 198d5bf82e09 |
children | 5964f65c17ed |
comparison
equal
deleted
inserted
replaced
31219:74e372b31486 | 31220:3ccddae82532 |
---|---|
41 | 41 |
42 return wire; | 42 return wire; |
43 | 43 |
44 } | 44 } |
45 | 45 |
46 MsnP2PFooter * | |
47 msn_p2p_footer_from_wire(MsnP2PFooter *wire) | |
48 { | |
49 MsnP2PFooter *footer; | |
50 | |
51 footer = g_new(MsnP2PFooter, 1); | |
52 | |
53 footer->value = GUINT32_FROM_BE(wire->value); | |
54 | |
55 return footer; | |
56 } | |
57 | |
58 MsnP2PFooter * | |
59 msn_p2p_footer_to_wire(MsnP2PFooter *footer) | |
60 { | |
61 MsnP2PFooter *wire; | |
62 | |
63 wire = g_new(MsnP2PFooter, 1); | |
64 | |
65 wire->value = GUINT32_TO_BE(footer->value); | |
66 | |
67 return wire; | |
68 } | |
69 |