Changeset cf02dd6 for libfaim/bos.c


Ignore:
Timestamp:
Dec 10, 2003, 3:20:45 PM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
b1fe407
Parents:
8c46404
Message:
*** empty log message ***
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfaim/bos.c

    re374dee rcf02dd6  
    1313faim_export int aim_bos_reqrights(aim_session_t *sess, aim_conn_t *conn)
    1414{
    15         return aim_genericreq_n(sess, conn, 0x0009, 0x0002);
     15        return aim_genericreq_n_snacid(sess, conn, 0x0009, 0x0002);
    1616}
    1717
     
    2727         * TLVs follow
    2828         */
    29         tlvlist = aim_readtlvchain(bs);
     29        tlvlist = aim_tlvlist_read(bs);
    3030
    3131        /*
    3232         * TLV type 0x0001: Maximum number of buddies on permit list.
    3333         */
    34         if (aim_gettlv(tlvlist, 0x0001, 1))
    35                 maxpermits = aim_gettlv16(tlvlist, 0x0001, 1);
     34        if (aim_tlv_gettlv(tlvlist, 0x0001, 1))
     35                maxpermits = aim_tlv_get16(tlvlist, 0x0001, 1);
    3636
    3737        /*
    3838         * TLV type 0x0002: Maximum number of buddies on deny list.
    3939         */
    40         if (aim_gettlv(tlvlist, 0x0002, 1))
    41                 maxdenies = aim_gettlv16(tlvlist, 0x0002, 1);
     40        if (aim_tlv_gettlv(tlvlist, 0x0002, 1))
     41                maxdenies = aim_tlv_get16(tlvlist, 0x0002, 1);
    4242
    4343        if ((userfunc = aim_callhandler(sess, rx->conn, snac->family, snac->subtype)))
    4444                ret = userfunc(sess, rx, maxpermits, maxdenies);
    4545
    46         aim_freetlvchain(&tlvlist);
     46        aim_tlvlist_free(&tlvlist);
    4747
    4848        return ret; 
Note: See TracChangeset for help on using the changeset viewer.