Switch to side-by-side view

--- a/upmpd/mpdcli.cxx
+++ b/upmpd/mpdcli.cxx
@@ -359,14 +359,20 @@
     if (!updStatus())
         return -1;
 
-    int id = mpd_run_add_id_to(M_CONN, uri.c_str(), (unsigned)pos);
-
-    if (id < 0) {
-        showError("MPDCli::run_add_id");
-        return -1;
-    }
+    int id;
+    RETRY_CMD((id=mpd_run_add_id_to(M_CONN, uri.c_str(), (unsigned)pos))!=-1);
+
     return id;
 }
+bool MPDCli::clearQueue()
+{
+    LOGDEB("MPDCli::clearQueue " << endl);
+    if (!ok())
+        return -1;
+
+    RETRY_CMD(mpd_run_clear(M_CONN));
+    return true;
+}
 bool MPDCli::deleteId(int id)
 {
     LOGDEB("MPDCli::deleteId " << id << endl);
@@ -374,7 +380,7 @@
         return -1;
 
     RETRY_CMD(mpd_run_delete_id(M_CONN, (unsigned)id));
-    return false;
+    return true;
 }
 bool MPDCli::statId(int id)
 {