]> sigrok.org Git - libsigrok.git/commit
device: introduce common helpers for channel group allocation
authorGerhard Sittig <redacted>
Wed, 26 Jan 2022 21:08:02 +0000 (22:08 +0100)
committerGerhard Sittig <redacted>
Sun, 6 Feb 2022 17:53:53 +0000 (18:53 +0100)
commit1e7468a8858768806a066f52d47d167a3721a8e4
treea1135555c1d1b665dfa6c88e4a93a27c37a0fa7f
parenta38f0f5e28c497be051b62402be1ee90e68bc2d2
device: introduce common helpers for channel group allocation

Provide common logic in device.c which allocates and releases an
sr_channel_group struct. The logicport import module had a local
implementation with a slightly different API. Accept an optional sdi
reference to automatically extend the sdi->channel_groups member.
src/device.c
src/input/logicport.c
src/libsigrok-internal.h