aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputStream.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/inputStream.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/inputStream.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/inputStream.c b/src/inputStream.c
index 3ea62fb0a..5805018f2 100644
--- a/src/inputStream.c
+++ b/src/inputStream.c
@@ -29,7 +29,7 @@ void initInputStream(void)
inputStream_initHttp();
}
-int openInputStream(InputStream * inStream, char *url)
+int openInputStream(struct input_stream *inStream, char *url)
{
inStream->ready = 0;
inStream->offset = 0;
@@ -48,18 +48,18 @@ int openInputStream(InputStream * inStream, char *url)
return -1;
}
-int seekInputStream(InputStream * inStream, long offset, int whence)
+int seekInputStream(struct input_stream *inStream, long offset, int whence)
{
return inStream->seekFunc(inStream, offset, whence);
}
-size_t readFromInputStream(InputStream * inStream, void *ptr, size_t size,
- size_t nmemb)
+size_t readFromInputStream(struct input_stream *inStream,
+ void *ptr, size_t size, size_t nmemb)
{
return inStream->readFunc(inStream, ptr, size, nmemb);
}
-int closeInputStream(InputStream * inStream)
+int closeInputStream(struct input_stream *inStream)
{
if (inStream->mime)
free(inStream->mime);
@@ -71,12 +71,12 @@ int closeInputStream(InputStream * inStream)
return inStream->closeFunc(inStream);
}
-int inputStreamAtEOF(InputStream * inStream)
+int inputStreamAtEOF(struct input_stream *inStream)
{
return inStream->atEOFFunc(inStream);
}
-int bufferInputStream(InputStream * inStream)
+int bufferInputStream(struct input_stream *inStream)
{
return inStream->bufferFunc(inStream);
}