Determine whether the current result is a cancellation request.
#include "asr/asrm.h"
int asrm_is_cancellation_request(asr_result_t *result, cfg_item_t *opt_cancel_section, asr_result_action_t *ret)
A pointer to the result structure.
A pointer to the cancel configuration section.
The action to take.
The asrm_is_cancellation_request() function determines whether the specified result is a cancellation request. If it is, the function sets ret to the appropriate action code.
1 The result is a cancellation request. The res parameter is set to ASR_RECOGNITION_CANCEL.
0 The result is not a cancellation request.