08.01.2013 Views

Dialogic® Global Call API Library Reference

Dialogic® Global Call API Library Reference

Dialogic® Global Call API Library Reference

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Parameter Description<br />

retrieve the version number of a specified component — gc_GetVer( )<br />

intnump points to the location where the internal release number will be stored<br />

component specifies the software component to which the version number applies.<br />

The gc_GetVer( ) function returns the software version number as a long integer (32 bits) in BCD<br />

(binary coded decimal) format. Figure 1 shows the format of the version number that is returned.<br />

Each section in the diagram represents a nibble (4 bits).<br />

Figure 1. Component Version Number Format<br />

Most<br />

Significant<br />

Bit<br />

Nibble 1 returns the type of release. The values convert to:<br />

0 - Production<br />

1 - Beta<br />

2 - Alpha<br />

3 - Experimental<br />

Nibbles 2, 3, and 4 return the Production Number.<br />

Nibbles 5, 6, 7, and 8 return the Internal Number, which is used for pre-production product<br />

releases. The Internal Number is assigned to beta product releases. Nibbles 5 and 6 hold the<br />

product’s beta number. Nibbles 7 and 8 hold additional information that is used for internal<br />

releases.<br />

Note: Nibbles 2 through 4 are used in all version numbers. Nibbles 5 through 8 contain values only if the<br />

release is not a production release.<br />

Table 8 provides the values returned by each nibble in the long int. For example, if a production<br />

version number is 1.02, then:<br />

*releasenump = 0x0102<br />

*intnump = 0x0000<br />

For a version number of 1.02 beta 2, then:<br />

*releasenump = 0x1102<br />

*intnump = 0x0200<br />

Selections are:<br />

GC_LIB – <strong>Global</strong> <strong>Call</strong> library<br />

GC_IC<strong>API</strong>_LIB – IC<strong>API</strong> library<br />

GC_PDKRT_LIB – PDKRT library<br />

long int (8 nibbles = 32 bits)<br />

1 2 3 4<br />

Type Production<br />

Number<br />

5 6 7 8<br />

Internal<br />

Number<br />

Dialogic ® <strong>Global</strong> <strong>Call</strong> <strong>API</strong> <strong>Library</strong> <strong>Reference</strong> — January 2008 193<br />

Dialogic Corporation

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!