use crate::{value_ex::FfiValueRefUntyped, FfiSliceRef}; use super::ObjectABI; pub struct Plugin {} impl ObjectABI for Plugin { type VTable = PluginVTable; } pub struct PluginVTable { pub plugin_name: unsafe extern "C" fn() -> FfiSliceRef, pub plugin_version: unsafe extern "C" fn() -> FfiSliceRef, pub type_metadata: unsafe extern "C" fn() -> FfiValueRefUntyped, } impl PluginVTable { pub fn plugin_name(&self) -> &'static str { todo!() } pub fn type_metadata(&self) -> FfiValueRefUntyped { todo!() } }