diff options
author | Max Kellermann <max@duempel.org> | 2013-10-23 22:08:59 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-23 23:12:02 +0200 |
commit | 93deb844996120b6326345d6d87e803142dd1968 (patch) | |
tree | d6c00669efffad1b15fc45e03158d6838a7e5827 /src/input/FileInputPlugin.cxx | |
parent | c4d4011c63808a64ca20a4b03fd455a83c23cc33 (diff) | |
download | mpd-93deb844996120b6326345d6d87e803142dd1968.tar.gz mpd-93deb844996120b6326345d6d87e803142dd1968.tar.xz mpd-93deb844996120b6326345d6d87e803142dd1968.zip |
input_stream: rename struct to InputStream
Diffstat (limited to '')
-rw-r--r-- | src/input/FileInputPlugin.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/input/FileInputPlugin.cxx b/src/input/FileInputPlugin.cxx index a351edf98..26e40d609 100644 --- a/src/input/FileInputPlugin.cxx +++ b/src/input/FileInputPlugin.cxx @@ -36,7 +36,7 @@ static constexpr Domain file_domain("file"); struct FileInputStream { - struct input_stream base; + InputStream base; int fd; @@ -54,7 +54,7 @@ struct FileInputStream { } }; -static struct input_stream * +static InputStream * input_file_open(const char *filename, Mutex &mutex, Cond &cond, Error &error) @@ -96,7 +96,7 @@ input_file_open(const char *filename, } static bool -input_file_seek(struct input_stream *is, InputPlugin::offset_type offset, +input_file_seek(InputStream *is, InputPlugin::offset_type offset, int whence, Error &error) { @@ -113,7 +113,7 @@ input_file_seek(struct input_stream *is, InputPlugin::offset_type offset, } static size_t -input_file_read(struct input_stream *is, void *ptr, size_t size, +input_file_read(InputStream *is, void *ptr, size_t size, Error &error) { FileInputStream *fis = (FileInputStream *)is; @@ -130,7 +130,7 @@ input_file_read(struct input_stream *is, void *ptr, size_t size, } static void -input_file_close(struct input_stream *is) +input_file_close(InputStream *is) { FileInputStream *fis = (FileInputStream *)is; @@ -138,7 +138,7 @@ input_file_close(struct input_stream *is) } static bool -input_file_eof(struct input_stream *is) +input_file_eof(InputStream *is) { return is->offset >= is->size; } |