db/DatabasePlaylist: pass DatabaseSelection to search_add_to_playlist()
This commit is contained in:
@@ -36,11 +36,9 @@ AddSong(const Storage *storage, const char *playlist_path_utf8,
|
||||
|
||||
void
|
||||
search_add_to_playlist(const Database &db, const Storage *storage,
|
||||
const char *uri, const char *playlist_path_utf8,
|
||||
const SongFilter *filter)
|
||||
const char *playlist_path_utf8,
|
||||
const DatabaseSelection &selection)
|
||||
{
|
||||
const DatabaseSelection selection(uri, true, filter);
|
||||
|
||||
using namespace std::placeholders;
|
||||
const auto f = std::bind(AddSong, storage,
|
||||
playlist_path_utf8, _1);
|
||||
|
||||
@@ -24,12 +24,12 @@
|
||||
|
||||
class Database;
|
||||
class Storage;
|
||||
class SongFilter;
|
||||
struct DatabaseSelection;
|
||||
|
||||
gcc_nonnull(3,4)
|
||||
gcc_nonnull(3)
|
||||
void
|
||||
search_add_to_playlist(const Database &db, const Storage *storage,
|
||||
const char *uri, const char *path_utf8,
|
||||
const SongFilter *filter);
|
||||
const char *playlist_path_utf8,
|
||||
const DatabaseSelection &selection);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user