]> sigrok.org Git - libsigrok.git/commitdiff
serial: extend semantics of connection and comm params extraction helper
authorGerhard Sittig <redacted>
Sat, 22 May 2021 11:27:43 +0000 (13:27 +0200)
committerGerhard Sittig <redacted>
Tue, 1 Jun 2021 06:20:16 +0000 (08:20 +0200)
The sr_serial_extract_options() routine is a hidden gem, has existed for
almost eight years, and is exclusively used by the motech-lps-301 driver
(was also used by hameg-hmo at some point in the past). Being so useful
and doing something to terribly popular, more drivers should use it.

Extend the API to make either of the out parameters genuinely optional,
and guarantee that pre-assigned defaults will survive in the absence of
user specs. Update the Doxygen comment.


No differences found