Type Alias fnPktDataSinkCB

Source
pub type fnPktDataSinkCB = Option<unsafe extern "C" fn(lib_context: *const c_void, op: ocsd_datapath_op_t, index_sop: ocsd_trc_index_t, pkt: *const c_void) -> ocsd_datapath_resp_t>;
Expand description

callback function to connect to the packet sink interface, on the main decode data path - use if decoder created as packet processor only

Implements IPktDataIn::PacketDataIn with addition of library context pointer.

Aliased Type§

enum fnPktDataSinkCB {
    None,
    Some(unsafe extern "C" fn(*const c_void, u32, u32, *const c_void) -> u32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const c_void, u32, u32, *const c_void) -> u32)

Some value of type T.