Module initialization
The module initialization function takes the following form. It must always be present. The function name must correspond to the name of the module, with _init appended to it. The first parameter passes the list of Mosel NI functions to the module, the other three parameters must be filled in by the module. The initialization function returns 0 if executed successfully, 1 otherwise.
DSO_INIT modulename_init(XPRMnifct nifct, int *interver, int *libver, XPRMdsointer **interf)
Arguments:
- nifct
- List of Native Interface functions provided by Mosel
- interver
- Native Interface version used by the module, must be set to XPRM_NIVERS
- libver
- Module version. The macro XPRM_MKVER can be used to compose a version number of three integers, for example with XPRM_MKVER(0,0,1) the smallest possible value (namely 0.0.1) is obtained
- interf
- Interface structure