From 0206052b5660cb77cdd0a0ac3c83dd4c3d996007 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 15:48:55 -0700 Subject: started on positioning + command structure --- command.h | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'command.h') 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 -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 */ -- cgit v1.2.3