]> sigrok.org Git - libsigrok.git/commit
ols: move device context creation from protocol.c to api.c
authorGerhard Sittig <redacted>
Sun, 14 Aug 2022 18:47:43 +0000 (20:47 +0200)
committerGerhard Sittig <redacted>
Wed, 24 Aug 2022 18:05:25 +0000 (20:05 +0200)
commit838f01227382bfd8e5b9c817e7fefff93d2c7b28
tree7c1de70ebe8bb09755af4be77ececef1e3cf0738
parent90ed86aa1737fd30bac4cbbeaae91d87b4c22682
ols: move device context creation from protocol.c to api.c

The get_metadata() routine was unfortunately named, and surprisingly did
more than its name suggested. Rename the routine to contain the ols_
prefix. Run communication to the device in protocol.c, but keep sdi and
devc creation in api.c where they are expected during maintenance. This
"unhides" where stuff is happening, and eliminates redundancy between
the models which support meta data to announce their features, and other
"compatibles" which are covered by generic fallback data.
src/hardware/openbench-logic-sniffer/api.c
src/hardware/openbench-logic-sniffer/protocol.c
src/hardware/openbench-logic-sniffer/protocol.h