Luna::add_module

RV add_module(Module *handle)

Adds one module to the module system. If this module is already added, this function does nothing.

Parameters

  • in handle

    The module description structure pointer. This pointer shall be unique for every added module, the module system uses this pointer to identify the module.

Remark

Adding one module to the module system does not initialize the module, the added module must be explicitly initialized using init_module or init_modules before it can be used.

Valid Usage

  • handle must point to one valid module instance.