| 646 glp->struct_size = sizeof(struct gg_login_params); |
647 glp->struct_size = sizeof(struct gg_login_params); |
| 647 info = g_new0(GGPInfo, 1); |
648 info = g_new0(GGPInfo, 1); |
| 648 |
649 |
| 649 purple_connection_set_protocol_data(gc, info); |
650 purple_connection_set_protocol_data(gc, info); |
| 650 |
651 |
| |
652 ggp_tcpsocket_setup(gc, glp); |
| 651 ggp_image_setup(gc); |
653 ggp_image_setup(gc); |
| 652 ggp_avatar_setup(gc); |
654 ggp_avatar_setup(gc); |
| 653 ggp_roster_setup(gc); |
655 ggp_roster_setup(gc); |
| 654 ggp_multilogon_setup(gc); |
656 ggp_multilogon_setup(gc); |
| 655 ggp_status_setup(gc); |
657 ggp_status_setup(gc); |
| 730 purple_connection_error (gc, |
732 purple_connection_error (gc, |
| 731 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
733 PURPLE_CONNECTION_ERROR_NETWORK_ERROR, |
| 732 _("Connection failed")); |
734 _("Connection failed")); |
| 733 return; |
735 return; |
| 734 } |
736 } |
| 735 info->inpa = purple_input_add(info->session->fd, PURPLE_INPUT_READ, |
737 |
| 736 ggp_async_login_handler, gc); |
738 if (info->session->fd > 0) { |
| |
739 info->inpa = purple_input_add(info->session->fd, |
| |
740 PURPLE_INPUT_READ, ggp_async_login_handler, gc); |
| |
741 } |
| 737 } |
742 } |
| 738 |
743 |
| 739 static void ggp_close(PurpleConnection *gc) |
744 static void ggp_close(PurpleConnection *gc) |
| 740 { |
745 { |
| 741 PurpleAccount *account; |
746 PurpleAccount *account; |