]> sigrok.org Git - libsigrok.git/blobdiff - input/binary.c
sr: input/output: Mark more symbols with SR_PRIV.
[libsigrok.git] / input / binary.c
index 9d7e1560a4dbcdd0187c3a0222baeeea765f9ab6..f00a14b89a50272c62b40eedf0bab9c5dd8c4723 100644 (file)
@@ -25,7 +25,7 @@
 #include <sys/time.h>
 #include "sigrok.h"
 
-#define CHUNKSIZE          4096
+#define CHUNKSIZE             (512 * 1024)
 #define DEFAULT_NUM_PROBES    8
 
 static int format_match(const char *filename)
@@ -78,7 +78,6 @@ static int loadfile(struct sr_input *in, const char *filename)
        /* send header */
        header.feed_version = 1;
        header.num_logic_probes = num_probes;
-       header.num_analog_probes = 0;
        header.samplerate = 0;
        gettimeofday(&header.starttime, NULL);
        packet.type = SR_DF_HEADER;
@@ -103,7 +102,7 @@ static int loadfile(struct sr_input *in, const char *filename)
        return SR_OK;
 }
 
-struct sr_input_format input_binary = {
+SR_PRIV struct sr_input_format input_binary = {
        .id = "binary",
        .description = "Raw binary",
        .format_match = format_match,