misc/winutils/include/SDL_cdrom.h
author koda
Sat, 14 Nov 2015 02:55:38 +0100
branchsdl2transition
changeset 11379 28c309f45269
parent 10017 de822cd3df3a
permissions -rw-r--r--
libphyslayer: Support SDL2 only
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     1
/*
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     2
    SDL - Simple DirectMedia Layer
7809
7d4fb2f35f4f update SDL headers for winutils
koda
parents: 6560
diff changeset
     3
    Copyright (C) 1997-2012 Sam Lantinga
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     4
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     5
    This library is free software; you can redistribute it and/or
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     6
    modify it under the terms of the GNU Lesser General Public
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     7
    License as published by the Free Software Foundation; either
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     8
    version 2.1 of the License, or (at your option) any later version.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     9
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    10
    This library is distributed in the hope that it will be useful,
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    13
    Lesser General Public License for more details.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    14
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    15
    You should have received a copy of the GNU Lesser General Public
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    16
    License along with this library; if not, write to the Free Software
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    18
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    19
    Sam Lantinga
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    20
    slouken@libsdl.org
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    21
*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    22
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    23
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    24
 *  @file SDL_cdrom.h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    25
 *  This is the CD-audio control API for Simple DirectMedia Layer
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    26
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    27
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    28
#ifndef _SDL_cdrom_h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    29
#define _SDL_cdrom_h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    30
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    31
#include "SDL_stdinc.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    32
#include "SDL_error.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    33
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    34
#include "begin_code.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    35
/* Set up for C function definitions, even when using C++ */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    36
#ifdef __cplusplus
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    37
extern "C" {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    38
#endif
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    39
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    40
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    41
 *  @file SDL_cdrom.h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    42
 *  In order to use these functions, SDL_Init() must have been called
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    43
 *  with the SDL_INIT_CDROM flag.  This causes SDL to scan the system
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    44
 *  for CD-ROM drives, and load appropriate drivers.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    45
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    46
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    47
/** The maximum number of CD-ROM tracks on a disk */
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    48
#define SDL_MAX_TRACKS  99
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    49
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    50
/** @name Track Types
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    51
 *  The types of CD-ROM track possible
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    52
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    53
/*@{*/
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    54
#define SDL_AUDIO_TRACK 0x00
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    55
#define SDL_DATA_TRACK  0x04
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    56
/*@}*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    57
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    58
/** The possible states which a CD-ROM drive can be in. */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    59
typedef enum {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    60
    CD_TRAYEMPTY,
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    61
    CD_STOPPED,
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    62
    CD_PLAYING,
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    63
    CD_PAUSED,
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    64
    CD_ERROR = -1
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    65
} CDstatus;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    66
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    67
/** Given a status, returns true if there's a disk in the drive */
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    68
#define CD_INDRIVE(status)  ((int)(status) > 0)
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    69
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    70
typedef struct SDL_CDtrack {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    71
    Uint8 id;       /**< Track number */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    72
    Uint8 type;     /**< Data or audio track */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    73
    Uint16 unused;
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    74
    Uint32 length;      /**< Length, in frames, of this track */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    75
    Uint32 offset;      /**< Offset, in frames, from start of disk */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    76
} SDL_CDtrack;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    77
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    78
/** This structure is only current as of the last call to SDL_CDStatus() */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    79
typedef struct SDL_CD {
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    80
    int id;         /**< Private drive identifier */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    81
    CDstatus status;    /**< Current drive status */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    82
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    83
    /** The rest of this structure is only valid if there's a CD in drive */
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    84
        /*@{*/
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    85
    int numtracks;      /**< Number of tracks on disk */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    86
    int cur_track;      /**< Current track position */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    87
    int cur_frame;      /**< Current frame offset within current track */
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    88
    SDL_CDtrack track[SDL_MAX_TRACKS+1];
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    89
        /*@}*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    90
} SDL_CD;
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    91
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    92
/** @name Frames / MSF Conversion Functions
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    93
 *  Conversion functions from frames to Minute/Second/Frames and vice versa
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    94
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    95
/*@{*/
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    96
#define CD_FPS  75
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    97
#define FRAMES_TO_MSF(f, M,S,F) {                   \
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    98
    int value = f;                          \
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
    99
    *(F) = value%CD_FPS;                        \
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   100
    value /= CD_FPS;                        \
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   101
    *(S) = value%60;                        \
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   102
    value /= 60;                            \
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   103
    *(M) = value;                           \
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   104
}
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   105
#define MSF_TO_FRAMES(M, S, F)  ((M)*60*CD_FPS+(S)*CD_FPS+(F))
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   106
/*@}*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   107
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   108
/* CD-audio API functions: */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   109
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   110
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   111
 *  Returns the number of CD-ROM drives on the system, or -1 if
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   112
 *  SDL_Init() has not been called with the SDL_INIT_CDROM flag.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   113
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   114
extern DECLSPEC int SDLCALL SDL_CDNumDrives(void);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   115
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   116
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   117
 *  Returns a human-readable, system-dependent identifier for the CD-ROM.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   118
 *  Example:
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   119
 *   - "/dev/cdrom"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   120
 *   - "E:"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   121
 *   - "/dev/disk/ide/1/master"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   122
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   123
extern DECLSPEC const char * SDLCALL SDL_CDName(int drive);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   124
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   125
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   126
 *  Opens a CD-ROM drive for access.  It returns a drive handle on success,
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   127
 *  or NULL if the drive was invalid or busy.  This newly opened CD-ROM
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   128
 *  becomes the default CD used when other CD functions are passed a NULL
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   129
 *  CD-ROM handle.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   130
 *  Drives are numbered starting with 0.  Drive 0 is the system default CD-ROM.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   131
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   132
extern DECLSPEC SDL_CD * SDLCALL SDL_CDOpen(int drive);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   133
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   134
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   135
 *  This function returns the current status of the given drive.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   136
 *  If the drive has a CD in it, the table of contents of the CD and current
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   137
 *  play position of the CD will be stored in the SDL_CD structure.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   138
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   139
extern DECLSPEC CDstatus SDLCALL SDL_CDStatus(SDL_CD *cdrom);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   140
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   141
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   142
 *  Play the given CD starting at 'start_track' and 'start_frame' for 'ntracks'
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   143
 *  tracks and 'nframes' frames.  If both 'ntrack' and 'nframe' are 0, play
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   144
 *  until the end of the CD.  This function will skip data tracks.
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   145
 *  This function should only be called after calling SDL_CDStatus() to
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   146
 *  get track information about the CD.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   147
 *  For example:
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   148
 *      @code
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   149
 *  // Play entire CD:
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   150
 *  if ( CD_INDRIVE(SDL_CDStatus(cdrom)) )
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   151
 *      SDL_CDPlayTracks(cdrom, 0, 0, 0, 0);
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   152
 *  // Play last track:
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   153
 *  if ( CD_INDRIVE(SDL_CDStatus(cdrom)) ) {
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   154
 *      SDL_CDPlayTracks(cdrom, cdrom->numtracks-1, 0, 0, 0);
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   155
 *  }
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   156
 *  // Play first and second track and 10 seconds of third track:
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   157
 *  if ( CD_INDRIVE(SDL_CDStatus(cdrom)) )
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   158
 *      SDL_CDPlayTracks(cdrom, 0, 0, 2, 10);
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   159
 *      @endcode
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   160
 *
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   161
 *  @return This function returns 0, or -1 if there was an error.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   162
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   163
extern DECLSPEC int SDLCALL SDL_CDPlayTracks(SDL_CD *cdrom,
10017
de822cd3df3a fixwhitespace and dos2unix
koda
parents: 7809
diff changeset
   164
        int start_track, int start_frame, int ntracks, int nframes);
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   165
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   166
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   167
 *  Play the given CD starting at 'start' frame for 'length' frames.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   168
 *  @return It returns 0, or -1 if there was an error.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   169
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   170
extern DECLSPEC int SDLCALL SDL_CDPlay(SDL_CD *cdrom, int start, int length);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   171
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   172
/** Pause play
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   173
 *  @return returns 0, or -1 on error
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   174
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   175
extern DECLSPEC int SDLCALL SDL_CDPause(SDL_CD *cdrom);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   176
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   177
/** Resume play
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   178
 *  @return returns 0, or -1 on error
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   179
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   180
extern DECLSPEC int SDLCALL SDL_CDResume(SDL_CD *cdrom);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   181
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   182
/** Stop play
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   183
 *  @return returns 0, or -1 on error
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   184
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   185
extern DECLSPEC int SDLCALL SDL_CDStop(SDL_CD *cdrom);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   186
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   187
/** Eject CD-ROM
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   188
 *  @return returns 0, or -1 on error
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   189
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   190
extern DECLSPEC int SDLCALL SDL_CDEject(SDL_CD *cdrom);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   191
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   192
/** Closes the handle for the CD-ROM drive */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   193
extern DECLSPEC void SDLCALL SDL_CDClose(SDL_CD *cdrom);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   194
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   195
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   196
/* Ends C function definitions when using C++ */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   197
#ifdef __cplusplus
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   198
}
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   199
#endif
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   200
#include "close_code.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   201
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
   202
#endif /* _SDL_video_h */