added options parm to recGblGetLinkValue
This commit is contained in:
+3
-2
@@ -493,6 +493,7 @@ static long readValue(pai)
|
||||
long status;
|
||||
struct aidset *pdset = (struct aidset *) (pai->dset);
|
||||
long nRequest=1;
|
||||
long options=0;
|
||||
|
||||
if (pai->pact == TRUE){
|
||||
status=(*pdset->read_ai)(pai);
|
||||
@@ -500,7 +501,7 @@ static long readValue(pai)
|
||||
}
|
||||
|
||||
status=recGblGetLinkValue(&(pai->siml),
|
||||
(void *)pai,DBR_ENUM,&(pai->simm),&nRequest);
|
||||
(void *)pai,DBR_ENUM,&(pai->simm),&options,&nRequest);
|
||||
if (status)
|
||||
return(status);
|
||||
|
||||
@@ -510,7 +511,7 @@ static long readValue(pai)
|
||||
}
|
||||
if (pai->simm == YES){
|
||||
status=recGblGetLinkValue(&(pai->siol),
|
||||
(void *)pai,DBR_DOUBLE,&(pai->sval),&nRequest);
|
||||
(void *)pai,DBR_DOUBLE,&(pai->sval),&options,&nRequest);
|
||||
if (status==0){
|
||||
pai->val=pai->sval;
|
||||
pai->udf=FALSE;
|
||||
|
||||
+2
-1
@@ -582,6 +582,7 @@ static long writeValue(pao)
|
||||
long status;
|
||||
struct aodset *pdset = (struct aodset *) (pao->dset);
|
||||
long nRequest=1;
|
||||
long options=0;
|
||||
|
||||
if (pao->pact == TRUE){
|
||||
status=(*pdset->write_ao)(pao);
|
||||
@@ -589,7 +590,7 @@ static long writeValue(pao)
|
||||
}
|
||||
|
||||
status=recGblGetLinkValue(&(pao->siml),
|
||||
(void *)pao,DBR_ENUM,&(pao->simm),&nRequest);
|
||||
(void *)pao,DBR_ENUM,&(pao->simm),&options,&nRequest);
|
||||
if (status)
|
||||
return(status);
|
||||
|
||||
|
||||
+3
-2
@@ -337,6 +337,7 @@ static long readValue(pbi)
|
||||
long status;
|
||||
struct bidset *pdset = (struct bidset *) (pbi->dset);
|
||||
long nRequest=1;
|
||||
long options=0;
|
||||
|
||||
if (pbi->pact == TRUE){
|
||||
status=(*pdset->read_bi)(pbi);
|
||||
@@ -344,7 +345,7 @@ static long readValue(pbi)
|
||||
}
|
||||
|
||||
status=recGblGetLinkValue(&(pbi->siml),
|
||||
(void *)pbi,DBR_ENUM,&(pbi->simm),&nRequest);
|
||||
(void *)pbi,DBR_ENUM,&(pbi->simm),&options,&nRequest);
|
||||
if (status)
|
||||
return(status);
|
||||
|
||||
@@ -354,7 +355,7 @@ static long readValue(pbi)
|
||||
}
|
||||
if (pbi->simm == YES){
|
||||
status=recGblGetLinkValue(&(pbi->siol),
|
||||
(void *)pbi,DBR_USHORT,&(pbi->sval),&nRequest);
|
||||
(void *)pbi,DBR_USHORT,&(pbi->sval),&options,&nRequest);
|
||||
if (status==0){
|
||||
pbi->val=pbi->sval;
|
||||
pbi->udf=FALSE;
|
||||
|
||||
+2
-1
@@ -436,6 +436,7 @@ static long writeValue(pbo)
|
||||
long status;
|
||||
struct bodset *pdset = (struct bodset *) (pbo->dset);
|
||||
long nRequest=1;
|
||||
long options=0;
|
||||
|
||||
if (pbo->pact == TRUE){
|
||||
status=(*pdset->write_bo)(pbo);
|
||||
@@ -443,7 +444,7 @@ static long writeValue(pbo)
|
||||
}
|
||||
|
||||
status=recGblGetLinkValue(&(pbo->siml),
|
||||
(void *)pbo,DBR_ENUM,&(pbo->simm),&nRequest);
|
||||
(void *)pbo,DBR_ENUM,&(pbo->simm),&options,&nRequest);
|
||||
if (status)
|
||||
return(status);
|
||||
|
||||
|
||||
+3
-2
@@ -221,6 +221,7 @@ static long readValue(pevent)
|
||||
long status;
|
||||
struct eventdset *pdset = (struct eventdset *) (pevent->dset);
|
||||
long nRequest=1;
|
||||
long options=0;
|
||||
|
||||
if (pevent->pact == TRUE){
|
||||
status=(*pdset->read_event)(pevent);
|
||||
@@ -228,7 +229,7 @@ static long readValue(pevent)
|
||||
}
|
||||
|
||||
status=recGblGetLinkValue(&(pevent->siml),
|
||||
(void *)pevent,DBR_ENUM,&(pevent->simm),&nRequest);
|
||||
(void *)pevent,DBR_ENUM,&(pevent->simm),&options,&nRequest);
|
||||
if (status)
|
||||
return(status);
|
||||
|
||||
@@ -238,7 +239,7 @@ static long readValue(pevent)
|
||||
}
|
||||
if (pevent->simm == YES){
|
||||
status=recGblGetLinkValue(&(pevent->siol),
|
||||
(void *)pevent,DBR_USHORT,&(pevent->sval),&nRequest);
|
||||
(void *)pevent,DBR_USHORT,&(pevent->sval),&options,&nRequest);
|
||||
if (status==0){
|
||||
pevent->val=pevent->sval;
|
||||
pevent->udf=FALSE;
|
||||
|
||||
@@ -440,6 +440,7 @@ static long readValue(phistogram)
|
||||
long status;
|
||||
struct histogramdset *pdset = (struct histogramdset *) (phistogram->dset);
|
||||
long nRequest=1;
|
||||
long options=0;
|
||||
|
||||
if (phistogram->pact == TRUE){
|
||||
status=(*pdset->read_histogram)(phistogram);
|
||||
@@ -447,7 +448,7 @@ static long readValue(phistogram)
|
||||
}
|
||||
|
||||
status=recGblGetLinkValue(&(phistogram->siml),
|
||||
(void *)phistogram,DBR_ENUM,&(phistogram->simm),&nRequest);
|
||||
(void *)phistogram,DBR_ENUM,&(phistogram->simm),&options,&nRequest);
|
||||
if (status)
|
||||
return(status);
|
||||
|
||||
@@ -457,7 +458,7 @@ static long readValue(phistogram)
|
||||
}
|
||||
if (phistogram->simm == YES){
|
||||
status=recGblGetLinkValue(&(phistogram->siol),
|
||||
(void *)phistogram,DBR_DOUBLE,&(phistogram->sval),&nRequest);
|
||||
(void *)phistogram,DBR_DOUBLE,&(phistogram->sval),&options,&nRequest);
|
||||
if (status==0){
|
||||
phistogram->sgnl=phistogram->sval;
|
||||
}
|
||||
|
||||
+3
-2
@@ -370,6 +370,7 @@ static long readValue(plongin)
|
||||
long status;
|
||||
struct longindset *pdset = (struct longindset *) (plongin->dset);
|
||||
long nRequest=1;
|
||||
long options=0;
|
||||
|
||||
if (plongin->pact == TRUE){
|
||||
status=(*pdset->read_longin)(plongin);
|
||||
@@ -377,7 +378,7 @@ static long readValue(plongin)
|
||||
}
|
||||
|
||||
status=recGblGetLinkValue(&(plongin->siml),
|
||||
(void *)plongin,DBR_ENUM,&(plongin->simm),&nRequest);
|
||||
(void *)plongin,DBR_ENUM,&(plongin->simm),&options,&nRequest);
|
||||
if (status)
|
||||
return(status);
|
||||
|
||||
@@ -387,7 +388,7 @@ static long readValue(plongin)
|
||||
}
|
||||
if (plongin->simm == YES){
|
||||
status=recGblGetLinkValue(&(plongin->siol),
|
||||
(void *)plongin,DBR_LONG,&(plongin->sval),&nRequest);
|
||||
(void *)plongin,DBR_LONG,&(plongin->sval),&options,&nRequest);
|
||||
if (status==0){
|
||||
plongin->val=plongin->sval;
|
||||
plongin->udf=FALSE;
|
||||
|
||||
@@ -414,6 +414,7 @@ static long writeValue(plongout)
|
||||
long status;
|
||||
struct longoutdset *pdset = (struct longoutdset *) (plongout->dset);
|
||||
long nRequest=1;
|
||||
long options=0;
|
||||
|
||||
if (plongout->pact == TRUE){
|
||||
status=(*pdset->write_longout)(plongout);
|
||||
@@ -421,7 +422,7 @@ static long writeValue(plongout)
|
||||
}
|
||||
|
||||
status=recGblGetLinkValue(&(plongout->siml),
|
||||
(void *)plongout,DBR_ENUM,&(plongout->simm),&nRequest);
|
||||
(void *)plongout,DBR_ENUM,&(plongout->simm),&options,&nRequest);
|
||||
if (status)
|
||||
return(status);
|
||||
|
||||
|
||||
+3
-2
@@ -421,6 +421,7 @@ static long readValue(pmbbi)
|
||||
long status;
|
||||
struct mbbidset *pdset = (struct mbbidset *) (pmbbi->dset);
|
||||
long nRequest=1;
|
||||
long options=0;
|
||||
|
||||
if (pmbbi->pact == TRUE){
|
||||
status=(*pdset->read_mbbi)(pmbbi);
|
||||
@@ -428,7 +429,7 @@ static long readValue(pmbbi)
|
||||
}
|
||||
|
||||
status=recGblGetLinkValue(&(pmbbi->siml),
|
||||
(void *)pmbbi,DBR_ENUM,&(pmbbi->simm),&nRequest);
|
||||
(void *)pmbbi,DBR_ENUM,&(pmbbi->simm),&options,&nRequest);
|
||||
if (status)
|
||||
return(status);
|
||||
|
||||
@@ -438,7 +439,7 @@ static long readValue(pmbbi)
|
||||
}
|
||||
if (pmbbi->simm == YES){
|
||||
status=recGblGetLinkValue(&(pmbbi->siol),
|
||||
(void *)pmbbi,DBR_USHORT,&(pmbbi->sval),&nRequest);
|
||||
(void *)pmbbi,DBR_USHORT,&(pmbbi->sval),&options,&nRequest);
|
||||
if (status==0){
|
||||
pmbbi->val=pmbbi->sval;
|
||||
pmbbi->udf=FALSE;
|
||||
|
||||
+2
-1
@@ -492,6 +492,7 @@ static long writeValue(pmbbo)
|
||||
long status;
|
||||
struct mbbodset *pdset = (struct mbbodset *) (pmbbo->dset);
|
||||
long nRequest=1;
|
||||
long options=0;
|
||||
|
||||
if (pmbbo->pact == TRUE){
|
||||
status=(*pdset->write_mbbo)(pmbbo);
|
||||
@@ -499,7 +500,7 @@ static long writeValue(pmbbo)
|
||||
}
|
||||
|
||||
status=recGblGetLinkValue(&(pmbbo->siml),
|
||||
(void *)pmbbo,DBR_ENUM,&(pmbbo->simm),&nRequest);
|
||||
(void *)pmbbo,DBR_ENUM,&(pmbbo->simm),&options,&nRequest);
|
||||
if (status)
|
||||
return(status);
|
||||
|
||||
|
||||
@@ -240,6 +240,7 @@ static long readValue(pstringin)
|
||||
long status;
|
||||
struct stringindset *pdset = (struct stringindset *) (pstringin->dset);
|
||||
long nRequest=1;
|
||||
long options=0;
|
||||
|
||||
|
||||
if (pstringin->pact == TRUE){
|
||||
@@ -248,7 +249,7 @@ static long readValue(pstringin)
|
||||
}
|
||||
|
||||
status=recGblGetLinkValue(&(pstringin->siml),
|
||||
(void *)pstringin,DBR_ENUM,&(pstringin->simm),&nRequest);
|
||||
(void *)pstringin,DBR_ENUM,&(pstringin->simm),&options,&nRequest);
|
||||
if (status)
|
||||
return(status);
|
||||
|
||||
@@ -258,7 +259,7 @@ static long readValue(pstringin)
|
||||
}
|
||||
if (pstringin->simm == YES){
|
||||
status=recGblGetLinkValue(&(pstringin->siol),
|
||||
(void *)pstringin,DBR_STRING,pstringin->sval,&nRequest);
|
||||
(void *)pstringin,DBR_STRING,pstringin->sval,&options,&nRequest);
|
||||
if (status==0){
|
||||
strcpy(pstringin->val,pstringin->sval);
|
||||
pstringin->udf=FALSE;
|
||||
|
||||
@@ -292,6 +292,7 @@ static long writeValue(pstringout)
|
||||
long status;
|
||||
struct stringoutdset *pdset = (struct stringoutdset *) (pstringout->dset);
|
||||
long nRequest=1;
|
||||
long options=0;
|
||||
|
||||
if (pstringout->pact == TRUE){
|
||||
status=(*pdset->write_stringout)(pstringout);
|
||||
@@ -299,7 +300,7 @@ static long writeValue(pstringout)
|
||||
}
|
||||
|
||||
status=recGblGetLinkValue(&(pstringout->siml),
|
||||
(void *)pstringout,DBR_ENUM,&(pstringout->simm),&nRequest);
|
||||
(void *)pstringout,DBR_ENUM,&(pstringout->simm),&options,&nRequest);
|
||||
if (status)
|
||||
return(status);
|
||||
|
||||
|
||||
@@ -370,6 +370,7 @@ static long readValue(pwf)
|
||||
long status;
|
||||
struct wfdset *pdset = (struct wfdset *) (pwf->dset);
|
||||
long nRequest=1;
|
||||
long options=0;
|
||||
|
||||
|
||||
if (pwf->pact == TRUE){
|
||||
@@ -378,7 +379,7 @@ static long readValue(pwf)
|
||||
}
|
||||
|
||||
status=recGblGetLinkValue(&(pwf->siml),
|
||||
(void *)pwf,DBR_ENUM,&(pwf->simm),&nRequest);
|
||||
(void *)pwf,DBR_ENUM,&(pwf->simm),&options,&nRequest);
|
||||
if (status)
|
||||
return(status);
|
||||
|
||||
@@ -389,7 +390,7 @@ static long readValue(pwf)
|
||||
if (pwf->simm == YES){
|
||||
nRequest=pwf->nelm;
|
||||
status=recGblGetLinkValue(&(pwf->siol),
|
||||
(void *)pwf,pwf->ftvl,pwf->bptr,&nRequest);
|
||||
(void *)pwf,pwf->ftvl,pwf->bptr,&options,&nRequest);
|
||||
pwf->nord = nRequest;
|
||||
if (status==0){
|
||||
pwf->udf=FALSE;
|
||||
|
||||
Reference in New Issue
Block a user