needed for external work (nw)

This commit is contained in:
MetalliC 2017-08-26 05:11:08 +03:00
parent 8ed10fd19c
commit 1d4f72b5fe
2 changed files with 11 additions and 0 deletions

View File

@ -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
***************************************************************************/

View File

@ -117,6 +117,7 @@ uint32_t cdrom_read_subcode(cdrom_file *file, uint32_t lbasector, void *buffer,
uint32_t cdrom_get_track(cdrom_file *file, uint32_t frame);
uint32_t cdrom_get_track_start(cdrom_file *file, uint32_t track);
uint32_t cdrom_get_track_start_phys(cdrom_file *file, uint32_t track);
chd_file *cdrom_get_chd(cdrom_file *file);
/* TOC utilities */
int cdrom_get_last_track(cdrom_file *file);