/* Copyright 2004-2005 Theo Berkau1Copyright 2005 Joost Peters2Copyright 2006 Guillaume Duhamel34This file is part of Yabause.56Yabause is free software; you can redistribute it and/or modify7it under the terms of the GNU General Public License as published by8the Free Software Foundation; either version 2 of the License, or9(at your option) any later version.1011Yabause is distributed in the hope that it will be useful,12but WITHOUT ANY WARRANTY; without even the implied warranty of13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the14GNU General Public License for more details.1516You should have received a copy of the GNU General Public License17along with Yabause; if not, write to the Free Software18Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA19*/2021#ifndef CDBASE_H22#define CDBASE_H2324#include <stdio.h>25#include "core.h"2627#define CDCORE_DEFAULT -128#define CDCORE_DUMMY 029#define CDCORE_ISO 130#define CDCORE_ARCH 23132typedef struct33{34int id;35const char *Name;36int (*Init)(const char *);37void (*DeInit)(void);38int (*GetStatus)(void);39s32 (*ReadTOC)(u32 *TOC);40int (*ReadSectorFAD)(u32 FAD, void *buffer);41void (*ReadAheadFAD)(u32 FAD);42} CDInterface;4344extern CDInterface DummyCD;4546extern CDInterface ISOCD;4748extern CDInterface ArchCD;4950#endif515253