aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/plugins/simple/SimpleDatabasePlugin.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-11 21:30:49 +0200
committerMax Kellermann <max@duempel.org>2014-08-11 21:48:25 +0200
commit2e122e150928dc7cc52a77a3ebec0427146cd2af (patch)
treead31bb1019f0058ba0e4507eabe372659028cced /src/db/plugins/simple/SimpleDatabasePlugin.hxx
parent486b5b6bfc61344c945d807b230c12a99c3c8edb (diff)
downloadmpd-2e122e150928dc7cc52a77a3ebec0427146cd2af.tar.gz
mpd-2e122e150928dc7cc52a77a3ebec0427146cd2af.tar.xz
mpd-2e122e150928dc7cc52a77a3ebec0427146cd2af.zip
db/simple: compress the database file using gzip
Diffstat (limited to '')
-rw-r--r--src/db/plugins/simple/SimpleDatabasePlugin.hxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.hxx b/src/db/plugins/simple/SimpleDatabasePlugin.hxx
index e27b3d956..7ba71e272 100644
--- a/src/db/plugins/simple/SimpleDatabasePlugin.hxx
+++ b/src/db/plugins/simple/SimpleDatabasePlugin.hxx
@@ -20,6 +20,7 @@
#ifndef MPD_SIMPLE_DATABASE_PLUGIN_HXX
#define MPD_SIMPLE_DATABASE_PLUGIN_HXX
+#include "check.h"
#include "db/Interface.hxx"
#include "fs/AllocatedPath.hxx"
#include "db/LightSong.hxx"
@@ -38,6 +39,10 @@ class SimpleDatabase : public Database {
AllocatedPath path;
std::string path_utf8;
+#ifdef HAVE_ZLIB
+ bool compress;
+#endif
+
/**
* The path where cache files for Mount() are located.
*/
@@ -64,7 +69,7 @@ class SimpleDatabase : public Database {
SimpleDatabase();
- SimpleDatabase(AllocatedPath &&_path);
+ SimpleDatabase(AllocatedPath &&_path, bool _compress);
public:
static Database *Create(EventLoop &loop, DatabaseListener &listener,