OpenClovis Logo

clTimerErrors.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 : timer
21  * File : clTimerErrors.h
22  *******************************************************************************/
23 
24 /*******************************************************************************
25  * Description :
26  *
27  * Error codes returned by the timer library.
28  *
29  *
30  *****************************************************************************/
31 
44 #ifndef _CL_TIMER_ERRORS_H_
45 #define _CL_TIMER_ERRORS_H_
46 
47 #ifdef __cplusplus
48 extern "C" {
49 #endif
50 
51 #include <clCommon.h>
52 #include <clCommonErrors.h>
53 
54 /******************************************************************************
55  * ERROR CODES
56  *****************************************************************************/
57 
62 #define CL_TIMER_ERR_INVALID_TIMER 0x100
63 
64 #if 0 /* Unused at this moment */
65 /*
66  * (0x101)
67  */
68 #define CL_TIMER_ERR_TIMER_EXPIRED (CL_TIMER_ERR_BASE + 1)
69 #endif
70 
75 #define CL_TIMER_ERR_INVALID_TIMER_TYPE 0x102
76 
81 #define CL_TIMER_ERR_INVALID_TIMER_CONTEXT_TYPE 0x103
82 
88 #define CL_TIMER_ERR_NULL_TIMER_CALLBACK 0x104
89 
90 /******************************************************************************
91  * ERROR/RETRUN CODE HANDLING MACROS
92  *****************************************************************************/
93 #define CL_TIMER_RC(ERROR_CODE) CL_RC(CL_CID_TIMER, (ERROR_CODE))
94 
95 #ifdef __cplusplus
96 }
97 #endif
98 
99 #endif /* _CL_TIMER_ERRORS_H_ */
100 

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