diff options
author | Andrzej Rybczak <andrzej@rybczak.net> | 2020-12-19 16:54:51 +0100 |
---|---|---|
committer | Andrzej Rybczak <andrzej@rybczak.net> | 2020-12-19 16:54:51 +0100 |
commit | cbc9741e66777e076e24a245bf58a759422d1b0d (patch) | |
tree | 0eed55365196e673043b2e146eb8281235238415 /src/mpdpp.h | |
parent | d724e06262f63a085b0b36015949baa1a4697d6a (diff) |
Faster loading of playlists from the playlist editor
Diffstat (limited to 'src/mpdpp.h')
-rw-r--r-- | src/mpdpp.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 &); |