spinInterfaceEventHandlerCreate

Function spinInterfaceEventHandlerCreate 

Source
pub unsafe extern "C" fn spinInterfaceEventHandlerCreate(
    phInterfaceEventHandler: *mut spinInterfaceEventHandler,
    pArrivalFunction: spinArrivalEventFunction,
    pRemovalFunction: spinRemovalEventFunction,
    pUserData: *mut c_void,
) -> spinError
Expand description

Creates an interface event handler (both device arrival and device removal) @see spinError

@param phInterfaceEventHandler The interface event handler pointer in which the interface event context is created @param pArrivalFunction The function to be called at arrival event occurrences; signature to match: void(spinArrivalEventFunction)(void pUserData) @param hRemovalFunction The function to be called at removal event occurrences; signature to match: void(spinRemovalEventFunction)(uint64_t deviceSerialNumber, void pUserData) @param pUserData Properties that can be passed into the event function

@return spinError The error code; returns SPINNAKER_ERR_SUCCESS (or 0) for no error