Expand description
This modules contains all what is needed to write scripts
Structs
A ScriptType::DynamicLib script needs to export a static instance of this struct named DynamicScript::NAME
FFiData
is used for communicating arbitrary data between ScriptType::DynamicLib scripts and the main program
FFiStr
is used to send the hook name to ScriptType::DynamicLib script
Traits
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