diff --git a/include/cdio/device.h b/include/cdio/device.h index a6f39ed8..5009d667 100644 --- a/include/cdio/device.h +++ b/include/cdio/device.h @@ -1,5 +1,5 @@ /* -*- c -*- - $Id: device.h,v 1.10 2005/02/05 04:23:21 rocky Exp $ + $Id: device.h,v 1.11 2005/02/06 04:20:25 rocky Exp $ Copyright (C) 2005 Rocky Bernstein @@ -21,7 +21,7 @@ /** \file device.h * * \brief The top-level header for driver- or device-related libcdio - * calls. ("device" include CD-image reading devices). + * calls. ("device" includes CD-image reading devices). */ #ifndef __CDIO_DEVICE_H__ #define __CDIO_DEVICE_H__ diff --git a/include/cdio/sector.h b/include/cdio/sector.h index 8dccae07..24eba6a9 100644 --- a/include/cdio/sector.h +++ b/include/cdio/sector.h @@ -1,5 +1,5 @@ /* - $Id: sector.h,v 1.34 2005/02/05 14:42:28 rocky Exp $ + $Id: sector.h,v 1.35 2005/02/06 04:20:25 rocky Exp $ Copyright (C) 2000 Herbert Valerio Riedel Copyright (C) 2003, 2004, 2005 Rocky Bernstein @@ -67,20 +67,6 @@ #include - /*! track modes (Table 350) - reference: MMC-3 draft revsion - 10g - */ - typedef enum { - AUDIO, /**< 2352 byte block length */ - MODE1, /**< 2048 byte block length */ - MODE1_RAW, /**< 2352 byte block length */ - MODE2, /**< 2336 byte block length */ - MODE2_FORM1, /**< 2048 byte block length */ - MODE2_FORM2, /**< 2324 byte block length */ - MODE2_FORM_MIX, /**< 2336 byte block length */ - MODE2_RAW /**< 2352 byte block length */ - } trackmode_t; - /*! Information that can be obtained through a Read Subchannel command. */ @@ -185,30 +171,6 @@ {0, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0}; */ - /*! An enumeration for some of the CDIO_CDROM_* #defines below. This - isn't really an enumeration one would really use in a program; it - is to be helpful in debuggers where wants just to refer to the - CDIO_CDROM_* names and get something. - */ - extern enum cdio_cdrom_enums { - CDIO_CDROM_LBA =0x01, /**< "logical block": first frame is #0 */ - CDIO_CDROM_MSF =0x02, /**< "minute-second-frame": binary, not - BCD here! */ - CDIO_CDROM_DATA_TRACK = 0x04, - CDIO_CDROM_CDI_TRACK = 0x10, - CDIO_CDROM_XA_TRACK = 0x20 - } cdio_cdrom_enums; - - /*! CD-ROM address types (GNU/Linux e.g. cdrom_tocentry.cdte_format) */ -#define CDIO_CDROM_LBA 0x01 /**< "logical block": first frame is #0 */ -#define CDIO_CDROM_MSF 0x02 /**< "minute-second-frame": binary, not - BCD here! */ - - /*! CD-ROM track format types (GNU/Linux cdte_ctrl) */ -#define CDIO_CDROM_DATA_TRACK 0x04 -#define CDIO_CDROM_CDI_TRACK 0x10 -#define CDIO_CDROM_XA_TRACK 0x20 - /*! An enumeration for some of the M2*_SECTOR_SIZE #defines below. This isn't really an enumeration one would really use in a program it is to be helpful in debuggers where wants just to refer diff --git a/include/cdio/track.h b/include/cdio/track.h index 6abd247a..baa0c074 100644 --- a/include/cdio/track.h +++ b/include/cdio/track.h @@ -1,5 +1,5 @@ /* -*- c -*- - $Id: track.h,v 1.6 2005/01/29 20:54:20 rocky Exp $ + $Id: track.h,v 1.7 2005/02/06 04:20:25 rocky Exp $ Copyright (C) 2005 Rocky Bernstein @@ -76,6 +76,49 @@ extern "C" { */ } track_flags_t; + /*! An enumeration for some of the CDIO_CDROM_* #defines below. This + isn't really an enumeration one would really use in a program; it + is to be helpful in debuggers where wants just to refer to the + CDIO_CDROM_* names and get something. + */ + extern enum cdio_track_enums { + CDIO_CDROM_LBA = 0x01, /**< "logical block": first frame is #0 */ + CDIO_CDROM_MSF = 0x02, /**< "minute-second-frame": binary, not + BCD here! */ + CDIO_CDROM_DATA_TRACK = 0x04, + CDIO_CDROM_CDI_TRACK = 0x10, + CDIO_CDROM_XA_TRACK = 0x20 + } cdio_track_enums; + + /*! track modes (Table 350) + reference: MMC-3 draft revsion - 10g + */ + typedef enum { + AUDIO, /**< 2352 byte block length */ + MODE1, /**< 2048 byte block length */ + MODE1_RAW, /**< 2352 byte block length */ + MODE2, /**< 2336 byte block length */ + MODE2_FORM1, /**< 2048 byte block length */ + MODE2_FORM2, /**< 2324 byte block length */ + MODE2_FORM_MIX, /**< 2336 byte block length */ + MODE2_RAW /**< 2352 byte block length */ + } trackmode_t; + + /*! CD-ROM address types (GNU/Linux e.g. cdrom_tocentry.cdte_format) */ +#define CDIO_CDROM_LBA 0x01 /**< "logical block": first frame is #0 */ +#define CDIO_CDROM_MSF 0x02 /**< "minute-second-frame": binary, not + BCD here! */ + + /*! CD-ROM track format types (GNU/Linux cdte_ctrl) */ +#define CDIO_CDROM_DATA_TRACK 0x04 +#define CDIO_CDROM_CDI_TRACK 0x10 +#define CDIO_CDROM_XA_TRACK 0x20 + + /*! CD-ROM address types (GNU/Linux e.g. cdrom_tocentry.cdte_format) */ +#define CDIO_CDROM_LBA 0x01 /**< "logical block": first frame is #0 */ +#define CDIO_CDROM_MSF 0x02 /**< "minute-second-frame": binary, not + BCD here! */ + /*! Get CD-Text information for a CdIo_t object. diff --git a/lib/driver/sector.c b/lib/driver/sector.c index e1d610f1..782e0de4 100644 --- a/lib/driver/sector.c +++ b/lib/driver/sector.c @@ -1,5 +1,5 @@ /* - $Id: sector.c,v 1.4 2005/02/05 14:42:28 rocky Exp $ + $Id: sector.c,v 1.5 2005/02/06 04:20:25 rocky Exp $ Copyright (C) 2004, 2005 Rocky Bernstein Copyright (C) 2000 Herbert Valerio Riedel @@ -35,7 +35,7 @@ #include -static const char _rcsid[] = "$Id: sector.c,v 1.4 2005/02/05 14:42:28 rocky Exp $"; +static const char _rcsid[] = "$Id: sector.c,v 1.5 2005/02/06 04:20:25 rocky Exp $"; /*! String of bytes used to identify the beginning of a Mode 1 or Mode 2 sector. */ @@ -44,7 +44,6 @@ const uint8_t CDIO_SECTOR_SYNC_HEADER[CDIO_CD_SYNC_SIZE] = /* Variables to hold debugger-helping enumerations */ enum cdio_cd_enums; -enum cdio_cdrom_enums; enum m2_sector_enums; lba_t diff --git a/lib/driver/track.c b/lib/driver/track.c index 88df12cf..d3b67731 100644 --- a/lib/driver/track.c +++ b/lib/driver/track.c @@ -1,5 +1,5 @@ /* - $Id: track.c,v 1.3 2005/01/09 16:07:46 rocky Exp $ + $Id: track.c,v 1.4 2005/02/06 04:20:25 rocky Exp $ Copyright (C) 2003, 2004, 2005 Rocky Bernstein Copyright (C) 2001 Herbert Valerio Riedel @@ -33,6 +33,9 @@ const char *track_format2str[6] = "audio", "CD-i", "XA", "data", "PSX", "error" }; +/* Variables to hold debugger-helping enumerations */ +enum cdio_track_enums; + /*! Return the number of the first track. CDIO_INVALID_TRACK is returned on error.