summaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
Diffstat (limited to 'command.h')
-rw-r--r--command.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/command.h b/command.h
index 91a05c5..1372219 100644
--- a/command.h
+++ b/command.h
@@ -2,10 +2,24 @@
#ifndef CMDTREE_COMMAND_H
#define CMDTREE_COMMAND_H
+#include <ccan/tal/tal.h>
-struct node {
+struct command {
char *name;
- struct node **children;
+ char *bind;
+ char *exec;
+ struct command *children;
};
+
+void
+command_init(struct command *cmd);
+
+int
+command_is_prefix(struct command *cmd);
+
+
+struct command *
+test_root_commands(tal_t *ctx);
+
#endif /* CMDTREE_COMMAND_H */