Function ocsd_dt_attach_packet_callback

Source
pub unsafe extern "C" fn ocsd_dt_attach_packet_callback(
    handle: dcd_tree_handle_t,
    CSID: c_uchar,
    callback_type: ocsd_c_api_cb_types,
    p_fn_callback_data: *mut c_void,
    p_context: *const c_void,
) -> ocsd_err_t
Expand description

Attach a callback function to the packet processor.

The callback_type defines the attachment point, either the main packet output (only if no decoder attached), or the packet monitor.

@param handle : Handle to decode tree. @param CSID : Configured CoreSight trace ID for the decoder. @param callback_type : Attachment point @param p_fn_pkt_data_in : Pointer to the callback function. @param p_context : Opaque context pointer value used in callback function.

@return ocsd_err_t : Library error code - OCSD_OK if successful.