diff --git a/src/std/dev/devAiSoftCallback.c b/src/std/dev/devAiSoftCallback.c index 560f518e1..89c59016e 100644 --- a/src/std/dev/devAiSoftCallback.c +++ b/src/std/dev/devAiSoftCallback.c @@ -59,8 +59,8 @@ typedef struct notifyInfo { static void getCallback(processNotify *ppn,notifyGetType type) { - struct aiRecord *pai = (struct aiRecord *)ppn->usrPvt; - notifyInfo *pnotifyInfo = (notifyInfo *)pai->dpvt; + struct aiRecord *prec = (struct aiRecord *)ppn->usrPvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; int status = 0; long no_elements = 1; long options = 0; @@ -84,16 +84,16 @@ static void getCallback(processNotify *ppn,notifyGetType type) static void doneCallback(processNotify *ppn) { - struct aiRecord *pai = (struct aiRecord *)ppn->usrPvt; - notifyInfo *pnotifyInfo = (notifyInfo *)pai->dpvt; + struct aiRecord *prec = (struct aiRecord *)ppn->usrPvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; - callbackRequestProcessCallback(pnotifyInfo->pcallback,pai->prio,pai); + callbackRequestProcessCallback(pnotifyInfo->pcallback,prec->prio,prec); } -static long init_record(struct aiRecord *pai) +static long init_record(struct aiRecord *prec) { - DBLINK *plink = &pai->inp; + DBLINK *plink = &prec->inp; struct instio *pinstio; char *pvname; DBADDR *pdbaddr=NULL; @@ -103,9 +103,9 @@ static long init_record(struct aiRecord *pai) processNotify *ppn=NULL; if(plink->type!=INST_IO) { - recGblRecordError(S_db_badField,(void *)pai, + recGblRecordError(S_db_badField,(void *)prec, "devAiSoftCallback (init_record) Illegal INP field"); - pai->pact=TRUE; + prec->pact=TRUE; return(S_db_badField); } pinstio=(struct instio*)&(plink->value); @@ -114,9 +114,9 @@ static long init_record(struct aiRecord *pai) "devAiSoftCallback::init_record"); status = dbNameToAddr(pvname,pdbaddr); if(status) { - recGblRecordError(status,(void *)pai, + recGblRecordError(status,(void *)prec, "devAiSoftCallback (init_record) linked record not found"); - pai->pact=TRUE; + prec->pact=TRUE; return(status); } pnotifyInfo = callocMustSucceed(1, sizeof(*pnotifyInfo), @@ -127,29 +127,29 @@ static long init_record(struct aiRecord *pai) "devAiSoftCallback::init_record"); pnotifyInfo->ppn = ppn; pnotifyInfo->pcallback = pcallback; - ppn->usrPvt = pai; + ppn->usrPvt = prec; ppn->paddr = pdbaddr; ppn->getCallback = getCallback; ppn->doneCallback = doneCallback; ppn->requestType = processGetRequest; - pai->dpvt = pnotifyInfo; + prec->dpvt = pnotifyInfo; return 0; } -static long read_ai(aiRecord *pai) +static long read_ai(aiRecord *prec) { - notifyInfo *pnotifyInfo = (notifyInfo *)pai->dpvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; - if(pai->pact) { + if(prec->pact) { if(pnotifyInfo->status) { - recGblSetSevr(pai,READ_ALARM,INVALID_ALARM); + recGblSetSevr(prec,READ_ALARM,INVALID_ALARM); return(2); } - pai->val = pnotifyInfo->value; - pai->udf = FALSE; + prec->val = pnotifyInfo->value; + prec->udf = FALSE; return(2); } dbProcessNotify(pnotifyInfo->ppn); - pai->pact = TRUE; + prec->pact = TRUE; return(0); } diff --git a/src/std/dev/devBiSoftCallback.c b/src/std/dev/devBiSoftCallback.c index bcd110bf7..8a9c97c8f 100644 --- a/src/std/dev/devBiSoftCallback.c +++ b/src/std/dev/devBiSoftCallback.c @@ -59,8 +59,8 @@ typedef struct notifyInfo { static void getCallback(processNotify *ppn,notifyGetType type) { - struct biRecord *pbi = (struct biRecord *)ppn->usrPvt; - notifyInfo *pnotifyInfo = (notifyInfo *)pbi->dpvt; + struct biRecord *prec = (struct biRecord *)ppn->usrPvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; int status = 0; long no_elements = 1; long options = 0; @@ -84,16 +84,16 @@ static void getCallback(processNotify *ppn,notifyGetType type) static void doneCallback(processNotify *ppn) { - struct biRecord *pbi = (struct biRecord *)ppn->usrPvt; - notifyInfo *pnotifyInfo = (notifyInfo *)pbi->dpvt; + struct biRecord *prec = (struct biRecord *)ppn->usrPvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; - callbackRequestProcessCallback(pnotifyInfo->pcallback,pbi->prio,pbi); + callbackRequestProcessCallback(pnotifyInfo->pcallback,prec->prio,prec); } -static long init_record(struct biRecord *pbi) +static long init_record(struct biRecord *prec) { - DBLINK *plink = &pbi->inp; + DBLINK *plink = &prec->inp; struct instio *pinstio; char *pvname; DBADDR *pdbaddr=NULL; @@ -103,9 +103,9 @@ static long init_record(struct biRecord *pbi) processNotify *ppn=NULL; if(plink->type!=INST_IO) { - recGblRecordError(S_db_badField,(void *)pbi, + recGblRecordError(S_db_badField,(void *)prec, "devBiSoftCallback (init_record) Illegal INP field"); - pbi->pact=TRUE; + prec->pact=TRUE; return(S_db_badField); } pinstio=(struct instio*)&(plink->value); @@ -114,9 +114,9 @@ static long init_record(struct biRecord *pbi) "devBiSoftCallback::init_record"); status = dbNameToAddr(pvname,pdbaddr); if(status) { - recGblRecordError(status,(void *)pbi, + recGblRecordError(status,(void *)prec, "devBiSoftCallback (init_record) linked record not found"); - pbi->pact=TRUE; + prec->pact=TRUE; return(status); } pnotifyInfo = callocMustSucceed(1, sizeof(*pnotifyInfo), @@ -127,29 +127,29 @@ static long init_record(struct biRecord *pbi) "devBiSoftCallback::init_record"); pnotifyInfo->ppn = ppn; pnotifyInfo->pcallback = pcallback; - ppn->usrPvt = pbi; + ppn->usrPvt = prec; ppn->paddr = pdbaddr; ppn->getCallback = getCallback; ppn->doneCallback = doneCallback; ppn->requestType = processGetRequest; - pbi->dpvt = pnotifyInfo; + prec->dpvt = pnotifyInfo; return 0; } -static long read_bi(biRecord *pbi) +static long read_bi(biRecord *prec) { - notifyInfo *pnotifyInfo = (notifyInfo *)pbi->dpvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; - if(pbi->pact) { + if(prec->pact) { if(pnotifyInfo->status) { - recGblSetSevr(pbi,READ_ALARM,INVALID_ALARM); + recGblSetSevr(prec,READ_ALARM,INVALID_ALARM); return(2); } - pbi->val = pnotifyInfo->value; - pbi->udf = FALSE; + prec->val = pnotifyInfo->value; + prec->udf = FALSE; return(2); } dbProcessNotify(pnotifyInfo->ppn); - pbi->pact = TRUE; + prec->pact = TRUE; return(0); } diff --git a/src/std/dev/devLiSoftCallback.c b/src/std/dev/devLiSoftCallback.c index 350fa258f..de87dbc06 100644 --- a/src/std/dev/devLiSoftCallback.c +++ b/src/std/dev/devLiSoftCallback.c @@ -59,8 +59,8 @@ typedef struct notifyInfo { static void getCallback(processNotify *ppn,notifyGetType type) { - struct longinRecord *pli = (struct longinRecord *)ppn->usrPvt; - notifyInfo *pnotifyInfo = (notifyInfo *)pli->dpvt; + struct longinRecord *prec = (struct longinRecord *)ppn->usrPvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; int status = 0; long no_elements = 1; long options = 0; @@ -84,16 +84,16 @@ static void getCallback(processNotify *ppn,notifyGetType type) static void doneCallback(processNotify *ppn) { - struct longinRecord *pli = (struct longinRecord *)ppn->usrPvt; - notifyInfo *pnotifyInfo = (notifyInfo *)pli->dpvt; + struct longinRecord *prec = (struct longinRecord *)ppn->usrPvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; - callbackRequestProcessCallback(pnotifyInfo->pcallback,pli->prio,pli); + callbackRequestProcessCallback(pnotifyInfo->pcallback,prec->prio,prec); } -static long init_record(struct longinRecord *pli) +static long init_record(struct longinRecord *prec) { - DBLINK *plink = &pli->inp; + DBLINK *plink = &prec->inp; struct instio *pinstio; char *pvname; DBADDR *pdbaddr=NULL; @@ -103,9 +103,9 @@ static long init_record(struct longinRecord *pli) processNotify *ppn=NULL; if(plink->type!=INST_IO) { - recGblRecordError(S_db_badField,(void *)pli, + recGblRecordError(S_db_badField,(void *)prec, "devLiSoftCallback (init_record) Illegal INP field"); - pli->pact=TRUE; + prec->pact=TRUE; return(S_db_badField); } pinstio=(struct instio*)&(plink->value); @@ -114,9 +114,9 @@ static long init_record(struct longinRecord *pli) "devLiSoftCallback::init_record"); status = dbNameToAddr(pvname,pdbaddr); if(status) { - recGblRecordError(status,(void *)pli, + recGblRecordError(status,(void *)prec, "devLiSoftCallback (init_record) linked record not found"); - pli->pact=TRUE; + prec->pact=TRUE; return(status); } pnotifyInfo = callocMustSucceed(1, sizeof(*pnotifyInfo), @@ -127,29 +127,29 @@ static long init_record(struct longinRecord *pli) "devLiSoftCallback::init_record"); pnotifyInfo->ppn = ppn; pnotifyInfo->pcallback = pcallback; - ppn->usrPvt = pli; + ppn->usrPvt = prec; ppn->paddr = pdbaddr; ppn->getCallback = getCallback; ppn->doneCallback = doneCallback; ppn->requestType = processGetRequest; - pli->dpvt = pnotifyInfo; + prec->dpvt = pnotifyInfo; return 0; } -static long read_li(longinRecord *pli) +static long read_li(longinRecord *prec) { - notifyInfo *pnotifyInfo = (notifyInfo *)pli->dpvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; - if(pli->pact) { + if(prec->pact) { if(pnotifyInfo->status) { - recGblSetSevr(pli,READ_ALARM,INVALID_ALARM); + recGblSetSevr(prec,READ_ALARM,INVALID_ALARM); return(pnotifyInfo->status); } - pli->val = pnotifyInfo->value; - pli->udf = FALSE; + prec->val = pnotifyInfo->value; + prec->udf = FALSE; return(0); } dbProcessNotify(pnotifyInfo->ppn); - pli->pact = TRUE; + prec->pact = TRUE; return(0); } diff --git a/src/std/dev/devMbbiSoftCallback.c b/src/std/dev/devMbbiSoftCallback.c index e23113672..71afe482a 100644 --- a/src/std/dev/devMbbiSoftCallback.c +++ b/src/std/dev/devMbbiSoftCallback.c @@ -59,8 +59,8 @@ typedef struct notifyInfo { static void getCallback(processNotify *ppn,notifyGetType type) { - struct mbbiRecord *pmbbi = (struct mbbiRecord *)ppn->usrPvt; - notifyInfo *pnotifyInfo = (notifyInfo *)pmbbi->dpvt; + struct mbbiRecord *prec = (struct mbbiRecord *)ppn->usrPvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; int status = 0; long no_elements = 1; long options = 0; @@ -84,16 +84,16 @@ static void getCallback(processNotify *ppn,notifyGetType type) static void doneCallback(processNotify *ppn) { - struct mbbiRecord *pmbbi = (struct mbbiRecord *)ppn->usrPvt; - notifyInfo *pnotifyInfo = (notifyInfo *)pmbbi->dpvt; + struct mbbiRecord *prec = (struct mbbiRecord *)ppn->usrPvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; - callbackRequestProcessCallback(pnotifyInfo->pcallback,pmbbi->prio,pmbbi); + callbackRequestProcessCallback(pnotifyInfo->pcallback,prec->prio,prec); } -static long init_record(struct mbbiRecord *pmbbi) +static long init_record(struct mbbiRecord *prec) { - DBLINK *plink = &pmbbi->inp; + DBLINK *plink = &prec->inp; struct instio *pinstio; char *pvname; DBADDR *pdbaddr=NULL; @@ -103,9 +103,9 @@ static long init_record(struct mbbiRecord *pmbbi) processNotify *ppn=NULL; if(plink->type!=INST_IO) { - recGblRecordError(S_db_badField,(void *)pmbbi, + recGblRecordError(S_db_badField,(void *)prec, "devMbbiSoftCallback (init_record) Illegal INP field"); - pmbbi->pact=TRUE; + prec->pact=TRUE; return(S_db_badField); } pinstio=(struct instio*)&(plink->value); @@ -114,9 +114,9 @@ static long init_record(struct mbbiRecord *pmbbi) "devMbbiSoftCallback::init_record"); status = dbNameToAddr(pvname,pdbaddr); if(status) { - recGblRecordError(status,(void *)pmbbi, + recGblRecordError(status,(void *)prec, "devMbbiSoftCallback (init_record) linked record not found"); - pmbbi->pact=TRUE; + prec->pact=TRUE; return(status); } pnotifyInfo = callocMustSucceed(1, sizeof(*pnotifyInfo), @@ -127,29 +127,29 @@ static long init_record(struct mbbiRecord *pmbbi) "devMbbiSoftCallback::init_record"); pnotifyInfo->ppn = ppn; pnotifyInfo->pcallback = pcallback; - ppn->usrPvt = pmbbi; + ppn->usrPvt = prec; ppn->paddr = pdbaddr; ppn->getCallback = getCallback; ppn->doneCallback = doneCallback; ppn->requestType = processGetRequest; - pmbbi->dpvt = pnotifyInfo; + prec->dpvt = pnotifyInfo; return 0; } -static long read_mbbi(mbbiRecord *pmbbi) +static long read_mbbi(mbbiRecord *prec) { - notifyInfo *pnotifyInfo = (notifyInfo *)pmbbi->dpvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; - if(pmbbi->pact) { + if(prec->pact) { if(pnotifyInfo->status) { - recGblSetSevr(pmbbi,READ_ALARM,INVALID_ALARM); + recGblSetSevr(prec,READ_ALARM,INVALID_ALARM); return(2); } - pmbbi->val = pnotifyInfo->value; - pmbbi->udf = FALSE; + prec->val = pnotifyInfo->value; + prec->udf = FALSE; return(2); } dbProcessNotify(pnotifyInfo->ppn); - pmbbi->pact = TRUE; + prec->pact = TRUE; return(0); } diff --git a/src/std/dev/devSiSoftCallback.c b/src/std/dev/devSiSoftCallback.c index 46b2e92f9..c5ac85d48 100644 --- a/src/std/dev/devSiSoftCallback.c +++ b/src/std/dev/devSiSoftCallback.c @@ -59,8 +59,8 @@ typedef struct notifyInfo { static void getCallback(processNotify *ppn,notifyGetType type) { - struct stringinRecord *pstringin = (struct stringinRecord *)ppn->usrPvt; - notifyInfo *pnotifyInfo = (notifyInfo *)pstringin->dpvt; + struct stringinRecord *prec = (struct stringinRecord *)ppn->usrPvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; int status = 0; long no_elements = 1; long options = 0; @@ -84,16 +84,16 @@ static void getCallback(processNotify *ppn,notifyGetType type) static void doneCallback(processNotify *ppn) { - struct stringinRecord *pstringin = (struct stringinRecord *)ppn->usrPvt; - notifyInfo *pnotifyInfo = (notifyInfo *)pstringin->dpvt; + struct stringinRecord *prec = (struct stringinRecord *)ppn->usrPvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; - callbackRequestProcessCallback(pnotifyInfo->pcallback,pstringin->prio,pstringin); + callbackRequestProcessCallback(pnotifyInfo->pcallback,prec->prio,prec); } -static long init_record(struct stringinRecord *pstringin) +static long init_record(struct stringinRecord *prec) { - DBLINK *plink = &pstringin->inp; + DBLINK *plink = &prec->inp; struct instio *pinstio; char *pvname; DBADDR *pdbaddr=NULL; @@ -103,9 +103,9 @@ static long init_record(struct stringinRecord *pstringin) processNotify *ppn=NULL; if(plink->type!=INST_IO) { - recGblRecordError(S_db_badField,(void *)pstringin, + recGblRecordError(S_db_badField,(void *)prec, "devSiSoftCallback (init_record) Illegal INP field"); - pstringin->pact=TRUE; + prec->pact=TRUE; return(S_db_badField); } pinstio=(struct instio*)&(plink->value); @@ -114,9 +114,9 @@ static long init_record(struct stringinRecord *pstringin) "devSiSoftCallback::init_record"); status = dbNameToAddr(pvname,pdbaddr); if(status) { - recGblRecordError(status,(void *)pstringin, + recGblRecordError(status,(void *)prec, "devSiSoftCallback (init_record) linked record not found"); - pstringin->pact=TRUE; + prec->pact=TRUE; return(status); } pnotifyInfo = callocMustSucceed(1, sizeof(*pnotifyInfo), @@ -127,29 +127,29 @@ static long init_record(struct stringinRecord *pstringin) "devSiSoftCallback::init_record"); pnotifyInfo->ppn = ppn; pnotifyInfo->pcallback = pcallback; - ppn->usrPvt = pstringin; + ppn->usrPvt = prec; ppn->paddr = pdbaddr; ppn->getCallback = getCallback; ppn->doneCallback = doneCallback; ppn->requestType = processGetRequest; - pstringin->dpvt = pnotifyInfo; + prec->dpvt = pnotifyInfo; return 0; } -static long read_stringin(stringinRecord *pstringin) +static long read_stringin(stringinRecord *prec) { - notifyInfo *pnotifyInfo = (notifyInfo *)pstringin->dpvt; + notifyInfo *pnotifyInfo = (notifyInfo *)prec->dpvt; - if(pstringin->pact) { + if(prec->pact) { if(pnotifyInfo->status) { - recGblSetSevr(pstringin,READ_ALARM,INVALID_ALARM); + recGblSetSevr(prec,READ_ALARM,INVALID_ALARM); return(pnotifyInfo->status); } - strcpy(pstringin->val,pnotifyInfo->value); - pstringin->udf = FALSE; + strcpy(prec->val,pnotifyInfo->value); + prec->udf = FALSE; return(0); } dbProcessNotify(pnotifyInfo->ppn); - pstringin->pact = TRUE; + prec->pact = TRUE; return(0); }