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

ambee/giterated

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

Structure refactoring

Amber - ⁨1⁩ year ago

parent: tbd commit: ⁨a8f41ac

⁨giterated-runtime/src/api.rs⁩ - ⁨571⁩ bytes
Raw
1 #[derive(WrapperApi)]
2 pub struct GiteratedPluginApi {
3 plugin_meta: unsafe extern "C" fn() -> FFIPluginMeta,
4 load_host_vtable: unsafe extern "C" fn(vtable: &HostVTable),
5 load_initialization_vtable: unsafe extern "C" fn(vtable: &'static VTable<Initialization>),
6 initialize: unsafe extern "C" fn(runtime_state: *const RuntimeState) -> PluginState,
7 initialize_registration: unsafe extern "C" fn(
8 init_state: *mut PluginInitializationState,
9 ) -> *mut PluginInitializationState,
10 load_type_metadata: unsafe extern "C" fn(metadata: *mut ()),
11 }