1
0
Fork 0

Added patch 884060 from Martin Battig

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1607
This commit is contained in:
Peter Veenstra 2004-01-27 20:23:13 +00:00
parent 2b88ae212e
commit 3e170dbdcf
5 changed files with 126 additions and 1 deletions

View file

@ -5,9 +5,11 @@
#define MAX_ASPI_CDROM 5
#include <string.h>
#include "dosbox.h"
#include "mem.h"
#include "SDL.h"
#define RAW_SECTOR_SIZE 2352
#define COOKED_SECTOR_SIZE 2048
@ -181,4 +183,21 @@ private:
#endif /* WIN 32 */
#if defined (LINUX)
class CDROM_Interface_Ioctl : public CDROM_Interface_SDL
{
public:
CDROM_Interface_Ioctl (void);
bool SetDevice (char* path, int forceCD);
bool GetUPC (unsigned char& attr, char* upc);
bool ReadSectors (PhysPt buffer, bool raw, unsigned long sector, unsigned long num);
private:
char device_name[512];
};
#endif /* LINUX */
#endif /* __CDROM_INTERFACE__ */