From 6e938b9a190ae6c41614b2377f44d4e0ffc28b78 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 9 Jul 2018 18:35:11 -0700 Subject: cleanup --- command.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'command.h') diff --git a/command.h b/command.h index 770d3a7..b27a57f 100644 --- a/command.h +++ b/command.h @@ -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 */ -- cgit v1.2.3