aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-21 10:52:19 +0100
committerMax Kellermann <max@duempel.org>2013-01-21 10:52:19 +0100
commite01615fd1e1f6ad253940ad0cc5440eb0f399150 (patch)
treeee8570d137b534365cbbbb8611e9ceeaca0b694c /src
parentc1daa857a5ed282e682b8f00dc2f8f7dd10739f1 (diff)
input_internal.h: add extern "C"
Diffstat (limited to 'src')
-rw-r--r--src/input/CurlInputPlugin.cxx4
-rw-r--r--src/input/SoupInputPlugin.cxx4
-rw-r--r--src/input_internal.h8
3 files changed, 8 insertions, 8 deletions
diff --git a/src/input/CurlInputPlugin.cxx b/src/input/CurlInputPlugin.cxx
index 29d8266c..cc9987a1 100644
--- a/src/input/CurlInputPlugin.cxx
+++ b/src/input/CurlInputPlugin.cxx
@@ -24,11 +24,7 @@
#include "tag.h"
#include "IcyMetaDataParser.hxx"
#include "event/MultiSocketMonitor.hxx"
-
-extern "C" {
#include "input_internal.h"
-}
-
#include "event/Loop.hxx"
#include "IOThread.hxx"
#include "glib_compat.h"
diff --git a/src/input/SoupInputPlugin.cxx b/src/input/SoupInputPlugin.cxx
index 5a60fa72..fb446136 100644
--- a/src/input/SoupInputPlugin.cxx
+++ b/src/input/SoupInputPlugin.cxx
@@ -20,11 +20,7 @@
#include "config.h"
#include "SoupInputPlugin.hxx"
#include "input_plugin.h"
-
-extern "C" {
#include "input_internal.h"
-}
-
#include "IOThread.hxx"
#include "event/Loop.hxx"
#include "conf.h"
diff --git a/src/input_internal.h b/src/input_internal.h
index d95142e4..688afaa6 100644
--- a/src/input_internal.h
+++ b/src/input_internal.h
@@ -27,6 +27,10 @@
struct input_stream;
struct input_plugin;
+#ifdef __cplusplus
+extern "C" {
+#endif
+
void
input_stream_init(struct input_stream *is, const struct input_plugin *plugin,
const char *uri, GMutex *mutex, GCond *cond);
@@ -40,4 +44,8 @@ input_stream_signal_client(struct input_stream *is);
void
input_stream_set_ready(struct input_stream *is);
+#ifdef __cplusplus
+}
+#endif
+
#endif