macro_rules! export_plugin_v2 {
($body:expr) => { ... };
}Expand description
Export an ABI v2 plugin entrypoint under rpi_plugin_register_v2.
The expression receives &PluginApiVt and returns the plugin-defined
registration status code.
ⓘ
rpi_plugin_sdk::export_plugin_v2!(|api| {
// register tools and handlers through `api`
0
});