er_error.h

Go to the documentation of this file.
00001 #ifndef __ER_ERROR_H__
00002 #define __ER_ERROR_H__
00003 
00004 /**
00005  * File Name  : er_error.h
00006  *
00007  * Description: Error codes for eReader software
00008  */
00009 
00010 /*
00011  * This file is part of liberutils.
00012  *
00013  * liberutils is free software: you can redistribute it and/or modify
00014  * it under the terms of the GNU General Public License as published by
00015  * the Free Software Foundation, either version 2 of the License, or
00016  * (at your option) any later version.
00017  *
00018  * liberutils is distributed in the hope that it will be useful,
00019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
00021  * GNU General Public License for more details.
00022  *
00023  * You should have received a copy of the GNU General Public License
00024  * along with this program. If not, see <http://www.gnu.org/licenses/>.
00025  */
00026 
00027 /**
00028  * Copyright (C) 2008 iRex Technologies B.V.
00029  * All rights reserved.
00030  */
00031 
00032 
00033 //----------------------------------------------------------------------------
00034 // Include Files
00035 //----------------------------------------------------------------------------
00036 
00037 
00038 #ifdef __cplusplus
00039 extern "C"
00040 {
00041 #endif
00042 
00043 
00044 //----------------------------------------------------------------------------
00045 // Macro Definitions
00046 //---------------------------------------------------------------------------- 
00047 
00048 
00049 //----------------------------------------------------------------------------
00050 // Forward Declarations
00051 //----------------------------------------------------------------------------
00052 
00053 
00054 //----------------------------------------------------------------------------
00055 // Type Declarations
00056 //----------------------------------------------------------------------------
00057 
00058 /// Generic eReader error codes
00059 typedef enum
00060 {
00061     ER_OK = 0,
00062     ER_FAIL,
00063     ER_INVALID_PARAMETER,
00064     ER_INVALID_DATA,
00065     ER_NOT_FOUND,
00066     ER_READONLY,
00067     ER_OPEN_ERROR,
00068     ER_READ_ERROR,
00069     ER_WRITE_ERROR,
00070     ER_OUT_OF_MEMORY,
00071     ER_FORBIDDEN,
00072 
00073     ER_FIRST_SPECIFIC_ERROR = 256
00074 } e_generic_errors;
00075 
00076 
00077 /** Example for extended error codes          **
00078  ** to be defined in your own ermy_error.h file **
00079 typedef enum
00080 {
00081     ER_MY_FAIL = ER_FIRST_SPECIFIC_ERROR,
00082     ER_MY_XXX
00083 } e_ermy_errors;
00084  ** Example end **/
00085 
00086 
00087 //---------------------------------------------------------------------------
00088 // Global Constant
00089 //----------------------------------------------------------------------------
00090 
00091 
00092 //============================================================================
00093 // Public Functions
00094 //============================================================================
00095 
00096 
00097 //============================================================================
00098 // Class Declarations
00099 //============================================================================
00100 
00101 
00102 #ifdef __cplusplus
00103 }
00104 #endif
00105 
00106 #endif // __ER_ERROR_H__
Generated by  doxygen 1.6.2-20100208