summaryrefslogtreecommitdiff
path: root/src/messages.c
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-16 14:35:25 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-16 14:40:49 +0200
commitb396ee26febb003374f877af841814940fefd034 (patch)
tree094e3de7abb9eef478fbff3be0795df0c105218c /src/messages.c
parent35670247b159dd65c174988a3d4ce3e105356d3a (diff)
downloadcmumble-b396ee26febb003374f877af841814940fefd034.tar.gz
cmumble-b396ee26febb003374f877af841814940fefd034.tar.bz2
cmumble-b396ee26febb003374f877af841814940fefd034.zip
Typesafe callback initialization
Diffstat (limited to 'src/messages.c')
-rw-r--r--src/messages.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/messages.c b/src/messages.c
index 2fd846e..87f204e 100644
--- a/src/messages.c
+++ b/src/messages.c
@@ -72,7 +72,7 @@ send_msg(struct context *ctx, ProtobufCMessage *msg)
}
void
-recv_msg(struct context *ctx, const callback_t *callbacks, uint32_t callback_size)
+recv_msg(struct context *ctx, const struct mumble_callbacks *cbs)
{
uint8_t preamble[PREAMBLE_SIZE];
ProtobufCMessage *msg;
@@ -80,6 +80,7 @@ recv_msg(struct context *ctx, const callback_t *callbacks, uint32_t callback_siz
int type, len;
gssize ret;
GInputStream *input = g_io_stream_get_input_stream(ctx->iostream);
+ const callback_t *callbacks = (const callback_t *) cbs;
ret = g_input_stream_read(input, preamble, PREAMBLE_SIZE, NULL, NULL);