diff options
author | Max Kellermann <max@duempel.org> | 2012-08-15 23:28:19 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2012-08-16 00:04:14 +0200 |
commit | 3b8532f3fb379c7ecc6b64eecbbf9c824d18e875 (patch) | |
tree | 3313a43df3f120b74166749fdd75b07fa89846ba /src/DatabaseGlue.cxx | |
parent | f45616e5f6f7d6aa0fb5ca90a0599eacddf1166b (diff) | |
download | mpd-3b8532f3fb379c7ecc6b64eecbbf9c824d18e875.tar.gz mpd-3b8532f3fb379c7ecc6b64eecbbf9c824d18e875.tar.xz mpd-3b8532f3fb379c7ecc6b64eecbbf9c824d18e875.zip |
DatabasePlugin: add method ReturnSong()
Allow the plugin to allocate the GetSong() return value.
Diffstat (limited to '')
-rw-r--r-- | src/DatabaseGlue.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/DatabaseGlue.cxx b/src/DatabaseGlue.cxx index 42812973d..88b25d868 100644 --- a/src/DatabaseGlue.cxx +++ b/src/DatabaseGlue.cxx @@ -132,6 +132,15 @@ db_get_song(const char *file) return db->GetSong(file, NULL); } +void +db_return_song(struct song *song) +{ + assert(db != nullptr); + assert(song != nullptr); + + db->ReturnSong(song); +} + bool db_save(GError **error_r) { |