This function is only in Prosody version 1 (but see the conversion guide for further details, including a facility that emulates it).
int sm_download_fmw(struct sm_download_parms *downloadp)
typedef struct sm_download_parms {
tSMModuleId module; /* in */
tSM_INT id; /* in */
char *filename; /* in */
} SM_DOWNLOAD_PARMS;
Resets given module then downloads firmware in given file (must be ".smf" format firmware file) to that module and starts it running.
If all modules installed in the system are to run the same firmware, id should be set to zero. If however multiple modules are to be loaded with diverse types of firmware then the id parameter may be set to a non-zero application chosen identifier for the firmware actually downloaded. This same id may be later specified in calls to sm_channel_alloc() in order to ensure that channels are allocated to modules running appropriate firmware.
0 if call completed successfully, otherwise a standard error such as:
This function is part of the Prosody generic API.