From 82ca4cf8ce421cbec87667f6c22b3e7165443016 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 26 Aug 2008 08:27:10 +0200 Subject: added InputStream.ready The flag "ready" indicates whether the input stream is ready and it has parsed all meta data. Previously, it was impossible for decodeStart() to see the content type of HTTP input streams, because at that time, the HTTP response wasn't parsed yet. --- src/inputStream.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/inputStream.h') diff --git a/src/inputStream.h b/src/inputStream.h index c1e2e4f83..2e32c2a13 100644 --- a/src/inputStream.h +++ b/src/inputStream.h @@ -32,6 +32,8 @@ typedef int (*InputStreamAtEOFFunc) (InputStream * inStream); typedef int (*InputStreamBufferFunc) (InputStream * inStream); struct _InputStream { + int ready; + int error; long offset; size_t size; -- cgit v1.2.3