Module Registration in C for RAD
The following are the RAD module registration functions in the C language:
- 
                        int _rad_init(void *handle);
- 
                     A module must provide a _rad_init. This is called by the RAD daemon when the module is loaded and is a convenient point for module initialization including registration. Return 0to indicate that the module successfully initialized.
- 
                        int rad_module_register(void *handle, int version, rad_modinfo_t *modinfo);
- 
                     rad_module_register provides a handle, which is the handle provided to the module in the call to _rad_init. This handle is used by the RAD daemon to maintain the private list of loaded modules. The version indicates which version of the radmodule interface the module is using.modinfocontains information used to identify the module.