Skip to main content

soil_register_types

Function soil_register_types 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn soil_register_types( runtime: *mut SoilRuntime, desc_json: *const c_char, err: *mut *mut SoilError, ) -> c_int
Expand description

Register types from descriptor JSON (see descriptor_json). Returns 0 on success, nonzero with *err set on failure.

ยงSafety

runtime is a live runtime; desc_json is a NUL-terminated UTF-8 string; err is null or a valid out-pointer.