1 |
use crate::value_ex::FfiValueRefUntyped;
|
2 |
|
3 |
use super::ObjectABI;
|
4 |
|
5 |
pub struct Plugin {}
|
6 |
|
7 |
impl ObjectABI for Plugin {
|
8 |
type VTable = PluginVTable;
|
9 |
}
|
10 |
|
11 |
pub struct PluginVTable {
|
12 |
pub plugin_name: unsafe extern "C" fn() -> &'static str,
|
13 |
pub type_metadata: unsafe extern "C" fn() -> FfiValueRefUntyped,
|
14 |
}
|
15 |
|
16 |
impl PluginVTable {
|
17 |
pub fn plugin_name(&self) -> &'static str {
|
18 |
todo!()
|
19 |
}
|
20 |
|
21 |
pub fn type_metadata(&self) -> FfiValueRefUntyped {
|
22 |
todo!()
|
23 |
}
|
24 |
}
|
25 |
|