OpenClovis Logo

clNameErrors.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 : name
21  * File : clNameErrors.h
22  *******************************************************************************/
23 
24 /*******************************************************************************
25  * Description :
26  *
27  * This module contains NS related errors.
28  *
29  *
30  *****************************************************************************/
31 
45 #ifndef _CL_NAME_ERRORS_H_
46 #define _CL_NAME_ERRORS_H_
47 
48 #ifdef __cplusplus
49 extern "C" {
50 #endif
51 
52 #include <clCommon.h>
53 #include <clCommonErrors.h>
54 
55 
56 /******************************************************************************
57  * ERROR/RETURN CODE HANDLING MACROS
58  *****************************************************************************/
59 
63 #define CL_NS_RC(ERROR_CODE) CL_RC(CL_CID_NS, (ERROR_CODE))
64 
65 /******************************************************************************
66  * ERROR CODES
67  *****************************************************************************/
68 
69 /* Name Service related error codes */
70 
74 #define CL_NS_ERR_ENTRY_NOT_FOUND 0x100
75 
79 #define CL_NS_ERR_LIMIT_EXCEEDED 0x101
80 
84 #define CL_NS_ERR_CONTEXT_NOT_CREATED 0x102
85 
89 #define CL_NS_ERR_SERVICE_NOT_REGISTERED 0x103
90 
94 #define CL_NS_ERR_CONTEXT_CREATION_FAILED 0x104
95 
99 #define CL_NS_ERR_OPERATION_NOT_PERMITTED 0x105
100 
104 #define CL_NS_ERR_CONTEXT_ALREADY_CREATED 0x106
105 
106 
107 #ifdef __cplusplus
108 }
109 #endif
110 
111 
112 #endif /* _CL_NAME_ERRORS_H_ */
113 

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