Discussion:
[libdvdcss-devel] [PATCH] Drop deprecated and useless dvdcss_interface_2 variable from the API
Diego Biurrun
2013-03-13 10:54:21 UTC
Permalink
---
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 ) {
--
1.7.9.5
Jean-Baptiste Kempf
2013-03-17 06:52:05 UTC
Permalink
Post by Diego Biurrun
---
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(-)
Diego, opinion?

Best regards,
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
Diego Elio Pettenò
2013-03-17 11:50:07 UTC
Permalink
Post by Jean-Baptiste Kempf
Diego, opinion?
I guess you mean me?

Yes please go for it, but before 1.3.0 let me take a moment to check if
there are other APIs that are exported and not declared..
--
Diego Elio Pettenò — Flameeyes
***@flameeyes.eu — http://blog.flameeyes.eu/
Jean-Baptiste Kempf
2013-03-17 13:48:16 UTC
Permalink
Post by Diego Elio Pettenò
Post by Jean-Baptiste Kempf
Diego, opinion?
I guess you mean me?
Yes.
I hope that DonDiego are not schyzophrenic :)
--
Jean-Baptiste Kempf
http://www.jbkempf.com/ - +33 672 704 734
Sent from my Electronic Device
Diego Biurrun
2013-03-17 12:49:00 UTC
Permalink
libdvdcss | branch: master | Diego Biurrun <***@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 ) {
Loading...