From d1fac4d941aaa9dbf9e72540f97d928af241cb5e Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 23 Sep 2011 10:53:51 +0200 Subject: Store callbacks in context --- src/connection.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/connection.c') diff --git a/src/connection.c b/src/connection.c index 3494d08..7cb48e6 100644 --- a/src/connection.c +++ b/src/connection.c @@ -12,7 +12,7 @@ read_cb(GObject *pollable_stream, gpointer data) gint count; do { - count = recv_msg(ctx, ctx->con.callbacks); + count = recv_msg(ctx); } while (count && g_pollable_input_stream_is_readable(input)); return TRUE; @@ -46,13 +46,11 @@ setup_ping_timer(struct context *ctx) int cmumble_connection_init(struct context *ctx, - const char *host, int port, - struct mumble_callbacks *callbacks) + const char *host, int port) { struct cmumble_connection *con = &ctx->con; GError *error = NULL; - con->callbacks = callbacks; con->sock_client = g_socket_client_new(); g_socket_client_set_tls(con->sock_client, TRUE); g_socket_client_set_tls_validation_flags(con->sock_client, -- cgit