OpenClovis Logo

clAlarmErrors.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2002-2012 OpenClovis Solutions Inc. All Rights Reserved.
3  *
4  * This file is available under a commercial license from the
5  * copyright holder or the GNU General Public License Version 2.0.
6  *
7  * The source code for this program is not published or otherwise
8  * divested of its trade secrets, irrespective of what has been
9  * deposited with the U.S. Copyright office.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * General Public License for more details.
15  *
16  * For more information, see the file COPYING provided with this
17  * material.
18  */
19 /*******************************************************************************
20  * ModuleName : alarm
21  * File : clAlarmErrors.h
22  *******************************************************************************/
23 
24 /*******************************************************************************
25  * Description :
26  *
27  * Description: This file contains alarm service related error codes
28  *
29  *
30  *****************************************************************************/
31 
43 #ifndef _CL_ALARM_ERRORS_H_
44 #define _CL_ALARM_ERRORS_H_
45 
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49 
50 #include <clCommon.h>
51 #include <clCommonErrors.h>
52 
53 /******************************************************************************
54  * ERROR CODES
55  *****************************************************************************/
56 
64 #define CL_ALARM_ERR_INVALID_CAT 0x100
65 
69 #define CL_ALARM_ERR_VERSION_UNSUPPORTED 0x101
70 
74 #define CL_ALARM_ERR_INVALID_SEVERITY 0x102
75 
79 #define CL_ALARM_ERR_PROB_CAUSE_NOT_PRESENT 0x103
80 
84 #define CL_ALARM_ERR_GEN_RULE_NOT_VALID 0x104
85 
89 #define CL_ALARM_ERR_SUPP_RULE_NOT_VALID 0x105
90 
94 #define CL_ALARM_ERR_OM_CREATE_FAILED 0x106
95 
99 #define CL_ALARM_ERR_INTERNAL_ERROR 0x107
100 
104 #define CL_ALARM_ERR_EVT_INIT 0x108
105 
109 #define CL_ALARM_ERR_EVT_CHANNEL_OPEN 0x109
110 
114 #define CL_ALARM_ERR_EVT_SUBSCRIBE 0x10a
115 
119 #define CL_ALARM_ERR_EVT_SUBSCRIBE_AGAIN 0x10b
120 
124 #define CL_ALARM_ERR_EVT_CHANNEL_CLOSE 0x10c
125 
129 #define CL_ALARM_ERR_EVT_FINALIZE 0x10d
130 
134 #define CL_ALARM_ERR_INVALID_MOID 0x10e
135 
139 #define CL_ALARM_ERR_NO_OWNER 0x10f
140 
141 
142 
143 /******************************************************************************
144  * ERROR/RETRUN CODE HANDLING MACROS
145  *****************************************************************************/
149 #define CL_ALARM_RC(ERROR_CODE) CL_RC(CL_CID_ALARMS, (ERROR_CODE))
150 
154 #define CL_ALARM_ERR_NULL_POINTER CL_ERR_NULL_POINTER
155 
159 #define CL_ALARM_ERR_NO_MEMORY CL_ERR_NO_MEMORY
160 
164 #define CL_ALARM_ERR_INVALID_PARAM CL_ERR_INVALID_PARAMETER
165 
166 #ifdef __cplusplus
167 }
168 #endif
169 
170 #endif /* _CL_ALARM_ERRORS_H_ */
171 

Generated on Tue Jan 10 10:29:15 PST 2012 for OpenClovis SDK using Doxygen