Mercurial > pidgin.yaz
comparison libpurple/protocols/msn/tlv.h @ 31771:b8e076d51817
Add P2Pv2 parsing and saving functions. Tested by compiling them!
They aren't enabled yet, so we should still be doing v1 right now.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Thu, 10 Mar 2011 06:29:00 +0000 |
parents | a6d2d7de8a08 |
children | 506b77a27a53 |
comparison
equal
deleted
inserted
replaced
31770:40eb10487f87 | 31771:b8e076d51817 |
---|---|
44 guint8 msn_tlv_get8(GSList *list, const guint16 type, const int nth); | 44 guint8 msn_tlv_get8(GSList *list, const guint16 type, const int nth); |
45 guint16 msn_tlv_get16(GSList *list, const guint16 type, const int nth); | 45 guint16 msn_tlv_get16(GSList *list, const guint16 type, const int nth); |
46 guint32 msn_tlv_get32(GSList *list, const guint16 type, const int nth); | 46 guint32 msn_tlv_get32(GSList *list, const guint16 type, const int nth); |
47 | 47 |
48 /* TLV list handling functions */ | 48 /* TLV list handling functions */ |
49 GSList *msn_tlvlist_read(char *bs, size_t bs_len); | 49 GSList *msn_tlvlist_read(const char *bs, size_t bs_len); |
50 GSList *msn_tlvlist_copy(GSList *orig); | 50 GSList *msn_tlvlist_copy(GSList *orig); |
51 | 51 |
52 int msn_tlvlist_count(GSList *list); | 52 int msn_tlvlist_count(GSList *list); |
53 size_t msn_tlvlist_size(GSList *list); | 53 size_t msn_tlvlist_size(GSList *list); |
54 gboolean msn_tlvlist_equal(GSList *one, GSList *two); | 54 gboolean msn_tlvlist_equal(GSList *one, GSList *two); |
55 int msn_tlvlist_write(char *bs, size_t bs_len, GSList **list); | 55 int msn_tlvlist_write(char *bs, size_t bs_len, GSList *list); |
56 void msn_tlvlist_free(GSList *list); | 56 void msn_tlvlist_free(GSList *list); |
57 | 57 |
58 int msn_tlvlist_add_raw(GSList **list, const guint16 type, const guint16 length, const char *value); | 58 int msn_tlvlist_add_raw(GSList **list, const guint16 type, const guint16 length, const char *value); |
59 int msn_tlvlist_add_empty(GSList **list, const guint16 type); | 59 int msn_tlvlist_add_empty(GSList **list, const guint16 type); |
60 int msn_tlvlist_add_8(GSList **list, const guint16 type, const guint8 value); | 60 int msn_tlvlist_add_8(GSList **list, const guint16 type, const guint8 value); |