Skip to main content

maplibre_native_ffi/
plugin.rs

1use crate::render;
2
3/// Returns the process-lifetime v1 plugin registration function pointer.
4/// Pass it to the plugin's own registration entry point before loading dependent styles.
5pub fn plugin_register_function_v1() -> render::NativePointer {
6    // SAFETY: the native registration function remains valid for the process lifetime.
7    unsafe {
8        render::NativePointer::from_address(maplibre_native_ffi_core::plugin_register_function_v1())
9    }
10}