update plugins and cli to use new DF_HEADER

This commit is contained in:
Daniel Ribeiro 2011-01-10 15:12:38 -02:00
parent 921e753f7e
commit c2616fb9fa
6 changed files with 12 additions and 6 deletions

View File

@ -1219,7 +1219,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
gettimeofday(&header.starttime, NULL);
header.samplerate = cur_samplerate;
header.protocol_id = PROTO_RAW;
header.num_probes = num_probes;
header.num_logic_probes = num_probes;
header.num_analog_probes = 0;
session_bus(session_device_id, &packet);
/* Add capture source. */

View File

@ -318,7 +318,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
gettimeofday(&header->starttime, NULL);
header->samplerate = cur_samplerate;
header->protocol_id = PROTO_RAW;
header->num_probes = NUM_PROBES;
header->num_logic_probes = NUM_PROBES;
header->num_analog_probes = 0;
session_bus(session_device_id, packet);
free(header);
free(packet);

View File

@ -760,7 +760,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
gettimeofday(&header->starttime, NULL);
header->samplerate = cur_samplerate;
header->protocol_id = PROTO_RAW;
header->num_probes = NUM_PROBES;
header->num_logic_probes = NUM_PROBES;
header->num_analog_probes = 0;
session_bus(session_device_id, packet);
g_free(header);
g_free(packet);

View File

@ -713,7 +713,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
gettimeofday(&header->starttime, NULL);
header->samplerate = cur_samplerate;
header->protocol_id = PROTO_RAW;
header->num_probes = NUM_PROBES;
header->num_logic_probes = NUM_PROBES;
header->num_analog_probes = 0;
session_bus(session_device_id, packet);
g_free(header);
g_free(packet);

View File

@ -512,7 +512,8 @@ static int hw_start_acquisition(int device_index, gpointer session_device_id)
gettimeofday(&header.starttime, NULL);
header.samplerate = cur_samplerate;
header.protocol_id = PROTO_RAW;
header.num_probes = num_channels;
header.num_logic_probes = num_channels;
header.num_analog_probes = 0;
session_bus(session_device_id, &packet);
buf = g_malloc(PACKET_SIZE);

View File

@ -48,7 +48,8 @@ static int in_loadfile(const char *filename)
device = device_new(NULL, 0, num_probes);
header.feed_version = 1;
header.num_probes = num_probes;
header.num_logic_probes = num_probes;
header.num_analog_probes = 0; /* FIXME */
header.protocol_id = PROTO_RAW;
header.samplerate = 0;
gettimeofday(&header.starttime, NULL);