]> sigrok.org Git - libsigrokdecode.git/commit - decoder.c
decoder: consider reset() a mandatory decoder method
authorGerhard Sittig <redacted>
Sun, 21 Oct 2018 15:14:59 +0000 (17:14 +0200)
committerGerhard Sittig <redacted>
Sun, 21 Oct 2018 19:26:09 +0000 (21:26 +0200)
commitbe760e5965e6f4213b010ff088d6ecc3d3ee066b
tree0817ecf7ce65fd4e954a85ccd8efa7bb69f983a7
parentd1de22c0b9ef3158f41fab1b8190cd5d5f79771b
decoder: consider reset() a mandatory decoder method

In theory support for PD reset is optional, applications are not
required to make use of it. But it's essential to receive correct
decoding results when used with the popular Pulseview mainline
application.

So let's consider the absence of the reset() method fatal. All mainline
decoders have it. Out-of-tree decoders are easy to adjust, and very
probably should support reset() as well. Thus this change is considered
beneficial, and not harmful.
decoder.c