Mercurial > pidgin.yaz
diff src/protocols/oscar/tlv.c @ 10993:b6ca6d3c5332
[gaim-migrate @ 12831]
*** empty log message ***
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Thu, 09 Jun 2005 04:47:18 +0000 |
parents | 1798ad0be460 |
children | bd8ac1d4b2f2 |
line wrap: on
line diff
--- a/src/protocols/oscar/tlv.c Thu Jun 09 04:42:27 2005 +0000 +++ b/src/protocols/oscar/tlv.c Thu Jun 09 04:47:18 2005 +0000 @@ -648,6 +648,21 @@ /** * Substitute a TLV of a given type with a new TLV of the same type. If * you attempt to replace a TLV that does not exist, this function will + * just add a new TLV as if you called aim_tlvlist_add_str(). + * + * @param list Desination chain (%NULL pointer if empty). + * @param type TLV type. + * @param str String to add. + * @return The length of the TLV. + */ +faim_internal int aim_tlvlist_replace_str(aim_tlvlist_t **list, const fu16_t type, const char *str) +{ + return aim_tlvlist_replace_raw(list, type, strlen(str), str); +} + +/** + * Substitute a TLV of a given type with a new TLV of the same type. If + * you attempt to replace a TLV that does not exist, this function will * just add a new TLV as if you called aim_tlvlist_add_raw(). * * @param list Desination chain (%NULL pointer if empty).