spe_callback_handler_query - Returns the function pointer associated with a callback number.
#include <libspe2.h>
void *spe_callback_handler_query(unsigned int callnum)
Parameters | |
callnum | The function is identified by this callnum. The valid range is 0..255. |
On success, the function returns the function pointer to the user-defined or built-in callback handler registered for callnum.
On error, 0 (zero) is returned and errno is set to indicate the error.
Possible errors include:
EINVAL | Function argument error, for example, callnum not in valid range. |
ESRCH | No callback registered for callnum or no registration for the provided function pointer can be found. |