Type Alias simics_api_sys::recorder_input_handler_t

source ·
pub type recorder_input_handler_t = Option<unsafe extern "C" fn(obj: *mut conf_object_t, data: *mut dbuffer_t, uint_data: uint32)>;
Expand description
This interface is deprecated; please use the recorder_v2 instead.

To initiate recording, the object should call the attach method with the recorder, the object itself, and an input handler as parameters. This is done once, typically when the object instance is created.

When the object receives data from outside the simulator, it should call the input method with a dbuffer_t containing the raw data in unspecified form, along with an extra word of user data. The data parameter can be NULL if not needed.

The input_from_recorder function is called with input data to the object. When using live input, it is called with data given to input; when playing back, it is called with recorded data. An object should never use its input directly but only what it receives from input_from_recorder.

The playback function returns true if the recorder is currently playing back recorded data and false if not.

The dbuffer_t parameters retain their respective ownership. The input_from_recorder function must not modify the contents without cloning it first.

Cell Context for all methods.

Aliased Type§

enum recorder_input_handler_t {
    None,
    Some(unsafe extern "C" fn(_: *mut conf_object, _: *mut dbuffer, _: u32)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: *mut conf_object, _: *mut dbuffer, _: u32))

Some value of type T.