diff options
author | Max Kellermann <max@duempel.org> | 2013-01-29 17:23:58 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-29 17:23:58 +0100 |
commit | eb8922f3468fe664211911c49077a4e3442b7703 (patch) | |
tree | de04b123e392464023d50d42cd9e9464ae58ec0a /src | |
parent | 84eb95466b49453b45cdfef5bed4364cf0d3a299 (diff) | |
download | mpd-eb8922f3468fe664211911c49077a4e3442b7703.tar.gz mpd-eb8922f3468fe664211911c49077a4e3442b7703.tar.xz mpd-eb8922f3468fe664211911c49077a4e3442b7703.zip |
test/{read_conf,run_filter}: convert to C++
Diffstat (limited to 'src')
-rw-r--r-- | src/filter/ReplayGainFilterPlugin.cxx | 2 | ||||
-rw-r--r-- | src/filter_plugin.h | 8 | ||||
-rw-r--r-- | src/mixer_control.h | 8 |
3 files changed, 17 insertions, 1 deletions
diff --git a/src/filter/ReplayGainFilterPlugin.cxx b/src/filter/ReplayGainFilterPlugin.cxx index 1c2f40260..f4b1f92ee 100644 --- a/src/filter/ReplayGainFilterPlugin.cxx +++ b/src/filter/ReplayGainFilterPlugin.cxx @@ -25,11 +25,11 @@ #include "audio_format.h" #include "replay_gain_info.h" #include "replay_gain_config.h" +#include "mixer_control.h" extern "C" { #include "pcm_buffer.h" #include "pcm_volume.h" -#include "mixer_control.h" } #include <assert.h> diff --git a/src/filter_plugin.h b/src/filter_plugin.h index d45faee1f..ae14a245c 100644 --- a/src/filter_plugin.h +++ b/src/filter_plugin.h @@ -74,6 +74,10 @@ struct filter_plugin { GError **error_r); }; +#ifdef __cplusplus +extern "C" { +#endif + /** * Creates a new instance of the specified filter plugin. * @@ -147,4 +151,8 @@ filter_filter(struct filter *filter, const void *src, size_t src_size, size_t *dest_size_r, GError **error_r); +#ifdef __cplusplus +} +#endif + #endif diff --git a/src/mixer_control.h b/src/mixer_control.h index 307298e47..46219e5dd 100644 --- a/src/mixer_control.h +++ b/src/mixer_control.h @@ -33,6 +33,10 @@ struct mixer; struct mixer_plugin; struct config_param; +#ifdef __cplusplus +extern "C" { +#endif + struct mixer * mixer_new(const struct mixer_plugin *plugin, void *ao, const struct config_param *param, @@ -60,4 +64,8 @@ mixer_get_volume(struct mixer *mixer, GError **error_r); bool mixer_set_volume(struct mixer *mixer, unsigned volume, GError **error_r); +#ifdef __cplusplus +} +#endif + #endif |