Blame lib/cdda_interface/common_interface.h
|
Packit |
cb6d3d |
/*
|
|
Packit |
cb6d3d |
Copyright (C) 2004, 2005, 2008, 2009, 2010, 2011
|
|
Packit |
cb6d3d |
Rocky Bernstein <rocky@gnu.org>
|
|
Packit |
cb6d3d |
Copyright (C) 1998 Monty xiphmont@mit.edu
|
|
Packit |
cb6d3d |
*/
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
#ifndef _CDDA_COMMON_INTERFACE_H_
|
|
Packit |
cb6d3d |
#define _CDDA_COMMON_INTERFACE_H_
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
#if defined(HAVE_CONFIG_H) && !defined(__CDIO_CONFIG_H__)
|
|
Packit |
cb6d3d |
# include "config.h"
|
|
Packit |
cb6d3d |
# define __CDIO_CONFIG_H__ 1
|
|
Packit |
cb6d3d |
#endif
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
#include <cdio/types.h>
|
|
Packit |
cb6d3d |
#include "low_interface.h"
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
#if defined(HAVE_LSTAT) && !defined(HAVE_WIN32_CDROM) && !defined(HAVE_OS2_CDROM)
|
|
Packit |
cb6d3d |
/* Define this if the CD-ROM device is a file in the filesystem
|
|
Packit |
cb6d3d |
that can be lstat'd
|
|
Packit |
cb6d3d |
*/
|
|
Packit |
cb6d3d |
#define DEVICE_IN_FILESYSTEM 1
|
|
Packit |
cb6d3d |
#else
|
|
Packit |
cb6d3d |
#undef DEVICE_IN_FILESYSTEM
|
|
Packit |
cb6d3d |
#endif
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
/** Test for presence of a cdrom by pinging with the 'CDROMVOLREAD' ioctl() */
|
|
Packit |
cb6d3d |
extern int ioctl_ping_cdrom(int fd);
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
extern char *atapi_drive_info(int fd);
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
/*! Here we fix up a couple of things that will never happen. yeah,
|
|
Packit |
cb6d3d |
right.
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
rocky OMITTED FOR NOW:
|
|
Packit |
cb6d3d |
The multisession stuff is from Hannu's code; it assumes it knows
|
|
Packit |
cb6d3d |
the leadout/leadin size.
|
|
Packit |
cb6d3d |
*/
|
|
Packit |
cb6d3d |
extern int FixupTOC(cdrom_drive_t *d, track_t tracks);
|
|
Packit |
cb6d3d |
|
|
Packit |
cb6d3d |
#endif /*_CDDA_COMMON_INTERFACE_H_*/
|