aboutsummaryrefslogtreecommitdiffstats
path: root/src/cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd.h')
-rw-r--r--src/cmd.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/cmd.h b/src/cmd.h
new file mode 100644
index 0000000..74cf53f
--- /dev/null
+++ b/src/cmd.h
@@ -0,0 +1,26 @@
+/* public things from cmd.c */
+
+#ifndef _CMD_H_
+#define _CMD_H_
+
+typedef struct cmdstruct {
+ char *sortname; /* set to NULL if you want to sort by
+ * command name */
+ char *name; /* command name */
+ char *help; /* short help */
+ function_str funct; /* function to call */
+ struct cmdstruct *next;
+} cmdstruct;
+
+extern cmdstruct *commands;
+
+void show_stat(void);
+
+void cmd_add_command( cmdstruct *cmd );
+
+void initialize_cmd(void);
+
+int print_all_options(FILE *file);
+
+#endif /* _CMD_H_ */
+