Skip to main content

Crate alpha2_plugin_abi

Crate alpha2_plugin_abi 

Source
Expand description

The alpha2-plugin/1 ABI, covering what a plugin exports, what a host gives it, and the binary records a plugin emits values in. Native plugins exchange the #[repr(C)] tables below; wasm plugins use the export and import names in wasm. Both send emits as records.

Modules§

direction
direction of a pass call.
log_level
level of a log call.
records
Emit records, which a plugin passes to emit one batch per call.
status
A plugin call returns one of these.
video_format
format of a video call.
wasm
Names a wasm plugin exports and imports. Pointers and lengths are i32 offsets into the module’s exported memory.

Structs§

HostV1
What a host gives a native plugin instance. Every function takes context first.
PluginV1
The static table a native plugin’s NATIVE_ENTRY returns, which outlives every instance.

Constants§

ABI
The ABI a manifest’s abi names.
ABI_MAJOR
The major version in ABI, which the native tables and alpha2_abi carry.
HOST_V1_BASE_BYTES
Bytes of HostV1 as the first /1 hosts filled it, before any appended field; every host table is at least this long.
NATIVE_ENTRY
The symbol a native plugin exports, NUL-terminated: extern "C" fn() -> *const PluginV1.