Prosody generic: API: sm_tdmtx_datafeed_connect

Prototype Definition

int sm_tdmtx_datafeed_connect(struct sm_tdmtx_datafeed_connect_parms *datafeedp)

Parameters

*datafeedp
a structure of the following type:
typedef struct sm_tdmtx_datafeed_connect_parms {
	tSMDatafeedId data_source;				/* in */
	tSMTDMtxId tdmtx;					/* in */
} SM_TDMTX_DATAFEED_CONNECT_PARMS;

Description

Connects a datafeed to a TDM[tx]. The data_source must be a datafeed obtained from any of the *_get_datafeed() functions except sm_tdmrx_get_datafeed(). The TDM[tx] tdmtx will receive any data that is generated by the output task from which data_source was derived.

To disconnect a TDM[tx] from a datafeed, specify kSMNullDatafeedId as the tSMDatafeedId in data_source

Requires the module datafeed to have been downloaded.

Fields

data_source
The datafeed acting as a source of data
tdmtx
The TDM[tx] that will receive the data

Returns

0 if call completed successfully, otherwise a standard error.


This function is part of the Prosody generic API.