|
|
@ -141,19 +141,22 @@ mmsServer_handleDeleteNamedVariableListRequest(MmsServerConnection connection,
|
|
|
|
|
|
|
|
|
|
|
|
MmsDomain* domain = MmsDevice_getDomain(device, domainName);
|
|
|
|
MmsDomain* domain = MmsDevice_getDomain(device, domainName);
|
|
|
|
|
|
|
|
|
|
|
|
MmsNamedVariableList variableList = MmsDomain_getNamedVariableList(domain, listName);
|
|
|
|
if (domain != NULL) {
|
|
|
|
|
|
|
|
|
|
|
|
if (variableList != NULL) {
|
|
|
|
MmsNamedVariableList variableList = MmsDomain_getNamedVariableList(domain, listName);
|
|
|
|
numberMatched++;
|
|
|
|
|
|
|
|
|
|
|
|
if (variableList != NULL) {
|
|
|
|
|
|
|
|
numberMatched++;
|
|
|
|
|
|
|
|
|
|
|
|
if (MmsNamedVariableList_isDeletable(variableList)) {
|
|
|
|
if (MmsNamedVariableList_isDeletable(variableList)) {
|
|
|
|
|
|
|
|
|
|
|
|
if (mmsServer_callVariableListChangedHandler(false, MMS_DOMAIN_SPECIFIC, domain, listName, connection) == true) {
|
|
|
|
if (mmsServer_callVariableListChangedHandler(false, MMS_DOMAIN_SPECIFIC, domain, listName, connection) == true) {
|
|
|
|
MmsDomain_deleteNamedVariableList(domain, listName);
|
|
|
|
MmsDomain_deleteNamedVariableList(domain, listName);
|
|
|
|
numberDeleted++;
|
|
|
|
numberDeleted++;
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if (request->listOfVariableListName->list.array[i]->present == ObjectName_PR_aaspecific) {
|
|
|
|
else if (request->listOfVariableListName->list.array[i]->present == ObjectName_PR_aaspecific) {
|
|
|
|
char listName[65];
|
|
|
|
char listName[65];
|
|
|
|