Turning a static module into a DSO
It requires only little work to transform a static module into a dynamic one (and vice versa). Assuming we would like to turn our module meminit into a DSO, we simply have to
- save all the functions of the module and the definition of the structures for passing information into a separate file;
- replace the prototype of the module initialization function by the following:
DSO_INIT meminit_init(XPRMnifct nifct, int *interver, int *libver, XPRMdsointer **interf)