X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=wav_filter.c;h=692306b541fcb28012b1a2a4d873a83d93855437;hb=08471ab23c0abdf0ddd7ff836a15bd81fbce7520;hp=88047adbb71c2becef6afe13f45ab96ddd3b1774;hpb=121015ff5cdbe6af7b84f6245ebe62fe2a52a859;p=paraslash.git diff --git a/wav_filter.c b/wav_filter.c index 88047adb..692306b5 100644 --- a/wav_filter.c +++ b/wav_filter.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 2005 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 2005 Andre Noll , see file COPYING. */ /** \file wav_filter.c A filter that inserts a wave header. */ @@ -12,7 +8,6 @@ #include "error.h" #include "list.h" #include "sched.h" -#include "ggo.h" #include "buffer_tree.h" #include "filter.h" #include "string.h" @@ -63,7 +58,7 @@ static void wav_open(struct filter_node *fn) *bof = 1; } -static void wav_pre_select(struct sched *s, void *context) +static void wav_pre_monitor(struct sched *s, void *context) { struct filter_node *fn = context; size_t iqs = btr_get_input_queue_size(fn->btrn); @@ -73,7 +68,7 @@ static void wav_pre_select(struct sched *s, void *context) sched_min_delay(s); } -static int wav_post_select(__a_unused struct sched *s, void *context) +static int wav_post_monitor(__a_unused struct sched *s, void *context) { struct filter_node *fn = context; struct btr_node *btrn = fn->btrn; @@ -120,15 +115,9 @@ err: return ret; } -/** - * The init function of the wav filter. - * - * \param f Structure to initialize. - */ -void wav_filter_init(struct filter *f) -{ - f->close = wav_close; - f->open = wav_open; - f->pre_select = wav_pre_select; - f->post_select = wav_post_select; -} +const struct filter lsg_filter_cmd_com_wav_user_data = { + .close = wav_close, + .open = wav_open, + .pre_monitor = wav_pre_monitor, + .post_monitor = wav_post_monitor, +};