Skip to main content

OnEntriesJsonFn

Type Alias OnEntriesJsonFn 

Source
pub type OnEntriesJsonFn = unsafe extern "C" fn(*const u8, usize, *mut u8, *mut usize) -> i32;
Expand description

Optional export: rewrite a JSON array of entries.

Input: UTF-8 JSON bytes. Output buffer is provided by the host; plugin writes JSON and sets *out_len. Return 0 on success, non-zero on error.