int sm_close_module(struct sm_close_module_parms *closep)
typedef struct sm_close_module_parms { tSMModuleId module_id; /* in */ } SM_CLOSE_MODULE_PARMS;
Closes a Prosody module that was opened with sm_open_module(). Note that this function only releases any resources allocated by sm_open_module() and does not tidy up other resources connected with the module which may have been allocated by other API functions or the application. It is a serious error to close a module on which there are open channels.
0 if call completed successfully, otherwise a standard error.
This function is part of the Prosody generic API.