libsigrok/src/hardware/lascar-el-usb
Lars-Peter Clausen 15a5bfe481 Add helper function for scan completion
A common task during device scan is to add the newly discovered devices to
the instance list of the driver. Currently this is done by each driver on
its own. This patch introduces a new helper function std_scan_complete()
which takes care of this. The function should be called at the end of a
driver's scan() callback before returning the device list.

Doing this with a helper function provides guaranteed consistent behaviour
among drivers and hopefully paves the way to moving more standard
functionality directly into the sigrok core.

Another common task that every driver has to do for each device instance is
to initialize the device's driver field. So this is done in the new helper
function as well.

All drivers that can make use of the new helper are updated.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
2016-05-27 14:44:24 +02:00
..
api.c Add helper function for scan completion 2016-05-27 14:44:24 +02:00
protocol.c Add helper function for scan completion 2016-05-27 14:44:24 +02:00
protocol.h dev_acquisition_{start,stop}(): Drop duplicate 'cb_data' parameter. 2016-04-29 19:20:53 +02:00