]> sigrok.org Git - libsigrok.git/commitdiff
Add and use std_session_send_df_header().
authorUwe Hermann <redacted>
Wed, 6 Feb 2013 18:57:32 +0000 (19:57 +0100)
committerUwe Hermann <redacted>
Thu, 7 Feb 2013 09:46:28 +0000 (10:46 +0100)
This is a small helper function which sends the SR_DF_HEADER packet that
drivers usually emit in their hw_dev_acquisition_start() API callback.
It simplifies and shortens the hw_dev_acquisition_start() functions
quite a bit.

It also simplifies the input modules which send an SR_DF_HEADER packet, too.

This patch also automatically removes some unneeded malloc/free in some
drivers for the 'packet' and 'header' structs used for SR_DF_HEADER.


No differences found