Skip to main content

FreeStringFn

Type Alias FreeStringFn 

Source
pub type FreeStringFn = extern "C" fn(s: StbString);
Expand description

Function pointer a plugin exports to free a StbString it produced. Idempotent: freeing an already-freed or empty StbString is a no-op.

The host calls this for every StbString it receives from the plugin; the plugin calls the host’s free_string (from PluginApiVt) for every StbString it receives from the host.