dbCa: make private all functions which assume CA_LINK is really dbCa
This commit is contained in:
+2
-1
@@ -20,6 +20,8 @@ extern "C" {
|
||||
typedef void (*dbCaCallback)(void *userPvt);
|
||||
epicsShareFunc void dbCaCallbackProcess(void *usrPvt);
|
||||
|
||||
#ifdef EPICS_DBCA_PRIVATE_API
|
||||
|
||||
epicsShareFunc void dbCaLinkInit(void); /* internal initialization for iocBuild() */
|
||||
epicsShareFunc void dbCaLinkInitIsolated(void); /* internal initialization for iocBuildIsolated() */
|
||||
epicsShareFunc void dbCaRun(void);
|
||||
@@ -47,7 +49,6 @@ epicsShareFunc long dbCaPutLink(struct link *plink,short dbrType,
|
||||
|
||||
extern struct ca_client_context * dbCaClientContext;
|
||||
|
||||
#ifdef EPICS_DBCA_PRIVATE_API
|
||||
epicsShareFunc void dbCaSync(void);
|
||||
epicsShareFunc void dbCaReportLink(const struct link *plink, dbLinkReportInfo *pinfo);
|
||||
epicsShareExtern void (*dbAddLinkHook)(struct link *link, short dbfType);
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#define EPICS_DBCA_PRIVATE_API
|
||||
#include "alarm.h"
|
||||
#include "cantProceed.h"
|
||||
#include "cvtFast.h"
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
|
||||
#define EPICS_DBCA_PRIVATE_API
|
||||
#include "epicsString.h"
|
||||
#include "dbUnitTest.h"
|
||||
#include "epicsThread.h"
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
|
||||
#define EPICS_DBCA_PRIVATE_API
|
||||
#include "dbDefs.h"
|
||||
#include "ellLib.h"
|
||||
#include "envDefs.h"
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#define EPICS_DBCA_PRIVATE_API
|
||||
#include "alarm.h"
|
||||
#include "dbDefs.h"
|
||||
#include "dbAccess.h"
|
||||
@@ -55,7 +56,7 @@ static long write_ao(aoRecord *prec)
|
||||
long status;
|
||||
|
||||
if(prec->pact) return(0);
|
||||
if(plink->type!=CA_LINK) {
|
||||
if(plink->type!=CA_LINK || strcmp(plink->value.pv_link.backend,"ca")!=0) {
|
||||
status = dbPutLink(plink,DBR_DOUBLE,&prec->oval,1);
|
||||
return(status);
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#define EPICS_DBCA_PRIVATE_API
|
||||
#include "alarm.h"
|
||||
#include "dbDefs.h"
|
||||
#include "dbLock.h"
|
||||
@@ -55,7 +56,7 @@ static long write_bo(boRecord *prec)
|
||||
long status;
|
||||
|
||||
if(prec->pact) return(0);
|
||||
if(plink->type!=CA_LINK) {
|
||||
if(plink->type!=CA_LINK || strcmp(plink->value.pv_link.backend,"ca")!=0) {
|
||||
status = dbPutLink(plink,DBR_USHORT,&prec->val,1);
|
||||
return(status);
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#define EPICS_DBCA_PRIVATE_API
|
||||
#include "alarm.h"
|
||||
#include "dbDefs.h"
|
||||
#include "dbAccess.h"
|
||||
@@ -49,7 +50,7 @@ static long write_calcout(calcoutRecord *prec)
|
||||
long status;
|
||||
|
||||
if (prec->pact) return 0;
|
||||
if (plink->type != CA_LINK) {
|
||||
if (plink->type != CA_LINK || strcmp(plink->value.pv_link.backend,"ca")!=0) {
|
||||
status = dbPutLink(plink, DBR_DOUBLE, &prec->oval, 1);
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#define EPICS_DBCA_PRIVATE_API
|
||||
#include "alarm.h"
|
||||
#include "dbDefs.h"
|
||||
#include "dbAccess.h"
|
||||
@@ -52,7 +53,7 @@ static long write_longout(longoutRecord *prec)
|
||||
long status;
|
||||
|
||||
if(prec->pact) return(0);
|
||||
if(plink->type!=CA_LINK) {
|
||||
if(plink->type!=CA_LINK || strcmp(plink->value.pv_link.backend,"ca")!=0) {
|
||||
status = dbPutLink(plink,DBR_LONG,&prec->val,1);
|
||||
return(status);
|
||||
}
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
* Date: 30 Nov 2012
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#define EPICS_DBCA_PRIVATE_API
|
||||
#include "alarm.h"
|
||||
#include "dbAccess.h"
|
||||
#include "recGbl.h"
|
||||
@@ -31,7 +34,7 @@ static long write_string(lsoRecord *prec)
|
||||
len = 1;
|
||||
}
|
||||
|
||||
if (plink->type != CA_LINK)
|
||||
if (plink->type != CA_LINK || strcmp(plink->value.pv_link.backend,"ca")!=0)
|
||||
return dbPutLink(plink, dtyp, prec->val, len);
|
||||
|
||||
status = dbCaPutLinkCallback(plink, dtyp, prec->val, len,
|
||||
|
||||
@@ -13,7 +13,9 @@
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#define EPICS_DBCA_PRIVATE_API
|
||||
#include "alarm.h"
|
||||
#include "dbAccess.h"
|
||||
#include "recGbl.h"
|
||||
@@ -29,7 +31,7 @@ static long write_mbbo(mbboDirectRecord *prec)
|
||||
if (prec->pact)
|
||||
return 0;
|
||||
|
||||
if (plink->type != CA_LINK) {
|
||||
if (plink->type != CA_LINK || strcmp(plink->value.pv_link.backend,"ca")!=0) {
|
||||
status = dbPutLink(plink, DBR_USHORT, &prec->val, 1);
|
||||
return status;
|
||||
}
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#define EPICS_DBCA_PRIVATE_API
|
||||
#include "alarm.h"
|
||||
#include "dbDefs.h"
|
||||
#include "dbAccess.h"
|
||||
@@ -51,7 +52,7 @@ static long write_mbbo(mbboRecord *prec)
|
||||
long status;
|
||||
|
||||
if(prec->pact) return(0);
|
||||
if(plink->type!=CA_LINK) {
|
||||
if(plink->type!=CA_LINK || strcmp(plink->value.pv_link.backend,"ca")!=0) {
|
||||
status = dbPutLink(plink,DBR_USHORT,&prec->val,1);
|
||||
return(status);
|
||||
}
|
||||
|
||||
@@ -10,6 +10,9 @@
|
||||
* Date: 28 Sept 2012
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#define EPICS_DBCA_PRIVATE_API
|
||||
#include "alarm.h"
|
||||
#include "dbAccess.h"
|
||||
#include "recGbl.h"
|
||||
@@ -31,7 +34,7 @@ static long write_string(printfRecord *prec)
|
||||
len = 1;
|
||||
}
|
||||
|
||||
if (plink->type != CA_LINK)
|
||||
if (plink->type != CA_LINK || strcmp(plink->value.pv_link.backend,"ca")!=0)
|
||||
return dbPutLink(plink, dtyp, prec->val, len);
|
||||
|
||||
status = dbCaPutLinkCallback(plink, dtyp, prec->val, len,
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#define EPICS_DBCA_PRIVATE_API
|
||||
#include "alarm.h"
|
||||
#include "dbDefs.h"
|
||||
#include "dbAccess.h"
|
||||
@@ -52,7 +53,7 @@ static long write_stringout(stringoutRecord *prec)
|
||||
|
||||
if (prec->pact) return 0;
|
||||
|
||||
if (plink->type != CA_LINK) {
|
||||
if (plink->type != CA_LINK || strcmp(plink->value.pv_link.backend,"ca")!=0) {
|
||||
return dbPutLink(plink, DBR_STRING, &prec->val, 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user