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:


This function is part of the Prosody SPRT end point API.