diff options
author | Max Kellermann <max@duempel.org> | 2014-01-30 20:29:48 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-01-30 20:39:40 +0100 |
commit | 4465e2c46bbed438377dc4a99df333bd5c058d5e (patch) | |
tree | cbc1d27aad939689f44b0ac3542a6ca1777b9dc1 /src/Instance.cxx | |
parent | 34b309b99aa2f274308f19974c428e1c7ac5d66f (diff) | |
download | mpd-4465e2c46bbed438377dc4a99df333bd5c058d5e.tar.gz mpd-4465e2c46bbed438377dc4a99df333bd5c058d5e.tar.xz mpd-4465e2c46bbed438377dc4a99df333bd5c058d5e.zip |
db: add compile-time option to disable database
Diffstat (limited to 'src/Instance.cxx')
-rw-r--r-- | src/Instance.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Instance.cxx b/src/Instance.cxx index 16000afb3..621b0d669 100644 --- a/src/Instance.cxx +++ b/src/Instance.cxx @@ -23,6 +23,8 @@ #include "Idle.hxx" #include "Stats.hxx" +#ifdef ENABLE_DATABASE + void Instance::DeleteSong(const char *uri) { @@ -37,6 +39,8 @@ Instance::DatabaseModified() idle_add(IDLE_DATABASE); } +#endif + void Instance::TagModified() { @@ -49,12 +53,16 @@ Instance::SyncWithPlayer() partition->SyncWithPlayer(); } +#ifdef ENABLE_DATABASE + void Instance::OnDatabaseModified() { DatabaseModified(); } +#endif + #ifdef ENABLE_NEIGHBOR_PLUGINS void |