VPI - Vision Programming Interface

0.2.0 Release

UserFunction

Functions

VPIStatus vpiSubmitUserFunction (VPIStream stream, VPIUserFunction func, void *userData)
 Pushes a command that will invoke a custom host-side function after all prior commands have been processed. More...
 

Detailed Description

Submits a user function to be executed on the stream.

Function Documentation

◆ vpiSubmitUserFunction()

VPIStatus vpiSubmitUserFunction ( VPIStream  stream,
VPIUserFunction  func,
void *  userData 
)

#include <vpi/UserFunction.h>

Pushes a command that will invoke a custom host-side function after all prior commands have been processed.

The execution of commands submitted after this call is suspended until the callback is finished.

Parameters
stream[in] a stream handle
func[in] Pointer to the user function to be executed.
userData[in] pointer that will be passed unchanged to the user function
Returns
an error code on failure else VPI_SUCCESS