Mercurial > pidgin
comparison libpurple/protocols/oscar/tlv.c @ 18653:9f3c2c5d96b2
This function wasn't used. I think it was intended for when Adam
was implementing an oscar server using libfaim?
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 27 Jul 2007 08:22:45 +0000 |
parents | e333072d8680 |
children | 44b4e8bd759b |
comparison
equal
deleted
inserted
replaced
18652:ddb7212a8794 | 18653:9f3c2c5d96b2 |
---|---|
421 | 421 |
422 return aim_tlvlist_add_raw(list, type, byte_stream_curpos(&bs), buf); | 422 return aim_tlvlist_add_raw(list, type, byte_stream_curpos(&bs), buf); |
423 } | 423 } |
424 | 424 |
425 /** | 425 /** |
426 * Adds the given userinfo struct to a TLV chain. | |
427 * | |
428 * @param list Destination chain. | |
429 * @param type TLV type to add. | |
430 * @return The size of the value added. | |
431 */ | |
432 int aim_tlvlist_add_userinfo(GSList **list, guint16 type, aim_userinfo_t *userinfo) | |
433 { | |
434 guint8 buf[1024]; /* TODO: Don't use a fixed length buffer */ | |
435 ByteStream bs; | |
436 | |
437 byte_stream_init(&bs, buf, sizeof(buf)); | |
438 | |
439 aim_putuserinfo(&bs, userinfo); | |
440 | |
441 return aim_tlvlist_add_raw(list, type, byte_stream_curpos(&bs), buf); | |
442 } | |
443 | |
444 /** | |
445 * Adds the given chatroom info to a TLV chain. | 426 * Adds the given chatroom info to a TLV chain. |
446 * | 427 * |
447 * @param list Destination chain. | 428 * @param list Destination chain. |
448 * @param type TLV type to add. | 429 * @param type TLV type to add. |
449 * @param roomname The name of the chat. | 430 * @param roomname The name of the chat. |