aboutsummaryrefslogtreecommitdiff
path: root/src/archive
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2010-01-18 09:26:10 +0100
committerMax Kellermann <max@duempel.org>2010-01-18 10:18:41 +0100
commit9cb7760c5eb63cb6b7034ec9d2cdf9af2f198652 (patch)
treec15ed352beb3637c4186f3000152bf1a39008896 /src/archive
parentfb9bd53328e3ff57ea4b3cfee24068f9fb54927b (diff)
input_stream: added attribute "uri"
Diffstat (limited to 'src/archive')
-rw-r--r--src/archive/bz2_archive_plugin.c5
-rw-r--r--src/archive/iso9660_archive_plugin.c2
-rw-r--r--src/archive/zzip_archive_plugin.c2
3 files changed, 4 insertions, 5 deletions
diff --git a/src/archive/bz2_archive_plugin.c b/src/archive/bz2_archive_plugin.c
index 67cc0055..2414eb51 100644
--- a/src/archive/bz2_archive_plugin.c
+++ b/src/archive/bz2_archive_plugin.c
@@ -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;
diff --git a/src/archive/iso9660_archive_plugin.c b/src/archive/iso9660_archive_plugin.c
index 30f8e7f5..142fa10e 100644
--- a/src/archive/iso9660_archive_plugin.c
+++ b/src/archive/iso9660_archive_plugin.c
@@ -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);
diff --git a/src/archive/zzip_archive_plugin.c b/src/archive/zzip_archive_plugin.c
index fdf6b677..3c2b8031 100644
--- a/src/archive/zzip_archive_plugin.c
+++ b/src/archive/zzip_archive_plugin.c
@@ -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);