diff options
Diffstat (limited to 'src/mpdpp.cpp')
-rw-r--r-- | src/mpdpp.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mpdpp.cpp b/src/mpdpp.cpp index 05c127e4..ccdee31d 100644 --- a/src/mpdpp.cpp +++ b/src/mpdpp.cpp @@ -655,6 +655,17 @@ void Connection::Delete(unsigned pos) } } +void Connection::DeleteRange(unsigned begin, unsigned end) +{ + prechecks(); + mpd_send_delete_range(m_connection.get(), begin, end); + if (!m_command_list_active) + { + mpd_response_finish(m_connection.get()); + checkErrors(); + } +} + void Connection::PlaylistDelete(const std::string &playlist, unsigned pos) { prechecks(); |