libcdio-paranoia 10.2+2.0.2
paranoia.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011, 2012
3 2017 Rocky Bernstein <rocky@gnu.org>
4 Copyright (C) 2014 Robert Kausch <robert.kausch@freac.org>
5 Copyright (C) 1998 Monty xiphmont@mit.edu
6
7 This program is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 (at your option) any later version.
11
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
19*/
20
28#ifndef CDIO__PARANOIA__PARANOIA_H_
29#define CDIO__PARANOIA__PARANOIA_H_
30
31#include <cdio/paranoia/cdda.h>
32
37#define CD_FRAMEWORDS (CDIO_CD_FRAMESIZE_RAW/2)
38
48typedef enum {
57 PARANOIA_MODE_FULL = 0xff,
60
61
70typedef enum {
88
89 extern const char *paranoia_cb_mode2str[];
90
91#ifdef __cplusplus
92extern "C" {
93#endif
94
100 extern const char *cdio_paranoia_version(void);
101
110
119
129 extern void cdio_paranoia_modeset(cdrom_paranoia_t *p, int mode_flags);
130
139 extern lsn_t cdio_paranoia_seek(cdrom_paranoia_t *p, int32_t seek,
140 int whence);
141
156 void(*callback)(long int,
158
176 void(*callback)(long int,
178 int max_retries);
179
180
182 extern void cdio_paranoia_overlapset(cdrom_paranoia_t *p,long overlap);
183
184 extern void cdio_paranoia_set_range(cdrom_paranoia_t *p, long int start,
185 long int end);
186
197
198#ifndef DO_NOT_WANT_PARANOIA_COMPATIBILITY
200#define cdrom_paranoia cdrom_paranoia_t
201#define paranoia_version cdio_paranoia_version
202#define paranoia_init cdio_paranoia_init
203#define paranoia_free cdio_paranoia_free
204#define paranoia_modeset cdio_paranoia_modeset
205#define paranoia_seek cdio_paranoia_seek
206#define paranoia_read cdio_paranoia_read
207#define paranoia_read_limited cdio_paranoia_read_limited
208#define paranoia_overlapset cdio_paranoia_overlapset
209#define paranoia_set_range cdio_paranoia_set_range
210#define paranoia_cachemodel_size cdio_paranoia_cachemodel_size
211#endif /*DO_NOT_WANT_PARANOIA_COMPATIBILITY*/
212
213#ifdef __cplusplus
214}
215#endif
216
225
226#endif /*CDIO__PARANOIA__PARANOIA_H_*/
The top-level interface header for libcdio_cdda. Applications include this for paranoia access.
int16_t * cdio_paranoia_read_limited(cdrom_paranoia_t *p, void(*callback)(long int, paranoia_cb_mode_t), int max_retries)
Definition: paranoia.c:2926
cdrom_paranoia_t * cdio_paranoia_init(cdrom_drive_t *d)
paranoia_mode_t debug_paranoia_mode
Definition: paranoia.c:138
int cdio_paranoia_cachemodel_size(cdrom_paranoia_t *p, int sectors)
paranoia_cb_mode_t debug_paranoia_cb_mode
Definition: paranoia.c:139
paranoia_cb_mode_t
Definition: paranoia.h:70
@ PARANOIA_CB_VERIFY
Definition: paranoia.h:72
@ PARANOIA_CB_FIXUP_DROPPED
Definition: paranoia.h:81
@ PARANOIA_CB_FIXUP_EDGE
Definition: paranoia.h:73
@ PARANOIA_CB_DRIFT
Definition: paranoia.h:78
@ PARANOIA_CB_READERR
Definition: paranoia.h:83
@ PARANOIA_CB_SKIP
Definition: paranoia.h:77
@ PARANOIA_CB_FIXUP_DUPED
Definition: paranoia.h:82
@ PARANOIA_CB_SCRATCH
Definition: paranoia.h:75
@ PARANOIA_CB_READ
Definition: paranoia.h:71
@ PARANOIA_CB_BACKOFF
Definition: paranoia.h:79
@ PARANOIA_CB_FIXUP_ATOM
Definition: paranoia.h:74
@ PARANOIA_CB_REPAIR
Definition: paranoia.h:76
@ PARANOIA_CB_OVERLAP
Definition: paranoia.h:80
@ PARANOIA_CB_FINISHED
Definition: paranoia.h:86
@ PARANOIA_CB_WROTE
Definition: paranoia.h:85
@ PARANOIA_CB_CACHEERR
Definition: paranoia.h:84
void cdio_paranoia_set_range(cdrom_paranoia_t *p, long int start, long int end)
void cdio_paranoia_overlapset(cdrom_paranoia_t *p, long overlap)
paranoia_mode_t
Definition: paranoia.h:48
@ PARANOIA_MODE_DISABLE
Definition: paranoia.h:49
@ PARANOIA_MODE_REPAIR
Definition: paranoia.h:54
@ PARANOIA_MODE_FRAGMENT
Definition: paranoia.h:51
@ PARANOIA_MODE_OVERLAP
Definition: paranoia.h:52
@ PARANOIA_MODE_NEVERSKIP
Definition: paranoia.h:55
@ PARANOIA_MODE_VERIFY
Definition: paranoia.h:50
@ PARANOIA_MODE_FULL
Definition: paranoia.h:57
@ PARANOIA_MODE_SCRATCH
Definition: paranoia.h:53
int16_t * cdio_paranoia_read(cdrom_paranoia_t *p, void(*callback)(long int, paranoia_cb_mode_t))
void cdio_paranoia_free(cdrom_paranoia_t *p)
const char * paranoia_cb_mode2str[]
Definition: paranoia.c:116
lsn_t cdio_paranoia_seek(cdrom_paranoia_t *p, int32_t seek, int whence)
void cdio_paranoia_modeset(cdrom_paranoia_t *p, int mode_flags)
const char * cdio_paranoia_version(void)
Definition: paranoia.c:3153
Structure for cdparanoia's CD-ROM access.
Definition: cdda.h:80
Definition: p_block.h:153