comparison src/cdrom/SDL_syscdrom.h @ 1662:782fd950bd46 SDL-1.3

Revamp of the video system in progress - adding support for multiple displays, multiple windows, and a full video mode selection API. WARNING: None of the video drivers have been updated for the new API yet! The API is still under design and very fluid. The code is now run through a consistent indent format: indent -i4 -nut -nsc -br -ce The headers are being converted to automatically generate doxygen documentation.
author Sam Lantinga <slouken@libsdl.org>
date Sun, 28 May 2006 13:04:16 +0000
parents d910939febfa
children 4da1ee79c9af
comparison
equal deleted inserted replaced
1661:281d3f4870e5 1662:782fd950bd46
22 #include "SDL_config.h" 22 #include "SDL_config.h"
23 23
24 /* This is the system specific header for the SDL CD-ROM API */ 24 /* This is the system specific header for the SDL CD-ROM API */
25 25
26 /* Structure of CD audio control functions */ 26 /* Structure of CD audio control functions */
27 extern struct CDcaps { 27 extern struct CDcaps
28 /* Get the name of the specified drive */ 28 {
29 const char *(*Name)(int drive); 29 /* Get the name of the specified drive */
30 const char *(*Name) (int drive);
30 31
31 /* Open the specified drive, returning a drive id, or -1 on error */ 32 /* Open the specified drive, returning a drive id, or -1 on error */
32 int (*Open)(int drive); 33 int (*Open) (int drive);
33 34
34 /* Get table-of-contents (number of tracks + track info) for disk. 35 /* Get table-of-contents (number of tracks + track info) for disk.
35 The TOC information should be stored in the cdrom structure. 36 The TOC information should be stored in the cdrom structure.
36 This function should return 0 on success, or -1 on error. 37 This function should return 0 on success, or -1 on error.
37 */ 38 */
38 int (*GetTOC)(SDL_CD *cdrom); 39 int (*GetTOC) (SDL_CD * cdrom);
39 40
40 /* Return the current status and play position, in frames, of the 41 /* Return the current status and play position, in frames, of the
41 drive. 'position' may be NULL, and if so, should be ignored. 42 drive. 'position' may be NULL, and if so, should be ignored.
42 */ 43 */
43 CDstatus (*Status)(SDL_CD *cdrom, int *position); 44 CDstatus (*Status) (SDL_CD * cdrom, int *position);
44 45
45 /* Play from frame 'start' to 'start+len' */ 46 /* Play from frame 'start' to 'start+len' */
46 int (*Play)(SDL_CD *cdrom, int start, int len); 47 int (*Play) (SDL_CD * cdrom, int start, int len);
47 48
48 /* Pause play */ 49 /* Pause play */
49 int (*Pause)(SDL_CD *cdrom); 50 int (*Pause) (SDL_CD * cdrom);
50 51
51 /* Resume play */ 52 /* Resume play */
52 int (*Resume)(SDL_CD *cdrom); 53 int (*Resume) (SDL_CD * cdrom);
53 54
54 /* Stop play */ 55 /* Stop play */
55 int (*Stop)(SDL_CD *cdrom); 56 int (*Stop) (SDL_CD * cdrom);
56 57
57 /* Eject the current disk */ 58 /* Eject the current disk */
58 int (*Eject)(SDL_CD *cdrom); 59 int (*Eject) (SDL_CD * cdrom);
59 60
60 /* Close the specified drive */ 61 /* Close the specified drive */
61 void (*Close)(SDL_CD *cdrom); 62 void (*Close) (SDL_CD * cdrom);
62 } SDL_CDcaps; 63 } SDL_CDcaps;
63 64
64 /* The number of available CD-ROM drives on the system */ 65 /* The number of available CD-ROM drives on the system */
65 extern int SDL_numcds; 66 extern int SDL_numcds;
66 67
67 /* Function to scan the system for CD-ROM drives and fill SDL_CDcaps. 68 /* Function to scan the system for CD-ROM drives and fill SDL_CDcaps.
68 * This function should set SDL_numcds to the number of available CD 69 * This function should set SDL_numcds to the number of available CD
69 * drives. Drive 0 should be the system default CD-ROM. 70 * drives. Drive 0 should be the system default CD-ROM.
70 * It should return 0, or -1 on an unrecoverable fatal error. 71 * It should return 0, or -1 on an unrecoverable fatal error.
71 */ 72 */
72 extern int SDL_SYS_CDInit(void); 73 extern int SDL_SYS_CDInit (void);
73 74
74 /* Function to perform any system-specific CD-ROM related cleanup */ 75 /* Function to perform any system-specific CD-ROM related cleanup */
75 extern void SDL_SYS_CDQuit(void); 76 extern void SDL_SYS_CDQuit (void);
76 77 /* vi: set ts=4 sw=4 expandtab: */