Skip to main content

siglus_pump_set_native_messagebox_callback

Function siglus_pump_set_native_messagebox_callback 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn siglus_pump_set_native_messagebox_callback( handle: *mut SiglusPumpHandle, callback: Option<SiglusNativeMessageBoxCallback>, user_data: *mut c_void, )
Expand description

Set the callback used to display native message boxes.

ยงSafety

If non-null, handle must be a live pointer returned by siglus_pump_create. Call on the thread that created it, with exclusive access to the handle for the entire call, including during callbacks. The callback and any data it accesses through user_data must remain valid until the callback is replaced or the handle is destroyed. The callback must not unwind or reenter functions that access this handle.