You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.7 KiB

8 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /******************************************************************
  2. * _ _ _ _ _ __
  3. * | \/ | | | | \/ | | _/
  4. * |_''_| |_| |_''_| |_'/ PARSER
  5. *
  6. * $Id: nanohttp-mime.h,v 1.8 2006/02/27 22:26:02 snowdrop Exp $
  7. *
  8. * CSOAP Project: A http client/server library in C
  9. * Copyright (C) 2003-2004 Ferhat Ayaz
  10. *
  11. * This library is free software; you can redistribute it and/or
  12. * modify it under the terms of the GNU Library General Public
  13. * License as published by the Free Software Foundation; either
  14. * version 2 of the License, or (at your option) any later version.
  15. *
  16. * This library is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19. * Library General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU Library General Public
  22. * License along with this library; if not, write to the
  23. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  24. * Boston, MA 02111-1307, USA.
  25. *
  26. * Email: ferhatayaz@yahoo.com
  27. ******************************************************************/
  28. #ifndef NANO_HTTP_MIME_PARSER_H
  29. #define NANO_HTTP_MIME_PARSER_H
  30. #include <nanohttp/nanohttp-common.h>
  31. #include <nanohttp/nanohttp-stream.h>
  32. #ifdef __cplusplus
  33. extern "C" {
  34. #endif
  35. /* ------------------------------------------------------------------
  36. "multipart/related" MIME Message Builder
  37. ------------------------------------------------------------------*/
  38. herror_t mime_get_attachments(content_type_t * ctype,
  39. http_input_stream_t * in,
  40. attachments_t ** dest);
  41. #ifdef __cplusplus
  42. }
  43. #endif
  44. #endif