aboutsummaryrefslogtreecommitdiffstats
path: root/src/fs/io/TextFile.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-11 21:15:25 +0200
committerMax Kellermann <max@duempel.org>2014-08-11 21:48:25 +0200
commit486b5b6bfc61344c945d807b230c12a99c3c8edb (patch)
treec891f90667376fe5fdd7cc365987a65e442c0139 /src/fs/io/TextFile.hxx
parent88a2f128ec9e72bb53a8d6646ce44d7053862f78 (diff)
downloadmpd-486b5b6bfc61344c945d807b230c12a99c3c8edb.tar.gz
mpd-486b5b6bfc61344c945d807b230c12a99c3c8edb.tar.xz
mpd-486b5b6bfc61344c945d807b230c12a99c3c8edb.zip
fs/io/TextFile: use AutoGunzipReader
Several MPD subsystems can now read gzipped files; for example, the database file can be gzipped.
Diffstat (limited to '')
-rw-r--r--src/fs/io/TextFile.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fs/io/TextFile.hxx b/src/fs/io/TextFile.hxx
index 33a1b8060..8bab808c7 100644
--- a/src/fs/io/TextFile.hxx
+++ b/src/fs/io/TextFile.hxx
@@ -20,6 +20,7 @@
#ifndef MPD_TEXT_FILE_HXX
#define MPD_TEXT_FILE_HXX
+#include "check.h"
#include "Compiler.h"
#include <stddef.h>
@@ -27,10 +28,16 @@
class Path;
class Error;
class FileReader;
+class AutoGunzipReader;
class BufferedReader;
class TextFile {
FileReader *const file_reader;
+
+#ifdef HAVE_ZLIB
+ AutoGunzipReader *const gunzip_reader;
+#endif
+
BufferedReader *const buffered_reader;
public: