comparison src/protocols/oscar/tlv.c @ 2821:9467e4ee81be

[gaim-migrate @ 2834] new libfaim stuff. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Sat, 01 Dec 2001 00:56:31 +0000
parents 95b4ec08abec
children 6d62d4520460
comparison
equal deleted inserted replaced
2820:b917845dad3c 2821:9467e4ee81be
202 202
203 return newtlv->tlv->length; 203 return newtlv->tlv->length;
204 } 204 }
205 205
206 /** 206 /**
207 * aim_addtlvtochain8 - Add a 8bit integer to a TLV chain
208 * @list: Destination chain
209 * @type: TLV type to add
210 * @val: Value to add
211 *
212 * Adds a one-byte unsigned integer to a TLV chain.
213 *
214 */
215 faim_internal int aim_addtlvtochain8(aim_tlvlist_t **list, const fu16_t t, const fu8_t v)
216 {
217 fu8_t v8[1];
218
219 aimutil_put8(v8, v);
220
221 return aim_addtlvtochain_raw(list, t, 1, v8);
222 }
223
224 /**
207 * aim_addtlvtochain16 - Add a 16bit integer to a TLV chain 225 * aim_addtlvtochain16 - Add a 16bit integer to a TLV chain
208 * @list: Destination chain 226 * @list: Destination chain
209 * @type: TLV type to add 227 * @type: TLV type to add
210 * @val: Value to add 228 * @val: Value to add
211 * 229 *