Prosody Framer: API: sm_framer_datafeed_connect

Prototype Definition

int sm_framer_datafeed_connect(struct sm_framer_datafeed_connect_parms *datafeedp)

Parameters

*datafeedp
a structure of the following type:
typedef struct sm_framer_datafeed_connect_parms {
	tSMDatafeedId data_source;				/* in */
	tSMFramerId framer;					/* in */
	tSM_INT direction;					/* in */
} SM_FRAMER_DATAFEED_CONNECT_PARMS;

Description

Connect a datafeed to one of the inputs of the Framer.

Fields

data_source
The datafeed object to be connected.
framer
The framer to connect the datafeed to.
direction
The input to which the datafeed is to be connected. If direction is 0, then the enframer-side input is connected. If direction is 1, then the deframer-side input is connected.

Returns

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


This function is part of the Prosody Framer API.