With M$ we can no longer assume we can open a fd ant it will read

properly. Add yellow-mode reads interface.

There's lots of cleanup to do...
This commit is contained in:
rocky
2003-06-07 20:42:49 +00:00
parent 4c5b8a3dfd
commit d0999c5ebc
3 changed files with 84 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
/* -*- c -*-
$Id: cdio.h,v 1.12 2003/06/07 16:53:21 rocky Exp $
$Id: cdio.h,v 1.13 2003/06/07 20:42:49 rocky Exp $
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
Copyright (C) 2003 Rocky Bernstein <rocky@panix.com>
@@ -217,6 +217,12 @@ extern "C" {
*/
int cdio_read_audio_sector (CdIo *obj, void *buf, lsn_t lsn);
/*!
Reads a single mode1 sector from cd device into data starting
from lsn. Returns 0 if no error.
*/
int cdio_read_yellow_sector (CdIo *obj, void *buf, lsn_t lsn, bool mode1);
/*!
Reads a single mode2 sector from cd device into data starting
from lsn. Returns 0 if no error.