]> sigrok.org Git - libsigrok.git/commit
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)
commit4afdfd4628e9955af02a3ea619ecdfe469f9a9e2
tree0c93370731761734177c726b3a9df43e57323072
parent961009b0c4002717c669a0cdcafb0fcf29f5ea1b
Add and use std_session_send_df_header().

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.
26 files changed:
hardware/agilent-dmm/api.c
hardware/alsa/api.c
hardware/asix-sigma/asix-sigma.c
hardware/brymen-dmm/api.c
hardware/chronovu-la8/api.c
hardware/colead-slm/api.c
hardware/demo/demo.c
hardware/fluke-dmm/api.c
hardware/fx2lafw/fx2lafw.c
hardware/hantek-dso/api.c
hardware/lascar-el-usb/api.c
hardware/link-mso19/api.c
hardware/mic-985xx/api.c
hardware/openbench-logic-sniffer/api.c
hardware/rigol-ds1xx2/api.c
hardware/serial-dmm/api.c
hardware/tondaj-sl-814/api.c
hardware/uni-t-dmm/api.c
hardware/victor-dmm/api.c
hardware/zeroplus-logic-cube/zeroplus.c
input/binary.c
input/chronovu_la8.c
input/vcd.c
libsigrok-internal.h
session_driver.c
std.c