![]() |
C library for SOAP (Simple Object Access Protocol) |
00001 /****************************************************************** 00002 * $Id: nanohttp-error.h,v 1.5 2007/11/03 22:40:11 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 00066 #define H_OK 0 00068 #define GENERAL_ERROR 1400 00069 #define GENERAL_INVALID_PARAM (GENERAL_ERROR + 1) 00070 #define GENERAL_HEADER_PARSE_ERROR (GENERAL_ERROR + 2) 00071 00076 #define THREAD_ERROR 1500 00077 #define THREAD_BEGIN_ERROR (THREAD_ERROR) 00078 00083 #define FILE_ERROR 8000 00084 #define FILE_ERROR_OPEN (FILE_ERROR + 1) 00085 #define FILE_ERROR_READ (FILE_ERROR + 2) 00086 00097 typedef void *herror_t; 00098 00099 #ifdef __cplusplus 00100 extern "C" { 00101 #endif 00102 00110 extern herror_t herror_new(const char *func, int errcode, const char *format, ...); 00111 00117 extern int herror_code(herror_t err); 00118 00124 extern const char *herror_func(herror_t err); 00125 00131 extern const char *herror_message(herror_t err); 00132 00138 extern void herror_release(herror_t err); 00139 00140 #ifdef __cplusplus 00141 } 00142 #endif 00143 00144 #endif
