X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fcdintf.cpp;h=45b6be2eac3aecfa510dfa2f05c1e10789be3653;hb=9d399cea8466c7e4a6a1336dafdc830c4680d977;hp=066f2cc2588e9cb7772d464e50b86e5721fc1f22;hpb=ff3fa0b1ecf246a104ff10fa6c3dc225cccce82f;p=virtualjaguar diff --git a/src/cdintf.cpp b/src/cdintf.cpp index 066f2cc..45b6be2 100644 --- a/src/cdintf.cpp +++ b/src/cdintf.cpp @@ -1,7 +1,16 @@ // // OS agnostic CDROM interface functions // -// by James L. Hammons +// by James Hammons +// (C) 2010 Underground Software +// +// JLH = James Hammons +// +// Who When What +// --- ---------- ------------------------------------------------------------- +// JLH 01/16/2010 Created this log ;-) +// + // // This now uses the supposedly cross-platform libcdio to do the necessary // low-level CD twiddling we need that libsdl can't do currently. Jury is @@ -79,7 +88,7 @@ void CDIntfDone(void) #endif } -bool CDIntfReadBlock(uint32 sector, uint8 * buffer) +bool CDIntfReadBlock(uint32_t sector, uint8_t * buffer) { #warning "!!! FIX !!! CDIntfReadBlock not implemented!" // !!! FIX !!! @@ -87,7 +96,7 @@ bool CDIntfReadBlock(uint32 sector, uint8 * buffer) return false; } -uint32 CDIntfGetNumSessions(void) +uint32_t CDIntfGetNumSessions(void) { #warning "!!! FIX !!! CDIntfGetNumSessions not implemented!" // !!! FIX !!! @@ -95,14 +104,14 @@ uint32 CDIntfGetNumSessions(void) return 2; } -void CDIntfSelectDrive(uint32 driveNum) +void CDIntfSelectDrive(uint32_t driveNum) { #warning "!!! FIX !!! CDIntfSelectDrive not implemented!" // !!! FIX !!! WriteLog("CDINTF: SelectDrive unimplemented!\n"); } -uint32 CDIntfGetCurrentDrive(void) +uint32_t CDIntfGetCurrentDrive(void) { #warning "!!! FIX !!! CDIntfGetCurrentDrive not implemented!" // !!! FIX !!! @@ -110,22 +119,22 @@ uint32 CDIntfGetCurrentDrive(void) return 0; } -const uint8 * CDIntfGetDriveName(uint32 driveNum) +const uint8_t * CDIntfGetDriveName(uint32_t driveNum) { #warning "!!! FIX !!! CDIntfGetDriveName driveNum is currently ignored!" // driveNum is currently ignored... !!! FIX !!! #ifdef HAVE_LIB_CDIO - uint8 * driveName = (uint8 *)cdio_get_default_device(cdioPtr); + uint8_t * driveName = (uint8_t *)cdio_get_default_device(cdioPtr); WriteLog("CDINTF: The drive name for the current driver is %s.\n", driveName); return driveName; #else - return (uint8 *)"NONE"; + return (uint8_t *)"NONE"; #endif } -uint8 CDIntfGetSessionInfo(uint32 session, uint32 offset) +uint8_t CDIntfGetSessionInfo(uint32_t session, uint32_t offset) { #warning "!!! FIX !!! CDIntfGetSessionInfo not implemented!" // !!! FIX !!! @@ -133,7 +142,7 @@ uint8 CDIntfGetSessionInfo(uint32 session, uint32 offset) return 0xFF; } -uint8 CDIntfGetTrackInfo(uint32 track, uint32 offset) +uint8_t CDIntfGetTrackInfo(uint32_t track, uint32_t offset) { #warning "!!! FIX !!! CDIntfTrackInfo not implemented!" // !!! FIX !!!