Search
lxdream.org :: lxdream/src/gdrom/gdrom.h :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gdrom/gdrom.h
changeset 245:a1d0655a88d3
prev237:6f1a429c9d12
next342:850502f0e8de
author nkeynes
date Tue Dec 19 09:52:56 2006 +0000 (13 years ago)
permissions -rw-r--r--
last change Work in progress: 0x40,1 (read status)
file annotate diff log raw
1.1 --- a/src/gdrom/gdrom.h Thu Dec 14 12:31:38 2006 +0000
1.2 +++ b/src/gdrom/gdrom.h Tue Dec 19 09:52:56 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: gdrom.h,v 1.8 2006-12-14 12:31:38 nkeynes Exp $
1.6 + * $Id: gdrom.h,v 1.9 2006-12-19 09:52:56 nkeynes Exp $
1.7 *
1.8 * This file defines the structures and functions used by the GD-Rom
1.9 * disc driver. (ie, the modules that supply a CD image to be used by the
1.10 @@ -59,7 +59,7 @@
1.11 #define TRACK_DATA 0x40
1.12 #define TRACK_FOUR_CHANNEL 0x80
1.13
1.14 -struct gdrom_track {
1.15 +typedef struct gdrom_track {
1.16 gdrom_track_mode_t mode;
1.17 uint8_t flags; /* Track flags */
1.18 int session; /* session # containing this track */
1.19 @@ -67,7 +67,7 @@
1.20 uint32_t sector_size; /* For convenience, determined by mode */
1.21 uint32_t sector_count;
1.22 uint32_t offset; /* File offset of start of track - image files only */
1.23 -};
1.24 +} *gdrom_track_t;
1.25
1.26
1.27 typedef struct gdrom_disc {
1.28 @@ -120,6 +120,10 @@
1.29 */
1.30 gdrom_error_t gdrom_get_info( char *buf, int session );
1.31
1.32 +gdrom_track_t gdrom_get_track( int track_no );
1.33 +
1.34 +uint8_t gdrom_get_track_no_by_lba( uint32_t lba );
1.35 +
1.36 /**
1.37 * Shortcut to open and mount an image file
1.38 */
.