nanohttp-mime.h File Reference

Go to the source code of this file.

Defines

#define MIME_ERROR   1300
#define MIME_ERROR_NO_BOUNDARY_PARAM   (MIME_ERROR + 1)
#define MIME_ERROR_NO_START_PARAM   (MIME_ERROR + 2)
#define MIME_ERROR_PARSE_ERROR   (MIME_ERROR + 3)
#define MIME_ERROR_NO_ROOT_PART   (MIME_ERROR + 4)
#define MIME_ERROR_NOT_MIME_MESSAGE   (MIME_ERROR + 5)

Functions

herror_t mime_get_attachments (content_type_t *ctype, struct http_input_stream_t *in, struct attachments_t **dest)


Define Documentation

#define MIME_ERROR   1300
 

MIME errors

Definition at line 91 of file nanohttp-mime.h.

#define MIME_ERROR_NO_BOUNDARY_PARAM   (MIME_ERROR + 1)
 

Definition at line 92 of file nanohttp-mime.h.

Referenced by mime_get_attachments().

#define MIME_ERROR_NO_ROOT_PART   (MIME_ERROR + 4)
 

Definition at line 95 of file nanohttp-mime.h.

Referenced by mime_get_attachments().

#define MIME_ERROR_NO_START_PARAM   (MIME_ERROR + 2)
 

Definition at line 93 of file nanohttp-mime.h.

Referenced by mime_get_attachments().

#define MIME_ERROR_NOT_MIME_MESSAGE   (MIME_ERROR + 5)
 

Definition at line 96 of file nanohttp-mime.h.

Referenced by mime_get_attachments().

#define MIME_ERROR_PARSE_ERROR   (MIME_ERROR + 3)
 

Definition at line 94 of file nanohttp-mime.h.

Referenced by mime_get_attachments().


Function Documentation

herror_t mime_get_attachments content_type_t ctype,
struct http_input_stream_t in,
struct attachments_t **  dest
 

Definition at line 936 of file nanohttp-mime.c.

References attachments_free(), H_OK, herror_new(), hpairnode_get(), log_error1, MIME_ERROR_NO_BOUNDARY_PARAM, MIME_ERROR_NO_ROOT_PART, MIME_ERROR_NO_START_PARAM, MIME_ERROR_NOT_MIME_MESSAGE, MIME_ERROR_PARSE_ERROR, mime_message_parse(), part_t::next, _content_type::params, attachments_t::parts, attachments_t::root_part, and _content_type::type.

Referenced by hresponse_new_from_socket().


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