libcdio  0.83
read.h
Go to the documentation of this file.
1 /*
2  $Id: read.h,v 1.15 2008/03/25 15:59:09 karl Exp $
3 
4  Copyright (C) 2005, 2006, 2007, 2008 Rocky Bernstein <rocky@gnu.org>
5 
6  This program is free software: you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  This program is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU General Public License for more details.
15 
16  You should have received a copy of the GNU General Public License
17  along with this program. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
26 #ifndef __CDIO_READ_H__
27 #define __CDIO_READ_H__
28 
29 #ifndef EXTERNAL_LIBCDIO_CONFIG_H
30 #define EXTERNAL_LIBCDIO_CONFIG_H
31 /* Need for HAVE_SYS_TYPES_H */
32 #include <cdio/cdio_config.h>
33 #endif
34 
35 #ifdef HAVE_SYS_TYPES_H
36 /* Some systems need this for off_t and ssize. */
37 #include <sys/types.h>
38 #endif
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif /* __cplusplus */
43 
45  typedef enum {
52 
64  off_t cdio_lseek(const CdIo_t *p_cdio, off_t offset, int whence);
65 
78  ssize_t cdio_read(const CdIo_t *p_cdio, void *p_buf, size_t i_size);
79 
90  void *p_buf, lsn_t i_lsn);
91 
103  void *p_buf, lsn_t i_lsn,
104  uint32_t i_blocks);
105 
124  void *p_buf, lsn_t i_lsn,
125  uint16_t i_blocksize,
126  uint32_t i_blocks );
137  void *p_buf, lsn_t i_lsn,
138  bool b_form2);
150  void *p_buf, lsn_t i_lsn,
151  bool b_form2,
152  uint32_t i_blocks);
168  void *p_buf, lsn_t i_lsn,
169  bool b_form2);
170 
174  driver_return_code_t cdio_read_sector(const CdIo_t *p_cdio, void *p_buf,
175  lsn_t i_lsn,
176  cdio_read_mode_t read_mode);
193  void *p_buf, lsn_t i_lsn,
194  bool b_form2,
195  uint32_t i_blocks);
196 
226  driver_return_code_t cdio_read_sectors(const CdIo_t *p_cdio, void *p_buf,
227  lsn_t i_lsn,
228  cdio_read_mode_t read_mode,
229  uint32_t i_blocks);
230 
231 #ifdef __cplusplus
232 }
233 #endif /* __cplusplus */
234 
235 #endif /* __CDIO_TRACK_H__ */

Generated for libcdio by doxygen 1.8.1.1