X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Foutput%2Fwav.c;h=fb809500c5e3b7b776c555c9fe7b9b3810cde104;hb=98654c99daf85bd2a81a9c87f517e800c31e34f2;hp=679bee68b661923a44dc586a71e2abca442a2030;hpb=441e9eae58c2b1864b1982d09c4c2dc9c8f7e4bf;p=libsigrok.git
diff --git a/src/output/wav.c b/src/output/wav.c
index 679bee68..fb809500 100644
--- a/src/output/wav.c
+++ b/src/output/wav.c
@@ -17,8 +17,9 @@
* along with this program. If not, see .
*/
+#include
#include
-#include "libsigrok.h"
+#include
#include "libsigrok-internal.h"
#define LOG_PREFIX "output/wav"
@@ -336,10 +337,10 @@ static int cleanup(struct sr_output *o)
static struct sr_option options[] = {
{ "scale", "Scale", "Scale values by factor", NULL, NULL },
- { 0 }
+ ALL_ZERO
};
-static struct sr_option *get_options(void)
+static const struct sr_option *get_options(void)
{
if (!options[0].def)
options[0].def = g_variant_ref_sink(g_variant_new_double(0.0));
@@ -350,10 +351,11 @@ static struct sr_option *get_options(void)
SR_PRIV struct sr_output_module output_wav = {
.id = "wav",
.name = "WAV",
- .desc = "WAVE file format",
+ .desc = "Microsoft WAV file format",
+ .exts = (const char*[]){"wav", NULL},
+ .flags = 0,
.options = get_options,
.init = init,
.receive = receive,
.cleanup = cleanup,
};
-