|
|
@ -2872,7 +2872,7 @@ IedConnection_getLogicalNodeDirectory(IedConnection self, IedClientError* error,
|
|
|
|
goto next_element;
|
|
|
|
goto next_element;
|
|
|
|
|
|
|
|
|
|
|
|
int lnNameLen = (int)(fcPos - variableName);
|
|
|
|
int lnNameLen = (int)(fcPos - variableName);
|
|
|
|
|
|
|
|
if (strlen(logicalNodeName) == lnNameLen){
|
|
|
|
if (strncmp(variableName, logicalNodeName, lnNameLen) == 0)
|
|
|
|
if (strncmp(variableName, logicalNodeName, lnNameLen) == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
char* fcEndPos = strchr(fcPos + 1, '$');
|
|
|
|
char* fcEndPos = strchr(fcPos + 1, '$');
|
|
|
@ -2891,6 +2891,7 @@ IedConnection_getLogicalNodeDirectory(IedConnection self, IedClientError* error,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
next_element:
|
|
|
|
next_element:
|
|
|
|
|
|
|
|
|
|
|
@ -3018,12 +3019,13 @@ IedConnection_getLogicalNodeVariables(IedConnection self, IedClientError* error,
|
|
|
|
if (fcPos)
|
|
|
|
if (fcPos)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
int lnNameLen = (int)(fcPos - variableName);
|
|
|
|
int lnNameLen = (int)(fcPos - variableName);
|
|
|
|
|
|
|
|
if (strlen(logicalNodeName) == lnNameLen){
|
|
|
|
if (strncmp(variableName, logicalNodeName, lnNameLen) == 0)
|
|
|
|
if (strncmp(variableName, logicalNodeName, lnNameLen) == 0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
LinkedList_add(lnDirectory, StringUtils_copyString(fcPos + 1));
|
|
|
|
LinkedList_add(lnDirectory, StringUtils_copyString(fcPos + 1));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
variable = LinkedList_getNext(variable);
|
|
|
|
variable = LinkedList_getNext(variable);
|
|
|
|
}
|
|
|
|
}
|
|
|
|