[−][src]Trait kpal_plugin::PluginAPI
The set of functions that must be implemented by a plugin.
Associated Types
type Plugin
Required methods
fn new() -> Result<Self::Plugin, E>
Initializes and returns a new instance of the plugin.
fn attribute_name(&self, id: usize) -> Result<&CStr, E>
Returns the name of an attribute of the plugin.
fn attribute_value(&self, id: usize) -> Result<Value, E>
Returns the value of an attribute of the plugin.
fn attribute_set_value(&mut self, id: usize, value: &Value) -> Result<(), E>
Sets the value of an attribute.