]> sigrok.org Git - libsigrok.git/blobdiff - src/output/bits.c
Pass driver struct pointer to driver callbacks.
[libsigrok.git] / src / output / bits.c
index 728ff2ffb3140c608f85e11492ed28a5f736eb6d..180ea563d59137b1b5aedaebf0ff6ae1efc70b97 100644 (file)
@@ -221,10 +221,10 @@ static int cleanup(struct sr_output *o)
 
 static struct sr_option options[] = {
        { "width", "Width", "Number of samples per line", NULL, NULL },
-       { 0 }
+       ALL_ZERO
 };
 
-static struct sr_option *get_options(void)
+static const struct sr_option *get_options(void)
 {
        if (!options[0].def) {
                options[0].def = g_variant_new_uint32(DEFAULT_SAMPLES_PER_LINE);
@@ -238,6 +238,7 @@ SR_PRIV struct sr_output_module output_bits = {
        .id = "bits",
        .name = "Bits",
        .desc = "0/1 digits",
+       .exts = (const char*[]){"txt", NULL},
        .options = get_options,
        .init = init,
        .receive = receive,