libcdio 2.1.1
read.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2005, 2006, 2007, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
3
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation, either version 3 of the License, or
7 (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>.
16*/
17
24#ifndef CDIO_READ_H_
25#define CDIO_READ_H_
26
27#include <cdio/types.h>
28
29#ifdef __cplusplus
30extern "C" {
31#endif /* __cplusplus */
32
41
53 off_t cdio_lseek(const CdIo_t *p_cdio, off_t offset, int whence);
54
67 ssize_t cdio_read(const CdIo_t *p_cdio, void *p_buf, size_t i_size);
68
79 void *p_buf, lsn_t i_lsn);
80
92 void *p_buf, lsn_t i_lsn,
93 uint32_t i_blocks);
94
113 void *p_buf, lsn_t i_lsn,
114 uint16_t i_blocksize,
115 uint32_t i_blocks );
126 void *p_buf, lsn_t i_lsn,
127 bool b_form2);
139 void *p_buf, lsn_t i_lsn,
140 bool b_form2,
141 uint32_t i_blocks);
157 void *p_buf, lsn_t i_lsn,
158 bool b_form2);
159
163 driver_return_code_t cdio_read_sector(const CdIo_t *p_cdio, void *p_buf,
164 lsn_t i_lsn,
165 cdio_read_mode_t read_mode);
182 void *p_buf, lsn_t i_lsn,
183 bool b_form2,
184 uint32_t i_blocks);
185
215 driver_return_code_t cdio_read_sectors(const CdIo_t *p_cdio, void *p_buf,
216 lsn_t i_lsn,
217 cdio_read_mode_t read_mode,
218 uint32_t i_blocks);
219
220#ifdef __cplusplus
221}
222#endif /* __cplusplus */
223
224#endif /* CDIO_READ_H_ */
struct _CdIo CdIo_t
Definition cdio.h:47
driver_return_code_t
Definition device.h:205
off_t cdio_lseek(const CdIo_t *p_cdio, off_t offset, int whence)
driver_return_code_t cdio_read_mode1_sectors(const CdIo_t *p_cdio, void *p_buf, lsn_t i_lsn, bool b_form2, uint32_t i_blocks)
driver_return_code_t cdio_read_sectors(const CdIo_t *p_cdio, void *p_buf, lsn_t i_lsn, cdio_read_mode_t read_mode, uint32_t i_blocks)
driver_return_code_t cdio_read_sector(const CdIo_t *p_cdio, void *p_buf, lsn_t i_lsn, cdio_read_mode_t read_mode)
cdio_read_mode_t
Definition read.h:34
@ CDIO_READ_MODE_M2F1
Definition read.h:38
@ CDIO_READ_MODE_M2F2
Definition read.h:39
@ CDIO_READ_MODE_AUDIO
Definition read.h:35
@ CDIO_READ_MODE_M1F2
Definition read.h:37
@ CDIO_READ_MODE_M1F1
Definition read.h:36
driver_return_code_t cdio_read_data_sectors(const CdIo_t *p_cdio, void *p_buf, lsn_t i_lsn, uint16_t i_blocksize, uint32_t i_blocks)
driver_return_code_t cdio_read_audio_sectors(const CdIo_t *p_cdio, void *p_buf, lsn_t i_lsn, uint32_t i_blocks)
driver_return_code_t cdio_read_mode1_sector(const CdIo_t *p_cdio, void *p_buf, lsn_t i_lsn, bool b_form2)
driver_return_code_t cdio_read_mode2_sectors(const CdIo_t *p_cdio, void *p_buf, lsn_t i_lsn, bool b_form2, uint32_t i_blocks)
driver_return_code_t cdio_read_mode2_sector(const CdIo_t *p_cdio, void *p_buf, lsn_t i_lsn, bool b_form2)
driver_return_code_t cdio_read_audio_sector(const CdIo_t *p_cdio, void *p_buf, lsn_t i_lsn)
ssize_t cdio_read(const CdIo_t *p_cdio, void *p_buf, size_t i_size)
Common type definitions used pervasively in libcdio.
int32_t lsn_t
Definition types.h:250