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);
.id = "ascii",
.name = "ASCII",
.desc = "ASCII art",
+ .exts = (const char*[]){"txt", NULL},
.options = get_options,
.init = init,
.receive = receive,
.cleanup = cleanup,
};
-
-