From 0bc8c0c1da4490aad502dddbbc7c60564c4083a7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 16 Dec 2009 16:28:26 +0100 Subject: archive_plugin: wrap method calls Make archive_file a "real" struct, extended by all plugins. Add the plugin pointer to it. Wrap all method calls in functions. --- src/input/archive_input_plugin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/input') diff --git a/src/input/archive_input_plugin.c b/src/input/archive_input_plugin.c index ad077828a..4847b4483 100644 --- a/src/input/archive_input_plugin.c +++ b/src/input/archive_input_plugin.c @@ -61,14 +61,14 @@ input_archive_open(struct input_stream *is, const char *pathname, return false; } - file = arplug->open(archive); + file = archive_file_open(arplug, archive); //setup fileops - opened = arplug->open_stream(file, is, filename, error_r); + opened = archive_file_open_stream(file, is, filename, error_r); g_free(pname); if (!opened) { - arplug->close(file); + archive_file_close(file); } else { is->ready = true; } -- cgit v1.2.3