#[unsafe(no_mangle)]pub unsafe extern "C" fn webui_render_partial(
protocol_data: *const u8,
protocol_len: usize,
state_json: *const c_char,
entry_id: *const c_char,
request_path: *const c_char,
inventory_hex: *const c_char,
) -> *mut c_charExpand description
Produce a complete JSON partial response for client-side navigation.
Combines route templates, inventory, and matched route chain into a single
JSON string: {"templates":[...],"inventory":"...","chain":[...]}.
§Arguments
protocol_data- Pointer to protobuf binary data.protocol_len- Length of the protobuf data in bytes.entry_id- Null-terminated UTF-8 string for the persistent entry fragment.request_path- Null-terminated UTF-8 route path used to select the active route chain.inventory_hex- Null-terminated hex string of the client’s inventory bitmask (pass empty string""if no inventory).
§Returns
A heap-allocated JSON string, or NULL on error. Caller frees with webui_free.
§Safety
protocol_datamust point toprotocol_lenbytes of valid memory.state_json,entry_id,request_path, andinventory_hexmust be valid null-terminated UTF-8 strings.