libcdio  0.83
paranoia.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011
3  Rocky Bernstein <rocky@gnu.org>
4  Copyright (C) 1998 Monty xiphmont@mit.edu
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 
27 #ifndef _CDIO_PARANOIA_H_
28 #define _CDIO_PARANOIA_H_
29 
30 #include <cdio/cdda.h>
31 
36 #define CD_FRAMEWORDS (CDIO_CD_FRAMESIZE_RAW/2)
37 
47 typedef enum {
59 
60 
69 typedef enum {
84 
85  extern const char *paranoia_cb_mode2str[];
86 
87 #ifdef __cplusplus
88 extern "C" {
89 #endif
90 
99 
107  extern void cdio_paranoia_free(cdrom_paranoia_t *p);
108 
118  extern void cdio_paranoia_modeset(cdrom_paranoia_t *p, int mode_flags);
119 
128  extern lsn_t cdio_paranoia_seek(cdrom_paranoia_t *p, int32_t seek,
129  int whence);
130 
144  extern int16_t *cdio_paranoia_read(cdrom_paranoia_t *p,
145  void(*callback)(long int,
147 
164  extern int16_t *cdio_paranoia_read_limited(cdrom_paranoia_t *p,
165  void(*callback)(long int,
167  int max_retries);
168 
169 
171  extern void cdio_paranoia_overlapset(cdrom_paranoia_t *p,long overlap);
172 
173  extern void cdio_paranoia_set_range(cdrom_paranoia_t *p, long int start,
174  long int end);
175 
176 #ifndef DO_NOT_WANT_PARANOIA_COMPATIBILITY
177 
178 #define cdrom_paranoia cdrom_paranoia_t
179 #define paranoia_init cdio_paranoia_init
180 #define paranoia_free cdio_paranoia_free
181 #define paranoia_modeset cdio_paranoia_modeset
182 #define paranoia_seek cdio_paranoia_seek
183 #define paranoia_read cdio_paranoia_read
184 #define paranoia_read_limited cdio_paranoia_read_limited
185 #define paranoia_overlapset cdio_paranoia_overlapset
186 #define paranoia_set_range cdio_paranoia_set_range
187 #endif /*DO_NOT_WANT_PARANOIA_COMPATIBILITY*/
188 
189 #ifdef __cplusplus
190 }
191 #endif
192 
201 
202 #endif /*_CDIO_PARANOIA_H_*/

Generated for libcdio by doxygen 1.8.1.1