asrm_set_exclusive()

Set a module as exclusive.

Synopsis:

#include "asr/asrm.h"
 
int asrm_set_exclusive(asr_module_hdl_t *mod, asr_context_hdl_t *context)

Arguments:

mod

A pointer to the module handle.

context

A pointer to the context handle.

Library:

libasr

Description:

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.

Returns:

0 Success.

-1 An error occurred.