Prosody SPRT end point: API: sm_sprt_config_data_format

Prototype Definition

int sm_sprt_config_data_format(struct sm_sprt_config_data_format_parms *configp)

Parameters

*configp
a structure of the following type:
typedef struct sm_sprt_config_data_format_parms {
	tSMSPRTId sprt;						/* in */
	enum kSMSPRTDataDirection {
		kSMSPRTDataDirectionTx,
		kSMSPRTDataDirectionRx,
	} direction;						/* in */
	enum kSMSPRTDataFormat {
		kSMSPRTDataFormatNone,
		kSMSPRTDataFormatIOctet,
		kSMSPRTDataFormatIOctetCS,
		kSMSPRTDataFormatIRawOctet,
	} format;						/* in */
} SM_SPRT_CONFIG_DATA_FORMAT_PARMS;

Description

Configures the data formats used.

Fields

sprt
The SPRT end point to configure.
direction
The data direction to configure One of these values:
kSMSPRTDataDirectionTx
kSMSPRTDataDirectionRx
format
The data format to be used One of these values:
kSMSPRTDataFormatNone
kSMSPRTDataFormatIOctet
kSMSPRTDataFormatIOctetCS
kSMSPRTDataFormatIRawOctet

Returns

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


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