Prosody SPRT end point: API: sm_sprt_create
Prototype Definition
int sm_sprt_create(struct sm_sprt_create_parms *createp)
Parameters
- *createp
-
a structure of the following type:
typedef struct sm_sprt_create_parms {
tSMSPRTId sprt; /* out */
tSMModuleId module; /* in */
} SM_SPRT_CREATE_PARMS;
Description
Creates an SPRT end point.
Fields
- sprt
- The created SPRT end point.
- module
- A value obtained from
sm_open_module()
Indicates the module on which the SPRT end point is to be created.
Returns
0
if call completed successfully, otherwise a standard error such as:
- ERR_SM_DEVERR - device error
- ERR_SM_NO_RESOURCES - if no suitable output channel free
- ERR_SM_NO_SUCH_MODULE - if invalid module identifier specified
This function is part of the Prosody SPRT end point API.