libcdio-paranoia 10.2+2.0.2
low_interface.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2004, 2005, 2008 Rocky Bernstein <rocky@gnu.org>
3 Copyright (C) 1998 Monty xiphmont@mit.edu
4*/
7#ifndef _CDDA_LOW_INTERFACE_
8#define _CDDA_LOW_INTERFACE_
9
10#ifdef HAVE_STDIO_H
11#include <stdlib.h>
12#endif
13#ifdef HAVE_UNISTD_H
14#include <unistd.h>
15#endif
16#ifdef HAVE_STRING_H
17#include <string.h>
18#endif
19#ifdef HAVE_ERRNO_H
20#include <errno.h>
21#endif
22
23#ifdef HAVE_LINUX_VERSION_H
24#include <linux/version.h>
25#endif
26
28#include <cdio/paranoia/cdda.h>
29
30/* some include file locations have changed with newer kernels */
31
32#ifndef CDROMAUDIOBUFSIZ
33#define CDROMAUDIOBUFSIZ 0x5382 /* set the audio buffer size */
34#endif
35
36#ifdef HAVE_LINUX_CDROM_H
37#include <linux/cdrom.h>
38#endif
39
40#ifdef HAVE_LINUX_MAJOR_H
41#include <linux/major.h>
42#endif
43
44#define MAX_RETRIES 8
45#define MAX_BIG_BUFF_SIZE 65536
46#define MIN_BIG_BUFF_SIZE 4096
47#define SG_OFF sizeof(struct sg_header)
48
49extern int cddap_init_drive (cdrom_drive_t *d);
50#endif /*_CDDA_LOW_INTERFACE_*/
51
The top-level interface header for libcdio_cdda. Applications include this for paranoia access.
int cddap_init_drive(cdrom_drive_t *d)
Definition: cddap_interface.c:328
The top-level header for libcdda_paranoia: a device- and OS- independent library for reading CD-DA wi...
Structure for cdparanoia's CD-ROM access.
Definition: cdda.h:80