JavaScript is disabled, refresh for a better experience. ambee/giterated

ambee/giterated

Git repository hosting, collaboration, and discovery for the Fediverse.

More restructuring

Amber - ⁨1⁩ year ago

parent: tbd commit: ⁨10b7b7c

⁨giterated-runtime/giterated-abi/src/plugin.rs⁩ - ⁨374⁩ bytes
Raw
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