Skip to main content

plugin_get_state

Function plugin_get_state 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn plugin_get_state(handle: *mut c_void) -> u8
Expand description

Get the current state of a plugin

§Parameters

  • handle: Plugin handle from plugin_init

§Returns

State code (0=Installed, 1=Starting, 2=Active, 3=Stopping, 4=Stopped, 5=Failed) Returns 255 if handle is invalid

§Safety

  • handle must be a valid handle from plugin_init