Browse
 
Tools
Rss Categories

LV_SRE_StreamSetStateChangeCallBack

Reference Number: AA-00733 Views: 9642 0 Rating/ Voters

Specifies a call-back function for handling stream state changes.

Function

  • int LV_SRE_StreamSetStateChangeCallBack(HPORT hport, void* fn, void* UserData)

Parameters

hport

The port's handle.

fn

Pointer to callback function to receive state change updates. See Streaming Callback Function.

UserData

Application defined data sent in to callback function.

Return Values

LV_SUCCESS

No errors; data accepted.

LV_INVALID_HPORT

The input hport is not a valid one.

LV_FAILURE

The operation failed because the port was shutting down.

LV_EXCEPTION

An exception occurred while processing the request.

Remarks

Each time the stream status changes, the callback fn will be called. Here are the possible Stream Status messages.

See Also