pub type VSInitPlugin = unsafe extern "system-unwind" fn(plugin: *mut VSPlugin, vspapi: *const VSPLUGINAPI);
Expand description
A plugin’s entry point. It must be called VapourSynthPluginInit2
.
This function is called after the core loads the shared library.
Its purpose is to configure the plugin and to register the filters the plugin wants to export.
§Arguments
plugin
- A pointer to the plugin object to be initialized.vspapi
- A pointer to aVSPLUGINAPI
struct with a subset of theVapourSynth
API used for initializing plugins. The proper way to do things is to callconfigPlugin
and thenregisterFunction
for each function to export.