summaryrefslogtreecommitdiffstats
path: root/stream/stream.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2013-06-21 21:06:36 +0200
committerwm4 <wm4@nowhere>2013-06-25 00:11:55 +0200
commita40ae2de846d6f3e4fd6356c4914678c0588e083 (patch)
treeb5755ac4d684d93ca729ad0fc28d5534fd20cb15 /stream/stream.h
parent3993f551df715447223ee77cd79e8504d89e7862 (diff)
downloadmpv-a40ae2de846d6f3e4fd6356c4914678c0588e083.tar.bz2
mpv-a40ae2de846d6f3e4fd6356c4914678c0588e083.tar.xz
stream: add stream_peek function
Makes probing easier, and this is perhaps a simpler interface than stream_unread_buffer().
Diffstat (limited to 'stream/stream.h')
-rw-r--r--stream/stream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/stream/stream.h b/stream/stream.h
index cee7fdc248..3ebba85199 100644
--- a/stream/stream.h
+++ b/stream/stream.h
@@ -297,6 +297,7 @@ int stream_skip(stream_t *s, int64_t len);
int 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 MPOpts;