diff options
author | Max Kellermann <max@duempel.org> | 2009-01-30 00:53:32 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-30 00:53:32 +0100 |
commit | 82cfce76eb5787f1a24151f6a3840a999ed82659 (patch) | |
tree | 05c8ee19ff9bd9cc69e6f50c1aeeacc77efbde44 /src/archive_api.h | |
parent | dc1cc7e7e52960cceea5514397ec33f7ffc0dd6d (diff) | |
download | mpd-82cfce76eb5787f1a24151f6a3840a999ed82659.tar.gz mpd-82cfce76eb5787f1a24151f6a3840a999ed82659.tar.xz mpd-82cfce76eb5787f1a24151f6a3840a999ed82659.zip |
archive: replaced setup_stream() with open_stream()
The open_stream() method opens the input_stream. This allows the
archive plugin to do its own initialization, and it also allows it to
use input_stream.data. We can remove input_stream.archive now, which
was unnatural to have in the first place.
Diffstat (limited to 'src/archive_api.h')
-rw-r--r-- | src/archive_api.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/archive_api.h b/src/archive_api.h index 3c9e979f6..a3761bf93 100644 --- a/src/archive_api.h +++ b/src/archive_api.h @@ -70,11 +70,12 @@ struct archive_plugin { char *(*scan_next)(struct archive_file *); /** - * this is used to setup input stream handle, to be able to read - * from archive. open method of inputstream can be the used to - * extract particular file + * Opens an input_stream of a file within the archive. + * + * @param path the path within the archive */ - void (*setup_stream)(struct archive_file *, struct input_stream *is); + bool (*open_stream)(struct archive_file *, struct input_stream *is, + const char *path); /** * closes archive file. |