summaryrefslogtreecommitdiff
path: root/src/libpcp/src/avahi.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/libpcp/src/avahi.h')
-rw-r--r--src/libpcp/src/avahi.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/libpcp/src/avahi.h b/src/libpcp/src/avahi.h
new file mode 100644
index 0000000..bc375ff
--- /dev/null
+++ b/src/libpcp/src/avahi.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2013-2014 Red Hat.
+ *
+ * This program is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU General Public License as published by the
+ * Free Software Foundation; either version 2 of the License, or (at your
+ * option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+ * for more details.
+ */
+#ifndef AVAHI_H
+#define AVAHI_H
+
+#ifdef HAVE_AVAHI
+void __pmServerAvahiAdvertisePresence(__pmServerPresence *) _PCP_HIDDEN;
+void __pmServerAvahiUnadvertisePresence(__pmServerPresence *) _PCP_HIDDEN;
+int __pmAvahiDiscoverServices(const char *,
+ const char *,
+ const __pmServiceDiscoveryOptions *,
+ int,
+ char ***) _PCP_HIDDEN;
+#else
+#define __pmServerAvahiAdvertisePresence(p) do { } while (0)
+#define __pmServerAvahiUnadvertisePresence(p) do { } while (0)
+#define __pmAvahiDiscoverServices(s, m, o, n, u) 0
+#endif
+
+#endif /* AVAHI_H */