1 |
use dlopen2::wrapper::WrapperApi;
|
2 |
|
3 |
use crate::vtable::{
|
4 |
plugin::{Plugin, PluginVTable},
|
5 |
runtime::{RuntimeHandle, RuntimeVTable},
|
6 |
VTable,
|
7 |
};
|
8 |
|
9 |
#[derive(WrapperApi)]
|
10 |
pub struct GiteratedPluginAbi {
|
11 |
__load_runtime_vtable: unsafe extern "C" fn(vtable: &'static VTable<RuntimeHandle>),
|
12 |
__get_plugin_vtable: unsafe extern "C" fn() -> &'static VTable<Plugin>,
|
13 |
}
|
14 |
|