configure.ac: Move OggVorbis Encoder to Encoder Plugins.
[mpd-mk.git] / src / filter_config.h
blob9ed4d204bd222f7d083b038772c0cc8b11f41484
1 /*
2 * Copyright (C) 2003-2010 The Music Player Daemon Project
3 * http://www.musicpd.org
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20 /** \file
22 * Utility functions for filter configuration
25 #ifndef MPD_FILTER_CONFIG_H
26 #define MPD_FILTER_CONFIG_H
28 #include "conf.h"
29 #include "filter/chain_filter_plugin.h"
30 #include "filter_plugin.h"
31 #include "filter_internal.h"
32 #include "filter_registry.h"
35 /**
36 * Builds a filter chain from a configuration string on the form
37 * "name1, name2, name3, ..." by looking up each name among the
38 * configured filter sections.
39 * @param chain the chain to append filters on
40 * @param spec the filter chain specification
41 * @param error_r space to return an error description
42 * @return the number of filters which were successfully added
44 unsigned int
45 filter_chain_parse(struct filter *chain, const char *spec, GError **error_r);
47 #endif