• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* ------------------------------------------------------------------
2  * Copyright (C) 1998-2009 PacketVideo
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
13  * express or implied.
14  * See the License for the specific language governing permissions
15  * and limitations under the License.
16  * -------------------------------------------------------------------
17  */
18 // -*- c++ -*-
19 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
20 
21 //                     O S C L _ E R R O R _ C O D E S
22 
23 // = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
24 
25 /*! \addtogroup osclerror OSCL Error
26  *
27  * @{
28  */
29 
30 
31 /** \file oscl_error_codes.h
32     \brief Defines basic error and leave codes.
33 */
34 
35 #ifndef OSCL_ERROR_CODES_H_INCLUDED
36 #define OSCL_ERROR_CODES_H_INCLUDED
37 
38 
39 /** Leave Codes
40 */
41 typedef int32 OsclLeaveCode;
42 
43 #define OsclErrNone 0
44 #define OsclErrGeneral 100
45 #define OsclErrNoMemory 101
46 #define OsclErrCancelled 102
47 #define OsclErrNotSupported 103
48 #define OsclErrArgument 104
49 #define OsclErrBadHandle 105
50 #define OsclErrAlreadyExists 106
51 #define OsclErrBusy 107
52 #define OsclErrNotReady 108
53 #define OsclErrCorrupt 109
54 #define OsclErrTimeout 110
55 #define OsclErrOverflow 111
56 #define OsclErrUnderflow 112
57 #define OsclErrInvalidState 113
58 #define OsclErrNoResources 114
59 #define OsclErrNotInstalled 115
60 #define OsclErrAlreadyInstalled 116
61 #define OsclErrSystemCallFailed 117
62 #define OsclErrNoHandler 118
63 #define OsclErrThreadContextIncorrect 119
64 
65 /** For backward compatibility with old definitions
66 */
67 #define OSCL_ERR_NONE OsclErrNone
68 #define OSCL_BAD_ALLOC_EXCEPTION_CODE OsclErrNoMemory
69 
70 /** Return Codes
71 */
72 typedef int32 OsclReturnCode;
73 
74 #define  OsclSuccess 0
75 #define  OsclPending 1
76 #define  OsclFailure -1
77 
78 #endif
79 
80 /*! @} */
81