Returns the version identifier and the version header text of the actual running EDMinterface and the EDMserver.
Header:
#include "sdai.h"
Prototype:
EdmiError edmiVersion(SdaiInteger *edmdVersion,
SdaiInteger *edmiVersion,
SdaiString *edmdVersionText,
SdaiString *edmiVersionText);
Arguments:
edmdVersion |
Address of a variable that will receive the version identifier of the actual running EDMserver. |
edmiVersion |
Address of a variable that will receive the version identifier of the actual running EDMinterface. |
edmdVersionText |
Address of a variable that will receive the address of the running EDMserver version identifier message. This text string is located in a buffer in EDMinterface that can be overwritten by the next EDMinterface call. |
edmiVersionText |
Address of a variable that will receive the address of the running EDMinterface version identifier message. This text string is located in a buffer in EDMinterface that can be overwritten by the next EDMinterface call. |
Returns:
A completion code of datatype EdmiError is the returned function value. The completion code has the following values:
Completion code = 0 : Operation successfully performed.
Completion code != 0: Error in operation. Completion code is an EDMinterface error code. Use edmiGetErrorText to get the error text corresponding to the error code.
EXAMPLE
EdmiError rstat;
SdaiInteger edmdVersion, edmiVersion;
SdaiString edmdVersionText, edmiVersionText;
. . .
if (rstat = edmiVersion (&edmdVersion,
&edmiVersion,
&edmdVersionText,
&edmiVersionText)) {
/* Error in operation */
printf("\nError: %s in edmiVersion \n",
edmiGetErrorText(rstat));
goto error;
}
printf("\nEDMDversionId: %ld: %s", edmdVersion, edmdVersionText);
printf("\nEDMIversionId: %ld: %s", edmiVersion, edmiVersionText);
. . .