Skip to main content

get_plugin_register_function_v1

Function get_plugin_register_function_v1 

Source
pub fn get_plugin_register_function_v1() -> mln_plugin_register_function_v1
Expand description

Returns the function that registers a plugin’s style layer types.

Pass the function to the plugin’s registration entry point before loading a style that uses the plugin’s layer types. Plugin callbacks run on library threads and can keep running while the process exits, so they must not use state that the process destroys at exit.

See mln_plugin_get_register_function_v1 in the C API reference.