aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive/zip_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-30 00:58:03 +0100
committerMax Kellermann <max@duempel.org>2009-01-30 00:58:03 +0100
commit32d6d4499e315a5a2f224beaa54faad03ff80a16 (patch)
tree069be90398bd1eb284c60f40731a8c8100afccab /src/archive/zip_plugin.c
parent82cfce76eb5787f1a24151f6a3840a999ed82659 (diff)
downloadmpd-32d6d4499e315a5a2f224beaa54faad03ff80a16.tar.gz
mpd-32d6d4499e315a5a2f224beaa54faad03ff80a16.tar.xz
mpd-32d6d4499e315a5a2f224beaa54faad03ff80a16.zip
input_stream: make seek(), buffer() optional
Make those two methods optional to implement, and let input_stream.c provide fallbacks. The buffer() method will be removed one day, and there is now only one implementation left (input_curl.c).
Diffstat (limited to '')
-rw-r--r--src/archive/zip_plugin.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/archive/zip_plugin.c b/src/archive/zip_plugin.c
index 9df449ab5..7231d4904 100644
--- a/src/archive/zip_plugin.c
+++ b/src/archive/zip_plugin.c
@@ -167,12 +167,6 @@ zip_is_seek(G_GNUC_UNUSED struct input_stream *is,
return false;
}
-static int
-zip_is_buffer(G_GNUC_UNUSED struct input_stream *is)
-{
- return 0;
-}
-
/* exported structures */
static const char *const zip_extensions[] = {
@@ -185,7 +179,6 @@ static const struct input_plugin zip_inputplugin = {
.read = zip_is_read,
.eof = zip_is_eof,
.seek = zip_is_seek,
- .buffer = zip_is_buffer
};
const struct archive_plugin zip_plugin = {