Mercurial > pidgin
comparison src/protocols/oscar/bos.c @ 7167:6d3d8f11e765
[gaim-migrate @ 7734]
I, uh, renamed some functions in libfaim. Functions that every file uses.
A lot. So it looks like I did a lot of work, but I didn't. Yeah, in a
typical work I actually only do about 15 minutes of real work.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sun, 05 Oct 2003 23:50:40 +0000 |
parents | dd2be7cd66df |
children | ad243bc63184 |
comparison
equal
deleted
inserted
replaced
7166:e6b01bd8d6cd | 7167:6d3d8f11e765 |
---|---|
24 int ret = 0; | 24 int ret = 0; |
25 | 25 |
26 /* | 26 /* |
27 * TLVs follow | 27 * TLVs follow |
28 */ | 28 */ |
29 tlvlist = aim_readtlvchain(bs); | 29 tlvlist = aim_tlvlist_read(bs); |
30 | 30 |
31 /* | 31 /* |
32 * TLV type 0x0001: Maximum number of buddies on permit list. | 32 * TLV type 0x0001: Maximum number of buddies on permit list. |
33 */ | 33 */ |
34 if (aim_gettlv(tlvlist, 0x0001, 1)) | 34 if (aim_tlv_gettlv(tlvlist, 0x0001, 1)) |
35 maxpermits = aim_gettlv16(tlvlist, 0x0001, 1); | 35 maxpermits = aim_tlv_get16(tlvlist, 0x0001, 1); |
36 | 36 |
37 /* | 37 /* |
38 * TLV type 0x0002: Maximum number of buddies on deny list. | 38 * TLV type 0x0002: Maximum number of buddies on deny list. |
39 */ | 39 */ |
40 if (aim_gettlv(tlvlist, 0x0002, 1)) | 40 if (aim_tlv_gettlv(tlvlist, 0x0002, 1)) |
41 maxdenies = aim_gettlv16(tlvlist, 0x0002, 1); | 41 maxdenies = aim_tlv_get16(tlvlist, 0x0002, 1); |
42 | 42 |
43 if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) | 43 if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype))) |
44 ret = userfunc(sess, rx, maxpermits, maxdenies); | 44 ret = userfunc(sess, rx, maxpermits, maxdenies); |
45 | 45 |
46 aim_freetlvchain(&tlvlist); | 46 aim_tlvlist_free(&tlvlist); |
47 | 47 |
48 return ret; | 48 return ret; |
49 } | 49 } |
50 | 50 |
51 /* | 51 /* |