summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-21 22:14:09 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-11-21 22:20:59 +0100
commit8a744d0649ecd95696227e672e1611b0f3514549 (patch)
tree66daa2ea3aeb4c56fb4b336d9f22fa865d062ee9
parentd4abd71aff37402fea80191c9b3b990124b0ee9b (diff)
downloadcmumble-8a744d0649ecd95696227e672e1611b0f3514549.tar.gz
cmumble-8a744d0649ecd95696227e672e1611b0f3514549.tar.bz2
cmumble-8a744d0649ecd95696227e672e1611b0f3514549.zip
ping: Use new cmumble message abstraction
-rw-r--r--src/cmumble.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmumble.c b/src/cmumble.c
index d514ca4..d0096b0 100644
--- a/src/cmumble.c
+++ b/src/cmumble.c
@@ -250,14 +250,14 @@ static const struct {
static gboolean
do_ping(struct cmumble *cm)
{
- MumbleProto__Ping ping;
+ struct mumble_ping ping;
GTimeVal tv;
+ cmumble_init_ping(&ping);
g_get_current_time(&tv);
- mumble_proto__ping__init(&ping);
- ping.timestamp = tv.tv_sec;
- ping.resync = 1;
- cmumble_send_msg(cm, &ping.base);
+ ping.m.timestamp = tv.tv_sec;
+ ping.m.resync = 1;
+ cmumble_send_ping(cm, &ping);
return TRUE;
}