summaryrefslogtreecommitdiffstats
path: root/libdvdread-embedded/msvc/include
diff options
context:
space:
mode:
Diffstat (limited to 'libdvdread-embedded/msvc/include')
-rw-r--r--libdvdread-embedded/msvc/include/dlfcn.h18
-rw-r--r--libdvdread-embedded/msvc/include/inttypes.h32
-rw-r--r--libdvdread-embedded/msvc/include/os_types.h24
-rw-r--r--libdvdread-embedded/msvc/include/sys/time.h28
-rw-r--r--libdvdread-embedded/msvc/include/unistd.h69
5 files changed, 171 insertions, 0 deletions
diff --git a/libdvdread-embedded/msvc/include/dlfcn.h b/libdvdread-embedded/msvc/include/dlfcn.h
new file mode 100644
index 0000000..edd03a6
--- /dev/null
+++ b/libdvdread-embedded/msvc/include/dlfcn.h
@@ -0,0 +1,18 @@
+#ifndef __DLFCN_H__
+# define __DLFCN_H__
+
+extern void *dlopen (const char *file, int mode);
+extern int dlclose (void *handle);
+extern void *dlsym (void * handle, const char * name);
+extern char *dlerror (void);
+
+/* These don't mean anything on windows */
+#define RTLD_NEXT ((void *) -1l)
+#define RTLD_DEFAULT ((void *) 0)
+#define RTLD_LAZY -1
+#define RTLD_NOW -1
+#define RTLD_BINDING_MASK -1
+#define RTLD_NOLOAD -1
+#define RTLD_GLOBAL -1
+
+#endif /* __DLFCN_H__ */
diff --git a/libdvdread-embedded/msvc/include/inttypes.h b/libdvdread-embedded/msvc/include/inttypes.h
new file mode 100644
index 0000000..4e1cbe1
--- /dev/null
+++ b/libdvdread-embedded/msvc/include/inttypes.h
@@ -0,0 +1,32 @@
+/*
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * WIN32 PORT,
+ * by Matthew Grooms <elon@altavista.com>
+ *
+ * inttypes.h - Standard integer definitions.
+ *
+ */
+
+#ifndef _SYS_INTTYPES_H_
+#define _SYS_INTTYPES_H_
+
+#include <config.h>
+
+#endif
diff --git a/libdvdread-embedded/msvc/include/os_types.h b/libdvdread-embedded/msvc/include/os_types.h
new file mode 100644
index 0000000..eb0f24f
--- /dev/null
+++ b/libdvdread-embedded/msvc/include/os_types.h
@@ -0,0 +1,24 @@
+#ifndef __OS_TYPES_H__
+#define __OS_TYPES_H__
+/*
+ * win32 types
+ * 04 Sept 2001 - Chris Wolf create.
+ */
+
+typedef unsigned char uint_8;
+typedef unsigned short uint_16;
+typedef unsigned int uint_32;
+typedef signed char sint_32;
+typedef signed short sint_16;
+typedef signed int sint_8;
+
+#define snprintf _snprintf
+#define M_PI 3.14159265358979323846 /* pi */
+#define DLLENTRY __declspec(dllexport)
+
+ // Temporarily hardcode this location
+#define AO_PLUGIN_PATH "c:\\Program Files\\Common Files\\Xiphophorus\\ao"
+
+#define SHARED_LIB_EXT ".dll"
+
+#endif /* __OS_TYPES_H__ */
diff --git a/libdvdread-embedded/msvc/include/sys/time.h b/libdvdread-embedded/msvc/include/sys/time.h
new file mode 100644
index 0000000..f7973c1
--- /dev/null
+++ b/libdvdread-embedded/msvc/include/sys/time.h
@@ -0,0 +1,28 @@
+/*
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * WIN32 PORT,
+ * by Matthew Grooms <elon@altavista.com>
+ *
+ * sys/time.h - There is no separate sys/time.h for win32 so we simply
+ * include the standard time header as well as our xine
+ * timer functions.
+ */
+
+#include <time.h>
diff --git a/libdvdread-embedded/msvc/include/unistd.h b/libdvdread-embedded/msvc/include/unistd.h
new file mode 100644
index 0000000..620017c
--- /dev/null
+++ b/libdvdread-embedded/msvc/include/unistd.h
@@ -0,0 +1,69 @@
+/*
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ *
+ * WIN32 PORT,
+ * by Matthew Grooms <elon@altavista.com>
+ *
+ * unistd.h - This is mostly a catch all header that maps standard unix
+ * libc calls to the equivalent win32 functions.
+ *
+ */
+
+#include <windows.h>
+#include <malloc.h>
+#include <errno.h>
+#include <direct.h>
+
+#include <config.h>
+
+#ifndef _SYS_UNISTD_H_
+#define _SYS_UNISTD_H_
+
+#define inline __inline
+
+#define mkdir( A, B ) _mkdir( A )
+#define lstat stat
+
+#ifndef S_ISDIR
+#define S_ISDIR(A) ( S_IFDIR & A )
+#endif
+
+#define S_IXUSR S_IEXEC
+#define S_IXGRP S_IEXEC
+#define S_IXOTH S_IEXEC
+
+#define M_PI 3.14159265358979323846 /* pi */
+
+#define bzero( A, B ) memset( A, 0, B )
+
+#ifndef strcasecmp
+#define strcasecmp _stricmp
+#endif
+
+#ifndef strncasecmp
+#define strncasecmp _strnicmp
+#endif
+
+#define snprintf _snprintf
+#define vsnprintf _vsnprintf
+
+// FIXME : I don't remember why this is here
+#define readlink
+
+#endif