]> sigrok.org Git - libsigrok.git/commit
sr: Eliminate usb/serial instances from API.
authorUwe Hermann <redacted>
Sun, 29 Jan 2012 22:06:10 +0000 (23:06 +0100)
committerUwe Hermann <redacted>
Tue, 31 Jan 2012 01:04:35 +0000 (02:04 +0100)
commit69890f7399f086c38670961dc72166f00de89af6
tree25603ba559667e84f777c6002fa65c1d299dcb24
parentc31e9ef49b84b61a353168956882140e2b5a93bb
sr: Eliminate usb/serial instances from API.

The API should be generic and only provide sr_device_instance_new() and
friends, but not sr_usb_device_instance_new(), sr_serial_device_instance_new(),
or others for other device types we may have in the future. The
frontends shouldn't have to know or care about this implementation detail.

This also fixes the problem that parts of sigrok.h contained
'#ifdef HAVE_LIBUSB_1_0' and such, which is even less desirable for the API.

The usb/serial instance specifics are now private, and each driver that
needs them keeps a pointer in its driver-specific context.
hardware/openbench-logic-sniffer/ols.c
hardware/openbench-logic-sniffer/ols.h
hardware/saleae-logic/saleae-logic.c
hardware/saleae-logic/saleae-logic.h
hardware/zeroplus-logic-cube/zeroplus.c
hwplugin.c
sigrok-internal.h
sigrok-proto.h
sigrok.h.in