input_stream: added attribute "uri"

This commit is contained in:
Max Kellermann
2010-01-18 09:26:10 +01:00
parent fb9bd53328
commit 9cb7760c5e
8 changed files with 18 additions and 10 deletions

View File

@@ -168,13 +168,12 @@ bz2_close(struct archive_file *file)
/* single archive handling */
static struct input_stream *
bz2_open_stream(struct archive_file *file,
G_GNUC_UNUSED const char *path, GError **error_r)
bz2_open_stream(struct archive_file *file, const char *path, GError **error_r)
{
struct bz2_archive_file *context = (struct bz2_archive_file *) file;
struct bz2_input_stream *bis = g_new(struct bz2_input_stream, 1);
input_stream_init(&bis->base, &bz2_inputplugin);
input_stream_init(&bis->base, &bz2_inputplugin, path);
bis->archive = context;

View File

@@ -180,7 +180,7 @@ iso9660_archive_open_stream(struct archive_file *file,
struct iso9660_input_stream *iis;
iis = g_new(struct iso9660_input_stream, 1);
input_stream_init(&iis->base, &iso9660_input_plugin);
input_stream_init(&iis->base, &iso9660_input_plugin, pathname);
iis->archive = context;
iis->statbuf = iso9660_ifs_stat_translate(context->iso, pathname);

View File

@@ -141,7 +141,7 @@ zzip_archive_open_stream(struct archive_file *file,
ZZIP_STAT z_stat;
zis = g_new(struct zzip_input_stream, 1);
input_stream_init(&zis->base, &zzip_input_plugin);
input_stream_init(&zis->base, &zzip_input_plugin, pathname);
zis->archive = context;
zis->file = zzip_file_open(context->dir, pathname, 0);