struct output_format output_binary = {
"binary",
"Raw binary",
+ DF_LOGIC,
NULL,
data,
event,
struct output_format output_gnuplot = {
"gnuplot",
"Gnuplot",
+ DF_LOGIC,
init,
data,
event,
struct output_format output_foo = {
"foo",
"The foo format",
+ DF_LOGIC,
init,
data,
event,
struct output_format output_text_bits = {
"bits",
"Text (bits)",
+ DF_LOGIC,
init_bits,
data_bits,
event,
struct output_format output_text_hex = {
"hex",
"Text (hexadecimal)",
+ DF_LOGIC,
init_hex,
data_hex,
event,
struct output_format output_vcd = {
"vcd",
"Value Change Dump (VCD)",
+ DF_LOGIC,
init,
data,
event,
DF_TRIGGER,
DF_LOGIC,
DF_PD,
- DF_PA,
};
struct datafeed_packet {
struct output_format {
char *extension;
char *description;
+ int df_type;
int (*init) (struct output *o);
int (*data) (struct output *o, char *data_in, uint64_t length_in,
char **data_out, uint64_t *length_out);