00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00027 #ifndef __CDIO_READ_H__
00028 #define __CDIO_READ_H__
00029
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
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
00177
00178 #endif