]> sigrok.org Git - libsigrok.git/commit
allow for intermediate stage in stopping acquisition
authorBert Vermeulen <redacted>
Tue, 6 Nov 2012 14:02:37 +0000 (15:02 +0100)
committerBert Vermeulen <redacted>
Tue, 6 Nov 2012 14:16:22 +0000 (15:16 +0100)
commit69b07d14db24055d23bbb4c4cc718ec073ece0b7
tree817225c6809b5df984a6ac40c332fbc18b772447
parentac3898d2d09f54862522967f10487a0708df810c
allow for intermediate stage in stopping acquisition

In the case of USB drivers, a driver's dev_acquisition_stop() cannot
simply remove its fd sources from the session and close its devices:
a USB transfer might still be underway, and it needs to be finished
(and its memory freed) properly.

An sr_dev_inst->status value is added: SR_ST_STOPPING, which should
be set when the driver's dev_acquisition_stop() is called, and acts
as a marker for the USB event handler to wind up its operations.

In order for dev_acquisition_stop() to be able to set the sdi status,
however, it needs to be unconstified.
15 files changed:
hardware/agilent-dmm/api.c
hardware/asix-sigma/asix-sigma.c
hardware/chronovu-la8/api.c
hardware/colead-slm/api.c
hardware/demo/demo.c
hardware/fluke-dmm/api.c
hardware/fx2lafw/fx2lafw.c
hardware/genericdmm/api.c
hardware/hantek-dso/api.c
hardware/openbench-logic-sniffer/ols.c
hardware/radioshack-dmm/api.c
hardware/tekpower-dmm/api.c
hardware/uni-t-dmm/api.c
hardware/zeroplus-logic-cube/zeroplus.c
libsigrok.h