aboutsummaryrefslogtreecommitdiffstats
path: root/src/input
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-12-16 16:28:26 +0100
committerMax Kellermann <max@duempel.org>2009-12-16 17:09:58 +0100
commit0bc8c0c1da4490aad502dddbbc7c60564c4083a7 (patch)
tree3a7b9ed55fbbdb757e4822e7ea262237d0562dbc /src/input
parent74156d5bed810209a777ba6ade7ef279691f3091 (diff)
downloadmpd-0bc8c0c1da4490aad502dddbbc7c60564c4083a7.tar.gz
mpd-0bc8c0c1da4490aad502dddbbc7c60564c4083a7.tar.xz
mpd-0bc8c0c1da4490aad502dddbbc7c60564c4083a7.zip
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.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/archive_input_plugin.c6
1 files changed, 3 insertions, 3 deletions
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;
}