From 6f0268ca3096c819679daf521b7ece6af51028be Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Thu, 4 Jul 2019 01:06:47 -0400 Subject: [PATCH] cdrom: need const to call these from outside of internal functions --- libretro-common/cdrom/cdrom.c | 8 ++++---- libretro-common/include/cdrom/cdrom.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libretro-common/cdrom/cdrom.c b/libretro-common/cdrom/cdrom.c index 26700c9f14..46059e60d9 100644 --- a/libretro-common/cdrom/cdrom.c +++ b/libretro-common/cdrom/cdrom.c @@ -1037,7 +1037,7 @@ int cdrom_read(libretro_vfs_implementation_file *stream, unsigned char min, unsi return 0; } -int cdrom_stop(libretro_vfs_implementation_file *stream) +int cdrom_stop(const libretro_vfs_implementation_file *stream) { /* MMC Command: START STOP UNIT */ unsigned char cdb[] = {0x1B, 0, 0, 0, 0x0, 0}; @@ -1054,7 +1054,7 @@ int cdrom_stop(libretro_vfs_implementation_file *stream) return 0; } -int cdrom_unlock(libretro_vfs_implementation_file *stream) +int cdrom_unlock(const libretro_vfs_implementation_file *stream) { /* MMC Command: PREVENT ALLOW MEDIUM REMOVAL */ unsigned char cdb[] = {0x1E, 0, 0, 0, 0x2, 0}; @@ -1083,7 +1083,7 @@ int cdrom_unlock(libretro_vfs_implementation_file *stream) return 0; } -int cdrom_open_tray(libretro_vfs_implementation_file *stream) +int cdrom_open_tray(const libretro_vfs_implementation_file *stream) { /* MMC Command: START STOP UNIT */ unsigned char cdb[] = {0x1B, 0, 0, 0, 0x2, 0}; @@ -1105,7 +1105,7 @@ int cdrom_open_tray(libretro_vfs_implementation_file *stream) return 0; } -int cdrom_close_tray(libretro_vfs_implementation_file *stream) +int cdrom_close_tray(const libretro_vfs_implementation_file *stream) { /* MMC Command: START STOP UNIT */ unsigned char cdb[] = {0x1B, 0, 0, 0, 0x3, 0}; diff --git a/libretro-common/include/cdrom/cdrom.h b/libretro-common/include/cdrom/cdrom.h index 53d2a1eb4c..cbb39ec0ff 100644 --- a/libretro-common/include/cdrom/cdrom.h +++ b/libretro-common/include/cdrom/cdrom.h @@ -81,13 +81,13 @@ int cdrom_read(libretro_vfs_implementation_file *stream, unsigned char min, unsi int cdrom_set_read_speed(libretro_vfs_implementation_file *stream, unsigned speed); -int cdrom_stop(libretro_vfs_implementation_file *stream); +int cdrom_stop(const libretro_vfs_implementation_file *stream); -int cdrom_unlock(libretro_vfs_implementation_file *stream); +int cdrom_unlock(const libretro_vfs_implementation_file *stream); -int cdrom_open_tray(libretro_vfs_implementation_file *stream); +int cdrom_open_tray(const libretro_vfs_implementation_file *stream); -int cdrom_close_tray(libretro_vfs_implementation_file *stream); +int cdrom_close_tray(const libretro_vfs_implementation_file *stream); /* must be freed by the caller */ struct string_list* cdrom_get_available_drives(void);