Module scripting

Source
Expand description

This modules contains all what is needed to write scripts

Structs§

DynamicScript
A ScriptType::DynamicLib script needs to export a static instance of this struct named DynamicScript::NAME
FFiData
FFiData is used for communicating arbitrary data between ScriptType::DynamicLib scripts and the main program
FFiStr
FFiStr is used to send the hook name to ScriptType::DynamicLib script

Traits§

Scripter
Trait that should be implemented on a script abstraction struct
This concerns ScriptType::OneShot and ScriptType::Daemon
The implementer should provide Scripter::script_type, Scripter::name, Scripter::hooks and Scripter::version_requirement
The struct should call Scripter::execute\