alf_error_handler_register - Registers a global error handler function to the ALF runtime code.
int alf_error_handler_register(alf_handle_t alf_handle, alf_error_handler_t error_handler_function, void *p_context)
| Parameters | |
| alf_handle [IN] | A handle to the ALF runtime code. |
| error_handler_function [IN] | A pointer to the user-defined error handler function. A NULL value resets the error handler to the ALF default handler. |
| p_context [IN] | A pointer to the user-defined context data for the error handler function. This pointer is passed to the user-defined error handler function when it is invoked. |
This function registers a global error handler function to the ALF runtime code. If an error handler has already been registered, the new one replaces it.
| 0 | Successful. |
| less than 0 | Errors occurred:
|