shithub: libdvdcss

Download patch

ref: 0833399b2fa6595bd9f64e8b787fd7b5d63bbf06
parent: 077025bf61d99c66bab6cea4e89ed85c749e126b
author: Diego Biurrun <diego@biurrun.de>
date: Mon Aug 2 11:59:13 EDT 2010

Make libdvdcss headers self-sufficient

This patch adds required #includes to libdvdcss headers so that they can be used
without other headers as prerequisites.
This leaves out limits.h and stdint.h, for the moment, since they aren't on all systems.





--- a/src/css.h
+++ b/src/css.h
@@ -30,6 +30,8 @@
 #ifndef DVDCSS_CSS_H
 #define DVDCSS_CSS_H
 
+#include "dvdcss/dvdcss.h"
+
 #define KEY_SIZE 5
 
 typedef uint8_t dvd_key_t[KEY_SIZE];
--- a/src/device.h
+++ b/src/device.h
@@ -36,6 +36,8 @@
 #   include <sys/uio.h>                                      /* struct iovec */
 #endif
 
+#include "dvdcss/dvdcss.h"
+
 #if defined( WIN32 ) && !defined( SYS_CYGWIN )
 struct iovec
 {
--- a/src/libdvdcss.h
+++ b/src/libdvdcss.h
@@ -25,6 +25,9 @@
 #ifndef DVDCSS_LIBDVDCSS_H
 #define DVDCSS_LIBDVDCSS_H
 
+#include "dvdcss/dvdcss.h"
+#include "css.h"
+
 struct iovec;
 
 /*****************************************************************************