Macro slurm_spank::SPANK_PLUGIN
source · macro_rules! SPANK_PLUGIN { ($spank_name:literal, $spank_version:expr, $spank_ty:ty) => { ... }; }
Expand description
Export a Plugin to make it available to the Slurm plugin loader
§Example
SPANK_PLUGIN!(b"renice", SLURM_VERSION_NUMBER, SpankRenice);
The first argument is the name of the SPANK plugin. It has to be provided as a byte string.
The second argument is the Slurm version for which the plugin is built, specified in hexadecimal (2 digits per version component). The SLURM_VERSION_NUMBER constant can be used. It refers to the version of the Slurm headers that the plugin is built against.
The last argument is a struct for which the Plugin trait has been implemented