--- a/src/gdrom/gddriver.h Mon Jul 14 07:44:42 2008 +0000 +++ b/src/gdrom/gddriver.h Wed Aug 27 06:23:19 2008 +0000 @@ -203,6 +203,10 @@ */ void gdrom_image_destroy_no_close( gdrom_disc_t d ); +/** + * Determine the track number containing the specified sector by lba. + */ +int gdrom_image_get_track_by_lba( gdrom_image_t image, uint32_t lba ); /** * Given a base filename (eg for a .cue file), generate the path for the given @@ -218,6 +222,13 @@ /************* Host-native support functions ***************/ /** + * Given a raw (2352 byte) data sector, extract the requested components into the + * target buffer. length will also be updated with the length of the copied + * data + */ +void gdrom_extract_raw_data_sector( char *sector_data, int mode, unsigned char *buf, uint32_t *length ); + +/** * Parse a format 2 TOC, and write the results into the supplied disc structure. */ void mmc_parse_toc2( gdrom_image_t disc, unsigned char *buf );