Changes in protocols/jabber/jabber.c [ba9edaa:75cde5d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/jabber.c
rba9edaa r75cde5d 471 471 } 472 472 473 static gboolean jabber_callback(gpointer data, gint source, b_input_condition condition)473 static void jabber_callback(gpointer data, gint source, GaimInputCondition condition) 474 474 { 475 475 struct gaim_connection *gc = (struct gaim_connection *)data; … … 477 477 478 478 gjab_recv(jd->gjc); 479 480 return TRUE;481 479 } 482 480 … … 489 487 } 490 488 491 static gboolean gjab_connected(gpointer data, gint source, b_input_condition cond)489 static void gjab_connected(gpointer data, gint source, GaimInputCondition cond) 492 490 { 493 491 xmlnode x; … … 499 497 if (!g_slist_find(get_connections(), gc)) { 500 498 closesocket(source); 501 return FALSE;499 return; 502 500 } 503 501 … … 510 508 if (source == -1) { 511 509 STATE_EVT(JCONN_STATE_OFF) 512 return FALSE;510 return; 513 511 } 514 512 … … 532 530 533 531 gc = GJ_GC(gjc); 534 gc->inpa = b_input_add(gjc->fd, GAIM_INPUT_READ, jabber_callback, gc); 535 536 return FALSE; 537 } 538 539 static gboolean gjab_connected_ssl(gpointer data, void *source, b_input_condition cond) 532 gc->inpa = gaim_input_add(gjc->fd, GAIM_INPUT_READ, jabber_callback, gc); 533 } 534 535 static void gjab_connected_ssl(gpointer data, void *source, GaimInputCondition cond) 540 536 { 541 537 struct gaim_connection *gc = data; … … 548 544 if (source == NULL) { 549 545 STATE_EVT(JCONN_STATE_OFF) 550 return FALSE;546 return; 551 547 } 552 548 553 549 if (!g_slist_find(get_connections(), gc)) { 554 550 ssl_disconnect(source); 555 return FALSE;551 return; 556 552 } 557 553 558 returngjab_connected(data, gjc->fd, cond);554 gjab_connected(data, gjc->fd, cond); 559 555 } 560 556 … … 1547 1543 } 1548 1544 1549 static gboolean jabber_free(gpointer data , gint fd, b_input_condition cond)1545 static gboolean jabber_free(gpointer data) 1550 1546 { 1551 1547 struct jabber_data *jd = data; … … 1553 1549 if(jd->gjc != NULL) { 1554 1550 gjab_delete(jd->gjc); 1551 /* YAY for modules with their own memory pool managers!... 1555 1552 g_free(jd->gjc->sid); 1553 And a less sarcastic yay for valgrind. :-) */ 1556 1554 jd->gjc = NULL; 1557 1555 } … … 1590 1588 } 1591 1589 if (gc->inpa) 1592 b_event_remove(gc->inpa);1590 gaim_input_remove(gc->inpa); 1593 1591 1594 1592 if(jd) { 1595 b_timeout_add(50, jabber_free, jd);1593 g_timeout_add(50, jabber_free, jd); 1596 1594 if(jd->gjc != NULL) 1597 1595 xmlnode_free(jd->gjc->current);
Note: See TracChangeset
for help on using the changeset viewer.