ewwii_plugin_api 1.2.0

A shared library for building plugins for ewwii
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! This module provides examples of plugin implementation

/// An example plugin that can be exported directly
pub struct ExamplePlugin;

impl crate::Plugin for ExamplePlugin {
    /// Example metadata for the plugin
    fn metadata(&self) -> crate::PluginInfo {
        crate::PluginInfo::new("com.example.plugin", "1.0.0")
    }

    /// Example code that initalizes the plugin
    fn init(&self, host: &dyn crate::EwwiiAPI) {
        host.log("Example plugin says Hello!");
    }
}