X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=output%2Foutput_vcd.c;h=bd16bc2e1d26e7829893a90f76aeecea1761d60d;hb=d494a4aa9dcbd90126d86757d16fa3e0f0a419f3;hp=a61443dbf3b6c91a10b1dcdb788435e76628f80e;hpb=59df0c77e2906323290544ea62801831818ec096;p=libsigrok.git diff --git a/output/output_vcd.c b/output/output_vcd.c index a61443db..bd16bc2e 100644 --- a/output/output_vcd.c +++ b/output/output_vcd.c @@ -36,17 +36,7 @@ struct context { uint64_t samplerate; }; -const char *vcd_header = "\ -$date %s $end\n\ -$version %s $end\n%s\ -$timescale %s $end\n\ -$scope module %s $end\n\ -%s\ -$upscope $end\n\ -$enddefinitions $end\n\ -$dumpvars\n"; - -const char *vcd_header_comment = "\ +static const char *vcd_header_comment = "\ $comment\n Acquisition with %d/%d probes at %s\n$end\n"; static int init(struct sr_output *o) @@ -223,10 +213,10 @@ static int data(struct sr_output *o, const char *data_in, uint64_t length_in, } 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, };