changeset 20427:cca07f6ff5b6

Sync with upstream r201.
author diego
date Wed, 25 Oct 2006 13:08:08 +0000
parents 192efe61abaa
children 19059fe62daa
files libmpdvdkit2/dvdcss/dvdcss.h
diffstat 1 files changed, 15 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdvdkit2/dvdcss/dvdcss.h	Wed Oct 25 12:08:28 2006 +0000
+++ b/libmpdvdkit2/dvdcss/dvdcss.h	Wed Oct 25 13:08:08 2006 +0000
@@ -56,29 +56,37 @@
 #define DVDCSS_SEEK_KEY        (1 << 1)
 
 
+#if defined(LIBDVDCSS_EXPORTS)
+#define LIBDVDCSS_EXPORT __declspec(dllexport) extern
+#elif defined(LIBDVDCSS_IMPORTS)
+#define LIBDVDCSS_EXPORT __declspec(dllimport) extern
+#else
+#define LIBDVDCSS_EXPORT extern
+#endif
+
 /*
  * Our version number. The variable name contains the interface version.
  */
-extern char *        dvdcss_interface_2;
+LIBDVDCSS_EXPORT char *        dvdcss_interface_2;
 
 
 /*
  * Exported prototypes.
  */
-extern dvdcss_t dvdcss_open  ( char *psz_target );
-extern int      dvdcss_close ( dvdcss_t );
-extern int      dvdcss_seek  ( dvdcss_t,
+LIBDVDCSS_EXPORT dvdcss_t dvdcss_open  ( char *psz_target );
+LIBDVDCSS_EXPORT int      dvdcss_close ( dvdcss_t );
+LIBDVDCSS_EXPORT int      dvdcss_seek  ( dvdcss_t,
                                int i_blocks,
                                int i_flags );
-extern int      dvdcss_read  ( dvdcss_t,
+LIBDVDCSS_EXPORT int      dvdcss_read  ( dvdcss_t,
                                void *p_buffer,
                                int i_blocks,
                                int i_flags );
-extern int      dvdcss_readv ( dvdcss_t,
+LIBDVDCSS_EXPORT int      dvdcss_readv ( dvdcss_t,
                                void *p_iovec,
                                int i_blocks,
                                int i_flags );
-extern char *   dvdcss_error ( dvdcss_t );
+LIBDVDCSS_EXPORT char *   dvdcss_error ( dvdcss_t );
 
 
 /*