* DVD compiles, but doesn't work yet.
* Fixed some typos in my previous Win32 multicast commit
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: common.h,v 1.80 2002/03/01 00:33:17 massiot Exp $
+ * $Id: common.h,v 1.81 2002/03/02 03:53:54 xav Exp $
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
# endif
#endif
+#ifndef _SSIZE_T
+typedef s64 ssize_t;
+#endif
+
+
+
/* Counter for statistics and profiling */
typedef unsigned long count_t;
size_t );
ssize_t ( * input_FDNetworkRead ) ( struct input_thread_s *, byte_t *,
size_t );
+
void * ( * input_BuffersInit )( void );
void ( * input_BuffersEnd )( struct input_buffers_s * );
struct data_buffer_s * ( * input_NewBuffer )( struct input_buffers_s *, size_t );
* but exported to plug-ins
*****************************************************************************
* Copyright (C) 1999-2002 VideoLAN
- * $Id: input_ext-plugins.h,v 1.19 2002/03/02 03:51:23 sam Exp $
+ * $Id: input_ext-plugins.h,v 1.20 2002/03/02 03:53:54 xav Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
#ifndef PLUGIN
void input_FDClose( struct input_thread_s * );
ssize_t input_FDRead( input_thread_t *, byte_t *, size_t );
-int input_FDNetworkRead( input_thread_t *, byte_t *, size_t );
+ssize_t input_FDNetworkRead( input_thread_t *, byte_t *, size_t );
void input_FDSeek( struct input_thread_s *, off_t );
#else
# define input_FDClose p_symbols->input_FDClose
* ipv4.c: IPv4 network abstraction layer
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: ipv4.c,v 1.2 2002/03/01 01:59:18 xav Exp $
+ * $Id: ipv4.c,v 1.3 2002/03/02 03:53:55 xav Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
*****************************************************************************/
#include <stdlib.h>
#include <sys/types.h>
-#include <sys/socket.h>
#include <sys/stat.h>
#include <string.h>
#include <errno.h>
/* Check if this is a multicast socket */
- if (IN_MULTICAST( ntohl(psz_bind_address) ) )
+ if (IN_MULTICAST( ntohl( inet_addr(psz_bind_addr) ) ) )
{
psz_bind_win32 = NULL ;
}
* input_ext-plugins.c: useful functions for access and demux plug-ins
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
- * $Id: input_ext-plugins.c,v 1.1 2002/03/01 00:33:18 massiot Exp $
+ * $Id: input_ext-plugins.c,v 1.2 2002/03/02 03:53:55 xav Exp $
*
* Authors: Christophe Massiot <massiot@via.ecp.fr>
*
#include <stdlib.h>
#include <sys/time.h>
#include <sys/types.h>
-#include <sys/socket.h>
#include <sys/stat.h>
#include <string.h>
#include <errno.h>
# endif
#endif
+#ifdef WIN32
+# include <winsock2.h>
+# include <ws2tcpip.h>
+#elif !defined( SYS_BEOS ) && !defined( SYS_NTO )
+# include <netdb.h> /* hostent ... */
+# include <sys/socket.h>
+# include <netinet/in.h>
+# ifdef HAVE_ARPA_INET_H
+# include <arpa/inet.h> /* inet_ntoa(), inet_aton() */
+# endif
+#endif
+
+
+
#include "stream_control.h"
#include "input_ext-intf.h"
#include "input_ext-dec.h"