command_handler_t: make cmd an indirect parameter