OpenClovis Logo

clCkptErrors.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 
31 #ifndef _CL_CKPT_ERRORS_H_
32 #define _CL_CKPT_ERRORS_H_
33 
34 #ifdef __cplusplus
35 extern "C"
36 {
37 #endif
38 
39  /*
40  * INCLUDES
41  */
42 #include <clCommon.h>
43 #include <clCommonErrors.h>
44 
49 #define CL_CKPT_ERR_NO_SECTIONS 0x101
50 
51 
52 /*
53  * Macros for checkpointing related errors.
54  */
55 #define CKPT_RC(ERR_ID) (CL_RC(CL_CID_CKPT, ERR_ID))
56 
57 #define CL_CKPT_ERR_NO_MEMORY CKPT_RC(CL_ERR_NO_MEMORY)
58 #define CL_CKPT_ERR_INVALID_PARAMETER CKPT_RC(CL_ERR_INVALID_PARAMETER)
59 #define CL_CKPT_ERR_NULL_POINTER CKPT_RC(CL_ERR_NULL_POINTER)
60 #define CL_CKPT_ERR_NOT_EXIST CKPT_RC(CL_ERR_NOT_EXIST)
61 #define CL_CKPT_ERR_INVALID_HANDLE CKPT_RC(CL_ERR_INVALID_HANDLE)
62 #define CL_CKPT_ERR_INVALID_BUFFER CKPT_RC(CL_ERR_INVALID_BUFFER)
63 #define CL_CKPT_ERR_NOT_IMPLEMENTED CKPT_RC(CL_ERR_NOT_IMPLEMENTED)
64 #define CL_CKPT_ERR_DUPLICATE CKPT_RC(CL_ERR_DUPLICATE)
65 #define CL_CKPT_ERR_OUT_OF_RANGE CKPT_RC(CL_ERR_OUT_OF_RANGE)
66 #define CL_CKPT_ERR_NO_RESOURCE CKPT_RC(CL_ERR_NO_RESOURCE)
67 #define CL_CKPT_ERR_INITIALIZED CKPT_RC(CL_ERR_INITIALIZED)
68 #define CL_CKPT_ERR_BUFFER_OVERRUN CKPT_RC(CL_ERR_BUFFER_OVERRUN)
69 #define CL_CKPT_ERR_NOT_INITIALIZED CKPT_RC(CL_ERR_NOT_INITIALIZED)
70 #define CL_CKPT_ERR_VERSION_MISMATCH CKPT_RC(CL_ERR_VERSION_MISMATCH)
71 #define CL_CKPT_ERR_ALREADY_EXIST CKPT_RC(CL_ERR_ALREADY_EXIST)
72 #define CL_CKPT_ERR_UNSPECIFIED CKPT_RC(CL_ERR_UNSPECIFIED)
73 #define CL_CKPT_ERR_INVALID_STATE CKPT_RC(CL_ERR_INVALID_STATE)
74 #define CL_CKPT_ERR_DOESNT_EXIST CKPT_RC(CL_ERR_DOESNT_EXIST)
75 #define CL_CKPT_ERR_TIMEOUT CKPT_RC(CL_ERR_TIMEOUT)
76 #define CL_CKPT_ERR_INUSE CKPT_RC(CL_ERR_INUSE)
77 #define CL_CKPT_ERR_TRY_AGAIN CKPT_RC(CL_ERR_TRY_AGAIN)
78 #define CL_CKPT_ERR_NO_CALLBACK CKPT_RC(CL_ERR_NO_CALLBACK)
79 #define CL_CKPT_ERR_MUTEX_ERROR CKPT_RC(CL_ERR_MUTEX_ERROR)
80 #define CL_CKPT_ERR_OP_NOT_PERMITTED CKPT_RC(CL_ERR_OP_NOT_PERMITTED)
81 #define CL_CKPT_ERR_NO_SPACE CKPT_RC(CL_ERR_NO_SPACE)
82 #define CL_CKPT_ERR_BAD_FLAG CKPT_RC(CL_ERR_BAD_FLAG)
83 #define CL_CKPT_ERR_BAD_OPERATION CKPT_RC(CL_ERR_BAD_OPERATION)
84 
85 
86 #ifdef __cplusplus
87 }
88 #endif
89 
90 #endif /* _CL_CKPT_ERRORS_H_ */
91 

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