aboutsummaryrefslogtreecommitdiff
path: root/src/mixer_control.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mixer_control.h')
-rw-r--r--src/mixer_control.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mixer_control.h b/src/mixer_control.h
index 6c3468ac..46219e5d 100644
--- a/src/mixer_control.h
+++ b/src/mixer_control.h
@@ -25,7 +25,7 @@
#ifndef MPD_MIXER_CONTROL_H
#define MPD_MIXER_CONTROL_H
-#include <glib.h>
+#include "gerror.h"
#include <stdbool.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