Application Development Function Library: ADMNET API
MVI-ADMNET
♦
'C' Programmable
Ethernet Module
ProSoft Technology, Inc.
Page 47 of 90
December 13, 2006
ADMNET API Miscellaneous Functions
ADM_NET_GetVersionInfo
Syntax:
void ADM_NET_GetVersionInfo(ADMNETVERSIONINFO* admnet_verinfo);
Parameters:
admnet_verinfo
Pointer to structure of type ADMNETVERSIONINFO.
Description:
ADM_GetVersionInfo retrieves the current version of the ADMNET API library.
The information is returned in the structure admnet_verinfo.
The ADMVERSIONINFO structure is defined as follows:
typedef struct
{
char
APISeries[4];
short
APIRevisionMajor;
short
APIRevisionMinor;
long
APIRun;
}ADMNETVERSIONINFO;
Return Value:
None
Example:
ADMNETVERSIONINFO verinfo;
/* print version of API library */
ADM_NET_GetVersionInfo(& verinfo);
printf("Revision %d.%d\n", verinfo.APIRevisionMajor, verinfo.APIRevisionMinor);