]> sigrok.org Git - libsigrok.git/blobdiff - src/output/bits.c
Pass driver struct pointer to driver callbacks.
[libsigrok.git] / src / output / bits.c
index 6b33f8d6534ec7dc23d6185c4d179b3d6e6c8a07..180ea563d59137b1b5aedaebf0ff6ae1efc70b97 100644 (file)
@@ -221,7 +221,7 @@ 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 const struct sr_option *get_options(void)
@@ -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,