Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
alexbevi
GitHub Repository: alexbevi/BizHawk
Path: blob/master/yabause/src/cdbase.h
2 views
1
/* Copyright 2004-2005 Theo Berkau
2
Copyright 2005 Joost Peters
3
Copyright 2006 Guillaume Duhamel
4
5
This file is part of Yabause.
6
7
Yabause is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; either version 2 of the License, or
10
(at your option) any later version.
11
12
Yabause is distributed in the hope that it will be useful,
13
but WITHOUT ANY WARRANTY; without even the implied warranty of
14
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15
GNU General Public License for more details.
16
17
You should have received a copy of the GNU General Public License
18
along with Yabause; if not, write to the Free Software
19
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20
*/
21
22
#ifndef CDBASE_H
23
#define CDBASE_H
24
25
#include <stdio.h>
26
#include "core.h"
27
28
#define CDCORE_DEFAULT -1
29
#define CDCORE_DUMMY 0
30
#define CDCORE_ISO 1
31
#define CDCORE_ARCH 2
32
33
typedef struct
34
{
35
int id;
36
const char *Name;
37
int (*Init)(const char *);
38
void (*DeInit)(void);
39
int (*GetStatus)(void);
40
s32 (*ReadTOC)(u32 *TOC);
41
int (*ReadSectorFAD)(u32 FAD, void *buffer);
42
void (*ReadAheadFAD)(u32 FAD);
43
} CDInterface;
44
45
extern CDInterface DummyCD;
46
47
extern CDInterface ISOCD;
48
49
extern CDInterface ArchCD;
50
51
#endif
52
53