- added function LibIEC61850_getVersionString

pull/6/head
Michael Zillgith 11 years ago
parent 27c95056a7
commit 0adf9ee59a

@ -79,6 +79,7 @@ connectionHandler (IedServer self, ClientConnection connection, bool connected,
int
main(int argc, char** argv)
{
printf("Using libIEC61850 version %s\n", LibIEC61850_getVersionString());
iedServer = IedServer_create(&iedModel);

@ -343,3 +343,9 @@ Timestamp_getTimeInMs(Timestamp* self)
return (uint64_t) msVal;
}
char*
LibIEC61850_getVersionString()
{
return CONFIG_DEFAULT_MMS_REVISION;
}

@ -354,6 +354,14 @@ Timestamp_setTimeInSeconds(Timestamp* self, uint32_t secondsSinceEpoch);
void
Timestamp_setTimeInMilliseconds(Timestamp* self, uint64_t millisSinceEpoch);
/**
* \brief Get the version of the library as string
*
* \return the version of the library (e.g. "0.8.3")
*/
char*
LibIEC61850_getVersionString(void);
/** @} */

@ -235,7 +235,9 @@ ConfigFileParser_createModelFromConfigFile(FileHandle fileHandle)
indendation = 4;
}
#if (CONFIG_IEC61850_SETTING_GROUPS == 1)
else if (StringUtils_startsWith((char*) lineBuffer, "SG")) {
if (strcmp(currentLN->name, "LLN0") != 0)
goto exit_error;
@ -249,6 +251,8 @@ ConfigFileParser_createModelFromConfigFile(FileHandle fileHandle)
SettingGroupControlBlock_create(currentLN, actSG, numOfSGs);
}
#endif /* (CONFIG_IEC61850_SETTING_GROUPS == 1) */
else
goto exit_error;

@ -471,3 +471,4 @@ EXPORTS
ClientReport_getConfRev
ClientReport_hasBufOvfl
ClientReport_hasDataReference
LibIEC61850_getVersionString

@ -495,3 +495,5 @@ EXPORTS
ClientReport_getConfRev
ClientReport_hasBufOvfl
ClientReport_hasDataReference
LibIEC61850_getVersionString

Loading…
Cancel
Save