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