diff options
Diffstat (limited to 'cli/src/cli-cmd.h')
-rw-r--r-- | cli/src/cli-cmd.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cli/src/cli-cmd.h b/cli/src/cli-cmd.h index ee784f0e95b..acb40017a5b 100644 --- a/cli/src/cli-cmd.h +++ b/cli/src/cli-cmd.h @@ -33,9 +33,12 @@ typedef enum { } gf_answer_t; struct cli_cmd { - const char *pattern; - cli_cmd_cbk_t *cbk; - const char *desc; + const char *pattern; + cli_cmd_cbk_t *cbk; + const char *desc; + cli_cmd_reg_cbk_t *reg_cbk; /* callback to check in runtime if the * + * command should be enabled or disabled */ + gf_boolean_t disable; }; struct cli_cmd_volume_get_ctx_ { |