diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-23 14:59:45 +0200 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2011-09-23 15:11:13 +0200 |
commit | 6efcc38a8521a17074626456cda67e7d35f2b7c5 (patch) | |
tree | 18ab529be994779425cd7949e9499466f627277d /src/cmumble.h | |
parent | cfde4eb9113d779b4b43c7a056691fd3e307f2c2 (diff) | |
download | cmumble-6efcc38a8521a17074626456cda67e7d35f2b7c5.tar.gz cmumble-6efcc38a8521a17074626456cda67e7d35f2b7c5.tar.bz2 cmumble-6efcc38a8521a17074626456cda67e7d35f2b7c5.zip |
Add a command interface
Also add two simple commands: help and ls
Diffstat (limited to 'src/cmumble.h')
-rw-r--r-- | src/cmumble.h | 3 |
1 files changed, 3 insertions, 0 deletions
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; |