X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Foutput%2Foutput.c;h=1ddbd61ef683fb6d21f111d3393d78f6f1802324;hb=3250d8c7e05f2d6a3ffbdf2499af8a13fa99fe39;hp=9a6d6679f3634ac0ea29166b38c983ecb397d216;hpb=879dd50fb6d5f810d3c5635c3264b2c08ad22a70;p=libsigrok.git diff --git a/src/output/output.c b/src/output/output.c index 9a6d6679..1ddbd61e 100644 --- a/src/output/output.c +++ b/src/output/output.c @@ -1,7 +1,7 @@ /* * This file is part of the libsigrok project. * - * Copyright (C) 2010-2012 Bert Vermeulen + * Copyright (C) 2014 Bert Vermeulen * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -60,6 +60,7 @@ extern SR_PRIV struct sr_output_module output_gnuplot; extern SR_PRIV struct sr_output_module output_chronovu_la8; extern SR_PRIV struct sr_output_module output_csv; extern SR_PRIV struct sr_output_module output_analog; +extern SR_PRIV struct sr_output_module output_srzip; extern SR_PRIV struct sr_output_module output_wav; /* @endcond */ @@ -74,6 +75,7 @@ static const struct sr_output_module *output_module_list[] = { &output_vcd, &output_chronovu_la8, &output_analog, + &output_srzip, &output_wav, NULL, }; @@ -170,7 +172,7 @@ SR_API const struct sr_option **sr_output_options_get(const struct sr_output_mod mod_opts = o->options(); - for (size = 1; mod_opts[size].id; size++) + for (size = 0; mod_opts[size].id; size++) ; opts = g_malloc((size + 1) * sizeof(struct sr_option *));