Switch to unified view

a/upmpd/mpdcli.cxx b/upmpd/mpdcli.cxx
...
...
357
        return -1;
357
        return -1;
358
358
359
    if (!updStatus())
359
    if (!updStatus())
360
        return -1;
360
        return -1;
361
361
362
    int id;
362
    int id = mpd_run_add_id_to(M_CONN, uri.c_str(), (unsigned)pos);
363
    RETRY_CMD((id=mpd_run_add_id_to(M_CONN, uri.c_str(), (unsigned)pos))!=-1);
363
364
364
    if (id < 0) {
365
        showError("MPDCli::run_add_id");
366
        return -1;
367
    }
368
    return id;
365
    return id;
369
}
366
}
367
bool MPDCli::clearQueue()
368
{
369
    LOGDEB("MPDCli::clearQueue " << endl);
370
    if (!ok())
371
        return -1;
372
373
    RETRY_CMD(mpd_run_clear(M_CONN));
374
    return true;
375
}
370
bool MPDCli::deleteId(int id)
376
bool MPDCli::deleteId(int id)
371
{
377
{
372
    LOGDEB("MPDCli::deleteId " << id << endl);
378
    LOGDEB("MPDCli::deleteId " << id << endl);
373
    if (!ok())
379
    if (!ok())
374
        return -1;
380
        return -1;
375
381
376
    RETRY_CMD(mpd_run_delete_id(M_CONN, (unsigned)id));
382
    RETRY_CMD(mpd_run_delete_id(M_CONN, (unsigned)id));
377
    return false;
383
    return true;
378
}
384
}
379
bool MPDCli::statId(int id)
385
bool MPDCli::statId(int id)
380
{
386
{
381
    LOGDEB("MPDCli::statId " << id << endl);
387
    LOGDEB("MPDCli::statId " << id << endl);
382
    if (!ok())
388
    if (!ok())