Move lower-level cdrom_drive_t from paranoia.h into cdda.h

This may cause some incompatibilty in applications that did
#include <cdio/cdda.h> without #include <cdio/paranoia.h>

As of now it's okay to just #include <cdio/paranoia.h> or include both,
but #includ'ing only <cdio/cdda.h> will be a problem.
This commit is contained in:
rocky
2005-09-21 01:41:31 +00:00
parent 2a03988a3a
commit 2afad8d866
5 changed files with 16 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: cdda.h,v 1.22 2005/08/27 14:25:58 rocky Exp $
$Id: cdda.h,v 1.23 2005/09/21 01:41:32 rocky Exp $
Copyright (C) 2004, 2005 Rocky Bernstein <rocky@panix.com>
Copyright (C) 2001 Xiph.org
@@ -30,12 +30,19 @@
#define _CDDA_INTERFACE_H_
#include <cdio/cdio.h>
#include <cdio/paranoia.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/** cdrom_paranoia is an opaque structure which is used in all of the
library operations.
*/
typedef struct cdrom_paranoia_s cdrom_paranoia_t;
typedef struct cdrom_drive_s cdrom_drive_t;
/** For compatibility. cdrom_drive_t is depricated, use cdrom_drive_t instead. */
extern enum paranoia_cdda_enums {
CDDA_MESSAGE_FORGETIT = 0,
CDDA_MESSAGE_PRINTIT = 1,
@@ -377,6 +384,8 @@ const char *strerror_tr[]={
#define cdda_track_preemp cdio_cddap_track_preemp
#define cdda_disc_firstsector cdio_cddap_disc_firstsector
#define cdda_disc_lastsector cdio_cddap_disc_lastsector
#define cdrom_drive cdrom_drive_t
#endif /*DO_NOT_WANT_PARANOIA_COMPATIBILITY*/
#ifdef __cplusplus