- Added asynchronous IO code from ANSTO
- Added new ACT protocol - Extended sicshdbadapter to cover counters and status to put the status into Hipadaba - Fixes to napi5.c - Exe now supports hdbrun which allows to write output for a buffer into hdb node.
This commit is contained in:
@@ -229,7 +229,7 @@ static int SICSNotifyCallback(void *userData, void *callData, pHdb node,
|
||||
pDynString result = NULL;
|
||||
char *pPath = NULL;
|
||||
Protocol protocol = normal_protocol;
|
||||
int outCode;
|
||||
int outCode, macro;
|
||||
|
||||
cbInfo = (HdbCBInfo *)userData;
|
||||
pPath = GetHipadabaPath(node);
|
||||
@@ -239,11 +239,17 @@ static int SICSNotifyCallback(void *userData, void *callData, pHdb node,
|
||||
else
|
||||
outCode = eEvent;
|
||||
|
||||
/*
|
||||
* we want our notifications to come even when called from a macro
|
||||
*/
|
||||
macro = SCinMacro(cbInfo->pCon);
|
||||
SCsetMacro(cbInfo->pCon,0);
|
||||
if(v.arrayLength < 100){
|
||||
printedData = formatValue(v);
|
||||
if(pPath == NULL || printedData == NULL || result == NULL){
|
||||
SCWriteInContext(cbInfo->pCon,"ERROR: out of memory formatting data" ,
|
||||
eEvent,cbInfo->context);
|
||||
SCsetMacro(cbInfo->pCon,macro);
|
||||
/*
|
||||
* no need to interrupt something because writing data to a client does
|
||||
* not work
|
||||
@@ -259,6 +265,7 @@ static int SICSNotifyCallback(void *userData, void *callData, pHdb node,
|
||||
SCWriteInContext(cbInfo->pCon,GetCharArray(result),
|
||||
outCode,cbInfo->context);
|
||||
}
|
||||
SCsetMacro(cbInfo->pCon,macro);
|
||||
free(pPath);
|
||||
DeleteDynString(result);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user