Changeset cf02dd6 for libfaim/buddylist.c
- Timestamp:
- Dec 10, 2003, 3:20:45 PM (21 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfaim/buddylist.c
re374dee rcf02dd6 15 15 * 16 16 */ 17 faim_export int aim_b os_reqbuddyrights(aim_session_t *sess, aim_conn_t *conn)18 { 19 return aim_genericreq_n (sess, conn, 0x0003, 0x0002);17 faim_export int aim_buddylist_reqrights(aim_session_t *sess, aim_conn_t *conn) 18 { 19 return aim_genericreq_n_snacid(sess, conn, 0x0003, 0x0002); 20 20 } 21 21 … … 34 34 * TLVs follow 35 35 */ 36 tlvlist = aim_ readtlvchain(bs);36 tlvlist = aim_tlvlist_read(bs); 37 37 38 38 /* 39 39 * TLV type 0x0001: Maximum number of buddies. 40 40 */ 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); 43 43 44 44 /* … … 50 50 * 51 51 */ 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); 54 54 55 55 /* … … 62 62 ret = userfunc(sess, rx, maxbuddies, maxwatchers); 63 63 64 aim_ freetlvchain(&tlvlist);64 aim_tlvlist_free(&tlvlist); 65 65 66 66 return ret; … … 74 74 * 75 75 */ 76 faim_export int aim_ add_buddy(aim_session_t *sess, aim_conn_t *conn, const char *sn)76 faim_export int aim_buddylist_addbuddy(aim_session_t *sess, aim_conn_t *conn, const char *sn) 77 77 { 78 78 aim_frame_t *fr; … … 106 106 * 107 107 */ 108 faim_export int aim_b os_setbuddylist(aim_session_t *sess, aim_conn_t *conn, const char *buddy_list)108 faim_export int aim_buddylist_set(aim_session_t *sess, aim_conn_t *conn, const char *buddy_list) 109 109 { 110 110 aim_frame_t *fr; … … 154 154 * 155 155 */ 156 faim_export int aim_ remove_buddy(aim_session_t *sess, aim_conn_t *conn, const char *sn)156 faim_export int aim_buddylist_removebuddy(aim_session_t *sess, aim_conn_t *conn, const char *sn) 157 157 { 158 158 aim_frame_t *fr; … … 182 182 * 183 183 */ 184 faim_export int aim_ sendbuddyoncoming(aim_session_t *sess, aim_conn_t *conn, aim_userinfo_t *info)184 faim_export int aim_buddylist_oncoming(aim_session_t *sess, aim_conn_t *conn, aim_userinfo_t *info) 185 185 { 186 186 aim_frame_t *fr; … … 209 209 * 210 210 */ 211 faim_export int aim_ sendbuddyoffgoing(aim_session_t *sess, aim_conn_t *conn, const char *sn)211 faim_export int aim_buddylist_offgoing(aim_session_t *sess, aim_conn_t *conn, const char *sn) 212 212 { 213 213 aim_frame_t *fr; … … 253 253 ret = userfunc(sess, rx, &userinfo); 254 254 255 if (snac->subtype == 0x000b) 256 aim_locate_requestuserinfo(sess, userinfo.sn); 255 257 aim_info_free(&userinfo); 256 258
Note: See TracChangeset
for help on using the changeset viewer.