Prosody SPRT end point: API: sm_sprt_get_datafeed

Prototype Definition

int sm_sprt_get_datafeed(struct sm_sprt_get_datafeed_parms *datafeedp)

Parameters

*datafeedp
a structure of the following type:
typedef struct sm_sprt_get_datafeed_parms {
	tSMSPRTId sprt;						/* in */
	tSMDatafeedId datafeed;					/* out */
} SM_SPRT_GET_DATAFEED_PARMS;

Description

Request a datafeed identifier from a SPRT end point. It is valid until the SPRT end point is destroyed. Datafeed connections can only be made between objects allocated on the same tSMModuleId.

Requires the module datafeed to have been downloaded.

Fields

sprt
The SPRT end point from which to obtain a datafeed
datafeed
The datafeed object associated with the output channel

Returns

0 if call completed successfully, otherwise a standard error such as:


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