Skip to main content

Module plugin

Module plugin 

Source
Expand description

Host-side loading and invocation of routine dynamic libraries.

Routine plugins export a C ABI documented in the crate root. This module resolves symbols, validates API version, and calls run, help, and optional finish_installation hooks.

For authoring a plugin, implement the cotis_plugin_* exports in your cdylib crate. See cotis-web-builder and cotis-android-builder for complete examples.

Structs§

LoadedPlugin
A loaded routine dynamic library with resolved C symbols.
PluginDescriptor
JSON descriptor returned by cotis_plugin_descriptor_json.

Constants§

COTIS_PLUGIN_API_VERSION
Plugin ABI version that LoadedPlugin::ensure_compatible requires.