From: Soeren Apel Date: Sat, 27 Sep 2014 20:29:10 +0000 (+0200) Subject: Removal of sdi->index, step 3: sr_dev_inst_new() calls for input mods X-Git-Tag: libsigrok-0.4.0~927 X-Git-Url: https://sigrok.org/gitweb/?p=libsigrok.git;a=commitdiff_plain;h=f2209364737835ba78126cf7f2a707f63182f0e6 Removal of sdi->index, step 3: sr_dev_inst_new() calls for input mods --- diff --git a/src/input/binary.c b/src/input/binary.c index a8aecb60..9ad988e3 100644 --- a/src/input/binary.c +++ b/src/input/binary.c @@ -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")); diff --git a/src/input/chronovu_la8.c b/src/input/chronovu_la8.c index a56d3485..42700dd1 100644 --- a/src/input/chronovu_la8.c +++ b/src/input/chronovu_la8.c @@ -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")); diff --git a/src/input/csv.c b/src/input/csv.c index e3da2bce..c2625aa2 100644 --- a/src/input/csv.c +++ b/src/input/csv.c @@ -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")); diff --git a/src/input/vcd.c b/src/input/vcd.c index 62b9a090..d50374ab 100644 --- a/src/input/vcd.c +++ b/src/input/vcd.c @@ -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++) { diff --git a/src/input/wav.c b/src/input/wav.c index edabd47c..52820956 100644 --- a/src/input/wav.c +++ b/src/input/wav.c @@ -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; }