cmd_func_t
typedef void (cmd_func_t)(int, char **);
cmd_func_t *cmd_handler; /* function to call */
static cmd_func_t help_func, enable_func, disable_func, list_func;
static cmd_func_t show_events_func, scan_wifi_func, select_wifi_func;
typedef void (cmd_func_t)(cmd_t *);
extern cmd_func_t cancel_func, clear_func, commit_func, create_func;
extern cmd_func_t destroy_func, end_func, exit_func, export_func, get_func;
extern cmd_func_t help_func, list_func, revert_func, select_func, set_func;
extern cmd_func_t verify_func, walkprop_func;
static cmd_func_t do_create, do_delete, do_enable, do_disable,
cmd_func_t *c_fn;