From 82cfce76eb5787f1a24151f6a3840a999ed82659 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 30 Jan 2009 00:53:32 +0100 Subject: 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. --- src/archive_api.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/archive_api.h') 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. -- cgit v1.2.3