summaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
authorWilliam Casarin <jb55@jb55.com>2018-07-09 18:35:11 -0700
committerWilliam Casarin <jb55@jb55.com>2018-07-09 18:35:11 -0700
commit6e938b9a190ae6c41614b2377f44d4e0ffc28b78 (patch)
tree5951e38902ab1530c3e78c878dc7cf13bfda2cd3 /command.h
parentcf9ffbdb247bc3c5b31fbc7a645429dedf3d97f1 (diff)
cleanup
Diffstat (limited to 'command.h')
-rw-r--r--command.h9
1 files changed, 4 insertions, 5 deletions
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 */