summaryrefslogtreecommitdiff
path: root/command.h
diff options
context:
space:
mode:
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 */