[libdvdnav-devel] More const on DVDReadBlocks* parameters :)

Jean-Baptiste Kempf git at videolan.org
Wed Apr 9 15:43:31 CEST 2014


libdvdread | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Apr  9 15:41:39 2014 +0200| [595b47f662a99bd8bb21536f2ee55aa1873d9f2e] | committer: Jean-Baptiste Kempf

More const on DVDReadBlocks* parameters :)

> http://git.videolan.org/gitweb.cgi/libdvdread.git/?a=commit;h=595b47f662a99bd8bb21536f2ee55aa1873d9f2e
---

 src/dvd_reader.c       |    8 ++++----
 src/dvdread_internal.h |    2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/dvd_reader.c b/src/dvd_reader.c
index 07f98be..8250ccb 100644
--- a/src/dvd_reader.c
+++ b/src/dvd_reader.c
@@ -119,7 +119,7 @@ struct dvd_file_s {
   ssize_t filesize;
 };
 
-int InternalUDFReadBlocksRaw( dvd_reader_t *device, uint32_t lb_number,
+int InternalUDFReadBlocksRaw( const dvd_reader_t *device, uint32_t lb_number,
                       size_t block_count, unsigned char *data,
                       int encrypted );
 
@@ -1126,7 +1126,7 @@ int DVDFileStat( dvd_reader_t *dvd, int titlenum,
 }
 
 /* Internal, but used from dvd_udf.c */
-int InternalUDFReadBlocksRaw( dvd_reader_t *device, uint32_t lb_number,
+int InternalUDFReadBlocksRaw( const dvd_reader_t *device, uint32_t lb_number,
                       size_t block_count, unsigned char *data,
                       int encrypted )
 {
@@ -1154,7 +1154,7 @@ int InternalUDFReadBlocksRaw( dvd_reader_t *device, uint32_t lb_number,
  * into the buffer located at 'data' and if 'encrypted' is set
  * descramble the data if it's encrypted.  Returning either an
  * negative error or the number of blocks read. */
-static int DVDReadBlocksUDF( dvd_file_t *dvd_file, uint32_t offset,
+static int DVDReadBlocksUDF( const dvd_file_t *dvd_file, uint32_t offset,
                              size_t block_count, unsigned char *data,
                              int encrypted )
 {
@@ -1168,7 +1168,7 @@ static int DVDReadBlocksUDF( dvd_file_t *dvd_file, uint32_t offset,
  * into the buffer located at 'data' and if 'encrypted' is set
  * descramble the data if it's encrypted.  Returning either an
  * negative error or the number of blocks read. */
-static int DVDReadBlocksPath( dvd_file_t *dvd_file, unsigned int offset,
+static int DVDReadBlocksPath( const dvd_file_t *dvd_file, unsigned int offset,
                               size_t block_count, unsigned char *data,
                               int encrypted )
 {
diff --git a/src/dvdread_internal.h b/src/dvdread_internal.h
index 05a82b3..7b04638 100644
--- a/src/dvdread_internal.h
+++ b/src/dvdread_internal.h
@@ -35,7 +35,7 @@
             __FILE__, __LINE__, # arg );                                \
   }
 
-int InternalUDFReadBlocksRaw(dvd_reader_t *device, uint32_t lb_number,
+int InternalUDFReadBlocksRaw(const dvd_reader_t *device, uint32_t lb_number,
                      size_t block_count, unsigned char *data, int encrypted);
 
 void *GetUDFCacheHandle(dvd_reader_t *device);



More information about the libdvdnav-devel mailing list