sr/drivers: add API calls sr_dev_inst_list() and sr_dev_inst_clear()
authorBert Vermeulen <bert@biot.com>
Sun, 5 Aug 2012 22:59:25 +0000 (00:59 +0200)
committerBert Vermeulen <bert@biot.com>
Sun, 5 Aug 2012 22:59:25 +0000 (00:59 +0200)
commit43a129fd5e2147daa73a97653ac9e3f6219c7cc8
tree09b7c22215877d2ce877da6a9827cf4864d22713
parenta62523cdbdeeac7342e2f50652edf69752bdf245
sr/drivers: add API calls sr_dev_inst_list() and sr_dev_inst_clear()

These are used to list the device instances currently known to the driver,
and clear that list.

Drivers that don't necessarily clear their list of instances on every scan,
such as genericdmm, need to provide these to the frontend to keep instance
management sane.
libsigrok/device.c
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/openbench-logic-sniffer/ols.c
libsigrok/hardware/zeroplus-logic-cube/zeroplus.c
libsigrok/libsigrok.h
libsigrok/proto.h