asr_context_add_entries()

Add entries to the specified context.

Synopsis:

#include "asr/asr.h"
 
int asr_context_add_entries(asr_context_hdl_t *chdl, cfg_item_t *cfg, const char *slot_identifier, asr_slot_entry_t *slot_entry, int num_slot_entries)

Arguments:

chdl

A pointer to the context handle.

cfg

A pointer to the configuration associated with the context.

slot_identifier

A pointer to the slot identifier (the position of the new entry).

slot_entry

An array of slot entries.

num_slot_entries

The size of the array of slot entries.

Library:

libasr

Description:

The asr_context_add_entries() function invokes the context_add_entries() callback function defined in the recognizer interface, asr_recognizer_if.

Returns:

0 Success.

<0 An error occurred.