Skip to main content

FREInitializer

Type Alias FREInitializer 

Source
pub type FREInitializer = unsafe extern "C" fn(*mut *mut c_void, *mut unsafe extern "C" fn(*mut c_void, *const u8, *mut c_void, *mut u32, *mut *const FRENamedFunction), *mut Option<unsafe extern "C" fn(*mut c_void)>);
Expand description

The initialization function provided by each extension must conform to the following signature.

@param extDataToSet Provided for the extension to store per-extension instance data. For example, if the extension creates globals per-instance, it can store a pointer to them here.

@param ctxInitializerToSet Must be set to a pointer to a function of type FREContextInitializer. Will be invoked whenever the ActionScript code creates a new context for this extension.

@param ctxFinalizerToSet Must be set to a pointer to a function of type FREContextFinalizer.