From ad37c88f800a09b75ae3174269bcdf3584406837 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 14 Sep 2011 22:25:29 +0200 Subject: input_plugin: add method update() Update the struct attributes, important for facades like the "rewind" plugin. To replace buffer(). --- src/input_stream.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/input_stream.h') diff --git a/src/input_stream.h b/src/input_stream.h index f9cb8dbf8..529ed8762 100644 --- a/src/input_stream.h +++ b/src/input_stream.h @@ -86,6 +86,13 @@ input_stream_open(const char *uri, GError **error_r); void input_stream_close(struct input_stream *is); +/** + * Update the public attributes. Call before accessing attributes + * such as "ready" or "offset". + */ +void +input_stream_update(struct input_stream *is); + /** * Seeks to the specified position in the stream. This will most * likely fail if the "seekable" flag is false. -- cgit v1.2.3