Modified callback args for ANSI C

This commit is contained in:
Marty Kraimer
1994-04-11 08:52:25 +00:00
parent dd5abf9d2c
commit b088833a03
10 changed files with 30 additions and 20 deletions

View File

@@ -35,6 +35,7 @@
* .03 02-05-92 jba Changed function arguments from paddr to precord
* .04 03-13-92 jba ANSI C changes
* .05 04-10-92 jba pact now used to test for asyn processing, not return value
* .06 04-05-94 mrk ANSI changes to callback routines
* ...
*/
@@ -106,7 +107,7 @@ static long init_record(pbi)
case (CONSTANT) :
pcallback = (struct callback *)(calloc(1,sizeof(struct callback)));
pbi->dpvt = (void *)pcallback;
callbackSetCallback(myCallback,pcallback);
callbackSetCallback(myCallback,&pcallback->callback);
pcallback->precord = (struct dbCommon *)pbi;
pcallback->wd_id = wdCreate();
pbi->val = pbi->inp.value.value;
@@ -135,7 +136,7 @@ static long read_bi(pbi)
} else {
wait_time = (int)(pbi->disv * vxTicksPerSecond);
if(wait_time<=0) return(0);
callbackSetPriority(pbi->prio,pcallback);
callbackSetPriority(pbi->prio,&pcallback->callback);
printf("%s Starting asynchronous processing\n",pbi->name);
wdStart(pcallback->wd_id,wait_time,(FUNCPTR)callbackRequest,(int)pcallback);
pbi->pact=TRUE;