summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Champagne <tchamp@users.sourceforge.net>2003-05-16 15:07:35 +0000
committerTim Champagne <tchamp@users.sourceforge.net>2003-05-16 15:07:35 +0000
commit19b954f40ce05dbb781810206de6ca38fa47eb76 (patch)
treeb6be89f7b8a9acc651a5f4edcb07ce7631bdcc99
parent02d7b2575a8672138dd4f088bd829f5ae7383310 (diff)
downloadxine-lib-19b954f40ce05dbb781810206de6ca38fa47eb76.tar.gz
xine-lib-19b954f40ce05dbb781810206de6ca38fa47eb76.tar.bz2
Fix win32 build and start adding additional plugin support
CVS patchset: 4867 CVS date: 2003/05/16 15:07:35
-rw-r--r--src/input/input_cdda.c9
-rw-r--r--src/input/input_dvd.c10
-rw-r--r--src/xine-engine/broadcaster.c9
-rwxr-xr-xwin32/include/sys/socket.h35
-rw-r--r--win32/libxine.dsp4
-rw-r--r--win32/source/resource.apsbin246259 -> 246259 bytes
-rw-r--r--win32/xine.dsw21
-rw-r--r--win32/xineplug_dmx_mpeg_block.dsp2
-rwxr-xr-xwin32/xineplug_inp_cdda.plg40
-rw-r--r--win32/xineplug_inp_dvd.dsp2
-rw-r--r--win32/xineplug_vo_out.def14
11 files changed, 130 insertions, 16 deletions
diff --git a/src/input/input_cdda.c b/src/input/input_cdda.c
index b5f385f94..5e2573fe3 100644
--- a/src/input/input_cdda.c
+++ b/src/input/input_cdda.c
@@ -20,7 +20,7 @@
* Compact Disc Digital Audio (CDDA) Input Plugin
* by Mike Melanson (melanson@pcisys.net)
*
- * $Id: input_cdda.c,v 1.20 2003/05/06 20:31:42 miguelfreitas Exp $
+ * $Id: input_cdda.c,v 1.21 2003/05/16 15:07:35 tchamp Exp $
*/
#ifdef HAVE_CONFIG_H
@@ -30,13 +30,18 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <sys/ioctl.h>
+
#include <sys/types.h>
#include <dirent.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
+
+#ifndef _MSC_VER
+#include <sys/ioctl.h>
#include <netdb.h>
+#endif /* _MSC_VER */
+
#include <signal.h>
#include <netinet/in.h>
#include <sys/socket.h>
diff --git a/src/input/input_dvd.c b/src/input/input_dvd.c
index 370db25a0..d23301aca 100644
--- a/src/input/input_dvd.c
+++ b/src/input/input_dvd.c
@@ -18,7 +18,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: input_dvd.c,v 1.162 2003/05/14 16:47:20 mroi Exp $
+ * $Id: input_dvd.c,v 1.163 2003/05/16 15:07:36 tchamp Exp $
*
*/
@@ -42,11 +42,12 @@
#include <stddef.h>
#ifndef _MSC_VER
-#include <dirent.h>
#include <sys/param.h>
+#endif /* _MSC_VER */
+
#include <sys/types.h>
#include <sys/stat.h>
-#endif /* _MSC_VER */
+#include <dirent.h>
#include <unistd.h>
#include <fcntl.h>
@@ -1628,6 +1629,9 @@ static void *init_class (xine_t *xine, void *data) {
/*
* $Log: input_dvd.c,v $
+ * Revision 1.163 2003/05/16 15:07:36 tchamp
+ * Fix win32 build and start adding additional plugin support
+ *
* Revision 1.162 2003/05/14 16:47:20 mroi
* just to play it safe
*
diff --git a/src/xine-engine/broadcaster.c b/src/xine-engine/broadcaster.c
index 271149539..0dc0c46e6 100644
--- a/src/xine-engine/broadcaster.c
+++ b/src/xine-engine/broadcaster.c
@@ -19,7 +19,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: broadcaster.c,v 1.1 2003/05/15 20:23:18 miguelfreitas Exp $
+ * $Id: broadcaster.c,v 1.2 2003/05/16 15:07:37 tchamp Exp $
*
* broadcaster.c - xine network broadcaster
*
@@ -38,7 +38,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
-#include <sys/ioctl.h>
+
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
@@ -50,8 +50,13 @@
#include <sys/time.h>
#include <sys/socket.h>
#include <netinet/in.h>
+
+#ifndef _MSC_VER
+#include <sys/ioctl.h>
#include <arpa/inet.h>
#include <netdb.h>
+#endif /* _MSC_VER */
+
#include <dlfcn.h>
#include <pthread.h>
diff --git a/win32/include/sys/socket.h b/win32/include/sys/socket.h
new file mode 100755
index 000000000..65f04ef64
--- /dev/null
+++ b/win32/include/sys/socket.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2000-2001 the xine project
+ *
+ * This file is part of xine, a unix video player.
+ *
+ * xine 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.
+ *
+ * xine 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ *
+ * WIN32 PORT,
+ */
+
+#include <fcntl.h> /* Not sure that this is needed */
+
+#include <io.h> /* open, close, ... */
+#include <winsock.h>
+
+#define SIGPIPE 3
+#define SIGALRM 13
+
+/* Some real good hacks! */
+#undef errno
+#define errno WSAGetLastError
+
+#define EINPROGRESS WSAEINPROGRESS
diff --git a/win32/libxine.dsp b/win32/libxine.dsp
index 944ba17cd..1ce460191 100644
--- a/win32/libxine.dsp
+++ b/win32/libxine.dsp
@@ -113,6 +113,10 @@ SOURCE="..\src\xine-engine\audio_out.c"
# End Source File
# Begin Source File
+SOURCE="..\src\xine-engine\broadcaster.c"
+# End Source File
+# Begin Source File
+
SOURCE="..\src\xine-engine\buffer.c"
# End Source File
# Begin Source File
diff --git a/win32/source/resource.aps b/win32/source/resource.aps
index 5dd152381..6bf3de73a 100644
--- a/win32/source/resource.aps
+++ b/win32/source/resource.aps
Binary files differ
diff --git a/win32/xine.dsw b/win32/xine.dsw
index 04029edcc..41c5c334c 100644
--- a/win32/xine.dsw
+++ b/win32/xine.dsw
@@ -423,6 +423,27 @@ Package=<4>
###############################################################################
+Project: "xineplug_inp_cdda"=".\xineplug_inp_cdda.dsp" - Package Owner=<4>
+
+Package=<5>
+{{{
+}}}
+
+Package=<4>
+{{{
+ Begin Project Dependency
+ Project_Dep_Name libxine
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name libxinesuppt
+ End Project Dependency
+ Begin Project Dependency
+ Project_Dep_Name libxineutils
+ End Project Dependency
+}}}
+
+###############################################################################
+
Project: "xineplug_inp_dvd"=".\xineplug_inp_dvd.dsp" - Package Owner=<4>
Package=<5>
diff --git a/win32/xineplug_dmx_mpeg_block.dsp b/win32/xineplug_dmx_mpeg_block.dsp
index 9fc694eb3..72d29f48b 100644
--- a/win32/xineplug_dmx_mpeg_block.dsp
+++ b/win32/xineplug_dmx_mpeg_block.dsp
@@ -71,7 +71,7 @@ LINK32=link.exe
# PROP Target_Dir ""
LIB32=link.exe
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "XINEPLUG_DMX_MPEG_BLOCK_EXPORTS" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "." /I ".." /I "include" /I "contrib/pthreads" /I "contrib/timer" /I "../include" /I "../src" /I "../src/xine-engine" /I "../src/xine-utils" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "XINEPLUG_DMX_MPEG_BLOCK_EXPORTS" /D "XINE_COMPILE" /D "USE_ILL_ADVISED_ESTIMATE_RATE_INITIALLY" /D "ESTIMATE_RATE_FIXED" /FR /YX /FD /GZ /c
+# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "." /I ".." /I "include" /I "contrib/pthreads" /I "contrib/timer" /I "../include" /I "../src" /I "../src/xine-engine" /I "../src/xine-utils" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "XINEPLUG_DMX_MPEG_BLOCK_EXPORTS" /D "XINE_COMPILE" /FR /YX /FD /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
diff --git a/win32/xineplug_inp_cdda.plg b/win32/xineplug_inp_cdda.plg
new file mode 100755
index 000000000..39756f044
--- /dev/null
+++ b/win32/xineplug_inp_cdda.plg
@@ -0,0 +1,40 @@
+<html>
+<body>
+<pre>
+<h1>Build Log</h1>
+<h3>
+--------------------Configuration: xineplug_inp_cdda - Win32 Debug--------------------
+</h3>
+<h3>Command Lines</h3>
+Creating temporary file "C:\DOCUME~1\TCHAMP~2.AME\LOCALS~1\Temp\RSP184.tmp" with contents
+[
+libdvdnav.lib /nologo /dll /incremental:yes /pdb:"Debug/xineplug_inp_cdda.pdb" /debug /machine:I386 /def:".\xineplug_inp.def" /out:"Debug/bin/plugins/xineplug_inp_cdda.so" /implib:"Debug/xineplug_inp_cdda.lib" /pdbtype:sept /libpath:"lib"
+".\Debug\media_helper.obj"
+".\Debug\input_cdda.obj"
+".\Debug\libxine\libxine.lib"
+".\Debug\libxinesuppt\libxinesuppt.lib"
+".\Debug\libxineutils\libxineutils.lib"
+]
+Creating command line "link.exe @C:\DOCUME~1\TCHAMP~2.AME\LOCALS~1\Temp\RSP184.tmp"
+<h3>Output Window</h3>
+Linking...
+ Creating library Debug/xineplug_inp_cdda.lib and object Debug/xineplug_inp_cdda.exp
+input_cdda.obj : error LNK2001: unresolved external symbol _gethostbyname@4
+input_cdda.obj : error LNK2001: unresolved external symbol _WSAGetLastError@0
+input_cdda.obj : error LNK2001: unresolved external symbol _connect@12
+input_cdda.obj : error LNK2001: unresolved external symbol _htons@4
+input_cdda.obj : error LNK2001: unresolved external symbol _socket@12
+input_cdda.obj : error LNK2001: unresolved external symbol _select@20
+input_cdda.obj : error LNK2001: unresolved external symbol _recv@16
+input_cdda.obj : error LNK2001: unresolved external symbol _alarm
+input_cdda.obj : error LNK2001: unresolved external symbol _send@16
+Debug/bin/plugins/xineplug_inp_cdda.so : fatal error LNK1120: 9 unresolved externals
+Error executing link.exe.
+
+
+
+<h3>Results</h3>
+xineplug_inp_cdda.so - 10 error(s), 0 warning(s)
+</pre>
+</body>
+</html>
diff --git a/win32/xineplug_inp_dvd.dsp b/win32/xineplug_inp_dvd.dsp
index 8fc681bd4..6b66b61c5 100644
--- a/win32/xineplug_inp_dvd.dsp
+++ b/win32/xineplug_inp_dvd.dsp
@@ -70,7 +70,7 @@ LINK32=link.exe
# PROP Target_Dir ""
LIB32=link.exe
# ADD BASE CPP /nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "XINEPLUG_INP_DVD_EXPORTS" /YX /FD /GZ /c
-# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "." /I ".." /I "include" /I "contrib/pthreads" /I "contrib/timer" /I "../include" /I "../src" /I "../src/xine-engine" /I "../src/xine-utils" /I "../src/input/libdvdread" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "XINEPLUG_INP_DVD_EXPORTS" /D "XINE_COMPILE" /D "HAVE_CONFIG_H" /YX /FD /GZ /c
+# ADD CPP /nologo /MDd /W3 /Gm /GX /ZI /Od /I "." /I ".." /I "include" /I "contrib/pthreads" /I "contrib/timer" /I "contrib/dirent" /I "../include" /I "../src" /I "../src/xine-engine" /I "../src/xine-utils" /I "../src/input/libdvdread" /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "XINEPLUG_INP_DVD_EXPORTS" /D "XINE_COMPILE" /D "HAVE_CONFIG_H" /YX /FD /GZ /c
# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32
# ADD BASE RSC /l 0x409 /d "_DEBUG"
diff --git a/win32/xineplug_vo_out.def b/win32/xineplug_vo_out.def
index ccdfb17ab..5b74505d6 100644
--- a/win32/xineplug_vo_out.def
+++ b/win32/xineplug_vo_out.def
@@ -1,7 +1,7 @@
-;------------------------------------------------------------
-; XINEPLUG_VO_OUT DLL DEFINITIONS FILE
-
-EXPORTS
-
-xine_plugin_info
-get_video_out_plugin_info \ No newline at end of file
+;------------------------------------------------------------
+; XINEPLUG_VO_OUT DLL DEFINITIONS FILE
+
+EXPORTS
+
+xine_plugin_info
+