EPICS Base  7.0.6.1
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
errSymTbl.h
1 /*************************************************************************\
2 * Copyright (c) 2012 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 #ifndef INC_errSymTbl_H
12 #define INC_errSymTbl_H
13 
14 #include <stddef.h>
15 
16 #include "libComAPI.h"
17 #include "epicsTypes.h"
18 
19 /* ERRSYMBOL - entry in symbol table */
20 typedef struct {
21  long errNum; /* errMessage symbol number */
22  const char *name; /* pointer to symbol name */
23 } ERRSYMBOL;
24 
25 /* ERRSYMTAB - symbol table */
26 typedef struct {
27  int nsymbols; /* current number of symbols in table */
28  ERRSYMBOL *symbols; /* ptr to array of symbol entries */
29 } ERRSYMTAB;
30 
31 typedef ERRSYMTAB *ERRSYMTAB_ID;
32 
33 
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37 
38 LIBCOM_API void errSymLookup(long status, char *pBuf, size_t bufLength);
39 LIBCOM_API const char* errSymMsg(long status);
40 LIBCOM_API void errSymTest(epicsUInt16 modnum, epicsUInt16 begErrNum,
41  epicsUInt16 endErrNum);
42 LIBCOM_API void errSymTestPrint(long errNum);
43 LIBCOM_API int errSymBld(void);
44 LIBCOM_API int errSymbolAdd(long errNum, const char *name);
45 LIBCOM_API void errSymDump(void);
46 
47 #ifdef __cplusplus
48 }
49 #endif
50 
51 #endif /* INC_errSymTbl_H */
The core data types used by epics.
LIBCOM_API void errSymLookup(long status, char *pBuf, size_t bufLength)