pub unsafe extern "C" fn panda_register_callback(
plugin: *mut c_void,
type_: u32,
cb: panda_cb,
)Expand description
panda_register_callback() - Register a callback for a plugin, and enable it. @plugin: Pointer to plugin. @type: Type of callback, indicating when cb function will run. @cb: The callback function itself and other info.
This function will register a callback to run in panda and is typically called from plugin code.
The order of callback registration will determine the order in which callbacks of the same type will be invoked.
NB: Registering a callback function twice from the same plugin will trigger an assertion error.
type is number. See typedef panda_cb_type. cb is a pointer to a struct. See typedef panda_cb.