Remote Administration Daemon Developer Guide

Exit Print View

Updated: July 2014
 
 

Module Registration

Function
Description
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 0 to 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 rad module interface the module is using. modinfo contains information used to identify the module.