Skip to main content

CopperlaceProcessorCallback

Type Alias CopperlaceProcessorCallback 

Source
pub type CopperlaceProcessorCallback = unsafe extern "C" fn(*const c_char, *mut CopperlaceProcessorResult, *mut c_void) -> c_int;
Expand description

Host callback used by custom C ABI processors.

The callback receives a UTF-8 input string, an opaque result handle, and the user data pointer provided when creating the ruleset. It should set either output or error on result and return COPPERLACE_OK on success.