static void tgp_msg_process_in_ready (struct tgl_state *TLS) { connection_data *conn = TLS->ev_base; struct tgp_msg_loading *C; while ((C = g_queue_peek_head (conn->new_messages))) { if (C->pending) { break; } g_queue_pop_head (conn->new_messages); tgp_msg_display (TLS, C); pending_reads_add (TLS, C->msg); pending_reads_send_all (TLS); if (C->data) { g_free (C->data); } if (C->error_msg) { g_free (C->error_msg); } tgp_msg_loading_free (C); } }
static void tgp_msg_process_in_ready (struct tgl_state *TLS) { connection_data *conn = TLS->ev_base; struct tgp_msg_loading *C; while ((C = g_queue_peek_head (conn->new_messages))) { if (! C->done) { break; } g_queue_pop_head (conn->new_messages); tgp_msg_display (TLS, C); tgp_msg_loading_free (C); } }