Function ocsd_dt_create_decoder

Source
pub unsafe extern "C" fn ocsd_dt_create_decoder(
    handle: dcd_tree_handle_t,
    decoder_name: *const c_char,
    create_flags: c_int,
    decoder_cfg: *const c_void,
    pCSID: *mut c_uchar,
) -> ocsd_err_t
Expand description

Creates a decoder that is registered with the library under the supplied name. Flags determine if a full packet processor / packet decoder pair or packet processor only is created. Uses the supplied configuration structure.

@param handle : Handle to decode tree. @param *decoder_name : Registered name of the decoder to create. @param create_flags : Decoder creation options. @param *decoder_cfg : Pointer to a valid configuration structure for the named decoder. @param *pCSID : Pointer to location to return the configured CoreSight trace ID for the decoder.

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