pcsxr-1.9.92
[pcsx_rearmed.git] / plugins / dfcdrom / cdr-null.c
1 /*
2  * Copyright (c) 2010, Wei Mingzhi <whistler@openoffice.org>.
3  * All Rights Reserved.
4  *
5  * Based on: Cdrom for Psemu Pro like Emulators
6  * By: linuzappz <linuzappz@hotmail.com>
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation; either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * This program is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program; if not, see <http://www.gnu.org/licenses>.
20  */
21
22 #include "cdr.h"
23
24 #ifdef USE_NULL
25
26 int OpenCdHandle(const char *dev) {
27         return -1;
28 }
29
30 void CloseCdHandle() {
31 }
32
33 int IsCdHandleOpen() {
34         return 0;
35 }
36
37 long GetTN(unsigned char *buffer) {
38         buffer[0] = 0;
39         buffer[1] = 0;
40         return 0;
41 }
42
43 long GetTD(unsigned char track, unsigned char *buffer) {
44         memset(buffer + 1, 0, 3);
45         return 0;
46 }
47
48 long GetTE(unsigned char track, unsigned char *m, unsigned char *s, unsigned char *f) {
49         return -1;
50 }
51
52 long ReadSector(crdata *cr) {
53         return -1;
54 }
55
56 long PlayCDDA(unsigned char *sector) {
57         return 0;
58 }
59
60 long StopCDDA() {
61         return 0;
62 }
63
64 long GetStatus(int playing, struct CdrStat *stat) {
65         return -1;
66 }
67
68 unsigned char *ReadSub(const unsigned char *time) {
69         return NULL;
70 }
71
72 #endif