1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
#ifndef CMDTREE_COMMAND_H #define CMDTREE_COMMAND_H #include <ccan/tal/tal.h> struct command { char *name; char *bind; char *exec; struct command *children; }; void command_init(struct command *cmd); int command_is_prefix(struct command *cmd); struct command * test_root_commands(tal_t *ctx); #endif /* CMDTREE_COMMAND_H */