aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_api.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-10-17 17:53:48 +0200
committerMax Kellermann <max@duempel.org>2008-10-17 17:53:48 +0200
commitb73ecbb073625b56aaef33f2fa7f102fdc9a6247 (patch)
tree667ed6c913b812765cf057eb3030109a62d14404 /src/decoder_api.h
parentbae98f777b5e97ccd25d79d60a28f75116308626 (diff)
downloadmpd-b73ecbb073625b56aaef33f2fa7f102fdc9a6247.tar.gz
mpd-b73ecbb073625b56aaef33f2fa7f102fdc9a6247.tar.xz
mpd-b73ecbb073625b56aaef33f2fa7f102fdc9a6247.zip
input: declare struct input_stream
Provide a struct type which can be forward-declared. The typedef InputStream is deprecated now.
Diffstat (limited to '')
-rw-r--r--src/decoder_api.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/decoder_api.h b/src/decoder_api.h
index d0985f123..7d8a1e567 100644
--- a/src/decoder_api.h
+++ b/src/decoder_api.h
@@ -66,10 +66,10 @@ struct decoder_plugin {
void (*finish)(void);
/**
- * returns true if the InputStream is decodable by the
- * InputPlugin, false if not
+ * returns true if the input stream is decodable by the
+ * decoder plugin, false if not
*/
- bool (*try_decode)(InputStream *);
+ bool (*try_decode)(struct input_stream *);
/**
* this will be used to decode InputStreams, and is
@@ -77,7 +77,7 @@ struct decoder_plugin {
*
* returns -1 on error, 0 on success
*/
- int (*stream_decode)(struct decoder *, InputStream *);
+ int (*stream_decode)(struct decoder *, struct input_stream *);
/**
* use this if and only if your InputPlugin can only be passed
@@ -143,7 +143,7 @@ void decoder_seek_error(struct decoder * decoder);
* command (like SEEK or STOP).
*/
size_t decoder_read(struct decoder *decoder,
- InputStream *inStream,
+ struct input_stream *inStream,
void *buffer, size_t length);
/**
@@ -154,7 +154,8 @@ size_t decoder_read(struct decoder *decoder,
* send the next chunk
*/
enum decoder_command
-decoder_data(struct decoder *decoder, InputStream * inStream, int seekable,
+decoder_data(struct decoder *decoder,
+ struct input_stream *inStream, int seekable,
void *data, size_t datalen, float data_time, uint16_t bitRate,
ReplayGainInfo * replayGainInfo);