This function is only in Prosody before the V6 API.
int sm_get_modules(void)
Returns number of Prosody modules present in system and known to driver.
Count of modules (greater than or equal to zero) if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody generic API.