Main Page | Data Structures | Directories | File List | Data Fields | Globals

read.h

Go to the documentation of this file.
00001 /* -*- c -*-
00002     $Id: read.h,v 1.6 2005/03/21 09:19:06 rocky Exp $
00003 
00004     Copyright (C) 2005 Rocky Bernstein <rocky@panix.com>
00005 
00006     This program is free software; you can redistribute it and/or modify
00007     it under the terms of the GNU General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or
00009     (at your option) any later version.
00010 
00011     This program is distributed in the hope that it will be useful,
00012     but WITHOUT ANY WARRANTY; without even the implied warranty of
00013     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014     GNU General Public License for more details.
00015 
00016     You should have received a copy of the GNU General Public License
00017     along with this program; if not, write to the Free Software
00018     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00019 */
00020 
00027 #ifndef __CDIO_READ_H__
00028 #define __CDIO_READ_H__
00029 
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif /* __cplusplus */
00033 
00045   off_t cdio_lseek(const CdIo_t *p_cdio, off_t offset, int whence);
00046     
00058   ssize_t cdio_read(const CdIo_t *p_cdio, void *p_buf, size_t i_size);
00059     
00069   driver_return_code_t cdio_read_audio_sector (const CdIo_t *p_cdio, 
00070                                                void *p_buf, lsn_t i_lsn);
00071 
00082   driver_return_code_t cdio_read_audio_sectors (const CdIo_t *p_cdio, 
00083                                                 void *p_buf, lsn_t i_lsn,
00084                                                 uint32_t i_blocks);
00085 
00103   driver_return_code_t cdio_read_data_sectors ( const CdIo_t *p_cdio, 
00104                                                 void *p_buf, lsn_t i_lsn,
00105                                                 uint16_t i_blocksize,
00106                                                 uint32_t i_blocks );
00107 
00117   driver_return_code_t cdio_read_mode1_sector (const CdIo_t *p_cdio, 
00118                                                void *p_buf, lsn_t i_lsn, 
00119                                                bool b_form2);
00120   
00131   driver_return_code_t cdio_read_mode1_sectors (const CdIo_t *p_cdio, 
00132                                                 void *p_buf, lsn_t i_lsn, 
00133                                                 bool b_form2, 
00134                                                 uint32_t i_blocks);
00135   
00150   driver_return_code_t cdio_read_mode2_sector (const CdIo_t *p_cdio, 
00151                                                void *p_buf, lsn_t i_lsn, 
00152                                                bool b_form2);
00153   
00169   driver_return_code_t cdio_read_mode2_sectors (const CdIo_t *p_cdio, 
00170                                                 void *p_buf, lsn_t i_lsn, 
00171                                                 bool b_form2, 
00172                                                 uint32_t i_blocks);
00173   
00174 #ifdef __cplusplus
00175 }
00176 #endif /* __cplusplus */
00177 
00178 #endif /* __CDIO_TRACK_H__ */

Generated on Thu Sep 29 12:15:26 2005 for libcdio by  doxygen 1.3.9.1