EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dbState.h
Go to the documentation of this file.
1 /*************************************************************************\
2 * Copyright (c) 2010 Brookhaven National Laboratory.
3 * Copyright (c) 2010 Helmholtz-Zentrum Berlin
4 * fuer Materialien und Energie GmbH.
5 * SPDX-License-Identifier: EPICS
6 * EPICS BASE is distributed subject to a Software License Agreement found
7 * in file LICENSE that is included with this distribution.
8 \*************************************************************************/
9 
10 /*
11  * Author: Ralph Lange <[email protected]>
12  */
13 
14 #ifndef INCdbStateH
15 #define INCdbStateH
16 
17 #include "dbCoreAPI.h"
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
36 typedef struct dbState *dbStateId;
37 
48 DBCORE_API dbStateId dbStateCreate(const char *name);
49 
55 DBCORE_API dbStateId dbStateFind(const char *name);
56 
63 DBCORE_API void dbStateSet(dbStateId id);
64 
71 DBCORE_API void dbStateClear(dbStateId id);
72 
78 DBCORE_API int dbStateGet(dbStateId id);
79 
87 DBCORE_API void dbStateShow(dbStateId id, unsigned int level);
88 
95 DBCORE_API void dbStateShowAll(unsigned int level);
96 
97 
98 #ifdef __cplusplus
99 }
100 #endif
101 
102 #endif // INCdbStateH
DBCORE_API void dbStateShowAll(unsigned int level)
Print info about all db states.
DBCORE_API void dbStateSet(dbStateId id)
Set db state to TRUE.
DBCORE_API void dbStateClear(dbStateId id)
Set db state to FALSE.
DBCORE_API dbStateId dbStateFind(const char *name)
Find db state.
DBCORE_API int dbStateGet(dbStateId id)
Get db state.
DBCORE_API void dbStateShow(dbStateId id, unsigned int level)
Print info about db state.
DBCORE_API dbStateId dbStateCreate(const char *name)
Create db state.