From cbc9741e66777e076e24a245bf58a759422d1b0d Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sat, 19 Dec 2020 16:54:51 +0100 Subject: Faster loading of playlists from the playlist editor --- src/mpdpp.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/mpdpp.h') diff --git a/src/mpdpp.h b/src/mpdpp.h index 8b2138bf..11577142 100644 --- a/src/mpdpp.h +++ b/src/mpdpp.h @@ -548,14 +548,14 @@ struct Connection int AddSong(const Song &, int = -1); // returns id of added song bool AddRandomTag(mpd_tag_type, size_t, std::mt19937 &rng); bool AddRandomSongs(size_t number, const std::string &random_exclude_pattern, std::mt19937 &rng); - void Add(const std::string &path); + bool Add(const std::string &path); void Delete(unsigned int pos); void PlaylistDelete(const std::string &playlist, unsigned int pos); void StartCommandsList(); void CommitCommandsList(); void DeletePlaylist(const std::string &name); - void LoadPlaylist(const std::string &name); + bool LoadPlaylist(const std::string &name); void SavePlaylist(const std::string &); void ClearPlaylist(const std::string &playlist); void AddToPlaylist(const std::string &, const Song &); -- cgit v1.2.3