aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_file.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/input_file.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/input_file.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/input_file.c b/src/input_file.c
index 1b6d82f9d..cf5c080f5 100644
--- a/src/input_file.c
+++ b/src/input_file.c
@@ -116,16 +116,9 @@ input_file_eof(struct input_stream *is)
return is->offset >= is->size;
}
-static int
-input_file_buffer(G_GNUC_UNUSED struct input_stream *is)
-{
- return 0;
-}
-
const struct input_plugin input_plugin_file = {
.open = input_file_open,
.close = input_file_close,
- .buffer = input_file_buffer,
.read = input_file_read,
.eof = input_file_eof,
.seek = input_file_seek,