summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tools/vdrdiscovery.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/tools/vdrdiscovery.h b/tools/vdrdiscovery.h
index 07694f62..51146268 100644
--- a/tools/vdrdiscovery.h
+++ b/tools/vdrdiscovery.h
@@ -7,7 +7,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: vdrdiscovery.h,v 1.1 2007-01-01 05:04:52 phintuka Exp $
+ * $Id: vdrdiscovery.h,v 1.2 2007-01-01 06:17:11 phintuka Exp $
*
*/
@@ -16,14 +16,22 @@
#define DISCOVERY_MSG_MAXSIZE 1024
-#ifdef VDRVERSION
-int udp_discovery_init(/*int port*/);
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifdef FE_STANDALONE
+int udp_discovery_find_server(int *port, char *address);
+#else
+int udp_discovery_init(void);
int udp_discovery_broadcast(int fd_discovery, int server_port);
int udp_discovery_recv(int fd_discovery, char *buf, int timeout,
struct sockaddr_in *source);
int udp_discovery_is_valid_search(const char *buf);
-#else
-int udp_discovery_find_server(int *port, char *address);
+#endif
+
+#ifdef __cplusplus
+};
#endif