|
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(), and setup_output_msock().

| 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.
| boolean callback_exist | ( | Recog * | recog, | |
| int | code | |||
| ) |
Check if at least one function has been registered to a callback repository.
| recog | [in] engine instance | |
| code | [in] callback code |
Definition at line 246 of file callback.c.
| boolean callback_delete | ( | Recog * | recog, | |
| int | id | |||
| ) |
Delete an already registered function from callback.
| recog | [i/o] engine instance | |
| id | [in] global callback ID to delete |
Definition at line 271 of file callback.c.
1.5.4