Attribute Macro panda_macros::before_loadvm

source ·
#[before_loadvm]
Expand description

(Callback) Called at start of replay, before loadvm is called. This allows us to hook devices’ loadvm handlers. Remember to unregister the existing handler for the device first. See the example in the sample plugin.

Callback ID: PANDA_CB_BEFORE_LOADVM

   Arguments:
    none

   Helper call location: TBA

   Return value:
    unused

Callback arguments: ()

Example

use panda::prelude::*;

#[panda::before_loadvm]
fn callback() {
    // do stuff
}