X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Foutput%2Fbits.c;h=a26424d5968913a33ed86f8a6339c3a20f8c6b72;hb=3cd4b381744eb88fd4ba32565bd408c33b431629;hp=728ff2ffb3140c608f85e11492ed28a5f736eb6d;hpb=dcc55fe91aadf4396ce4a3b5db2898da39e1a6be;p=libsigrok.git diff --git a/src/output/bits.c b/src/output/bits.c index 728ff2ff..a26424d5 100644 --- a/src/output/bits.c +++ b/src/output/bits.c @@ -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,8 @@ SR_PRIV struct sr_output_module output_bits = { .id = "bits", .name = "Bits", .desc = "0/1 digits", + .exts = (const char*[]){"txt", NULL}, + .flags = 0, .options = get_options, .init = init, .receive = receive,