Collaboration diagram for Callback API:
![]() |
Functions | |
int | callback_add (Recog *recog, int code, void(*func)(Recog *recog, void *data), void *data) |
Register a function to a callback registory. | |
int | callback_add_adin (Recog *recog, int code, void(*func)(Recog *recog, SP16 *buf, int len, void *data), void *data) |
Register a function to the A/D-in type callback registory. | |
boolean | callback_exist (Recog *recog, int code) |
Check if at least one function has been registered to a callback repository. | |
boolean | callback_delete (Recog *recog, int id) |
Delete an already registered function from callback. |
Register a function to a callback registory.
recog | [i/o] engine instance | |
code | [in] code in which the function will be registered | |
func | [in] function | |
data | [in] user-specified argument to be passed when the function is called inside Julius |
Definition at line 135 of file callback.c.
Referenced by main(), record_setup(), setup_output_file(), setup_output_msock(), setup_output_tty(), and startup().
Here is the caller graph for this function:
int callback_add_adin | ( | Recog * | recog, | |
int | code, | |||
void(*)(Recog *recog, SP16 *buf, int len, void *data) | func, | |||
void * | data | |||
) |
Register a function to the A/D-in type callback registory.
recog | [i/o] engine instance | |
code | [in] code in which the function will be registered | |
func | [in] function | |
data | [in] user-specified argument to be passed when the function is called inside Julius |
Definition at line 161 of file callback.c.
Referenced by record_setup().
Here is the caller graph for this function:
Check if at least one function has been registered to a callback repository.
recog | [in] engine instance | |
code | [in] callback code |
Definition at line 298 of file callback.c.
Referenced by j_recognize_stream().
Here is the caller graph for this function:
Delete an already registered function from callback.
recog | [i/o] engine instance | |
id | [in] global callback ID to delete |
Definition at line 323 of file callback.c.