From 960d0499efceed4b285ece8122e6b9ab626e2c05 Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Mon, 28 Feb 2000 20:50:12 +0000 Subject: [PATCH] add decorated names --- src/db/Makefile | 1 + src/db/db_test.c | 7 ++++--- src/db/db_test.h | 30 ++++++++++++++++++++++++++++++ 3 files changed, 35 insertions(+), 3 deletions(-) create mode 100644 src/db/db_test.h diff --git a/src/db/Makefile b/src/db/Makefile index c2001b0ab..a756147a5 100644 --- a/src/db/Makefile +++ b/src/db/Makefile @@ -15,6 +15,7 @@ INC += dbNotify.h INC += dbScan.h INC += dbTest.h INC += db_access.h +INC += db_test.h INC += db_field_log.h INC += initHooks.h INC += recGbl.h diff --git a/src/db/db_test.c b/src/db/db_test.c index e6069c2ac..dd566b10a 100644 --- a/src/db/db_test.c +++ b/src/db/db_test.c @@ -40,6 +40,7 @@ #include "dbDefs.h" #include "errlog.h" +#define epicsExportSharedSymbols #include "db_access.h" #include "dbNotify.h" @@ -49,7 +50,7 @@ static void print_returned(); #define MAX_ELEMS 10 -int gft(char *pname) +int epicsShareAPI gft(char *pname) { char tgf_buffer[MAX_ELEMS*MAX_STRING_SIZE+sizeof(struct dbr_ctrl_double)]; struct dbAddr addr; @@ -97,7 +98,7 @@ int gft(char *pname) * TPF * Test put field */ -int pft(char *pname,char *pvalue) +int epicsShareAPI pft(char *pname,char *pvalue) { struct dbAddr addr; struct dbAddr *paddr = &addr; @@ -668,7 +669,7 @@ static void tpnCallback(PUTNOTIFY *ppn) free(ppn); } -long tpn(char *pname,char *pvalue) +int epicsShareAPI tpn(char *pname,char *pvalue) { long status; struct dbAddr *pdbaddr=NULL; diff --git a/src/db/db_test.h b/src/db/db_test.h new file mode 100644 index 000000000..5778e2b38 --- /dev/null +++ b/src/db/db_test.h @@ -0,0 +1,30 @@ +/* base/include/db_test.h */ + +/***************************************************************** + COPYRIGHT NOTIFICATION +***************************************************************** + +(C) COPYRIGHT 1993 UNIVERSITY OF CHICAGO + +This software was developed under a United States Government license +described on the COPYRIGHT_UniversityOfChicago file included as part +of this distribution. +**********************************************************************/ + +#ifndef INCLdb_testh +#define INCLdb_testh + +#ifdef __cplusplus +extern "C" { +#endif + +#include "shareLib.h" + +epicsShareFunc int epicsShareAPI gft(char *pname); +epicsShareFunc int epicsShareAPI pft(char *pname,char *pvalue); +epicsShareFunc int epicsShareAPI tpn(char *pname,char *pvalue); +#ifdef __cplusplus +} +#endif + +#endif /* INCLdb_testh */