about summary refs log tree commit diff stats
path: root/src/command
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2016-04-27 00:03:24 +0100
committerJames Booth <boothj5@gmail.com>2016-04-27 00:03:24 +0100
commitce32814679f6d66df71c24cac0378d07b9b91682 (patch)
treea16dc604180cf10fdbd209d1ed3260b1dc523d60 /src/command
parentd4aa73159e7b50b18815920b29d68b38a03d58a8 (diff)
downloadprofani-tty-ce32814679f6d66df71c24cac0378d07b9b91682.tar.gz
Updated Command structure comments
Diffstat (limited to 'src/command')
-rw-r--r--src/command/commands.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/command/commands.h b/src/command/commands.h
index 68d3947f..c5463d88 100644
--- a/src/command/commands.h
+++ b/src/command/commands.h
@@ -50,10 +50,12 @@ typedef struct cmd_help_t {
  * Command structure
  *
  * cmd - The command string including leading '/'
- * func - The function to execute for the command
  * parser - The function used to parse arguments
  * min_args - Minimum number of arguments
  * max_args - Maximum number of arguments
+ * setting_func - Function to display current settings to the console
+ * sub_funcs - Optional list of functions mapped to the first argument
+ * func - Main function to call when no arguments, or sub_funcs not implemented
  * help - A help struct containing usage info etc
  */
 typedef struct cmd_t {