srd: Pass metadata to decoders only on SR_DF_HEADER.
authorGareth McMullin <gareth@blacksphere.co.nz>
Sun, 27 Nov 2011 06:17:13 +0000 (19:17 +1300)
committerGareth McMullin <gareth@blacksphere.co.nz>
Sun, 27 Nov 2011 06:48:01 +0000 (19:48 +1300)
commitad51011361cb188d273c3a4e1e1cac0a6b947cb4
tree896201ee2f41031a3c5c5f5591be5caeb813cf93
parentdaea6d444ddb94c7dbd3777f1834c39a1fea462d
srd: Pass metadata to decoders only on SR_DF_HEADER.

Before this was passed to the decoder's constuctor, but the parameters
may not all be known at construction.  Decoders now have a method start()
which is called at the start of the capture, and metadata is passed as
an arg to this function.
cli/sigrok-cli.c
libsigrokdecode/decode.c
libsigrokdecode/decoders/i2c.py
libsigrokdecode/decoders/spi.py
libsigrokdecode/decoders/transitioncounter.py
libsigrokdecode/sigrokdecode.h