Mercurial > pidgin
comparison libpurple/protocols/oscar/flap_connection.c @ 30400:11c54d781835
Removed unused "flags" parameter.
author | ivan.komarov@soc.pidgin.im |
---|---|
date | Thu, 05 Aug 2010 22:57:01 +0000 |
parents | bbb27d65681f |
children | 7a41eb334a64 |
comparison
equal
deleted
inserted
replaced
30399:3eb2dd8a1cc7 | 30400:11c54d781835 |
---|---|
210 * @param high_priority If TRUE, the SNAC will be queued normally if | 210 * @param high_priority If TRUE, the SNAC will be queued normally if |
211 * needed. If FALSE, it wil be queued separately, to be sent | 211 * needed. If FALSE, it wil be queued separately, to be sent |
212 * only if all high priority SNACs have been sent. | 212 * only if all high priority SNACs have been sent. |
213 */ | 213 */ |
214 void | 214 void |
215 flap_connection_send_snac_with_priority(OscarData *od, FlapConnection *conn, guint16 family, const guint16 subtype, guint16 flags, aim_snacid_t snacid, ByteStream *data, gboolean high_priority) | 215 flap_connection_send_snac_with_priority(OscarData *od, FlapConnection *conn, guint16 family, const guint16 subtype, aim_snacid_t snacid, ByteStream *data, gboolean high_priority) |
216 { | 216 { |
217 FlapFrame *frame; | 217 FlapFrame *frame; |
218 guint32 length; | 218 guint32 length; |
219 gboolean enqueue = FALSE; | 219 gboolean enqueue = FALSE; |
220 struct rateclass *rateclass; | 220 struct rateclass *rateclass; |
221 | 221 |
222 length = data != NULL ? data->offset : 0; | 222 length = data != NULL ? data->offset : 0; |
223 | 223 |
224 frame = flap_frame_new(od, 0x02, 10 + length); | 224 frame = flap_frame_new(od, 0x02, 10 + length); |
225 aim_putsnac(&frame->data, family, subtype, flags, snacid); | 225 aim_putsnac(&frame->data, family, subtype, snacid); |
226 | 226 |
227 if (length > 0) | 227 if (length > 0) |
228 { | 228 { |
229 byte_stream_rewind(data); | 229 byte_stream_rewind(data); |
230 byte_stream_putbs(&frame->data, data, length); | 230 byte_stream_putbs(&frame->data, data, length); |
282 | 282 |
283 flap_connection_send(conn, frame); | 283 flap_connection_send(conn, frame); |
284 } | 284 } |
285 | 285 |
286 void | 286 void |
287 flap_connection_send_snac(OscarData *od, FlapConnection *conn, guint16 family, const guint16 subtype, guint16 flags, aim_snacid_t snacid, ByteStream *data) | 287 flap_connection_send_snac(OscarData *od, FlapConnection *conn, guint16 family, const guint16 subtype, aim_snacid_t snacid, ByteStream *data) |
288 { | 288 { |
289 flap_connection_send_snac_with_priority(od, conn, family, subtype, flags, snacid, data, TRUE); | 289 flap_connection_send_snac_with_priority(od, conn, family, subtype, snacid, data, TRUE); |
290 } | 290 } |
291 | 291 |
292 /** | 292 /** |
293 * This sends an empty channel 4 FLAP. This is sent to signify | 293 * This sends an empty channel 4 FLAP. This is sent to signify |
294 * that we're logging off. This shouldn't really be necessary-- | 294 * that we're logging off. This shouldn't really be necessary-- |