Skip to main content

webui_handler_create_with_plugin

Function webui_handler_create_with_plugin 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn webui_handler_create_with_plugin( plugin_id: *const c_char, ) -> *mut c_void
Expand description

Create a new WebUI handler instance with a named plugin.

§Arguments

  • plugin_id - Null-terminated UTF-8 string identifying the plugin. Refer to the CLI/crate documentation for the current list of supported identifiers.

§Returns

An opaque pointer that must be freed with webui_handler_destroy, or NULL on error (call webui_last_error for details).

§Safety

plugin_id must be a valid null-terminated UTF-8 string, or NULL.