changes for building win32 dlls

This commit is contained in:
Marty Kraimer
2000-02-28 20:34:07 +00:00
parent 83000c4be8
commit e20bc046ba
15 changed files with 31 additions and 45 deletions

View File

@@ -27,16 +27,9 @@ typedef struct dbAddr{
* (included here because these routines use dbAccess.h and their
* prototypes must also be included in db_access.h)
*/
#ifdef __STDC__
int db_name_to_addr(const char *pname, DBADDR *paddr);
int db_put_field(DBADDR *paddr, int src_type,
epicsShareFunc int epicsShareAPI db_name_to_addr(const char *pname, DBADDR *paddr);
epicsShareFunc int epicsShareAPI db_put_field(DBADDR *paddr, int src_type,
const void *psrc, int no_elements);
int db_get_field(DBADDR *paddr, int dest_type,
epicsShareFunc int epicsShareAPI db_get_field(DBADDR *paddr, int dest_type,
void *pdest, int no_elements, void *pfl);
#else
int db_name_to_addr();
int db_put_field();
int db_get_field();
#endif
#endif /* dbAddrh */

View File

@@ -14,6 +14,9 @@ of this distribution.
/* Modification Log:
* -----------------
* $Log$
* Revision 1.20 2000/02/28 20:12:11 mrk
* move dbAccess.h
*
* Revision 1.19 2000/02/28 19:40:55 mrk
* changes for creating win dlls
*
@@ -108,8 +111,8 @@ of this distribution.
#include "recSup.h"
#include "special.h"
#define epicsExportSharedSymbols
#include "dbAccess.h"
#include "dbAddr.h"
#include "dbAccess.h"
#include "dbScan.h"
#include "dbLock.h"
#include "recGbl.h"

View File

@@ -38,7 +38,6 @@ of this distribution.
#include "cadef.h"
#include "caerr.h"
#include "alarm.h"
#include "db_access.h"
#include "link.h"
#include "errMdef.h"
#include "epicsPrint.h"
@@ -47,6 +46,7 @@ of this distribution.
epicsShareFunc void * epicsShareAPI dbCalloc(size_t nobj,size_t size);
#include "dbCaPvt.h"
#define epicsExportSharedSymbols
#include "db_access.h"
#include "dbScan.h"
#include "dbCa.h"

View File

@@ -23,12 +23,12 @@ of this distribution.
#include "tsStamp.h"
#include "dbBase.h"
#include "link.h"
#include "dbAddr.h"
#include "dbFldTypes.h"
#include "dbStaticLib.h"
#include "errMdef.h"
#include "recSup.h"
#define epicsExportSharedSymbols
#include "dbAddr.h"
#include "dbAccess.h"
#include "recGbl.h"
#include "dbConvert.h"

View File

@@ -34,13 +34,13 @@ of this distribution.
#include "freeList.h"
#include "dbBase.h"
#include "dbFldTypes.h"
#include "dbAddr.h"
#include "link.h"
#include "tsStamp.h"
#include "dbCommon.h"
#include "caeventmask.h"
#include "db_field_log.h"
#define epicsExportSharedSymbols
#include "dbAddr.h"
#include "dbLock.h"
#include "dbAccess.h"
#include "dbEvent.h"

View File

@@ -41,7 +41,6 @@
#include "dbBase.h"
#include "link.h"
#include "dbFldTypes.h"
#include "dbAddr.h"
#include "dbStaticLib.h"
#include "dbCommon.h"
#include "dbFldTypes.h"
@@ -49,6 +48,7 @@
#include "recSup.h"
#include "special.h"
#define epicsExportSharedSymbols
#include "dbAddr.h"
#include "dbAccess.h"
#include "recGbl.h"
#include "dbConvertFast.h"

View File

@@ -75,11 +75,11 @@ since this will delay all other threads.
#include "dbStaticLib.h"
#include "dbFldTypes.h"
#include "link.h"
#include "dbAddr.h"
#include "dbCommon.h"
#include "epicsPrint.h"
#include "errMdef.h"
#define epicsExportSharedSymbols
#include "dbAddr.h"
#include "dbAccess.h"
#include "dbLock.h"

View File

@@ -47,8 +47,8 @@
#include "dbFldTypes.h"
#include "link.h"
#include "dbCommon.h"
#include "dbAddr.h"
#define epicsExportSharedSymbols
#include "dbAddr.h"
#include "dbScan.h"
#include "dbLock.h"
#include "callback.h"

View File

@@ -61,12 +61,12 @@
#include "epicsPrint.h"
#include "dbBase.h"
#include "dbStaticLib.h"
#include "dbAddr.h"
#include "dbFldTypes.h"
#include "link.h"
#include "devSup.h"
#include "dbCommon.h"
#define epicsExportSharedSymbols
#include "dbAddr.h"
#include "callback.h"
#include "dbAccess.h"
#include "dbLock.h"

View File

@@ -27,7 +27,6 @@ of this distribution.
#include "dbBase.h"
#include "dbStaticLib.h"
#include "link.h"
#include "dbAddr.h"
#include "dbFldTypes.h"
#include "recSup.h"
#include "devSup.h"
@@ -36,6 +35,7 @@ of this distribution.
#include "special.h"
#include "db_field_log.h"
#define epicsExportSharedSymbols
#include "dbAddr.h"
#include "dbLock.h"
#include "dbAccess.h"
#include "recGbl.h"

View File

@@ -58,14 +58,12 @@
#include "dbBase.h"
#include "dbAddr.h"
#include "dbNotify.h"
#include "dbAccess.h"
#include "dbCommon.h"
#include "errMdef.h"
#include "recSup.h"
#include "alarm.h"
extern struct dbBase *pdbbase;
#define epicsExportSharedSymbols
#include "dbAccess.h"
#ifndef NULL
#define NULL 0
@@ -579,7 +577,7 @@ void fill(pbuffer,size,fillchar)
/*
* DB_NAME_TO_ADDR
*/
int db_name_to_addr(const char *pname, struct dbAddr *paddr)
int epicsShareAPI db_name_to_addr(const char *pname, struct dbAddr *paddr)
{
long status;
short ftype;
@@ -588,7 +586,7 @@ int db_name_to_addr(const char *pname, struct dbAddr *paddr)
if(!status) {
ftype = paddr->dbr_field_type;
if(INVALID_DB_REQ(ftype)) {
recGblDbaddrError(S_db_badDbrtype,paddr,"db_name_to_addr error");
errlogPrintf("%s dbNameToAddr failed\n",pname);
return(-2);
}
paddr->dbr_field_type = dbDBRnewToDBRold[ftype];
@@ -600,7 +598,7 @@ int db_name_to_addr(const char *pname, struct dbAddr *paddr)
typedef char DBSTRING[MAX_STRING_SIZE];
int db_get_field(
int epicsShareAPI db_get_field(
struct dbAddr *paddr,
int buffer_type,
void *pbuffer,
@@ -1445,7 +1443,7 @@ void *pfl
/* DB_PUT_FIELD put a field and convert it to the desired type */
int db_put_field(
int epicsShareAPI db_put_field(
struct dbAddr *paddr, /* where to put it */
int src_type,
const void *psrc, /* where to get it from */

View File

@@ -211,27 +211,20 @@ epicsShareExtern READONLY int epicsTypeToDBR_XXXX [lastEpicsType+1];
/*Definitions that allow old database access to use new conversion routines*/
#define newDBF_DEVICE 11
#define newDBR_ENUM 9
#ifdef __STDC__
extern long (*dbGetConvertRoutine[newDBF_DEVICE+1][newDBR_ENUM+1])
epicsShareExtern long (*dbGetConvertRoutine[newDBF_DEVICE+1][newDBR_ENUM+1])
(struct dbAddr *paddr, void *pbuffer,long nRequest,
long no_elements, long offset);
extern long (*dbPutConvertRoutine[newDBR_ENUM+1][newDBF_DEVICE+1])
epicsShareExtern long (*dbPutConvertRoutine[newDBR_ENUM+1][newDBF_DEVICE+1])
(struct dbAddr *paddr, void *pbuffer,long nRequest,
long no_elements, long offset);
extern long (*dbFastGetConvertRoutine[newDBF_DEVICE+1][newDBR_ENUM+1])();
extern long (*dbFastPutConvertRoutine[newDBR_ENUM+1][newDBF_DEVICE+1])();
#else
extern long (*dbGetConvertRoutine[newDBF_DEVICE+1][newDBR_ENUM+1]) ();
extern long (*dbPutConvertRoutine[newDBR_ENUM+1][newDBF_DEVICE+1]) ();
extern long (*dbFastGetConvertRoutine[newDBF_DEVICE+1][newDBR_ENUM+1])();
extern long (*dbFastPutConvertRoutine[newDBR_ENUM+1][newDBF_DEVICE+1])();
#endif /*__STDC__*/
epicsShareExtern long (*dbFastGetConvertRoutine[newDBF_DEVICE+1][newDBR_ENUM+1])();
epicsShareExtern long (*dbFastPutConvertRoutine[newDBR_ENUM+1][newDBF_DEVICE+1])();
/*Conversion between old and new DBR types*/
extern unsigned short dbDBRoldToDBFnew[DBR_DOUBLE+1];
extern unsigned short dbDBRnewToDBRold[newDBR_ENUM+1];
epicsShareExtern unsigned short dbDBRoldToDBFnew[DBR_DOUBLE+1];
epicsShareExtern unsigned short dbDBRnewToDBRold[newDBR_ENUM+1];
#ifdef DB_TEXT_GLBLSOURCE
unsigned short dbDBRoldToDBFnew[DBR_DOUBLE+1] = {
epicsShareDef unsigned short dbDBRoldToDBFnew[DBR_DOUBLE+1] = {
0, /*DBR_STRING to DBF_STRING*/
3, /*DBR_INT to DBF_SHORT*/
7, /*DBR_FLOAT to DBF_FLOAT*/
@@ -240,7 +233,7 @@ unsigned short dbDBRoldToDBFnew[DBR_DOUBLE+1] = {
5, /*DBR_LONG to DBF_LONG*/
8 /*DBR_DOUBLE to DBF_DOUBLE*/
};
unsigned short dbDBRnewToDBRold[newDBR_ENUM+1] = {
epicsShareDef unsigned short dbDBRnewToDBRold[newDBR_ENUM+1] = {
0, /*DBR_STRING to DBR_STRING*/
4, /*DBR_CHAR to DBR_CHAR*/
4, /*DBR_UCHAR to DBR_CHAR*/

View File

@@ -43,6 +43,7 @@ of this distribution.
#include "shareLib.h"
#include "dbCaPvt.h"
epicsShareExtern struct dbBase *pdbbase;
#define epicsExportSharedSymbols
#include "dbCa.h"
long dbcar(char *precordname,int level)

View File

@@ -40,8 +40,7 @@
#include <stddef.h>
#include <stdio.h>
#include <dbDefs.h>
#include "dbDefs.h"
#include "ellLib.h"
#define epicsExportSharedSymbols
#include "initHooks.h"

View File

@@ -81,7 +81,6 @@ of this distribution.
#include "envDefs.h"
#include "dbStaticLib.h"
#include "initHooks.h"
extern struct dbBase *pdbbase;
LOCAL int initialized=FALSE;