comparison src/protocols/oscar/buddylist.c @ 7285:a50eea7628cb

[gaim-migrate @ 7866] -Renamed some old functions to aim_buddylist_bleh to fit in with some of the other stuff. -Removed AIM_SESS_FLAGS_bleh and replaced sess->flags with sess->nonblocking -Made the oscar.c libfaim printf handler use a dynamic buffer instead of static committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Thu, 16 Oct 2003 22:21:55 +0000
parents ad243bc63184
children 096197a628bf
comparison
equal deleted inserted replaced
7284:9152f58ab5ee 7285:a50eea7628cb
12 * Subtype 0x0002 - Request rights. 12 * Subtype 0x0002 - Request rights.
13 * 13 *
14 * Request Buddy List rights. 14 * Request Buddy List rights.
15 * 15 *
16 */ 16 */
17 faim_export int aim_bos_reqbuddyrights(aim_session_t *sess, aim_conn_t *conn) 17 faim_export int aim_buddylist_reqrights(aim_session_t *sess, aim_conn_t *conn)
18 { 18 {
19 return aim_genericreq_n_snacid(sess, conn, 0x0003, 0x0002); 19 return aim_genericreq_n_snacid(sess, conn, 0x0003, 0x0002);
20 } 20 }
21 21
22 /* 22 /*
71 * 71 *
72 * Adds a single buddy to your buddy list after login. 72 * Adds a single buddy to your buddy list after login.
73 * XXX This should just be an extension of setbuddylist() 73 * XXX This should just be an extension of setbuddylist()
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 aim_frame_t *fr; 78 aim_frame_t *fr;
79 aim_snacid_t snacid; 79 aim_snacid_t snacid;
80 80
81 if (!sn || !strlen(sn)) 81 if (!sn || !strlen(sn))
103 * buddy_list = "Screen Name One&ScreenNameTwo&"; 103 * buddy_list = "Screen Name One&ScreenNameTwo&";
104 * 104 *
105 * XXX Clean this up. 105 * XXX Clean this up.
106 * 106 *
107 */ 107 */
108 faim_export int aim_bos_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 aim_frame_t *fr; 110 aim_frame_t *fr;
111 aim_snacid_t snacid; 111 aim_snacid_t snacid;
112 int len = 0; 112 int len = 0;
113 char *localcpy = NULL; 113 char *localcpy = NULL;
151 * 151 *
152 * XXX generalise to support removing multiple buddies (basically, its 152 * XXX generalise to support removing multiple buddies (basically, its
153 * the same as setbuddylist() but with a different snac subtype). 153 * the same as setbuddylist() but with a different snac subtype).
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 aim_frame_t *fr; 158 aim_frame_t *fr;
159 aim_snacid_t snacid; 159 aim_snacid_t snacid;
160 160
161 if (!sn || !strlen(sn)) 161 if (!sn || !strlen(sn))
179 * Subtype 0x000b 179 * Subtype 0x000b
180 * 180 *
181 * XXX Why would we send this? 181 * XXX Why would we send this?
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 aim_frame_t *fr; 186 aim_frame_t *fr;
187 aim_snacid_t snacid; 187 aim_snacid_t snacid;
188 188
189 if (!sess || !conn || !info) 189 if (!sess || !conn || !info)
206 * Subtype 0x000c 206 * Subtype 0x000c
207 * 207 *
208 * XXX Why would we send this? 208 * XXX Why would we send this?
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 aim_frame_t *fr; 213 aim_frame_t *fr;
214 aim_snacid_t snacid; 214 aim_snacid_t snacid;
215 215
216 if (!sess || !conn || !sn) 216 if (!sess || !conn || !sn)