fs/io/TextFile: use AutoGunzipReader

Several MPD subsystems can now read gzipped files; for example, the
database file can be gzipped.
This commit is contained in:
Max Kellermann
2014-08-11 21:15:25 +02:00
parent 88a2f128ec
commit 486b5b6bfc
2 changed files with 23 additions and 1 deletions

View File

@@ -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: