libsigrok/hardware/openbench-logic-sniffer
Uwe Hermann c0eea11c45 sr_driver_init(): Improve checks.
Check the relevant arguments for != NULL before calling the actual
driver-specific function, so that the driver can safely assume those
arguments are non-NULL. This removes the need to duplicate these
checks in every driver.

Also, change one SR_ERR to the more correct SR_ERR_MALLOC, and assign
sr_ctx in the rigol-ds1xx2's hw_init() function, like all the other
drivers do.
2013-01-29 12:56:02 +01:00
..
Makefile.am ols: Split into api.c and protocol.[ch]. 2012-12-24 13:44:52 +01:00
api.c sr_driver_init(): Improve checks. 2013-01-29 12:56:02 +01:00
protocol.c ols: Add missing 'extern'. 2012-12-28 17:13:20 +01:00
protocol.h Deprecate SR_DI_TRIGGER_TYPES. 2013-01-25 11:52:27 +01:00