Macro ts3plugin::create_plugin
[−]
[src]
macro_rules! create_plugin { ($name: expr, $version: expr, $author: expr, $description: expr, $configurable: expr, $autoload: expr, $typename: ident) => { ... }; }
Create a plugin. This macro has to be called once per library to create the function interface that is used by TeamSpeak.
Arguments
- name - The name of the plugin as displayed in TeamSpeak
- version - The version of the plugin as displayed in TeamSpeak
- author - The author of the plugin as displayed in TeamSpeak
- description - The description of the plugin as displayed in TeamSpeak
- configurable - If the plugin offers the possibility to be configured
- autoload - If the plugin should be loaded by default or only if activated manually
- typename - The type of the class that implements the
Plugin
trait
Examples
Create an example plugin with a given name, version, author, description and
a struct MyTsPlugin
that implements the Plugin
trait:
create_plugin!("My Ts Plugin", "0.1.0", "My Name", "A wonderful tiny example plugin", ConfigureOffer::No, false, MyTsPlugin);