spe_callback_handler_query

NAME

spe_callback_handler_query - Returns the function pointer associated with a callback number.

SYNOPSIS

#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.

DESCRIPTION

The function spe_callback_handler_query returns the function pointer associated with a callback number.

RETURN VALUE

On success, the function returns the function pointer to the user-defined or built-in callback handler registered for callnum.

EXIT STATUS

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.