pub type ConnectorDescriptor = PluginDescriptor<LoadableConnector>;Aliased Type§
#[repr(C)]pub struct ConnectorDescriptor {
pub plugin_version: i32,
pub accept_input: bool,
pub input_layout: &'static TypeLayout,
pub output_layout: &'static TypeLayout,
pub name: CSliceRef<'static, u8>,
pub version: CSliceRef<'static, u8>,
pub description: CSliceRef<'static, u8>,
pub help_callback: Option<extern "C" fn(OpaqueCallback<'_, ReprCString>)>,
pub target_list_callback: Option<extern "C" fn(OpaqueCallback<'_, TargetInfo>) -> i32>,
pub create: extern "C" fn(Option<&ConnectorArgs>, COption<OsInstance<'static, CBox<'static, c_void>, CArc<c_void>>>, CArc<c_void>, Option<&'static PluginLogger>, &mut MaybeUninit<ConnectorInstance<'static, CBox<'static, c_void>, CArc<c_void>>>) -> i32,
}Fields§
§plugin_version: i32The plugin api version for when the plugin was built.
This has to be set to MEMFLOW_PLUGIN_VERSION of memflow.
If the versions mismatch the inventory will refuse to load.
accept_input: boolDoes the plugin accept an input parameter?
input_layout: &'static TypeLayoutLayout of the input type.
output_layout: &'static TypeLayoutLayout of the loaded type.
name: CSliceRef<'static, u8>The name of the plugin. This name will be used when loading a plugin from the inventory.
During plugin discovery, the export suffix has to match this name being capitalized
version: CSliceRef<'static, u8>The version of the connector. If multiple connectors are installed the latest is picked.
description: CSliceRef<'static, u8>The description of the connector.
help_callback: Option<extern "C" fn(OpaqueCallback<'_, ReprCString>)>Retrieves a help string from the plugin (lists all available commands)
target_list_callback: Option<extern "C" fn(OpaqueCallback<'_, TargetInfo>) -> i32>Retrieves a list of available targets for the plugin
create: extern "C" fn(Option<&ConnectorArgs>, COption<OsInstance<'static, CBox<'static, c_void>, CArc<c_void>>>, CArc<c_void>, Option<&'static PluginLogger>, &mut MaybeUninit<ConnectorInstance<'static, CBox<'static, c_void>, CArc<c_void>>>) -> i32Create instance of the plugin