Switch to unified view

a/src/mediaserver/contentdirectory.cxx b/src/mediaserver/contentdirectory.cxx
...
...
515
int ContentDirectory::getupnpport(CDPlugin *)
515
int ContentDirectory::getupnpport(CDPlugin *)
516
{
516
{
517
    return m->port;
517
    return m->port;
518
}
518
}
519
519
520
521
bool ContentDirectory::setfileops(CDPlugin *plg, const std::string& path,
522
                                  UPnPProvider::VirtualDir::FileOps ops)
523
{
524
    VirtualDir *dir = VirtualDir::getVirtualDir();
525
    if (dir == nullptr) {
526
        LOGERR("ContentDirectory::setfileops: getVirtualDir() failed\n");
527
        return false;
528
    }
529
    string prefix = getpathprefix(plg);
530
    if (path.find(prefix) != 0) {
531
        LOGERR("ContentDirectory::setfileops: dir path should begin with: " <<
532
               prefix);
533
        return false;
534
    }
535
        
536
    dir->addVDir(path, ops);
537
    return true;
538
}
539
std::string ContentDirectory::getfname()
520
std::string ContentDirectory::getfname()
540
{
521
{
541
    return m->msdev->getfname();
522
    return m->msdev->getfname();
542
}
523
}
543
524