Skip to main content

JsonCallback

Type Alias JsonCallback 

Source
pub type JsonCallback = unsafe extern "C" fn(json: *mut c_char, user_data: *mut c_void);
Expand description

Callback that delivers a JSON-encoded payload as a heap-owned C string.

The receiver is responsible for freeing json (typically by passing it back into a Swift bridge free_* helper or via the consuming wrapper’s Drop impl).