Callback registration in SSLDD 3.0
By default, device drivers do not provide callbacks to the application. If required, an application can register the callback with the driver after it is opened.
The following API is provided to register a callback
ADI_XXX_HANDLE const hDevice,
Void *const pCBParam);
The API "unregisters" the callback if called with a NULL callback parameter.
All application callback routines are of type ADI_CALLBACK. The definition of ADI_CALLBACK is as follows
typedef void (* ADI_CALLBACK) ( /* Callback function pointer */
void *pCBParam, /* Client supplied callback param */
uint32_t Event, /* Event ID specific to the Driver/Service */
void *pArg); /* Pointer to the event specific argument */