From c6b08d222fd62ac05657a77898e1d749dc3be72f Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 26 Oct 2019 16:41:46 +0200 Subject: stream: stop accessing buffer internals in stream_read_line() Getting this out of the way in preparation for reworking stream internals. --- stream/stream.h | 1 + 1 file changed, 1 insertion(+) (limited to 'stream/stream.h') diff --git a/stream/stream.h b/stream/stream.h index dcea82dace..71a7011fef 100644 --- a/stream/stream.h +++ b/stream/stream.h @@ -180,6 +180,7 @@ bool stream_seek(stream_t *s, int64_t pos); int stream_read(stream_t *s, char *mem, int total); int stream_read_partial(stream_t *s, char *buf, int buf_size); struct bstr stream_peek(stream_t *s, int len); +struct bstr stream_peek_buffer(stream_t *s); void stream_drop_buffers(stream_t *s); int64_t stream_get_size(stream_t *s); -- cgit v1.2.3