diff options
Diffstat (limited to 'command.h')
| -rw-r--r-- | command.h | 18 |
1 files changed, 16 insertions, 2 deletions
@@ -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 */ |
