This is Unofficial EPICS BASE Doxygen Site
errSymTbl.h
Go to the documentation of this file.
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 * EPICS BASE is distributed subject to a Software License Agreement found
7 * in file LICENSE that is included with this distribution.
8 \*************************************************************************/
9 
10 #ifndef INC_errSymTbl_H
11 #define INC_errSymTbl_H
12 
13 #include <stddef.h>
14 
15 #include "libComAPI.h"
16 #include "epicsTypes.h"
17 
18 /* ERRSYMBOL - entry in symbol table */
19 typedef struct {
20  long errNum; /* errMessage symbol number */
21  const char *name; /* pointer to symbol name */
22 } ERRSYMBOL;
23 
24 /* ERRSYMTAB - symbol table */
25 typedef struct {
26  int nsymbols; /* current number of symbols in table */
27  ERRSYMBOL *symbols; /* ptr to array of symbol entries */
28 } ERRSYMTAB;
29 
31 
32 
33 #ifdef __cplusplus
34 extern "C" {
35 #endif
36 
37 LIBCOM_API void errSymLookup(long status, char *pBuf, size_t bufLength);
38 LIBCOM_API const char* errSymMsg(long status);
39 LIBCOM_API void errSymTest(epicsUInt16 modnum, epicsUInt16 begErrNum,
40  epicsUInt16 endErrNum);
41 LIBCOM_API void errSymTestPrint(long errNum);
42 LIBCOM_API int errSymBld(void);
43 LIBCOM_API int errSymbolAdd(long errNum, const char *name);
44 LIBCOM_API void errSymDump(void);
45 
46 #ifdef __cplusplus
47 }
48 #endif
49 
50 #endif /* INC_errSymTbl_H */
LIBCOM_API int errSymBld(void)
Definition: errSymLib.c:55
LIBCOM_API void errSymTest(epicsUInt16 modnum, epicsUInt16 begErrNum, epicsUInt16 endErrNum)
Definition: errSymLib.c:265
pvd::Status status
unsigned short epicsUInt16
Definition: epicsTypes.h:41
long errNum
Definition: errSymLib.c:36
ERRSYMBOL * symbols
Definition: errSymTbl.h:27
LIBCOM_API const char * errSymMsg(long status)
Definition: errSymLib.c:181
ERRSYMTAB * ERRSYMTAB_ID
Definition: errSymTbl.h:30
LIBCOM_API void errSymLookup(long status, char *pBuf, size_t bufLength)
Definition: errSymLib.c:190
long errNum
Definition: errSymTbl.h:20
LIBCOM_API int errSymbolAdd(long errNum, const char *name)
Definition: errSymLib.c:118
LIBCOM_API void errSymTestPrint(long errNum)
Definition: errSymLib.c:239
const char * name
Definition: errSymTbl.h:21
LIBCOM_API void errSymDump(void)
Definition: errSymLib.c:204
int nsymbols
Definition: errSymTbl.h:26