Mercurial > pidgin.yaz
diff libpurple/protocols/msn/tlv.h @ 32018:c714ccbcdf00
Add a function to add/replace a TLV to a list.
author | Elliott Sales de Andrade <qulogic@pidgin.im> |
---|---|
date | Sat, 07 May 2011 07:28:05 +0000 |
parents | bd59044a9100 |
children |
line wrap: on
line diff
--- a/libpurple/protocols/msn/tlv.h Sat May 07 07:22:03 2011 +0000 +++ b/libpurple/protocols/msn/tlv.h Sat May 07 07:28:05 2011 +0000 @@ -61,6 +61,7 @@ int msn_tlvlist_add_16(GSList **list, const guint8 type, const guint16 value); int msn_tlvlist_add_32(GSList **list, const guint8 type, const guint32 value); int msn_tlvlist_add_str(GSList **list, const guint8 type, const char *value); +int msn_tlvlist_add_tlv(GSList **list, const msn_tlv_t *tlv); int msn_tlvlist_replace_raw(GSList **list, const guint8 type, const guint8 lenth, const char *value); int msn_tlvlist_replace_str(GSList **list, const guint8 type, const char *str); @@ -68,6 +69,7 @@ int msn_tlvlist_replace_8(GSList **list, const guint8 type, const guint8 value); int msn_tlvlist_replace_16(GSList **list, const guint8 type, const guint16 value); int msn_tlvlist_replace_32(GSList **list, const guint8 type, const guint32 value); +int msn_tlvlist_replace_tlv(GSList **list, const msn_tlv_t *tlv); void msn_tlvlist_remove(GSList **list, const guint8 type);