comparison libpurple/protocols/yahoo/yahoo_packet.c @ 27694:908be3822215

Move from "struct yahoo_data" to "YahooData" to be consistent with other structs in the prpl. I'm sure someone is going to want to shoot me over this, but I'm tired of seeing "struct yahoo_data" everywhere in this prpl.
author John Bailey <rekkanoryo@rekkanoryo.org>
date Sun, 26 Jul 2009 17:25:18 +0000
parents 07d09a987b86
children deecc1d663c4
comparison
equal deleted inserted replaced
27693:8bc9087b5ec2 27694:908be3822215
283 } 283 }
284 284
285 static void 285 static void
286 yahoo_packet_send_can_write(gpointer data, gint source, PurpleInputCondition cond) 286 yahoo_packet_send_can_write(gpointer data, gint source, PurpleInputCondition cond)
287 { 287 {
288 struct yahoo_data *yd = data; 288 YahooData *yd = data;
289 int ret, writelen; 289 int ret, writelen;
290 290
291 writelen = purple_circ_buffer_get_max_read(yd->txbuf); 291 writelen = purple_circ_buffer_get_max_read(yd->txbuf);
292 292
293 if (writelen == 0) { 293 if (writelen == 0) {
340 *buf = data; 340 *buf = data;
341 341
342 return len; 342 return len;
343 } 343 }
344 344
345 int yahoo_packet_send(struct yahoo_packet *pkt, struct yahoo_data *yd) 345 int yahoo_packet_send(struct yahoo_packet *pkt, YahooData *yd)
346 { 346 {
347 size_t len; 347 size_t len;
348 gssize ret; 348 gssize ret;
349 guchar *data; 349 guchar *data;
350 350
380 g_free(data); 380 g_free(data);
381 381
382 return ret; 382 return ret;
383 } 383 }
384 384
385 int yahoo_packet_send_and_free(struct yahoo_packet *pkt, struct yahoo_data *yd) 385 int yahoo_packet_send_and_free(struct yahoo_packet *pkt, YahooData *yd)
386 { 386 {
387 int ret; 387 int ret;
388 388
389 ret = yahoo_packet_send(pkt, yd); 389 ret = yahoo_packet_send(pkt, yd);
390 yahoo_packet_free(pkt); 390 yahoo_packet_free(pkt);