comparison src/protocols/oscar/family_bos.c @ 13239:f260d319bbbc

[gaim-migrate @ 15605] Renaming a bunch of structs and typedefs to use the same naming scheme as the rest of Gaim committer: Tailor Script <tailor@pidgin.im>
author Mark Doliner <mark@kingant.net>
date Sun, 12 Feb 2006 16:02:05 +0000
parents f2431a7e33aa
children 87a7c3077c19
comparison
equal deleted inserted replaced
13238:1e855032d7bc 13239:f260d319bbbc
27 #include "oscar.h" 27 #include "oscar.h"
28 28
29 #include <string.h> 29 #include <string.h>
30 30
31 /* Subtype 0x0002 - Request BOS rights. */ 31 /* Subtype 0x0002 - Request BOS rights. */
32 faim_export int aim_bos_reqrights(aim_session_t *sess, aim_conn_t *conn) 32 faim_export int aim_bos_reqrights(OscarSession *sess, OscarConnection *conn)
33 { 33 {
34 return aim_genericreq_n_snacid(sess, conn, 0x0009, 0x0002); 34 return aim_genericreq_n_snacid(sess, conn, 0x0009, 0x0002);
35 } 35 }
36 36
37 /* Subtype 0x0003 - BOS Rights. */ 37 /* Subtype 0x0003 - BOS Rights. */
38 static int rights(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 38 static int rights(OscarSession *sess, aim_module_t *mod, FlapFrame *rx, aim_modsnac_t *snac, ByteStream *bs)
39 { 39 {
40 aim_rxcallback_t userfunc; 40 aim_rxcallback_t userfunc;
41 aim_tlvlist_t *tlvlist; 41 aim_tlvlist_t *tlvlist;
42 guint16 maxpermits = 0, maxdenies = 0; 42 guint16 maxpermits = 0, maxdenies = 0;
43 int ret = 0; 43 int ret = 0;
75 * The group permission mask allows you to keep users of a certain 75 * The group permission mask allows you to keep users of a certain
76 * class or classes from talking to you. The mask should be 76 * class or classes from talking to you. The mask should be
77 * a bitwise OR of all the user classes you want to see you. 77 * a bitwise OR of all the user classes you want to see you.
78 * 78 *
79 */ 79 */
80 faim_export int aim_bos_setgroupperm(aim_session_t *sess, aim_conn_t *conn, guint32 mask) 80 faim_export int aim_bos_setgroupperm(OscarSession *sess, OscarConnection *conn, guint32 mask)
81 { 81 {
82 return aim_genericreq_l(sess, conn, 0x0009, 0x0004, &mask); 82 return aim_genericreq_l(sess, conn, 0x0009, 0x0004, &mask);
83 } 83 }
84 84
85 /* 85 /*
108 * - Block the users below: Send an AIM_VISIBILITYCHANGE_DENYADD with 108 * - Block the users below: Send an AIM_VISIBILITYCHANGE_DENYADD with
109 * the list of users to be blocked 109 * the list of users to be blocked
110 * 110 *
111 * XXX ye gods. 111 * XXX ye gods.
112 */ 112 */
113 faim_export int aim_bos_changevisibility(aim_session_t *sess, aim_conn_t *conn, int changetype, const char *denylist) 113 faim_export int aim_bos_changevisibility(OscarSession *sess, OscarConnection *conn, int changetype, const char *denylist)
114 { 114 {
115 aim_frame_t *fr; 115 FlapFrame *fr;
116 int packlen = 0; 116 int packlen = 0;
117 guint16 subtype; 117 guint16 subtype;
118 char *localcpy = NULL, *tmpptr = NULL; 118 char *localcpy = NULL, *tmpptr = NULL;
119 int i; 119 int i;
120 int listcount; 120 int listcount;
160 aim_tx_enqueue(sess, fr); 160 aim_tx_enqueue(sess, fr);
161 161
162 return 0; 162 return 0;
163 } 163 }
164 164
165 static int snachandler(aim_session_t *sess, aim_module_t *mod, aim_frame_t *rx, aim_modsnac_t *snac, aim_bstream_t *bs) 165 static int snachandler(OscarSession *sess, aim_module_t *mod, FlapFrame *rx, aim_modsnac_t *snac, ByteStream *bs)
166 { 166 {
167 167
168 if (snac->subtype == 0x0003) 168 if (snac->subtype == 0x0003)
169 return rights(sess, mod, rx, snac, bs); 169 return rights(sess, mod, rx, snac, bs);
170 170
171 return 0; 171 return 0;
172 } 172 }
173 173
174 faim_internal int bos_modfirst(aim_session_t *sess, aim_module_t *mod) 174 faim_internal int bos_modfirst(OscarSession *sess, aim_module_t *mod)
175 { 175 {
176 176
177 mod->family = 0x0009; 177 mod->family = 0x0009;
178 mod->version = 0x0001; 178 mod->version = 0x0001;
179 mod->toolid = 0x0110; 179 mod->toolid = 0x0110;