MPD 0.20.6

- Main Page
- Namespaces
- Data Structures
- Files

- File List
- Globals

FilterPlugin.hxx
Go to the documentation of this file.
1 /*
2 * Copyright 2003-2017 The Music Player Daemon Project
3 * http://www.musicpd.org
4 *
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.
9 *
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.
14 *
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.
18 */
19
26 #ifndef MPD_FILTER_PLUGIN_HXX
27 #define MPD_FILTER_PLUGIN_HXX
28
29 struct ConfigBlock;
30 class PreparedFilter;
31
32 struct FilterPlugin {
33 const char *name;
34
38 PreparedFilter *(*init)(const ConfigBlock &block);
39 };
40
49 PreparedFilter *
50 filter_new(const FilterPlugin *plugin,
51 const ConfigBlock &block);
52
61 PreparedFilter *
62 filter_configured_new(const ConfigBlock &block);
63
64 #endif
FilterPlugin
Definition: FilterPlugin.hxx:32
filter_new
PreparedFilter * filter_new(const FilterPlugin *plugin, const ConfigBlock &block)
Creates a new instance of the specified filter plugin.
ConfigBlock
Definition: Block.hxx:57
filter_configured_new
PreparedFilter * filter_configured_new(const ConfigBlock &block)
Creates a new filter, loads configuration and the plugin name from the specified configuration sectio...
PreparedFilter
Definition: FilterInternal.hxx:74
FilterPlugin::name
const char * name
Definition: FilterPlugin.hxx:33