shithub: libdvdcss

Download patch

ref: 8331d8da6392b993f7b0ffa223d8d7a3ccd7f0ae
parent: 7381c95c10c30cb1086735abd1eca758c2f11209
author: Diego Biurrun <[email protected]>
date: Mon Mar 11 14:16:35 EDT 2013

Drop deprecated and useless dvdcss_interface_2 variable from the API

--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@
   * Dropped deprecated, undocumented API:
     - the function dvdcss_title()
     - the type dvdcss_handle
+    - the variable dvdcss_interface_2
   * Drop support for Windows 98 and Windows NT 4.0.
     Windows 98 SE with IE 5.0 and Windows NT 4.0 SP4 with IE 5.0 are required.
 
--- a/src/dvdcss/dvdcss.h
+++ b/src/dvdcss/dvdcss.h
@@ -65,11 +65,6 @@
 #define LIBDVDCSS_EXPORT extern
 #endif
 
-/*
- * Our version number. The variable name contains the interface version.
- */
-LIBDVDCSS_EXPORT char *        dvdcss_interface_2;
-
 
 /*
  * Exported prototypes.
--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -137,18 +137,6 @@
 #endif
 
 /**
- * \brief Symbol for version checks.
- *
- * The name of this symbol contains the library major number, which makes it
- * easy to check which \e libdvdcss development headers are installed on the
- * system with tools such as autoconf.
- *
- * The variable itself contains the exact version number of the library,
- * which can be useful for specific feature needs.
- */
-char * dvdcss_interface_2 = VERSION;
-
-/**
  * \brief Open a DVD device or directory and return a dvdcss instance.
  *
  * \param psz_target a string containing the target name, for instance
--- a/test/csstest.c
+++ b/test/csstest.c
@@ -23,9 +23,6 @@
     unsigned int   i_sector;
     int            i_ret;
 
-    /* Print version number */
-    printf( "cool, I found libdvdcss version %s\n", dvdcss_interface_2 );
-
     /* Check for 2 arguments */
     if( i_argc != 3 )
     {
--- a/test/dvd_region.c
+++ b/test/dvd_region.c
@@ -276,9 +276,6 @@
     return -1;
   }
 
-  /* Print version number */
-  printf( "found libdvdcss version %s\n", dvdcss_interface_2 );
-
   /* TODO: use dvdcss_open instead of open */
 
   if( (fd = open(device_name, O_RDONLY | O_NONBLOCK)) < 0 ) {