Skip to main content

siglus_pump_create

Function siglus_pump_create 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn siglus_pump_create( game_root_utf8: *const c_char, ) -> *mut SiglusPumpHandle
Expand description

Create a host to drive with siglus_pump_step, or return null on failure.

ยงSafety

If non-null, game_root_utf8 must point to a NUL-terminated string in a single readable allocation of at most isize::MAX bytes, including the terminator. The bytes must remain valid and unchanged for this call. Call on the platform event-loop thread (the main thread on platforms that require it). Use and destroy the returned handle only on that thread.