diff options
| author | William Casarin <jb55@jb55.com> | 2018-07-09 18:35:11 -0700 |
|---|---|---|
| committer | William Casarin <jb55@jb55.com> | 2018-07-09 18:35:11 -0700 |
| commit | 6e938b9a190ae6c41614b2377f44d4e0ffc28b78 (patch) | |
| tree | 5951e38902ab1530c3e78c878dc7cf13bfda2cd3 /command.h | |
| parent | cf9ffbdb247bc3c5b31fbc7a645429dedf3d97f1 (diff) | |
cleanup
Diffstat (limited to 'command.h')
| -rw-r--r-- | command.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -7,8 +7,8 @@ struct command { char *name; char *bind; - char *exec; struct command *children; + int nchildren; }; @@ -18,14 +18,13 @@ command_init(struct command *cmd); void command_exec(struct command *cmd); -struct command * -command_lookup(struct command *cmd, const char *binding); - int command_is_prefix(struct command *cmd); +struct command * +command_lookup(struct command *cmd, int ncmds, const char *binding); struct command * -test_root_commands(tal_t *ctx); +test_root_commands(tal_t *ctx, int *ncmds); #endif /* CMDTREE_COMMAND_H */ |
