nanohttp-error.h

Go to the documentation of this file.
00001 /******************************************************************
00002  *  $Id: nanohttp-error.h,v 1.4 2006/12/10 19:21:06 m0gg Exp $
00003  * 
00004  * CSOAP Project:  A http client/server library in C
00005  * Copyright (C) 2003-2004  Ferhat Ayaz
00006  *
00007  * This library is free software; you can redistribute it and/or
00008  * modify it under the terms of the GNU Library General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful,
00013  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Library General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Library General Public
00018  * License along with this library; if not, write to the
00019  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
00020  * Boston, MA  02111-1307, USA.
00021  * 
00022  * Email: ferhatayaz@yahoo.com
00023  ******************************************************************/
00024 #ifndef __nanohttp_error_h
00025 #define __nanohttp_error_h
00026 
00063 #define H_OK                            0
00064 
00070 #define GENERAL_ERROR                   1400
00071 #define GENERAL_INVALID_PARAM           (GENERAL_ERROR + 1)
00072 #define GENERAL_HEADER_PARSE_ERROR      (GENERAL_ERROR + 2)
00073 
00079 #define THREAD_ERROR                    1500
00080 #define THREAD_BEGIN_ERROR              (THREAD_ERROR)
00081 
00087 #define FILE_ERROR                      8000
00088 #define FILE_ERROR_OPEN                 (FILE_ERROR + 1)
00089 #define FILE_ERROR_READ                 (FILE_ERROR + 2)
00090 
00098 typedef void *herror_t;
00099 
00100 #ifdef __cplusplus
00101 extern "C" {
00102 #endif
00103 
00111 extern herror_t herror_new(const char *func, int errcode, const char *format, ...);
00112 
00118 extern int herror_code(herror_t err);
00119 
00125 extern const char *herror_func(herror_t err);
00126 
00132 extern const char *herror_message(herror_t err);
00133 
00139 extern void herror_release(herror_t err);
00140 
00141 #ifdef __cplusplus
00142 }
00143 #endif
00144 
00145 #endif

Generated on Thu Jan 25 23:36:02 2007 for csoap by  doxygen 1.4.6