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
+6
View File
@@ -51,6 +51,12 @@ struct input_plugin {
struct input_stream *(*open)(const char *uri, GError **error_r);
void (*close)(struct input_stream *is);
/**
* Update the public attributes. Call before access. Can be
* NULL if the plugin always keeps its attributes up to date.
*/
void (*update)(struct input_stream *is);
struct tag *(*tag)(struct input_stream *is);
int (*buffer)(struct input_stream *is, GError **error_r);
size_t (*read)(struct input_stream *is, void *ptr, size_t size,