aboutsummaryrefslogtreecommitdiffstats
path: root/src/input_stream.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-26 20:54:52 +0100
committerMax Kellermann <max@duempel.org>2008-10-26 20:54:52 +0100
commit464b6117721056e72c79824a298caf53eb5cd452 (patch)
treee4f304438f6bac7293c58ec185ba9fb805dec0b7 /src/input_stream.h
parentf08041f0eb8512304584b583073508629a934c88 (diff)
downloadmpd-464b6117721056e72c79824a298caf53eb5cd452.tar.gz
mpd-464b6117721056e72c79824a298caf53eb5cd452.tar.xz
mpd-464b6117721056e72c79824a298caf53eb5cd452.zip
input_stream: input_stream_close() returns void
close() shouldn't fail with read-only streams.
Diffstat (limited to 'src/input_stream.h')
-rw-r--r--src/input_stream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input_stream.h b/src/input_stream.h
index b2887e10d..3fc6d942f 100644
--- a/src/input_stream.h
+++ b/src/input_stream.h
@@ -26,7 +26,7 @@ struct input_stream;
struct input_plugin {
bool (*open)(struct input_stream *is, const char *url);
- int (*close)(struct input_stream *is);
+ void (*close)(struct input_stream *is);
int (*buffer)(struct input_stream *is);
size_t (*read)(struct input_stream *is, void *ptr, size_t size);
@@ -58,7 +58,7 @@ void input_stream_global_finish(void);
for the input stream is set */
int input_stream_open(struct input_stream *is, char *url);
int input_stream_seek(struct input_stream *is, long offset, int whence);
-int input_stream_close(struct input_stream *is);
+void input_stream_close(struct input_stream *is);
int input_stream_eof(struct input_stream *is);
/* return value: -1 is error, 1 inidicates stuff was buffered, 0 means nothing