diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-05-04 19:49:29 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-05-04 19:49:29 +0000 |
commit | 659df586719c727204513c97c243c9f14dbfa5d9 (patch) | |
tree | 404a08b7c414feb0c1193fadd3ee146fa9bc8f95 /src/inputStream.h | |
parent | 638817fc5b2a537b21335d8f5e429559353602a5 (diff) | |
download | mpd-659df586719c727204513c97c243c9f14dbfa5d9.tar.gz mpd-659df586719c727204513c97c243c9f14dbfa5d9.tar.xz mpd-659df586719c727204513c97c243c9f14dbfa5d9.zip |
implement input abstraction for ogg and mp3
git-svn-id: https://svn.musicpd.org/mpd/trunk@904 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/inputStream.h')
-rw-r--r-- | src/inputStream.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/inputStream.h b/src/inputStream.h index 2f11da044..8998e3ac1 100644 --- a/src/inputStream.h +++ b/src/inputStream.h @@ -31,11 +31,11 @@ typedef struct _InputStream { /* if an error occurs for these 3 functions, then -1 is returned and errno for the input stream is set */ -int initInputStreamFromFile(InputStream * inStream, char * filename); -int seekInputStream(InputStream * inStream, long offset); -int finishInputStream(InputStream * inStream); +int openInputStreamFromFile(InputStream * inStream, char * filename); +int seekInputStream(InputStream * inStream, long offset, int whence); +int closeInputStream(InputStream * inStream); -size_t fillBufferFromInputStream(InputStream * inStream, char * buffer, - size_t buflen); +size_t readFromInputStream(InputStream * inStream, void * ptr, size_t size, + size_t nmemb); #endif |