int sm_fmptx_datafeed_connect(struct sm_fmptx_datafeed_connect_parms *datafeedp)
typedef struct sm_fmptx_datafeed_connect_parms { tSMDatafeedId data_source; /* in */ tSMFMPtxId data_dest; /* in */ } SM_FMPTX_DATAFEED_CONNECT_PARMS;
Connects a datafeed to a FMP[tx]. The data_source must be a datafeed obtained from sm_channel_get_datafeed() or sm_fmprx_get_datafeed(). The channel data_dest will recieve any data that is generated by the output task from which data_source was derived.
To disconnect a FMP[tx] from a datafeed, specify
kSMNullDatafeedId
as the tSMDatafeedId in
data_source.
Requires the modules datafeed fmptx to have been downloaded.
0 if call completed successfully, otherwise a standard error.
This function is part of the Prosody FMP processing API.