Prosody generic: API: sm_get_driver_info

Prototype Definition

int sm_get_driver_info(struct sm_driver_info_parms *drvinfop)

Parameters

*drvinfop
a structure of the following type:
typedef struct sm_driver_info_parms {
	tSM_INT major;						/* out */
	tSM_INT minor;						/* out */
	tSM_INT step;						/* out */
	tSM_INT custom;						/* out */
	tSM_INT quality;					/* out */
	tSM_INT buildno0;					/* out */
	tSM_INT buildno1;					/* out */
} SM_DRIVER_INFO_PARMS;

Description

Retrieves information about TiNG library version controlling Prosody modules installed in system.

On return, the parameters major, minor and step will be set to the values X, Y, and Z respectively of the three element version no. for the library X.Y.Z.

The custom parameter will be set to a non-zero value if the driver build is a custom special build of the driver for a specific customer.

The quality parameter will be set to one of the following character values:

Quality Character
'B' Beta quality version
'T' Test version
'D' Development (or alpha quality) version
'I' Released version

The buildno0 and buildno1 parameters are for Aculab use only. However, note that it is essential to include these two parameters when describing the version to Aculab support staff.

Fields

major
Major version number
minor
Minor version number
step
Version step.
custom
Indicator of custom software
quality
Quality code
buildno0
Part of build code
buildno1
Another part of build code

Returns

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


This function is part of the Prosody generic API.