dnxError.h

Go to the documentation of this file.
00001 /*--------------------------------------------------------------------------
00002  
00003    Copyright (c) 2006-2007, Intellectual Reserve, Inc. All rights reserved.
00004  
00005    This program is free software; you can redistribute it and/or modify
00006    it under the terms of the GNU General Public License version 2 as 
00007    published by the Free Software Foundation.
00008  
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012    GNU General Public License for more details.
00013  
00014    You should have received a copy of the GNU General Public License
00015    along with this program; if not, write to the Free Software
00016    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00017  
00018   --------------------------------------------------------------------------*/
00019 
00028 #ifndef _DNXERROR_H_
00029 #define _DNXERROR_H_
00030 
00031 #define MAX_ERR_STR           1023                 
00032 
00033 #define DNX_CBCANCEL          -1                   
00034 #define DNX_OK                0                    
00035 
00036 #define DNX_ERR_BASE          500                  
00037                               
00038 #define DNX_ERR_INVALID       (DNX_ERR_BASE + 1 )  
00039 #define DNX_ERR_CAPACITY      (DNX_ERR_BASE + 2 )  
00040 #define DNX_ERR_BADURL        (DNX_ERR_BASE + 3 )  
00041 #define DNX_ERR_ALREADY       (DNX_ERR_BASE + 4 )  
00042 #define DNX_ERR_EXIST         (DNX_ERR_BASE + 5 )  
00043 #define DNX_ERR_UNSUPPORTED   (DNX_ERR_BASE + 6 )  
00044 #define DNX_ERR_MEMORY        (DNX_ERR_BASE + 7 )  
00045 #define DNX_ERR_OPEN          (DNX_ERR_BASE + 8 )  
00046 #define DNX_ERR_SIZE          (DNX_ERR_BASE + 9 )  
00047 #define DNX_ERR_SEND          (DNX_ERR_BASE + 10)  
00048 #define DNX_ERR_RECEIVE       (DNX_ERR_BASE + 11)  
00049 #define DNX_ERR_ADDRESS       (DNX_ERR_BASE + 12)  
00050 #define DNX_ERR_NOTFOUND      (DNX_ERR_BASE + 13)  
00051 #define DNX_ERR_SYNTAX        (DNX_ERR_BASE + 14)  
00052 #define DNX_ERR_THREAD        (DNX_ERR_BASE + 15)  
00053 #define DNX_ERR_TIMEOUT       (DNX_ERR_BASE + 16)  
00054 #define DNX_ERR_BUSY          (DNX_ERR_BASE + 17)  
00055 #define DNX_ERR_ACCESS        (DNX_ERR_BASE + 18)  
00056 
00057 
00058 typedef int dnxError;
00059 
00064 dnxError dnxGetLastError(void);
00065 
00070 void dnxSetLastError(dnxError eno);
00071 
00080 char * dnxErrorString(dnxError eno);
00081 
00082 #endif   /* _DNXERROR_H_ */
00083 

Generated on Tue Apr 13 15:48:07 2010 for DNX by  doxygen 1.5.6