Ensure that the state monitor reports the full node path when a device is started via hipadaba.
Added a "path" field to the hdb node structure GetHipadabaPath now sets node->path to the full hdb node path when called. sicshipadaba.c: Devices are now started with the node->path instead of the node->name. r2156 | ffr | 2007-09-26 14:17:19 +1000 (Wed, 26 Sep 2007) | 6 lines
This commit is contained in:
committed by
Douglas Clowes
parent
efb0b117f6
commit
0b583db52f
@@ -112,7 +112,8 @@ static int SICSDriveCallback(void *userData, void *callData, pHdb node,
|
||||
pCon = (SConnection *)callData;
|
||||
dum = (pDummy)userData;
|
||||
assert(pCon != NULL && dum != NULL);
|
||||
return StartDevice(pServ->pExecutor,node->name,dum->pDescriptor,
|
||||
GetHipadabaPath(node);
|
||||
return StartDevice(pServ->pExecutor,node->path,dum->pDescriptor,
|
||||
userData, pCon, (float)v.v.doubleValue);
|
||||
}
|
||||
/*---------------------------------------------------------------------------------------*/
|
||||
@@ -870,6 +871,9 @@ static void SICSDeleteNodeData(pHdb node){
|
||||
if(node->name != NULL){
|
||||
free(node->name);
|
||||
}
|
||||
if(node->path != NULL){
|
||||
free(node->path);
|
||||
}
|
||||
ReleaseHdbValue(&node->value);
|
||||
node->magic = 000000;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user