test/{read_conf,run_filter}: convert to C++

This commit is contained in:
Max Kellermann
2013-01-29 17:23:58 +01:00
parent 84eb95466b
commit eb8922f346
6 changed files with 25 additions and 5 deletions

View File

@@ -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>

View File

@@ -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

View File

@@ -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