summaryrefslogtreecommitdiffstatshomepage
path: root/src/lib/util/cdrom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/util/cdrom.cpp')
-rw-r--r--src/lib/util/cdrom.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/util/cdrom.cpp b/src/lib/util/cdrom.cpp
index 2f21c660be9..1edd314cc61 100644
--- a/src/lib/util/cdrom.cpp
+++ b/src/lib/util/cdrom.cpp
@@ -731,6 +731,16 @@ uint32_t cdrom_get_track_start_phys(cdrom_file *file, uint32_t track)
return file->cdtoc.tracks[track].physframeofs;
}
+/*-------------------------------------------------
+ cdrom_get_chd - get a handle to a CHD
+ from a cdrom
+-------------------------------------------------*/
+
+chd_file *cdrom_get_chd(cdrom_file *file)
+{
+ return file->chd;
+}
+
/***************************************************************************
TOC UTILITIES
***************************************************************************/