aboutsummaryrefslogtreecommitdiffstats
path: root/src/Main.hxx
diff options
context:
space:
mode:
authornanotech <nanotech@nanotechcorp.net>2014-10-10 19:20:53 +0200
committerMax Kellermann <max@duempel.org>2014-10-10 19:51:44 +0200
commitf0be48ff90503d9ffa5b295fd4454eec753950ee (patch)
treec87081479266501d3842709b8956a48649238541 /src/Main.hxx
parentbb922d577dd8dc484d25c29c7c85bf04ecd62256 (diff)
downloadmpd-f0be48ff90503d9ffa5b295fd4454eec753950ee.tar.gz
mpd-f0be48ff90503d9ffa5b295fd4454eec753950ee.tar.xz
mpd-f0be48ff90503d9ffa5b295fd4454eec753950ee.zip
Main: run the OS X native event loop
Diffstat (limited to '')
-rw-r--r--src/Main.hxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/Main.hxx b/src/Main.hxx
index 7e3fecd0b..dae7a5043 100644
--- a/src/Main.hxx
+++ b/src/Main.hxx
@@ -75,4 +75,15 @@ win32_app_stopping(void);
#endif
+#ifdef __APPLE__
+
+/* Runs the OS X native event loop in the main thread, and runs
+ * mpd_main on a new thread. This lets CoreAudio receive route
+ * change notifications (e.g. plugging or unplugging headphones).
+ * All hardware output on OS X ultimately uses CoreAudio internally.
+ */
+int osx_main(int argc, char *argv[]);
+
+#endif
+
#endif