nanohttp-mime.h

Go to the documentation of this file.
00001 /******************************************************************
00002 *  _  _   _   _  _   __
00003 * | \/ | | | | \/ | | _/
00004 * |_''_| |_| |_''_| |_'/  PARSER
00005 *
00006 *  $Id: nanohttp-mime.h,v 1.17 2007/01/03 08:33:44 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 
00091 #define MIME_ERROR                      1300
00092 #define MIME_ERROR_NO_BOUNDARY_PARAM    (MIME_ERROR + 1)
00093 #define MIME_ERROR_NO_START_PARAM       (MIME_ERROR + 2)
00094 #define MIME_ERROR_PARSE_ERROR          (MIME_ERROR + 3)
00095 #define MIME_ERROR_NO_ROOT_PART         (MIME_ERROR + 4)
00096 #define MIME_ERROR_NOT_MIME_MESSAGE     (MIME_ERROR + 5)
00097 
00098 #ifdef __cplusplus
00099 extern "C" {
00100 #endif
00101 
00102 /* ------------------------------------------------------------------
00103   "multipart/related"  MIME Message Builder
00104  ------------------------------------------------------------------*/
00105 
00106 extern herror_t mime_get_attachments(content_type_t * ctype, struct http_input_stream_t * in, struct attachments_t ** dest);
00107 
00108 #ifdef __cplusplus
00109 }
00110 #endif
00111 
00112 #endif

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