aboutsummaryrefslogtreecommitdiffstats
path: root/src/zeroconf.h
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-01-03 10:03:28 +0000
committerEric Wong <normalperson@yhbt.net>2008-01-03 10:03:28 +0000
commita9b581f6c551e783030a8ce54008a772325f71b6 (patch)
tree80d2d1fa10fee762e5bbbec05232825142ac8cb9 /src/zeroconf.h
parent776ccc89ad20f4532a4f28d98be775c0e1ba66aa (diff)
downloadmpd-a9b581f6c551e783030a8ce54008a772325f71b6.tar.gz
mpd-a9b581f6c551e783030a8ce54008a772325f71b6.tar.xz
mpd-a9b581f6c551e783030a8ce54008a772325f71b6.zip
zeroconf: reformat (with mpd-indent.sh + manual tweaks)
Also, lower the impact of compiling this w/o zeroconf by making the init/teardown functions static no-ops. Eventually, we should separate the Bonjour and Avahi code into separate files and have callbacks registered for each one, avoiding the #ifdef mess we have now... git-svn-id: https://svn.musicpd.org/mpd/trunk@7132 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/zeroconf.h')
-rw-r--r--src/zeroconf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/zeroconf.h b/src/zeroconf.h
index ef7167d53..56141655f 100644
--- a/src/zeroconf.h
+++ b/src/zeroconf.h
@@ -21,7 +21,16 @@
#include "../config.h"
+#ifdef HAVE_ZEROCONF
+
void initZeroconf(void);
void finishZeroconf(void);
+#else /* ! HAVE_ZEROCONF */
+
+static void initZeroconf(void) { }
+static void finishZeroconf(void) { }
+
+#endif /* ! HAVE_ZEROCONF */
+
#endif