panda_is_callback_enabled

Function panda_is_callback_enabled 

Source
pub unsafe extern "C" fn panda_is_callback_enabled(
    plugin: *mut c_void,
    type_: panda_cb_type,
    cb: panda_cb,
) -> bool
Expand description

panda_is_callback_enabled() - Determine if this plugin is loaded and enabled. @plugin: Pointer to plugin (handle). @type: Type of callback @cb: The callback fn.

Oddly, this function requires not the name of the plugin but handle. Given that and callback type and fn, search the list of callbacks and return true iff that one is both registered and enabled.

See panda_cb_type. See panda_cb.

Return: True if enabled, false otherwise.