comparison 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
comparison
equal deleted inserted replaced
32017:23f2c4dfc93d 32018:c714ccbcdf00
59 int msn_tlvlist_add_empty(GSList **list, const guint8 type); 59 int msn_tlvlist_add_empty(GSList **list, const guint8 type);
60 int msn_tlvlist_add_8(GSList **list, const guint8 type, const guint8 value); 60 int msn_tlvlist_add_8(GSList **list, const guint8 type, const guint8 value);
61 int msn_tlvlist_add_16(GSList **list, const guint8 type, const guint16 value); 61 int msn_tlvlist_add_16(GSList **list, const guint8 type, const guint16 value);
62 int msn_tlvlist_add_32(GSList **list, const guint8 type, const guint32 value); 62 int msn_tlvlist_add_32(GSList **list, const guint8 type, const guint32 value);
63 int msn_tlvlist_add_str(GSList **list, const guint8 type, const char *value); 63 int msn_tlvlist_add_str(GSList **list, const guint8 type, const char *value);
64 int msn_tlvlist_add_tlv(GSList **list, const msn_tlv_t *tlv);
64 65
65 int msn_tlvlist_replace_raw(GSList **list, const guint8 type, const guint8 lenth, const char *value); 66 int msn_tlvlist_replace_raw(GSList **list, const guint8 type, const guint8 lenth, const char *value);
66 int msn_tlvlist_replace_str(GSList **list, const guint8 type, const char *str); 67 int msn_tlvlist_replace_str(GSList **list, const guint8 type, const char *str);
67 int msn_tlvlist_replace_empty(GSList **list, const guint8 type); 68 int msn_tlvlist_replace_empty(GSList **list, const guint8 type);
68 int msn_tlvlist_replace_8(GSList **list, const guint8 type, const guint8 value); 69 int msn_tlvlist_replace_8(GSList **list, const guint8 type, const guint8 value);
69 int msn_tlvlist_replace_16(GSList **list, const guint8 type, const guint16 value); 70 int msn_tlvlist_replace_16(GSList **list, const guint8 type, const guint16 value);
70 int msn_tlvlist_replace_32(GSList **list, const guint8 type, const guint32 value); 71 int msn_tlvlist_replace_32(GSList **list, const guint8 type, const guint32 value);
72 int msn_tlvlist_replace_tlv(GSList **list, const msn_tlv_t *tlv);
71 73
72 void msn_tlvlist_remove(GSList **list, const guint8 type); 74 void msn_tlvlist_remove(GSList **list, const guint8 type);
73 75
74 #endif /* MSN_TLV_H */ 76 #endif /* MSN_TLV_H */
75 77