Ignore:
Timestamp:
Dec 10, 2003, 3:20:45 PM (21 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, 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/buddylist.c

    re374dee rcf02dd6  
    1515 *
    1616 */
    17 faim_export int aim_bos_reqbuddyrights(aim_session_t *sess, aim_conn_t *conn)
    18 {
    19         return aim_genericreq_n(sess, conn, 0x0003, 0x0002);
     17faim_export int aim_buddylist_reqrights(aim_session_t *sess, aim_conn_t *conn)
     18{
     19        return aim_genericreq_n_snacid(sess, conn, 0x0003, 0x0002);
    2020}
    2121
     
    3434         * TLVs follow
    3535         */
    36         tlvlist = aim_readtlvchain(bs);
     36        tlvlist = aim_tlvlist_read(bs);
    3737
    3838        /*
    3939         * TLV type 0x0001: Maximum number of buddies.
    4040         */
    41         if (aim_gettlv(tlvlist, 0x0001, 1))
    42                 maxbuddies = aim_gettlv16(tlvlist, 0x0001, 1);
     41        if (aim_tlv_gettlv(tlvlist, 0x0001, 1))
     42                maxbuddies = aim_tlv_get16(tlvlist, 0x0001, 1);
    4343
    4444        /*
     
    5050         *
    5151         */
    52         if (aim_gettlv(tlvlist, 0x0002, 1))
    53                 maxwatchers = aim_gettlv16(tlvlist, 0x0002, 1);
     52        if (aim_tlv_gettlv(tlvlist, 0x0002, 1))
     53                maxwatchers = aim_tlv_get16(tlvlist, 0x0002, 1);
    5454
    5555        /*
     
    6262                ret = userfunc(sess, rx, maxbuddies, maxwatchers);
    6363
    64         aim_freetlvchain(&tlvlist);
     64        aim_tlvlist_free(&tlvlist);
    6565
    6666        return ret; 
     
    7474 *
    7575 */
    76 faim_export int aim_add_buddy(aim_session_t *sess, aim_conn_t *conn, const char *sn)
     76faim_export int aim_buddylist_addbuddy(aim_session_t *sess, aim_conn_t *conn, const char *sn)
    7777{
    7878        aim_frame_t *fr;
     
    106106 *
    107107 */
    108 faim_export int aim_bos_setbuddylist(aim_session_t *sess, aim_conn_t *conn, const char *buddy_list)
     108faim_export int aim_buddylist_set(aim_session_t *sess, aim_conn_t *conn, const char *buddy_list)
    109109{
    110110        aim_frame_t *fr;
     
    154154 *
    155155 */
    156 faim_export int aim_remove_buddy(aim_session_t *sess, aim_conn_t *conn, const char *sn)
     156faim_export int aim_buddylist_removebuddy(aim_session_t *sess, aim_conn_t *conn, const char *sn)
    157157{
    158158        aim_frame_t *fr;
     
    182182 *
    183183 */
    184 faim_export int aim_sendbuddyoncoming(aim_session_t *sess, aim_conn_t *conn, aim_userinfo_t *info)
     184faim_export int aim_buddylist_oncoming(aim_session_t *sess, aim_conn_t *conn, aim_userinfo_t *info)
    185185{
    186186        aim_frame_t *fr;
     
    209209 *
    210210 */
    211 faim_export int aim_sendbuddyoffgoing(aim_session_t *sess, aim_conn_t *conn, const char *sn)
     211faim_export int aim_buddylist_offgoing(aim_session_t *sess, aim_conn_t *conn, const char *sn)
    212212{
    213213        aim_frame_t *fr;
     
    253253                ret = userfunc(sess, rx, &userinfo);
    254254
     255        if (snac->subtype == 0x000b)
     256                aim_locate_requestuserinfo(sess, userinfo.sn);
    255257        aim_info_free(&userinfo);
    256258
Note: See TracChangeset for help on using the changeset viewer.