aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_api.c
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.c
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.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/decoder_api.c b/src/decoder_api.c
index 2d2bed796..933ee7106 100644
--- a/src/decoder_api.c
+++ b/src/decoder_api.c
@@ -99,7 +99,7 @@ void decoder_seek_error(struct decoder * decoder)
}
size_t decoder_read(struct decoder *decoder,
- InputStream *inStream,
+ struct input_stream *inStream,
void *buffer, size_t length)
{
size_t nbytes;
@@ -130,7 +130,8 @@ size_t decoder_read(struct decoder *decoder,
* one.
*/
static enum decoder_command
-need_chunks(struct decoder *decoder, InputStream * inStream, int seekable)
+need_chunks(struct decoder *decoder,
+ struct input_stream *inStream, int seekable)
{
if (dc.command == DECODE_COMMAND_STOP)
return DECODE_COMMAND_STOP;
@@ -153,7 +154,8 @@ need_chunks(struct decoder *decoder, InputStream * inStream, int seekable)
}
enum decoder_command
-decoder_data(struct decoder *decoder, InputStream * inStream, int seekable,
+decoder_data(struct decoder *decoder,
+ struct input_stream *inStream, int seekable,
void *dataIn, size_t dataInLen,
float data_time, uint16_t bitRate,
ReplayGainInfo * replayGainInfo)