#[unsafe(no_mangle)]pub unsafe extern "C" fn webui_handler_render(
handler_ptr: *mut c_void,
protocol_data: *const u8,
protocol_len: usize,
data_json: *const c_char,
entry_id: *const c_char,
request_path: *const c_char,
) -> *mut c_charExpand description
Render a WebUI protocol (protobuf binary) with JSON data.
§Arguments
handler_ptr- Pointer returned bywebui_handler_create.protocol_data- Pointer to protobuf binary data.protocol_len- Length of the protobuf data in bytes.data_json- Null-terminated JSON string with the render state.entry_id- Null-terminated UTF-8 string for the entry fragment.request_path- Null-terminated UTF-8 string for the URL path to match routes against (e.g.,"/contacts/42").
§Returns
A pointer to a null-terminated UTF-8 string with the rendered HTML, or
NULL on error. The caller must free the returned string with
webui_free. On error, call webui_last_error for details.
§Safety
handler_ptrmust be a valid pointer returned bywebui_handler_create.protocol_datamust point toprotocol_lenbytes of valid memory.data_json,entry_id, andrequest_pathmust be valid null-terminated UTF-8 strings.