#ifndef CMDTREE_COMMAND_H #define CMDTREE_COMMAND_H #include struct command { char *name; char *bind; char *exec; struct command *children; }; void 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 * test_root_commands(tal_t *ctx); #endif /* CMDTREE_COMMAND_H */