aboutsummaryrefslogtreecommitdiffstats
path: root/src/FilterConfig.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-30 17:22:44 +0100
committerMax Kellermann <max@duempel.org>2013-01-30 17:22:44 +0100
commitf2a3a37dff2bee8105dfc6602d35f74904389f71 (patch)
tree9ae0ee5fcf2dc40c57b0211a6d27ec6d5b70290b /src/FilterConfig.cxx
parent01dd540d7ea062d08c5c6000422dbba197511efc (diff)
downloadmpd-f2a3a37dff2bee8105dfc6602d35f74904389f71.tar.gz
mpd-f2a3a37dff2bee8105dfc6602d35f74904389f71.tar.xz
mpd-f2a3a37dff2bee8105dfc6602d35f74904389f71.zip
filter_config: convert to C++
Diffstat (limited to '')
-rw-r--r--src/FilterConfig.cxx (renamed from src/filter_config.c)11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/filter_config.c b/src/FilterConfig.cxx
index ab9bdb0c5..1b5cf96e9 100644
--- a/src/filter_config.c
+++ b/src/FilterConfig.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2011 The Music Player Daemon Project
+ * Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -17,17 +17,20 @@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
-#include "filter_config.h"
#include "config.h"
+#include "FilterConfig.hxx"
#include "conf.h"
+
+extern "C" {
#include "filter/chain_filter_plugin.h"
+}
+
#include "filter_plugin.h"
#include "filter_internal.h"
#include "filter_registry.h"
#include <string.h>
-
static GQuark
filter_quark(void)
{
@@ -83,7 +86,7 @@ filter_chain_parse(struct filter *chain, const char *spec, GError **error_r)
// Split on comma
gchar** tokens = g_strsplit_set(spec, ",", 255);
- int added_filters = 0;
+ unsigned added_filters = 0;
// Add each name to the filter chain by instantiating an actual filter
char **template_names = tokens;