From 9f94eee7421250e9d0d15e41c4b1901ccf81959a Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 28 Apr 2000 00:41:38 +0000 Subject: [PATCH] allow C++ --- src/db/dbEvent.h | 7 +++++++ src/db/dbLock.h | 8 ++++++++ src/db/dbNotify.h | 5 +++++ 3 files changed, 20 insertions(+) diff --git a/src/db/dbEvent.h b/src/db/dbEvent.h index f592fe52d..b3e95c2be 100644 --- a/src/db/dbEvent.h +++ b/src/db/dbEvent.h @@ -32,6 +32,9 @@ #include "shareLib.h" +#ifdef __cplusplus +extern "C" { +#endif epicsShareFunc int epicsShareAPI db_event_list ( const char *name, unsigned level); @@ -73,5 +76,9 @@ epicsShareFunc void epicsShareAPI db_event_disable (dbEventSubscription es); #define DB_EVENT_OK 0 #define DB_EVENT_ERROR (-1) +#ifdef __cplusplus +} +#endif + #endif /*INCLdbEventh*/ diff --git a/src/db/dbLock.h b/src/db/dbLock.h index c6035e003..bf9a33d28 100644 --- a/src/db/dbLock.h +++ b/src/db/dbLock.h @@ -20,6 +20,10 @@ of this distribution. #include "shareLib.h" +#ifdef __cplusplus +extern "C" { +#endif + epicsShareFunc void epicsShareAPI dbScanLock(struct dbCommon *precord); epicsShareFunc void epicsShareAPI dbScanUnlock(struct dbCommon *precord); epicsShareFunc unsigned long epicsShareAPI dbLockGetLockId( @@ -39,4 +43,8 @@ epicsShareFunc long epicsShareAPI dblsr(char *recordname,int level); /* If recordname NULL then all records*/ /* level = (0,1,2) (lock set state, + recordname, +DB links) */ +#ifdef __cplusplus +} +#endif + #endif /*INCdbLockh*/ diff --git a/src/db/dbNotify.h b/src/db/dbNotify.h index b5bff3a29..25b301c2c 100644 --- a/src/db/dbNotify.h +++ b/src/db/dbNotify.h @@ -22,6 +22,7 @@ of this distribution. // struct dbCommon; struct putNotify; + extern "C" { #endif typedef struct pnRestartNode { @@ -72,4 +73,8 @@ epicsShareFunc long epicsShareAPI dbPutNotifyInitiate ( epicsShareFunc void epicsShareAPI dbPutNotifyDestroy (dbPutNotifyID idIn); +#ifdef __cplusplus +} +#endif + #endif /*INCdbNotifyh*/