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/SongUpdate.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 '')
-rw-r--r-- | src/SongUpdate.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SongUpdate.cxx b/src/SongUpdate.cxx index 0f3e9b172..665783279 100644 --- a/src/SongUpdate.cxx +++ b/src/SongUpdate.cxx @@ -39,6 +39,8 @@ #include <string.h> #include <sys/stat.h> +#ifdef ENABLE_DATABASE + Song * Song::LoadFile(const char *path_utf8, Directory &parent) { @@ -64,6 +66,8 @@ Song::LoadFile(const char *path_utf8, Directory &parent) return song; } +#endif + /** * Attempts to load APE or ID3 tags from the specified file. */ @@ -75,6 +79,8 @@ tag_scan_fallback(Path path, tag_id3_scan(path, handler, handler_ctx); } +#ifdef ENABLE_DATABASE + bool Song::UpdateFile() { @@ -125,6 +131,8 @@ Song::UpdateFileInArchive() return true; } +#endif + bool DetachedSong::Update() { |