int sm_module_status(struct sm_module_status_parms *statusp)
typedef struct sm_module_status_parms { tSMModuleId module_id; /* in */ enum kSMModuleStatus { kSMModuleStatusRunning, kSMModuleStatusShutdown, } status; /* out */ } SM_MODULE_STATUS_PARMS;
Reports the status of a Prosody module connection that was opened with sm_open_module(). Card types that use asynchronous control methods may block in sm_close_module(). After using sm_shutdown_module() to initiate the closing of a module, this function will report a status of kSMModuleStatusShutdown when sm_close_module() will not block.
0 if call completed successfully, otherwise a standard error.
This function is part of the Prosody generic API.