]> sigrok.org Git - libsigrok.git/blobdiff - src/output/hex.c
Introduce OutputFlag
[libsigrok.git] / src / output / hex.c
index 6c0e15d5c51fb6ec5f29daaff2a8dc04ae9021df..a499e354e6aa5daaa554125fa1cc2e1e2d65c6c3 100644 (file)
@@ -235,7 +235,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)
@@ -252,9 +252,10 @@ SR_PRIV struct sr_output_module output_hex = {
        .id = "hex",
        .name = "Hexadecimal",
        .desc = "Hexadecimal digits",
+       .exts = (const char*[]){"txt", NULL},
+       .flags = 0,
        .options = get_options,
        .init = init,
        .receive = receive,
        .cleanup = cleanup,
 };
-