summaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2018-07-09 15:48:55 -0700
committerWilliam Casarin <jb55@jb55.com>2018-07-09 15:49:33 -0700
commit0206052b5660cb77cdd0a0ac3c83dd4c3d996007 (patch)
treef0b0f1cd48f0f8f67d85e981be114e84d36ac8b3 /command.h
parentc999204365695799c9b7d79f4973d307421afecb (diff)
started on positioning + command structure
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 */