]> sigrok.org Git - libsigrok.git/commitdiff
Removal of sdi->index, step 3: sr_dev_inst_new() calls for input mods
authorSoeren Apel <redacted>
Sat, 27 Sep 2014 20:29:10 +0000 (22:29 +0200)
committerBert Vermeulen <redacted>
Mon, 29 Sep 2014 23:42:58 +0000 (01:42 +0200)
src/input/binary.c
src/input/chronovu_la8.c
src/input/csv.c
src/input/vcd.c
src/input/wav.c

index a8aecb60145bb2cb5d5980e1fc8b1e3b266a535e..9ad988e38f55e5fc3147cb13fad58ebbd13bcd2b 100644 (file)
@@ -50,7 +50,7 @@ static int init(struct sr_input *in, GHashTable *options)
                return SR_ERR_ARG;
        }
 
-       in->sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, NULL, NULL, NULL);
+       in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL);
        in->priv = inc = g_malloc0(sizeof(struct context));
 
        inc->samplerate = g_variant_get_uint64(g_hash_table_lookup(options, "samplerate"));
index a56d3485c854d6f66ff1fdc22e23eb76ecc78530..42700dd17c22076b892a2892a8e90bd75c1f294f 100644 (file)
@@ -62,7 +62,7 @@ static int init(struct sr_input *in, GHashTable *options)
                return SR_ERR_ARG;
        }
 
-       in->sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, NULL, NULL, NULL);
+       in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL);
        in->priv = inc = g_malloc0(sizeof(struct context));
 
        inc->samplerate = g_variant_get_uint64(g_hash_table_lookup(options, "samplerate"));
index e3da2bce5182f1dc6a6faf657e2e52fc7e54d35f..c2625aa2febb2c48284fc9de1d253eb2205ba3b7 100644 (file)
@@ -393,7 +393,7 @@ static int init(struct sr_input *in, GHashTable *options)
        struct context *inc;
        const char *s;
 
-       in->sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, NULL, NULL, NULL);
+       in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL);
        in->priv = inc = g_malloc0(sizeof(struct context));
 
        inc->single_column = g_variant_get_int32(g_hash_table_lookup(options, "single-column"));
index 62b9a090086f55d4c8dbb6fda98878605ed27c2d..d50374ab5382fca90a1a37ea1060b75d9662b421 100644 (file)
@@ -430,7 +430,7 @@ static int init(struct sr_input *in, GHashTable *options)
        inc->skip = g_variant_get_int32(g_hash_table_lookup(options, "skip"));
        inc->skip /= inc->downsample;
 
-       in->sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, NULL, NULL, NULL);
+       in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL);
        in->priv = inc;
 
        for (i = 0; i < num_channels; i++) {
index edabd47ca95324a934d81ae9d39b30ecfe65a59f..528209569a71824de3245ecea2abe1c891b3659f 100644 (file)
@@ -149,7 +149,7 @@ static int init(struct sr_input *in, GHashTable *options)
 {
        (void)options;
 
-       in->sdi = sr_dev_inst_new(0, SR_ST_ACTIVE, NULL, NULL, NULL);
+       in->sdi = sr_dev_inst_new(SR_ST_ACTIVE, NULL, NULL, NULL);
 
        return SR_OK;
 }