Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
f2a3a37d
Commit
f2a3a37d
authored
Jan 30, 2013
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
filter_config: convert to C++
parent
01dd540d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
16 deletions
+15
-16
Makefile.am
Makefile.am
+2
-3
FilterConfig.cxx
src/FilterConfig.cxx
+7
-4
FilterConfig.hxx
src/FilterConfig.hxx
+5
-8
OutputInit.cxx
src/OutputInit.cxx
+1
-1
No files found.
Makefile.am
View file @
f2a3a37d
...
...
@@ -56,7 +56,6 @@ mpd_headers = \
src/output_internal.h
\
src/output_api.h
\
src/filter_internal.h
\
src/filter_config.h
\
src/filter_plugin.h
\
src/filter_registry.h
\
src/filter/autoconvert_filter_plugin.h
\
...
...
@@ -172,7 +171,7 @@ src_mpd_SOURCES = \
src/DatabaseSelection.cxx src/DatabaseSelection.hxx
\
src/ExcludeList.cxx src/ExcludeList.hxx
\
src/fd_util.c
\
src/
filter_config.c
\
src/
FilterConfig.cxx src/FilterConfig.hxx
\
src/filter_plugin.c
\
src/filter_registry.c
\
src/UpdateGlue.cxx src/UpdateGlue.hxx
\
...
...
@@ -1332,7 +1331,7 @@ test_run_output_SOURCES = test/run_output.cxx \
src/mixer_control.c
\
src/mixer_type.c
\
src/filter_plugin.c
\
src/
filter_config.c
\
src/
FilterConfig.cxx
\
src/AudioCompress/compress.c
\
src/ReplayGainInfo.cxx
\
src/fd_util.c
...
...
src/
filter_config.c
→
src/
FilterConfig.cxx
View file @
f2a3a37d
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
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
;
...
...
src/
filter_config.h
→
src/
FilterConfig.hxx
View file @
f2a3a37d
/*
* Copyright (C) 2003-201
1
The Music Player Daemon Project
* Copyright (C) 2003-201
3
The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
...
...
@@ -22,15 +22,12 @@
* Utility functions for filter configuration
*/
#ifndef MPD_FILTER_CONFIG_H
#define MPD_FILTER_CONFIG_H
#ifndef MPD_FILTER_CONFIG_H
XX
#define MPD_FILTER_CONFIG_H
XX
#include "conf.h"
#include "filter/chain_filter_plugin.h"
#include "filter_plugin.h"
#include "filter_internal.h"
#include "filter_registry.h"
#include "gerror.h"
struct
filter
;
/**
* Builds a filter chain from a configuration string on the form
...
...
src/OutputInit.cxx
View file @
f2a3a37d
...
...
@@ -20,6 +20,7 @@
#include "config.h"
#include "OutputControl.hxx"
#include "OutputList.hxx"
#include "FilterConfig.hxx"
extern
"C"
{
#include "output_api.h"
...
...
@@ -31,7 +32,6 @@ extern "C" {
#include "mixer/software_mixer_plugin.h"
#include "filter_plugin.h"
#include "filter_registry.h"
#include "filter_config.h"
#include "filter/chain_filter_plugin.h"
#include "filter/autoconvert_filter_plugin.h"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment