2 // OS agnostic CDROM interface functions
6 // This file is basically a shell to keep the front-end clean and also pull in the
7 // appropriate back-end code depending on which target is being compiled for.
10 #include "cdintf.h" // Every OS has to implement these
12 #include <cdio/cdio.h> // Now using OS agnostic CD access routines!
18 // OS dependent implementations
20 #if defined(__GCCWIN32__)
22 #include "cdintf_win32.cpp"
24 #elif defined(__GCCUNIX__)
27 #include "cdintf_osx.cpp"
31 #include "cdintf_linux.cpp"
38 static void TestCDIO(void)
40 // See what (if anything) is installed.
41 CdIo_t * p_cdio = cdio_open(0/*NULL*/, DRIVER_DEVICE);
42 driver_id_t driver_id;
46 WriteLog("CDIO: The driver selected is %s.\n", cdio_get_driver_name(p_cdio));
47 WriteLog("CDIO: The default device for this driver is %s.\n\n", cdio_get_default_device(p_cdio));
52 WriteLog("CDIO: A suitable CD-ROM driver was not found.\n\n");
57 // *** OK, here's where we're going to attempt to put the platform agnostic CD interface ***
60 static CdIo_t * cdioPtr = NULL;
64 WriteLog("CDINTF: Init unimplemented!\n");
72 bool CDIntfReadBlock(uint32 sector, uint8 * buffer)
74 WriteLog("CDINTF: ReadBlock unimplemented!\n");
78 uint32 CDIntfGetNumSessions(void)
80 // Still need relevant code here... !!! FIX !!!
84 void CDIntfSelectDrive(uint32 driveNum)
86 WriteLog("CDINTF: SelectDrive unimplemented!\n");
89 uint32 CDIntfGetCurrentDrive(void)
91 WriteLog("CDINTF: GetCurrentDrive unimplemented!\n");
95 const uint8 * CDIntfGetDriveName(uint32)
97 WriteLog("CDINTF: GetDriveName unimplemented!\n");
101 uint8 CDIntfGetSessionInfo(uint32 session, uint32 offset)
103 WriteLog("CDINTF: GetSessionInfo unimplemented!\n");
107 uint8 CDIntfGetTrackInfo(uint32 track, uint32 offset)
109 WriteLog("CDINTF: GetTrackInfo unimplemented!\n");