}
struct sr_input_format input_binary = {
- "binary",
- "Raw binary",
- format_match,
- init,
- loadfile,
+ .extension = "binary",
+ .description = "Raw binary",
+ .format_match = format_match,
+ .init = init,
+ .loadfile = loadfile,
};
#endif
struct sr_output_format output_analog_bits = {
- "analog_bits",
- "Bits (takes argument, default 64)",
- SR_DF_ANALOG,
- init_bits,
- data_bits,
- event,
+ .extension = "analog_bits",
+ .description = "Bits (takes argument, default 64)",
+ .df_type = SR_DF_ANALOG,
+ .init = init_bits,
+ .data = data_bits,
+ .event = event,
};
#if 0
struct sr_output_format output_analog_hex = {
- "analog_hex",
- "Hexadecimal (takes argument, default 192)",
- SR_DF_ANALOG,
- init_hex,
- data_hex,
- event,
+ .extension = "analog_hex",
+ .description = "Hexadecimal (takes argument, default 192)",
+ .df_type = SR_DF_ANALOG,
+ .init = init_hex,
+ .data = data_hex,
+ .event = event,
};
struct sr_output_format output_analog_ascii = {
- "analog_ascii",
- "ASCII (takes argument, default 74)",
- SR_DF_ANALOG,
- init_ascii,
- data_ascii,
- event,
+ .extension = "analog_ascii",
+ .description = "ASCII (takes argument, default 74)",
+ .df_type = SR_DF_ANALOG,
+ .init = init_ascii,
+ .data = data_ascii,
+ .event = event,
};
#endif
}
struct sr_output_format output_binary = {
- "binary",
- "Raw binary",
- SR_DF_LOGIC,
- NULL,
- data,
- NULL,
+ .extension = "binary",
+ .description = "Raw binary",
+ .df_type = SR_DF_LOGIC,
+ .init = NULL,
+ .data = data,
+ .event = NULL,
};
}
struct sr_output_format output_gnuplot = {
- "gnuplot",
- "Gnuplot",
- SR_DF_LOGIC,
- init,
- data,
- event,
+ .extension = "gnuplot",
+ .description = "Gnuplot",
+ .df_type = SR_DF_LOGIC,
+ .init = init,
+ .data = data,
+ .event = event,
};
/* Temporarily disabled. */
}
struct sr_output_format output_analog_gnuplot = {
- "analog_gnuplot",
- "Gnuplot analog",
- SR_DF_ANALOG,
- analog_init,
- analog_data,
- event,
+ .extension = "analog_gnuplot",
+ .description = "Gnuplot analog",
+ .df_type = SR_DF_ANALOG,
+ .init = analog_init,
+ .data = analog_data,
+ .event = event,
};
#endif
}
struct sr_output_format output_ols = {
- "ols",
- "OpenBench Logic Sniffer",
- SR_DF_LOGIC,
- init,
- data,
- event,
+ .extension = "ols",
+ .description = "OpenBench Logic Sniffer",
+ .df_type = SR_DF_LOGIC,
+ .init = init,
+ .data = data,
+ .event = event,
};
}
struct sr_output_format output_foo = {
- "foo",
- "The foo format",
- SR_DF_LOGIC,
- init,
- data,
- event,
+ .extension = "foo",
+ .description = "The foo format",
+ .df_type = SR_DF_LOGIC,
+ .init = init,
+ .data = data,
+ .event = event,
};
}
struct sr_output_format output_vcd = {
- "vcd",
- "Value Change Dump (VCD)",
- SR_DF_LOGIC,
- init,
- data,
- event,
+ .extension = "vcd",
+ .description = "Value Change Dump (VCD)",
+ .df_type = SR_DF_LOGIC,
+ .init = init,
+ .data = data,
+ .event = event,
};
}
struct sr_output_format output_text_ascii = {
- "ascii",
- "ASCII (takes argument, default 74)",
- SR_DF_LOGIC,
- init_ascii,
- data_ascii,
- event,
+ .extension = "ascii",
+ .description = "ASCII (takes argument, default 74)",
+ .df_type = SR_DF_LOGIC,
+ .init = init_ascii,
+ .data = data_ascii,
+ .event = event,
};
}
struct sr_output_format output_text_bits = {
- "bits",
- "Bits (takes argument, default 64)",
- SR_DF_LOGIC,
- init_bits,
- data_bits,
- event,
+ .extension = "bits",
+ .description = "Bits (takes argument, default 64)",
+ .df_type = SR_DF_LOGIC,
+ .init = init_bits,
+ .data = data_bits,
+ .event = event,
};
}
struct sr_output_format output_text_hex = {
- "hex",
- "Hexadecimal (takes argument, default 192)",
- SR_DF_LOGIC,
- init_hex,
- data_hex,
- event,
+ .extension = "hex",
+ .description = "Hexadecimal (takes argument, default 192)",
+ .df_type = SR_DF_LOGIC,
+ .init = init_hex,
+ .data = data_hex,
+ .event = event,
};