Mark source dbAddr pointers as const.

This commit is contained in:
Andrew Johnson
2009-02-24 22:57:15 +00:00
parent 8be407d608
commit 654a7e05cd
2 changed files with 421 additions and 219 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +1,9 @@
/*************************************************************************\
* Copyright (c) 2002 The University of Chicago, as Operator of Argonne
* Copyright (c) 2009 UChicago Argonne LLC, as Operator of Argonne
* National Laboratory.
* Copyright (c) 2002 The Regents of the University of California, as
* Operator of Los Alamos National Laboratory.
* EPICS BASE Versions 3.13.7
* and higher are distributed subject to a Software License Agreement found
* EPICS BASE is distributed subject to a Software License Agreement found
* in file LICENSE that is included with this distribution.
\*************************************************************************/
/* dbConvert.h */
@@ -19,11 +18,13 @@
extern "C" {
#endif
epicsShareExtern long (*dbGetConvertRoutine[DBF_DEVICE+1][DBR_ENUM+1])
(DBADDR *paddr, void *pbuffer,long nRequest, long no_elements, long offset);
epicsShareExtern long (*dbPutConvertRoutine[DBR_ENUM+1][DBF_DEVICE+1])
(DBADDR *paddr, const void *pbuffer,long nRequest, long no_elements,
long offset);
typedef long (*GETCONVERTFUNC)(const DBADDR *paddr, void *pbuffer,
long nRequest, long no_elements, long offset);
typedef long (*PUTCONVERTFUNC)(DBADDR *paddr, const void *pbuffer,
long nRequest, long no_elements, long offset);
epicsShareExtern GETCONVERTFUNC dbGetConvertRoutine[DBF_DEVICE+1][DBR_ENUM+1];
epicsShareExtern PUTCONVERTFUNC dbPutConvertRoutine[DBR_ENUM+1][DBF_DEVICE+1];
#ifdef __cplusplus
}