![]() |
C library for SOAP (Simple Object Access Protocol) |
00001 /****************************************************************** 00002 * _ _ _ _ _ __ 00003 * | \/ | | | | \/ | | _/ 00004 * |_''_| |_| |_''_| |_'/ PARSER 00005 * 00006 * $Id: nanohttp-mime.h,v 1.18 2007/11/03 22:40:11 m0gg Exp $ 00007 * 00008 * CSOAP Project: A http client/server library in C 00009 * Copyright (C) 2003-2004 Ferhat Ayaz 00010 * 00011 * This library is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU Library General Public 00013 * License as published by the Free Software Foundation; either 00014 * version 2 of the License, or (at your option) any later version. 00015 * 00016 * This library is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 * Library General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Library General Public 00022 * License along with this library; if not, write to the 00023 * Free Software Foundation, Inc., 59 Temple Place - Suite 330, 00024 * Boston, MA 02111-1307, USA. 00025 * 00026 * Email: ferhatayaz@yahoo.com 00027 ******************************************************************/ 00028 #ifndef __nanohttp_mime_h 00029 #define __nanohttp_mime_h 00030 00096 #define MIME_ERROR 1300 00097 #define MIME_ERROR_NO_BOUNDARY_PARAM (MIME_ERROR + 1) 00098 #define MIME_ERROR_NO_START_PARAM (MIME_ERROR + 2) 00099 #define MIME_ERROR_PARSE_ERROR (MIME_ERROR + 3) 00100 #define MIME_ERROR_NO_ROOT_PART (MIME_ERROR + 4) 00101 #define MIME_ERROR_NOT_MIME_MESSAGE (MIME_ERROR + 5) 00102 00104 #ifdef __cplusplus 00105 extern "C" { 00106 #endif 00107 00111 extern herror_t mime_get_attachments(content_type_t * ctype, struct http_input_stream_t * in, struct attachments_t ** dest); 00112 00113 #ifdef __cplusplus 00114 } 00115 #endif 00116 00119 #endif
