summaryrefslogtreecommitdiff
path: root/src/commands.h
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-23 14:59:45 +0200
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2011-09-23 15:11:13 +0200
commit6efcc38a8521a17074626456cda67e7d35f2b7c5 (patch)
tree18ab529be994779425cd7949e9499466f627277d /src/commands.h
parentcfde4eb9113d779b4b43c7a056691fd3e307f2c2 (diff)
downloadcmumble-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/commands.h')
-rw-r--r--src/commands.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/commands.h b/src/commands.h
new file mode 100644
index 0000000..2b1ad66
--- /dev/null
+++ b/src/commands.h
@@ -0,0 +1,15 @@
+#ifndef _COMMANDS_H_
+#define _COMMANDS_H_
+
+struct context;
+
+struct cmumble_command {
+ const char *name;
+ void (*callback)(struct context *);
+ const char *description;
+};
+
+void
+cmumble_commands_init(struct context *ctx);
+
+#endif /* _COMMANDS_H_ */