Set a module as exclusive.
#include "asr/asrm.h"
int asrm_set_exclusive(asr_module_hdl_t *mod, asr_context_hdl_t *context)
A pointer to the module handle.
A pointer to the context handle.
The asrm_set_exclusive() function sets the specified module as exclusive. Only the exclusive module will see results from recognition sessions until its exclusive status is removed. Exclusive modules must implement the select_result() and on_result() callback functions; otherwise, the call to asrm_set_exclusive() will fail. If a recognition context is provided, it will be used instead of the contexts described in the active configuration sections.
0 Success.
-1 An error occurred.