diff options
author | Max Kellermann <max@duempel.org> | 2014-07-29 23:14:25 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-07-29 23:31:27 +0200 |
commit | aa0f06d6b712b1fe40536714ecdb2dd968417be3 (patch) | |
tree | 081d8d7b304aa370b5f62daab2da7e18281b2e4d /src/db/Interface.hxx | |
parent | 0c47685e0291b835034b7f5855eafef9bf69c7c9 (diff) | |
download | mpd-aa0f06d6b712b1fe40536714ecdb2dd968417be3.tar.gz mpd-aa0f06d6b712b1fe40536714ecdb2dd968417be3.tar.xz mpd-aa0f06d6b712b1fe40536714ecdb2dd968417be3.zip |
db/Interface: add virtual method Update()
For database plugins that don't use the UpdateService.
Diffstat (limited to '')
-rw-r--r-- | src/db/Interface.hxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/db/Interface.hxx b/src/db/Interface.hxx index 5fc9265e2..152928c79 100644 --- a/src/db/Interface.hxx +++ b/src/db/Interface.hxx @@ -116,6 +116,18 @@ public: Error &error) const = 0; /** + * Update the database. Returns the job id on success, 0 on + * error (with #Error set) and 0 if not implemented (#Error + * not set). + */ + virtual unsigned Update(gcc_unused const char *uri_utf8, + gcc_unused bool discard, + gcc_unused Error &error) { + /* not implemented: return 0 and don't set an Error */ + return 0; + } + + /** * Returns the time stamp of the last database update. * Returns 0 if that is not not known/available. */ |