diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2010-08-23 17:12:56 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2010-08-23 17:13:45 +0200 |
commit | c63780e6e624985b67ecbdac43ca6d896bfb84b0 (patch) | |
tree | 84dc607287bde6ebe238fbddd82af32adda0919d /src/mpdpp.cpp | |
parent | 638fab853512e19c459309da19962be0f6f523b4 (diff) |
support adding last.fm streams to playlist
Diffstat (limited to 'src/mpdpp.cpp')
-rw-r--r-- | src/mpdpp.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mpdpp.cpp b/src/mpdpp.cpp index b86cb012..7dde3208 100644 --- a/src/mpdpp.cpp +++ b/src/mpdpp.cpp @@ -1027,6 +1027,15 @@ bool MPD::Connection::DeletePlaylist(const std::string &name) } } +bool MPD::Connection::LoadPlaylist(const std::string &name) +{ + if (!itsConnection) + return false; + assert(!isCommandsListEnabled); + GoBusy(); + return mpd_run_load(itsConnection, name.c_str()); +} + int MPD::Connection::SavePlaylist(const std::string &name) { if (!itsConnection) |