SWU_MODULE_INITIALIZE()

Initialize a module after it has been loaded.

Synopsis:

#include <swud/swu_module.h>

swu_result_t SWU_MODULE_INITIALIZE( int argc, char *argv[] )

Arguments:

argc
Number of items in argv.
argv
An array containing the arguments passed into the module when it was loaded.

Description:

Initialize a module. The swud service calls this function on a module after it's finished loading it. The function should only initialize the module, allocate any necessary resources (e.g., threads), and then return as quickly as possible so it doesn't block swud.

Returns:

An swu_result_t constant indicating if the initialization was successful or what error (if any) occurred.