diff options
| author | William Casarin <jb55@jb55.com> | 2018-07-09 15:48:55 -0700 |
|---|---|---|
| committer | William Casarin <jb55@jb55.com> | 2018-07-09 15:49:33 -0700 |
| commit | 0206052b5660cb77cdd0a0ac3c83dd4c3d996007 (patch) | |
| tree | f0b0f1cd48f0f8f67d85e981be114e84d36ac8b3 /command.h | |
| parent | c999204365695799c9b7d79f4973d307421afecb (diff) | |
started on positioning + command structure
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 */ |
