From 6efcc38a8521a17074626456cda67e7d35f2b7c5 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Fri, 23 Sep 2011 14:59:45 +0200 Subject: Add a command interface Also add two simple commands: help and ls --- src/cmumble.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/cmumble.h') diff --git a/src/cmumble.h b/src/cmumble.h index 2ea1203..63b332a 100644 --- a/src/cmumble.h +++ b/src/cmumble.h @@ -10,6 +10,7 @@ #include "io.h" #include "connection.h" #include "audio.h" +#include "commands.h" typedef void (*callback_t)(ProtobufCMessage *msg, struct context *); @@ -18,6 +19,8 @@ struct context { struct cmumble_io io; struct cmumble_audio audio; const callback_t *callbacks; + const struct cmumble_command *commands; + GMainLoop *loop; uint32_t session; -- cgit