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/commands.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/commands.h (limited to 'src/commands.h') 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_ */ -- cgit