Macro wireplumber::plugin::simple_plugin_subclass

source ·
macro_rules! simple_plugin_subclass {
    (impl ObjectSubclass for $name:tt as $ty:ident { $($subclass:tt)* }) => { ... };
    (impl ObjectSubclass<$parent:ty> for $name:tt as $ty:ident { $($subclass:tt)* }) => { ... };
}
Expand description

Implements glib::ObjectSubclass, glib::ObjectImpl, and ObjectImpl for your plugin.

The plugin type must also manually impl SimplePlugin, and will be wrapped as SimplePluginObject<T>. See the module documentation for a full example.