comparison src/protocols/yahoo/yay.c @ 2090:b66aca8e8dce

[gaim-migrate @ 2100] change ../config.h to <config.h> because that's better. change from GdkInput functions to GaimInput for reasons mentioned elsewhere. committer: Tailor Script <tailor@pidgin.im>
author Eric Warmenhoven <eric@warmenhoven.org>
date Tue, 31 Jul 2001 23:23:40 +0000
parents 424a40f12a6c
children 56c4382f2909
comparison
equal deleted inserted replaced
2089:bb1ddaaf0d26 2090:b66aca8e8dce
330 yd->logged_in = TRUE; 330 yd->logged_in = TRUE;
331 331
332 return 1; 332 return 1;
333 } 333 }
334 334
335 static void yahoo_pending(gpointer data, gint source, GdkInputCondition condition) { 335 static void yahoo_pending(gpointer data, gint source, GaimInputCondition condition) {
336 struct gaim_connection *gc = (struct gaim_connection *)data; 336 struct gaim_connection *gc = (struct gaim_connection *)data;
337 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data; 337 struct yahoo_data *yd = (struct yahoo_data *)gc->proto_data;
338 338
339 yahoo_socket_handler(yd->sess, source, condition); 339 yahoo_socket_handler(yd->sess, source, condition);
340 } 340 }
345 345
346 if (cont) { 346 if (cont) {
347 struct conn *c = g_new0(struct conn, 1); 347 struct conn *c = g_new0(struct conn, 1);
348 c->socket = socket; 348 c->socket = socket;
349 c->type = type; 349 c->type = type;
350 c->inpa = gdk_input_add(socket, type, yahoo_pending, gc); 350 c->inpa = gaim_input_add(socket, type, yahoo_pending, gc);
351 yd->conns = g_list_append(yd->conns, c); 351 yd->conns = g_list_append(yd->conns, c);
352 } else { 352 } else {
353 GList *c = yd->conns; 353 GList *c = yd->conns;
354 while (c) { 354 while (c) {
355 struct conn *m = c->data; 355 struct conn *m = c->data;
356 if ((m->socket == socket) && (m->type == type)) { 356 if ((m->socket == socket) && (m->type == type)) {
357 yd->conns = g_list_remove(yd->conns, m); 357 yd->conns = g_list_remove(yd->conns, m);
358 gdk_input_remove(m->inpa); 358 gaim_input_remove(m->inpa);
359 g_free(m); 359 g_free(m);
360 return; 360 return;
361 } 361 }
362 c = g_list_next(c); 362 c = g_list_next(c);
363 } 363 }
364 } 364 }
365 } 365 }
366 366
367 static void yahoo_got_connected(gpointer data, gint source, GdkInputCondition cond) { 367 static void yahoo_got_connected(gpointer data, gint source, GaimInputCondition cond) {
368 struct connect *con = data; 368 struct connect *con = data;
369 369
370 debug_printf("got connected (possibly)\n"); 370 debug_printf("got connected (possibly)\n");
371 yahoo_connected(con->sess, con->data, source); 371 yahoo_connected(con->sess, con->data, source);
372 372