Specifies a call-back function for handling stream state changes.
Function
- int StreamSetStateChangeCallBack(void* fn, void* UserData)
Parameters
fn
Pointer to callback function to receive state change updates. See Stream Callback.
UserData
Application defined data sent back in callback.
Return Values
LV_SUCCESS
No errors; data accepted.
LV_INVALID_HPORT
The port is not valid (either CreateClient has not been called or DestroyClient has been called prior to this call).
LV_FAILURE
The operation failed because the port was shutting down.
LV_EXCEPTION
An exception occurred while processing the request.
Remarks
Each time a streams status changes, this callback will be called. Here are the possible Stream Status messages.
See Also