From 588337d85b8937d0502a7118f7967f8a6deb6af3 Mon Sep 17 00:00:00 2001 From: phintuka Date: Mon, 1 Jan 2007 06:17:11 +0000 Subject: Use different defines to detect build type --- tools/vdrdiscovery.h | 18 +++++++++++++----- 1 file 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 -- cgit v1.2.3