sr: add new driver API call: scan()
authorBert Vermeulen <bert@biot.com>
Thu, 5 Jul 2012 09:27:48 +0000 (11:27 +0200)
committerBert Vermeulen <bert@biot.com>
Fri, 3 Aug 2012 08:27:36 +0000 (10:27 +0200)
commit8d6f31d82a071e668e286d18006747e0bdb65e33
tree94b6235b8c5a969c87ebc8847f3a3e37ccb26918
parent13b8fa377cf38203165dcfd437273f032eafda22
sr: add new driver API call: scan()

This changes the semantics of the init() call as well. That now only
initializes the driver -- an administrative affair, no hardware gets
touched during this call. It returns a standard SR_OK or SR_ERR* code.

The scan() call does a discovery run for devices it knows, and returns
the number found. It can be called at any time.
libsigrok/hardware/asix-sigma/asix-sigma.c
libsigrok/hardware/chronovu-la8/api.c
libsigrok/hardware/demo/demo.c
libsigrok/hardware/fx2lafw/fx2lafw.c
libsigrok/hardware/genericdmm/api.c
libsigrok/hardware/hantek-dso/api.c
libsigrok/hardware/link-mso19/link-mso19.c
libsigrok/hardware/openbench-logic-sniffer/ols.c
libsigrok/hardware/zeroplus-logic-cube/zeroplus.c
libsigrok/libsigrok.h
libsigrok/session_driver.c