[libdvdcss-devel] Drop deprecated and useless dvdcss_interface_2 variable from the API

Diego Biurrun git at videolan.org
Sun Mar 17 13:49:00 CET 2013


libdvdcss | branch: master | Diego Biurrun <diego at biurrun.de> | Mon Mar 11 18:16:35 2013 +0100| [8331d8da6392b993f7b0ffa223d8d7a3ccd7f0ae] | committer: Diego Biurrun

Drop deprecated and useless dvdcss_interface_2 variable from the API

> http://git.videolan.org/gitweb.cgi/libdvdcss.git/?a=commit;h=8331d8da6392b993f7b0ffa223d8d7a3ccd7f0ae
---

 NEWS                |    1 +
 src/dvdcss/dvdcss.h |    5 -----
 src/libdvdcss.c     |   12 ------------
 test/csstest.c      |    3 ---
 test/dvd_region.c   |    3 ---
 5 files changed, 1 insertion(+), 23 deletions(-)

diff --git a/NEWS b/NEWS
index 9290ad6..94d7edb 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,7 @@ Changes between 1.2.13 and 1.3.0:
   * 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.
 
diff --git a/src/dvdcss/dvdcss.h b/src/dvdcss/dvdcss.h
index f327aa2..7c9c733 100644
--- a/src/dvdcss/dvdcss.h
+++ b/src/dvdcss/dvdcss.h
@@ -65,11 +65,6 @@ typedef struct dvdcss_s* dvdcss_t;
 #define LIBDVDCSS_EXPORT extern
 #endif
 
-/*
- * Our version number. The variable name contains the interface version.
- */
-LIBDVDCSS_EXPORT char *        dvdcss_interface_2;
-
 
 /*
  * Exported prototypes.
diff --git a/src/libdvdcss.c b/src/libdvdcss.c
index a5014b4..2a1a5bb 100644
--- 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
diff --git a/test/csstest.c b/test/csstest.c
index 70f3b4d..16300a0 100644
--- a/test/csstest.c
+++ b/test/csstest.c
@@ -23,9 +23,6 @@ int main( int i_argc, char *ppsz_argv[] )
     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 )
     {
diff --git a/test/dvd_region.c b/test/dvd_region.c
index 8a4730e..47abea8 100644
--- a/test/dvd_region.c
+++ b/test/dvd_region.c
@@ -276,9 +276,6 @@ int main(int argc, char *argv[])
     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 ) {



More information about the libdvdcss-devel mailing list