]> sigrok.org Git - libsigrok.git/commit
sr_dev_close(): Factor out SR_ERR_DEV_CLOSED check.
authorUwe Hermann <redacted>
Thu, 6 Jul 2017 18:24:12 +0000 (20:24 +0200)
committerUwe Hermann <redacted>
Fri, 7 Jul 2017 19:51:25 +0000 (21:51 +0200)
commit093e1cba6b7bf14cfb77fa36f59b0c16e6fca7cc
tree8d02bff0f738d6281af9c16b61a999787c30246e
parent89ab9fc39c015d541b2fdd4d9d2fb5e00f63be8a
sr_dev_close(): Factor out SR_ERR_DEV_CLOSED check.

This ensures consistent checks and log messages across all drivers
and reduces the per-driver boilerplate.
23 files changed:
src/device.c
src/hardware/asix-sigma/api.c
src/hardware/beaglelogic/api.c
src/hardware/brymen-bm86x/api.c
src/hardware/chronovu-la/api.c
src/hardware/gmc-mh-1x-2x/api.c
src/hardware/gwinstek-gds-800/api.c
src/hardware/hameg-hmo/api.c
src/hardware/hp-3457a/api.c
src/hardware/hung-chang-dso-2100/api.c
src/hardware/ikalogic-scanalogic2/protocol.c
src/hardware/ikalogic-scanaplus/api.c
src/hardware/lecroy-xstream/api.c
src/hardware/maynuo-m97/api.c
src/hardware/pipistrello-ols/api.c
src/hardware/rigol-ds/api.c
src/hardware/rohde-schwarz-sme-0x/api.c
src/hardware/scpi-pps/api.c
src/hardware/sysclk-lwla/api.c
src/hardware/testo/protocol.c
src/hardware/yokogawa-dlm/api.c
src/hardware/zeroplus-logic-cube/api.c
src/std.c