Skip to main content

pt_blk_event

Function pt_blk_event 

Source
pub unsafe extern "C" fn pt_blk_event(
    decoder: *mut pt_block_decoder,
    event: *mut pt_event,
    size: usize,
) -> c_int
Expand description

Get the next pending event.

On success, provides the next event in @event and updates @decoder.

The @size argument must be set to sizeof(struct pt_event).

Returns a non-negative pt_status_flag bit-vector on success, a negative error code otherwise.

Returns -pte_bad_query if there is no event. Returns -pte_invalid if @decoder or @event is NULL. Returns -pte_invalid if @size is too small.