aboutsummaryrefslogtreecommitdiffstats
path: root/src/inputStream.h
diff options
context:
space:
mode:
authorWarren Dukes <warren.dukes@gmail.com>2004-05-18 09:54:45 +0000
committerWarren Dukes <warren.dukes@gmail.com>2004-05-18 09:54:45 +0000
commit6c24180516f823985f564ba013607b47f70afa81 (patch)
tree8b3ac9478f5ab1c9aee4b41cefeae603d6a61d90 /src/inputStream.h
parentd4c7d6df6db478cbbfb0cba11a8a42aed9070d62 (diff)
downloadmpd-6c24180516f823985f564ba013607b47f70afa81.tar.gz
mpd-6c24180516f823985f564ba013607b47f70afa81.tar.xz
mpd-6c24180516f823985f564ba013607b47f70afa81.zip
inputStream updates from httpTest
git-svn-id: https://svn.musicpd.org/mpd/trunk@1059 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/inputStream.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/inputStream.h b/src/inputStream.h
index bcf57c85b..963e3d2c9 100644
--- a/src/inputStream.h
+++ b/src/inputStream.h
@@ -29,6 +29,7 @@ typedef size_t (* InputStreamReadFunc) (InputStream * inStream, void * ptr, size
size_t nmemb);
typedef int (* InputStreamCloseFunc) (InputStream * inStream);
typedef int (* InputStreamAtEOFFunc) (InputStream * inStream);
+typedef int (* InputStreamBufferFunc) (InputStream * inStream);
struct _InputStream {
int error;
@@ -42,6 +43,7 @@ struct _InputStream {
InputStreamReadFunc readFunc;
InputStreamCloseFunc closeFunc;
InputStreamAtEOFFunc atEOFFunc;
+ InputStreamBufferFunc bufferFunc;
void * data;
};
@@ -51,6 +53,7 @@ int openInputStream(InputStream * inStream, char * url);
int seekInputStream(InputStream * inStream, long offset, int whence);
int closeInputStream(InputStream * inStream);
int inputStreamAtEOF(InputStream * inStream);
+int bufferInputStream(InputStream * inStream);
size_t readFromInputStream(InputStream * inStream, void * ptr, size_t size,
size_t nmemb);