- 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:
koennecke
2007-06-22 11:44:46 +00:00
parent d5ff6410bc
commit 08c5e037a0
24 changed files with 13224 additions and 1291 deletions

View File

@ -180,8 +180,16 @@ static void netEncode(pSICSData self){
/*---------------------------------------------------------------------*/
void clearSICSData(pSICSData self){
assert(self);
int clearSize = 8192;
self->dataUsed = 0;
if(self->currentDataSize > clearSize){
free(self->data);
free(self->dataType);
self->data = (int *)malloc(clearSize*sizeof(int));
self->dataType = (char *)malloc(clearSize*sizeof(char));
self->currentDataSize = clearSize;
}
memset(self->data,0,self->currentDataSize*sizeof(int));
memset(self->dataType,0,self->currentDataSize*sizeof(char));
}