OpenNSL API Guide and Reference Manual
error.h
Go to the documentation of this file.
1 
4 /*****************************************************************************
5  *
6  * (C) Copyright Broadcom Corporation 2013-2016
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  *
11  * You may obtain a copy of the License at
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  *
20  ***************************************************************************/
24 #ifndef __OPENNSL_ERROR_H__
25 #define __OPENNSL_ERROR_H__
26 
27 #include <shared/error.h>
28 
35 typedef enum opennsl_error_e {
56 /* __doxy_func_body_end__ */
57 
59 typedef enum opennsl_switch_event_e {
67 /* __doxy_func_body_end__ */
68 
69 #define OPENNSL_SUCCESS(rv) \
70  _SHR_E_SUCCESS(rv)
71 #define OPENNSL_FAILURE(rv) \
72  _SHR_E_FAILURE(rv)
73 #define OPENNSL_IF_ERROR_RETURN(op) \
74  _SHR_E_IF_ERROR_RETURN(op)
75 #define OPENNSL_IF_ERROR_NOT_UNAVAIL_RETURN(op) \
76  _SHR_E_IF_ERROR_NOT_UNAVAIL_RETURN(op)
77 #define opennsl_errmsg(rv) \
78  _SHR_ERRMSG(rv)
79 #include <opennsl/errorX.h>
80 #endif /* __OPENNSL_ERROR_H__ */
81