From e111399fba5ae5ced85fbeac392539052b050324 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 5 Feb 2002 00:21:14 +0000 Subject: Use camel_mime_parser_read to read internal parser data. 2002-02-04 Jeffrey Stedfast * camel-http-stream.c (stream_read): Use camel_mime_parser_read to read internal parser data. (camel_http_stream_get_content_type): Implemented. * camel-mime-utils.c (header_decode_int): Made public. svn path=/trunk/; revision=15571 --- camel/camel-http-stream.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'camel/camel-http-stream.h') diff --git a/camel/camel-http-stream.h b/camel/camel-http-stream.h index 1ffa18d4bd..ac4b2c2a62 100644 --- a/camel/camel-http-stream.h +++ b/camel/camel-http-stream.h @@ -29,6 +29,7 @@ extern "C" { #pragma } #endif /* __cplusplus */ +#include #include #include #include @@ -52,11 +53,12 @@ typedef enum { typedef struct _CamelHttpStreamClass CamelHttpStreamClass; -typedef struct _CamelHttpStream CamelHttpStream; struct _CamelHttpStream { CamelStream parent_object; + CamelMimeParser *parser; + CamelContentType *content_type; struct _header_raw *headers; @@ -79,6 +81,8 @@ CamelType camel_http_stream_get_type (void); /* public methods */ CamelStream *camel_http_stream_new (CamelHttpMethod method, CamelService *service, CamelURL *url); +CamelContentType *camel_http_stream_get_content_type (CamelHttpStream *http_stream); + #ifdef __cplusplus } #endif /* __cplusplus */ -- cgit v1.2.3