Skip to main content

cai_plugin_destroy

Function cai_plugin_destroy 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn cai_plugin_destroy(ptr: *mut CaiPlugin)
Expand description

Destroy a CAI plugin instance

ยงSafety

  • ptr must be a valid pointer returned by cai_plugin_create or null
  • This function should only be called once per plugin instance
  • The pointer becomes invalid after this call