input_plugin: add method update()

Update the struct attributes, important for facades like the "rewind"
plugin.  To replace buffer().
This commit is contained in:
Max Kellermann
2011-09-14 22:25:29 +02:00
parent 8c6e8a6eb8
commit ad37c88f80
4 changed files with 33 additions and 0 deletions

View File

@@ -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.