Example for a simple module skeleton.This demonstrates the minimal use of the API to create a module that can be loaded by mkd64. It does nothing.
#define MODVERSION "1.0"
typedef struct
{
} Module;
static void
{
Module *mod = (Module *)self;
free(mod);
}
instance(void)
{
Module *mod = calloc(1, sizeof(Module));
mod->mod.id = &id;
mod->mod.free = &delete;
}
SOEXPORT const char *
help(void)
{
return
"examplemod is an mkd64 module.\n";
}
SOEXPORT const char *
versionInfo(void)
{
return
"example " MODVERSION "\n";
}