40795023d7531ac58081ed1198cea528d4489d57
[paraslash.git] / flacdec_filter.c
1 /*
2 * Copyright (C) 2011 Andre Noll <maan@systemlinux.org>
3 *
4 * Licensed under the GPL v2. For licencing details see COPYING.
5 */
6
7 /** \file flacdec_filter.c The flac decoder. */
8
9 #include <regex.h>
10 #include <stdbool.h>
11
12 #include "para.h"
13 #include "list.h"
14 #include "sched.h"
15 #include "ggo.h"
16 #include "buffer_tree.h"
17 #include "filter.h"
18 #include "error.h"
19 #include "string.h"
20 static int flacdec_execute(struct btr_node *btrn, const char *cmd,
21 char **result)
22 {
23 return 0;
24 }
25
26 static void flacdec_post_select(__a_unused struct sched *s, struct task *t)
27 {
28
29 }
30
31 static void flacdec_close(struct filter_node *fn)
32 {
33
34 }
35
36 static void flacdec_open(struct filter_node *fn)
37 {
38
39 }
40 /**
41 * The init function of the flacdec filter.
42 *
43 * \param f Pointer to the filter struct to initialize.
44 *
45 * \sa filter::init.
46 */
47 void flacdec_filter_init(struct filter *f)
48 {
49 f->open = flacdec_open;
50 f->close = flacdec_close;
51 f->pre_select = generic_filter_pre_select;
52 f->post_select = flacdec_post_select;
53 f->execute = flacdec_execute;
54 }