aboutsummaryrefslogtreecommitdiffstats
path: root/cmd.h
diff options
context:
space:
mode:
Diffstat (limited to 'cmd.h')
-rw-r--r--cmd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd.h b/cmd.h
index c094e04..38b3fa1 100644
--- a/cmd.h
+++ b/cmd.h
@@ -4,6 +4,7 @@
4#include <stdbool.h> 4#include <stdbool.h>
5#include <stdio.h> 5#include <stdio.h>
6#include <stdlib.h> 6#include <stdlib.h>
7#include <string.h>
7 8
8typedef enum { 9typedef enum {
9 CMD_TYPE_NORMAL, 10 CMD_TYPE_NORMAL,
@@ -21,6 +22,9 @@ typedef struct Command {
21 struct Command *right; // a pointer to the right sub-command 22 struct Command *right; // a pointer to the right sub-command
22} Command; 23} Command;
23 24
25Command* newcmd();
24int runcmd(Command *cmd); 26int runcmd(Command *cmd);
27void freecmd(Command *cmd);
28void printcmd(Command *cmd);
25 29
26#endif \ No newline at end of file 30#endif \ No newline at end of file