Function parse_mappings

Source
#[unsafe(no_mangle)]
pub extern "C" fn parse_mappings(
    mappings: *mut u8,
) -> *mut Mappings<()>
Expand description

Parse the given initialized mappings string into a Mappings structure.

Returns NULL on failure, or a pointer to the parsed Mappings structure on success.

In the case of failure, the error can be retrieved with get_last_error.

In the case of success, the caller takes ownership of the result, and must call free_mappings to destroy it when finished.

In both the success or failure cases, the caller gives up ownership of the input mappings string and must not use it again.