add command registration chaining
commit60ba4641d61ba65943ac7a8c800e82d6665ee11f
authorZachary T Welch <zw@superlucidity.net>
Sat, 21 Nov 2009 21:59:51 +0000 (21 13:59 -0800)
committerZachary T Welch <zw@superlucidity.net>
Wed, 25 Nov 2009 05:37:30 +0000 (24 21:37 -0800)
tree8670f3bfebaefd2c62c948292da9f0991dc39bc5
parent607634f967cf25630860794847dea770eb17a8f4
add command registration chaining

Adds the ability to chain registration structures.  Modules can define a
command with the 'chain' and 'num_chain' fields defined in their
registration table, and the register_commands() function will initialize
these commands.  If the registration record creates a new command, then
the chained commands are created under it; otherwise, they are created
in the same context as the other commands (i.e. the parent argument).
src/helper/command.c
src/helper/command.h