]> sigrok.org Git - libsigrok.git/commit
sr_driver_list() now takes a context pointer.
authorUwe Hermann <redacted>
Sat, 4 Apr 2015 18:57:22 +0000 (20:57 +0200)
committerUwe Hermann <redacted>
Tue, 7 Apr 2015 00:09:56 +0000 (02:09 +0200)
commit032da34b786333a1af811235c5cf29855479f0b6
tree69fcb6dcb9b751ba50483d29dff33d0a436241a8
parent07962655ecd48304d0663e0a91e54f52076c3f8b
sr_driver_list() now takes a context pointer.

This requires sr_hw_cleanup_all() and sanity_check_all_drivers()
to also take a context.

The (runtime) generation of the driver list now happens in sr_init()
and sr_driver_list() always returns that pre-generated list. This fixes
a segfault when (correctly) invoking multiple sr_init() and sr_exit()
calls with different contexts (caught by the unit tests).

This fixes bug #565.
bindings/cxx/classes.cpp
include/libsigrok/proto.h
src/backend.c
src/hwdriver.c
src/libsigrok-internal.h
tests/driver_all.c
tests/lib.c