2
0
forked from Ivasoft/DSView

Bump version to v1.00

This commit is contained in:
Andy Dneg
2019-09-09 00:07:19 -07:00
parent f17c612cb1
commit 45204e6a8d
867 changed files with 40976 additions and 21501 deletions

15
DSView/pv/devicemanager.cpp Normal file → Executable file
View File

@@ -72,6 +72,21 @@ void DeviceManager::add_device(boost::shared_ptr<pv::device::DevInst> device)
_devices.push_front(device);
}
void DeviceManager::del_device(boost::shared_ptr<pv::device::DevInst> device)
{
assert(device);
BOOST_FOREACH(shared_ptr<device::DevInst> dev, _devices) {
assert(dev);
if(dev == device) {
dev->release();
break;
}
}
if (std::find(_devices.begin(), _devices.end(), device) !=
_devices.end())
_devices.remove(device);
}
std::list<boost::shared_ptr<device::DevInst> > DeviceManager::driver_scan(
struct sr_dev_driver *const driver, GSList *const drvopts)
{