X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fwav.c;h=0f56a4ad570c195f8f02b12eaeca8dae5e3c43af;hb=ab4c27cfa66f34e0b6cdecb48766904281c2df04;hp=a887fb743396e57ae83d3ecfd1707f83a0b76c89;hpb=3be42bc22f8b36599a448273c12a76d3e0f7a940;p=libsigrok.git diff --git a/src/input/wav.c b/src/input/wav.c index a887fb74..0f56a4ad 100644 --- a/src/input/wav.c +++ b/src/input/wav.c @@ -356,6 +356,16 @@ static int end(struct sr_input *in) return ret; } +static int reset(struct sr_input *in) +{ + struct context *inc = in->priv; + + inc->started = FALSE; + g_string_truncate(in->buf, 0); + + return SR_OK; +} + SR_PRIV struct sr_input_module input_wav = { .id = "wav", .name = "WAV", @@ -366,4 +376,5 @@ SR_PRIV struct sr_input_module input_wav = { .init = init, .receive = receive, .end = end, + .reset = reset, };