#[unsafe(no_mangle)]pub unsafe extern "C" fn plugin_init(
plugin_ptr: *mut c_void,
config_json: *const u8,
config_len: usize,
log_callback: Option<LogCallback>,
) -> *mut c_voidExpand description
Initialize a plugin instance
§Parameters
plugin_ptr: Pointer to the plugin instance (from plugin_create)config_json: JSON configuration bytes (can be null for defaults)config_len: Length of config_jsonlog_callback: Optional log callback function
§Returns
Handle to the initialized plugin, or null on failure
§Safety
plugin_ptrmust be a valid pointer fromplugin_createconfig_jsonmust be valid forconfig_lenbytes if not null- The log callback must remain valid for the lifetime of the plugin