EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
db_access_routines.h
1 /*************************************************************************\
2 * Copyright (c) 2010 UChicago Argonne LLC, as Operator of Argonne
3 * National Laboratory.
4 * Copyright (c) 2002 The Regents of the University of California, as
5 * Operator of Los Alamos National Laboratory.
6 * SPDX-License-Identifier: EPICS
7 * EPICS BASE is distributed subject to a Software License Agreement found
8 * in file LICENSE that is included with this distribution.
9 \*************************************************************************/
10 
11 /* This defined routines for old database access. These were broken out of
12  db_access.h so that ca can be build independent of db.
13  src/ca contains db_access, which contains that data definitions
14 */
15 
16 #ifndef INCLdb_access_routinesh
17 #define INCLdb_access_routinesh
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 #include "dbCoreAPI.h"
24 
25 DBCORE_API extern struct dbBase *pdbbase;
26 DBCORE_API extern volatile int interruptAccept;
27 
28 
29 /*
30  * Adapters for db_access users
31  */
32 DBCORE_API struct dbChannel * dbChannel_create(const char *pname);
33 DBCORE_API int dbChannel_get(struct dbChannel *chan,
34  int buffer_type, void *pbuffer, long no_elements, void *pfl);
35 DBCORE_API int dbChannel_put(struct dbChannel *chan, int src_type,
36  const void *psrc, long no_elements);
37 DBCORE_API int dbChannel_get_count(struct dbChannel *chan,
38  int buffer_type, void *pbuffer, long *nRequest, void *pfl);
39 
40 
41 #ifdef __cplusplus
42 }
43 #endif
44 
45 #endif /* INCLdb_access_routinesh */
Definition: dbBase.h:171