summaryrefslogtreecommitdiff
path: root/src/cmumble.c
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-05-28 11:39:43 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-05-28 11:39:43 +0200
commitd86afb1321f618494434cd328ca452c4a464d510 (patch)
tree22d863afc36daf7d849359d21db00c98db888d85 /src/cmumble.c
parentca9894ec6e9127f52d440034c5c092fb5a35345e (diff)
downloadcmumble-d86afb1321f618494434cd328ca452c4a464d510.tar.gz
cmumble-d86afb1321f618494434cd328ca452c4a464d510.tar.bz2
cmumble-d86afb1321f618494434cd328ca452c4a464d510.zip
Autogenerate message macro list, not directly info struct
Diffstat (limited to 'src/cmumble.c')
-rw-r--r--src/cmumble.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmumble.c b/src/cmumble.c
index aa7aa04..acee323 100644
--- a/src/cmumble.c
+++ b/src/cmumble.c
@@ -21,7 +21,7 @@
#include "mumble.pb-c.h"
#include "varint.h"
-#include "messages.h"
+#include "cmumble.h"
#define ARRAY_SIZE(a) (sizeof(a)/sizeof((a)[0]))
@@ -157,7 +157,7 @@ pull_buffer(GstAppSink *sink, gpointer user_data)
gst_buffer_unref(buf);
- add_preamble(&data[0], 1, pos-PREAMBLE_SIZE);
+ add_preamble(&data[0], UDPTunnel, pos-PREAMBLE_SIZE);
g_static_mutex_lock(&write_mutex);
g_output_stream_write(output, data, PREAMBLE_SIZE, NULL, NULL);
g_output_stream_write(output, &data[PREAMBLE_SIZE], pos-PREAMBLE_SIZE, NULL, NULL);
@@ -378,7 +378,7 @@ recv_msg(struct context *ctx, const callback_t *callbacks, uint32_t callback_siz
ret = g_input_stream_read(input, data, len, NULL, NULL);
/* tunneled udp data - not a regular protobuf message */
- if (type == 1) {
+ if (type == UDPTunnel) {
handle_udp(ctx, data, len);
free(data);
return;