diff options
author | Max Kellermann <max@duempel.org> | 2011-09-14 22:25:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2011-09-14 22:25:29 +0200 |
commit | ad37c88f800a09b75ae3174269bcdf3584406837 (patch) | |
tree | 817b4d3755aaec18dc635e5cb25deeba7934dda9 /src/input_stream.h | |
parent | 8c6e8a6eb87dfbb38c6a1047d0868f565837abfa (diff) | |
download | mpd-ad37c88f800a09b75ae3174269bcdf3584406837.tar.gz mpd-ad37c88f800a09b75ae3174269bcdf3584406837.tar.xz mpd-ad37c88f800a09b75ae3174269bcdf3584406837.zip |
input_plugin: add method update()
Update the struct attributes, important for facades like the "rewind"
plugin. To replace buffer().
Diffstat (limited to 'src/input_stream.h')
-rw-r--r-- | src/input_stream.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 @@ -87,6 +87,13 @@ 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. * |