- modified DeleteCallbackChain interface

- fixed killNode message to be sent for every node killed
This commit is contained in:
zolliker
2008-06-13 11:18:14 +00:00
parent 0305826724
commit d75eee789b
3 changed files with 15 additions and 14 deletions

View File

@@ -1176,7 +1176,7 @@ static void SICSDeleteNodeData(pHdb node){
if(node->properties != NULL){
DeleteStringDict(node->properties);
}
DeleteCallbackChain(node->callBackChain);
DeleteCallbackChain(node);
if(node->name != NULL){
free(node->name);
@@ -2079,7 +2079,7 @@ static int DeleteHdbNode(SConnection *pCon, SicsInterp *pSics, void *pData,
SCWrite(pCon,"ERROR: need path to node to delete",eError);
return 0;
}
killNode = GetHipadabaNode(root,argv[1]);
killNode = FindHdbNode(NULL, argv[1], pCon);
if(killNode == NULL){
SCWrite(pCon,"ERROR: node to delete not found",eError);
return 0;
@@ -2998,7 +2998,7 @@ static int GetSICSHdbProperty(SConnection *pCon, SicsInterp *pSics, void *pData,
}
status = GetHdbProperty(targetNode,argv[2],buffer,511);
if(status != 1){
SCWrite(pCon,"ERROR: attribute not found",eValue);
SCPrintf(pCon,eValue,"ERROR: property %s not found", argv[2]);
return 0;
}
SCPrintf(pCon,eValue,"%s.%s = %s", argv[1], argv[2], buffer);