Skip to main content

Crate player_plugin_abi

Crate player_plugin_abi 

Source
Expand description

Raw C-compatible contracts for Vesper Plugin Platform.

Plugin authors should depend on player-plugin, not this crate. This crate intentionally exposes raw pointers and function tables for the generated native boundary and the checked host loader.

Modules§

status
Stable plugin status values.

Structs§

VesperAudioProcessor
VesperBenchmarkSink
VesperByteSlice
Host-owned bytes borrowed for one synchronous ABI call.
VesperFrameProcessor
VesperInterfaceDescriptor
Host-initialized result for root interface enumeration.
VesperInterfaceHeader
Header prefix shared by every typed interface table.
VesperInterfaceId
Canonical UUID bytes identifying a typed plugin interface.
VesperJsonOut
Host-initialized output carrying one plugin-owned JSON document.
VesperNativeDecoder
VesperNativeFrameOut
Host-initialized output for a native frame receive operation.
VesperOpenSessionOut
Host-initialized output for a session open operation.
VesperOwnedBytes
Plugin-owned bytes released through VesperPluginRoot::free_bytes.
VesperPacketOut
Host-initialized output for a borrowed packet lease.
VesperPcmFrameOut
Host-initialized output for decoded PCM bytes.
VesperPipelineEventHook
VesperPluginRoot
Stable native root returned by vesper_plugin_entry.
VesperPostDownloadProcessor
VesperProgressCallbacks
Host callbacks borrowed for one synchronous processing call.
VesperSourceNormalizerPacket
VesperSourceNormalizerResource

Constants§

AUDIO_PROCESSOR_INTERFACE_ID
BENCHMARK_SINK_INTERFACE_ID
FRAME_PROCESSOR_INTERFACE_ID
NATIVE_DECODER_INTERFACE_ID
PIPELINE_EVENT_HOOK_INTERFACE_ID
POST_DOWNLOAD_PROCESSOR_INTERFACE_ID
SOURCE_NORMALIZER_PACKET_INTERFACE_ID
SOURCE_NORMALIZER_RESOURCE_INTERFACE_ID
VESPER_AUDIO_PROCESSOR_REQUIRED_SIZE
VESPER_BENCHMARK_SINK_REQUIRED_SIZE
VESPER_FRAME_PROCESSOR_REQUIRED_SIZE
VESPER_INTERFACE_MAJOR
VESPER_INTERFACE_MINOR
VESPER_MAX_CAPABILITY_INSTANCE_ID_BYTES
Maximum UTF-8 byte length of a capability instance identity.
VESPER_MAX_INTERFACES_PER_PLUGIN
Maximum number of interfaces exposed by one root.
VESPER_MAX_LEASES_PER_SESSION
Maximum number of concurrently retained leases in one session.
VESPER_MAX_OWNED_BYTES
Maximum size accepted for one plugin-owned ABI allocation.
VESPER_MAX_PACKET_BYTES
Maximum size accepted for one borrowed source-normalizer packet payload.
VESPER_MAX_PCM_BYTES
Maximum size accepted for one borrowed PCM frame payload.
VESPER_MAX_PLUGIN_ID_BYTES
Maximum UTF-8 byte length of a reverse-DNS plugin identity.
VESPER_MAX_PLUGIN_NAME_BYTES
Maximum UTF-8 byte length of a human-readable plugin name.
VESPER_MAX_SESSIONS_PER_INTERFACE
Maximum number of concurrently registered sessions per interface instance.
VESPER_NATIVE_DECODER_REQUIRED_SIZE
VESPER_PIPELINE_EVENT_HOOK_REQUIRED_SIZE
VESPER_PLUGIN_ABI_MAJOR
Root ABI major implemented by this crate.
VESPER_PLUGIN_ABI_MINOR
Root ABI minor implemented by this crate.
VESPER_PLUGIN_ENTRY_SYMBOL
NUL-terminated native entry symbol exported by every native plugin.
VESPER_PLUGIN_ENTRY_SYMBOL_NAME
Human-readable native entry symbol without the terminating NUL byte.
VESPER_POST_DOWNLOAD_PROCESSOR_REQUIRED_SIZE
VESPER_RELEASE_DISCARDED
VESPER_RELEASE_PRESENTED
VESPER_SOURCE_NORMALIZER_PACKET_REQUIRED_SIZE
VESPER_SOURCE_NORMALIZER_RESOURCE_REQUIRED_SIZE

Functions§

abi_contains
abi_size
Returns the ABI size field for a concrete repr(C) type.

Type Aliases§

VesperGetJsonFn
VesperJsonCallFn
VesperLeaseId
VesperOpenSessionFn
VesperPluginEntryPoint
Native plugin entry point signature.
VesperSessionId
VesperSessionOperationFn
VesperStatus
Raw status returned across the native ABI.