aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-10-02 19:14:59 +0200
committerMax Kellermann <max@duempel.org>2014-10-02 19:14:59 +0200
commit37501d9bc7b4bf4b0d82d1d686fcc20b3fb856eb (patch)
treea4786277baba95ae865c4187dab40a34566852e0
parent89f9561d10c6c7d39c466bc8432793fcaa89fd9d (diff)
downloadmpd-37501d9bc7b4bf4b0d82d1d686fcc20b3fb856eb.tar.gz
mpd-37501d9bc7b4bf4b0d82d1d686fcc20b3fb856eb.tar.xz
mpd-37501d9bc7b4bf4b0d82d1d686fcc20b3fb856eb.zip
input/file: convert to class
-rw-r--r--src/input/plugins/FileInputPlugin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input/plugins/FileInputPlugin.cxx b/src/input/plugins/FileInputPlugin.cxx
index 922c54b79..8dd114999 100644
--- a/src/input/plugins/FileInputPlugin.cxx
+++ b/src/input/plugins/FileInputPlugin.cxx
@@ -33,9 +33,10 @@
static constexpr Domain file_domain("file");
-struct FileInputStream final : public InputStream {
+class FileInputStream final : public InputStream {
int fd;
+public:
FileInputStream(const char *path, int _fd, off_t _size,
Mutex &_mutex, Cond &_cond)
:InputStream(path, _mutex, _cond),