comparison src/protocols/oscar/aim_internal.h @ 2675:e759254b29bb

[gaim-migrate @ 2688] This source code was developed using Microsoft Visual Studio 6.0. committer: Tailor Script <tailor@pidgin.im>
author Adam Fritzler <mid@auk.cx>
date Mon, 05 Nov 2001 12:25:22 +0000
parents c41030cfed76
children 441b84ab7f4e
comparison
equal deleted inserted replaced
2674:de99ce38ad1f 2675:e759254b29bb
142 struct snacgroup { 142 struct snacgroup {
143 fu16_t group; 143 fu16_t group;
144 struct snacgroup *next; 144 struct snacgroup *next;
145 }; 145 };
146 146
147 struct snacpair {
148 fu16_t group;
149 fu16_t subtype;
150 struct snacpair *next;
151 };
152
153 struct rateclass {
154 fu16_t classid;
155 fu32_t windowsize;
156 fu32_t clear;
157 fu32_t alert;
158 fu32_t limit;
159 fu32_t disconnect;
160 fu32_t current;
161 fu32_t max;
162 fu8_t unknown[5]; /* only present in versions >= 3 */
163 struct snacpair *members;
164 struct rateclass *next;
165 };
166
147 /* 167 /*
148 * This is inside every connection. But it is a void * to anything 168 * This is inside every connection. But it is a void * to anything
149 * outside of libfaim. It should remain that way. It's called data 169 * outside of libfaim. It should remain that way. It's called data
150 * abstraction. Maybe you've heard of it. (Probably not if you're a 170 * abstraction. Maybe you've heard of it. (Probably not if you're a
151 * libfaim user.) 171 * libfaim user.)
152 * 172 *
153 */ 173 */
154 typedef struct aim_conn_inside_s { 174 typedef struct aim_conn_inside_s {
155 struct snacgroup *groups; 175 struct snacgroup *groups;
176 struct rateclass *rates;
156 } aim_conn_inside_t; 177 } aim_conn_inside_t;
157 178
158 faim_internal void aim_conn_addgroup(aim_conn_t *conn, fu16_t group); 179 faim_internal void aim_conn_addgroup(aim_conn_t *conn, fu16_t group);
159 180
160 faim_internal fu16_t aim_getcap(aim_session_t *sess, aim_bstream_t *bs, int len); 181 faim_internal fu16_t aim_getcap(aim_session_t *sess, aim_bstream_t *bs, int len);
176 faim_internal void faimdprintf(aim_session_t *sess, int dlevel, const char *format, ...); 197 faim_internal void faimdprintf(aim_session_t *sess, int dlevel, const char *format, ...);
177 198
178 faim_internal void aim_conn_close_rend(aim_session_t *sess, aim_conn_t *conn); 199 faim_internal void aim_conn_close_rend(aim_session_t *sess, aim_conn_t *conn);
179 faim_internal void aim_conn_kill_rend(aim_session_t *sess, aim_conn_t *conn); 200 faim_internal void aim_conn_kill_rend(aim_session_t *sess, aim_conn_t *conn);
180 201
202 /* These are all handled internally now. */
203 faim_internal int aim_setversions(aim_session_t *sess, aim_conn_t *conn);
204 faim_internal int aim_reqrates(aim_session_t *, aim_conn_t *);
205 faim_internal int aim_ratesack(aim_session_t *, aim_conn_t *);
181 206
182 #ifndef FAIM_INTERNAL_INSANE 207 #ifndef FAIM_INTERNAL_INSANE
183 #define printf() printf called inside libfaim 208 #define printf() printf called inside libfaim
184 #define sprintf() unbounded sprintf used inside libfaim 209 #define sprintf() unbounded sprintf used inside libfaim
185 #endif 210 #endif