Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/libcdio
This commit is contained in:
7
NEWS
7
NEWS
@@ -1,4 +1,5 @@
|
||||
version 0.83
|
||||
2011-10-27
|
||||
|
||||
- Add retrieval SCSI sense reply from the most-recent MMC command.
|
||||
- Add exclusive read/write access for devices which is used for experimental
|
||||
@@ -6,7 +7,7 @@ version 0.83
|
||||
- MMC bug fixes
|
||||
- FreeBSD drive list now shows empty drives.
|
||||
- Add ability to retrieve SCSI tuple for a name and/or fake one up for
|
||||
programs that wanto to cd-record compatible.
|
||||
programs that want to be cd-record compatible.
|
||||
- Tolerance for OS's without timezone in their struct tm (e.g. Solaris)
|
||||
added iso9660_set_{d,l}time_with_timezone
|
||||
- Add mmc_get_disk_erasable
|
||||
@@ -78,7 +79,7 @@ version 0.79
|
||||
- iso-read: Add --ignore -k to ignore errors.
|
||||
|
||||
- Fix Savannah Bugs #18522, #18563, #18131 #19221 (possibly), #19880,
|
||||
#21147 and other miscelleaneous bugs and memory leaks
|
||||
#21147 and other miscellaneous bugs and memory leaks
|
||||
|
||||
- cd-info: force CDDB disc id to be 32-bits. Problem reported
|
||||
by Eric Shattow.
|
||||
@@ -133,7 +134,7 @@ version 0.77
|
||||
- Add more generic read_sectors()
|
||||
|
||||
- Document that NULL also uses default drive in close_tray, cdio_open
|
||||
and cdio_open_am. Document b_mode2 paramenter not used in cdio ISO
|
||||
and cdio_open_am. Document b_mode2 parameter not used in cdio ISO
|
||||
read.
|
||||
|
||||
- Some provision for handling Rock-Ridge device numbers.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2005, 2008, 2009 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2005, 2008, 2009, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
Adapted from Gerd Knorr's player.c program <kraxel@bytesex.org>
|
||||
Copyright (C) 1997, 1998
|
||||
@@ -24,7 +24,6 @@
|
||||
*/
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include "config.h"
|
||||
#define __CDIO_CONFIG_H__ 1
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_STDIO_H
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2005, 2006, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2005, 2006, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -21,8 +21,8 @@
|
||||
* library. Applications use this for anything regarding libcdio.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_HPP__
|
||||
#define __CDIO_HPP__
|
||||
#ifndef CDIO_CDIOPP_HPP_
|
||||
#define CDIO_CDIOPP_HPP_
|
||||
|
||||
#include <cdio/cdio.h>
|
||||
#include <cdio/audio.h>
|
||||
@@ -179,4 +179,4 @@ public:
|
||||
/* Things related to devices. No class or object is needed. */
|
||||
#include "devices.hpp"
|
||||
|
||||
#endif /* __CDIO_HPP__ */
|
||||
#endif /* CDIO_CDIOPP_HPP_ */
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/*
|
||||
$Id: cdtext.hpp,v 1.2 2008/03/25 15:59:10 karl Exp $
|
||||
|
||||
Copyright (C) 2005, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2005, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/*
|
||||
$Id: device.hpp,v 1.7 2008/03/25 15:59:10 karl Exp $
|
||||
|
||||
Copyright (C) 2005, 2006, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2005, 2006, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/*
|
||||
$Id: devices.hpp,v 1.5 2008/03/25 15:59:10 karl Exp $
|
||||
|
||||
Copyright (C) 2005, 2006, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2005, 2006, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -32,7 +30,7 @@
|
||||
it was DRIVER_UNKNOWN or DRIVER_DEVICE; If this is NULL, we won't
|
||||
report back the driver used.
|
||||
*/
|
||||
void closeTray (const char *psz_drive, /*in/out*/ driver_id_t &driver_id);
|
||||
void closeTray(const char *psz_drive, /*in/out*/ driver_id_t &driver_id);
|
||||
|
||||
/*!
|
||||
Close media tray in CD drive if there is a routine to do so.
|
||||
@@ -40,7 +38,7 @@ void closeTray (const char *psz_drive, /*in/out*/ driver_id_t &driver_id);
|
||||
@param psz_drive the name of CD-ROM to be closed. If omitted or
|
||||
NULL, we'll scan for a suitable CD-ROM.
|
||||
*/
|
||||
void closeTray (const char *psz_drive=(const char *)NULL);
|
||||
void closeTray(const char *psz_drive=(const char *)NULL);
|
||||
|
||||
/*!
|
||||
Get a string decribing driver_id.
|
||||
@@ -48,14 +46,14 @@ void closeTray (const char *psz_drive=(const char *)NULL);
|
||||
@param driver_id the driver you want the description for
|
||||
@return a sring of driver description
|
||||
*/
|
||||
const char *driverDescribe (driver_id_t driver_id);
|
||||
const char *driverDescribe(driver_id_t driver_id);
|
||||
|
||||
/*!
|
||||
Eject media in CD drive if there is a routine to do so.
|
||||
|
||||
If the CD is ejected, object is destroyed.
|
||||
*/
|
||||
void ejectMedia (const char *psz_drive);
|
||||
void ejectMedia(const char *psz_drive);
|
||||
|
||||
/*!
|
||||
Free device list returned by GetDevices
|
||||
@@ -65,7 +63,7 @@ void ejectMedia (const char *psz_drive);
|
||||
@see GetDevices
|
||||
|
||||
*/
|
||||
void freeDeviceList (char * device_list[]);
|
||||
void freeDeviceList(char * device_list[]);
|
||||
|
||||
/*!
|
||||
Return a string containing the default CD device if none is specified.
|
||||
@@ -96,7 +94,7 @@ char ** getDevices(driver_id_t driver_id=DRIVER_DEVICE);
|
||||
things up for libcdio as well.
|
||||
*/
|
||||
|
||||
char **getDevices (driver_id_t &driver_id);
|
||||
char **getDevices(driver_id_t &driver_id);
|
||||
|
||||
/*!
|
||||
Get an array of device names in search_devices that have at least
|
||||
@@ -129,7 +127,7 @@ char ** getDevices(/*in*/ char* ppsz_search_devices[],
|
||||
bool b_any=false);
|
||||
|
||||
/*! Return true if we Have driver for driver_id */
|
||||
bool haveDriver (driver_id_t driver_id);
|
||||
bool haveDriver(driver_id_t driver_id);
|
||||
|
||||
/*!
|
||||
|
||||
@@ -178,4 +176,3 @@ bool isNero(const char *psz_nrg);
|
||||
if not a TOC file.
|
||||
*/
|
||||
bool isTocFile(const char *psz_toc);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2006, 2008, 2011 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2006, 2008, 2011, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -21,8 +21,8 @@
|
||||
* library. Applications use this for anything regarding libcdio.
|
||||
*/
|
||||
|
||||
#ifndef __ISO9660_HPP__
|
||||
#define __ISO9660_HPP__
|
||||
#ifndef CDIO_ISO9660_HPP_
|
||||
#define CDIO_ISO9660_HPP_
|
||||
|
||||
#include <cdio/iso9660.h>
|
||||
#include <cdio++/cdio.hpp>
|
||||
@@ -426,4 +426,4 @@ public:
|
||||
typedef vector< ISO9660::Stat *> stat_vector_t;
|
||||
typedef vector <ISO9660::Stat *>::iterator stat_vector_iterator_t;
|
||||
|
||||
#endif /* __ISO9660_HPP__ */
|
||||
#endif /* CDIO_ISO9660_HPP_ */
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
# Copyright (C) 2003, 2004, 2006, 2008, 2011 Rocky Bernstein <rocky@gnu.org>
|
||||
# Copyright (C) 2003, 2004, 2006, 2008, 2011, 2012
|
||||
# Rocky Bernstein <rocky@gnu.org>
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
* calls. These control playing of the CD-ROM through its
|
||||
* line-out jack.
|
||||
*/
|
||||
#ifndef __CDIO_AUDIO_H__
|
||||
#define __CDIO_AUDIO_H__
|
||||
#ifndef CDIO_AUDIO_H_
|
||||
#define CDIO_AUDIO_H_
|
||||
|
||||
#include <cdio/types.h>
|
||||
|
||||
@@ -143,4 +143,4 @@ extern "C" {
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __CDIO_AUDIO_H__ */
|
||||
#endif /* CDIO_AUDIO_H_ */
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
/*
|
||||
$Id: bytesex.h,v 1.5 2008/03/25 15:59:08 karl Exp $
|
||||
|
||||
Copyright (C) 2000, 2004 Herbert Valerio Riedel <hvr@gnu.org>
|
||||
Copyright (C) 2005, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2005, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -25,8 +23,8 @@
|
||||
* use glib.h routines instead.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_BYTESEX_H__
|
||||
#define __CDIO_BYTESEX_H__
|
||||
#ifndef CDIO_BYTESEX_H_
|
||||
#define CDIO_BYTESEX_H_
|
||||
|
||||
#include <cdio/types.h>
|
||||
#include <cdio/bytesex_asm.h> /* also defines CDIO_INLINE */
|
||||
@@ -208,7 +206,7 @@ from_733 (uint64_t p)
|
||||
return (UINT32_C(0xFFFFFFFF) & p);
|
||||
}
|
||||
|
||||
#endif /* __CDIO_BYTESEX_H__ */
|
||||
#endif /* CDIO_BYTESEX_H_ */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
glib.h routines instead.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_BYTESEX_ASM_H__
|
||||
#define __CDIO_BYTESEX_ASM_H__
|
||||
#ifndef CDIO_BYTESEX_ASM_H_
|
||||
#define CDIO_BYTESEX_ASM_H_
|
||||
#if !defined(DISABLE_ASM_OPTIMIZE)
|
||||
|
||||
#include <cdio/types.h>
|
||||
@@ -128,7 +128,7 @@ uint16_t uint16_swap_le_be_asm(uint16_t a)
|
||||
#endif
|
||||
|
||||
#endif /* !defined(DISABLE_ASM_OPTIMIZE) */
|
||||
#endif /* __CDIO_BYTESEX_ASM_H__ */
|
||||
#endif /* CDIO_BYTESEX_ASM_H_ */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/*
|
||||
$Id: cd_types.h,v 1.18 2008/03/25 15:59:08 karl Exp $
|
||||
|
||||
Copyright (C) 2003, 2006, 2008 Rocky Bernstein <rocky@cpan.org>
|
||||
Copyright (C) 2003, 2006, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 1996,1997,1998 Gerd Knorr <kraxel@bytesex.org>
|
||||
and Heiko Ei<45>feldt <heiko@hexco.de>
|
||||
|
||||
@@ -25,8 +23,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_CD_TYPES_H__
|
||||
#define __CDIO_CD_TYPES_H__
|
||||
#ifndef CDIO_CD_TYPES_H_
|
||||
#define CDIO_CD_TYPES_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -164,7 +162,7 @@ cdio_fs_anal_t cdio_guess_cd_type(const CdIo_t *cdio, int start_session,
|
||||
extern cdio_fs_cap_t debug_cdio_fs_cap;
|
||||
extern cdio_fs_t debug_cdio_fs;
|
||||
|
||||
#endif /* __CDIO_CD_TYPES_H__ */
|
||||
#endif /* CDIO_CD_TYPES_H_ */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,411 +0,0 @@
|
||||
/*
|
||||
$Id: cdda.h,v 1.30 2008/03/25 15:59:08 karl Exp $
|
||||
|
||||
Copyright (C) 2004, 2005, 2006, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2001 Xiph.org and Heiko Eissfeldt heiko@escape.colossus.de
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
/** \file cdda.h
|
||||
*
|
||||
* \brief The top-level interface header for libcdio_cdda.
|
||||
* Applications include this for paranoia access.
|
||||
*
|
||||
******************************************************************/
|
||||
|
||||
#ifndef _CDDA_INTERFACE_H_
|
||||
#define _CDDA_INTERFACE_H_
|
||||
|
||||
#include <cdio/cdio.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/** cdrom_paranoia is an opaque structure which is used in all of the
|
||||
library operations.
|
||||
*/
|
||||
typedef struct cdrom_paranoia_s cdrom_paranoia_t;
|
||||
typedef struct cdrom_drive_s cdrom_drive_t;
|
||||
|
||||
/** For compatibility. cdrom_drive_t is deprecated, use cdrom_drive_t
|
||||
instead. */
|
||||
|
||||
/**
|
||||
Flags for simulating jitter used in testing.
|
||||
|
||||
The enumeration type one probably wouldn't really use in a program.
|
||||
It is here instead of defines to give symbolic names that can be
|
||||
helpful in debuggers where wants just to say refer to
|
||||
CDDA_TEST_JITTER_SMALL and get the correct value.
|
||||
*/
|
||||
typedef enum {
|
||||
CDDA_MESSAGE_FORGETIT = 0,
|
||||
CDDA_MESSAGE_PRINTIT = 1,
|
||||
CDDA_MESSAGE_LOGIT = 2,
|
||||
CD_FRAMESAMPLES = CDIO_CD_FRAMESIZE_RAW / 4,
|
||||
MAXTRK = (CDIO_CD_MAX_TRACKS+1)
|
||||
} paranoia_cdda_enums_t;
|
||||
|
||||
|
||||
#include <signal.h>
|
||||
|
||||
/** We keep MAXTRK since this header is exposed publicly and other
|
||||
programs may have used this.
|
||||
*/
|
||||
#define MAXTRK (CDIO_CD_MAX_TRACKS+1)
|
||||
|
||||
/** \brief Structure for cdparanoia's CD Table of Contents */
|
||||
typedef struct TOC_s {
|
||||
unsigned char bTrack;
|
||||
int32_t dwStartSector;
|
||||
} TOC_t;
|
||||
|
||||
/** For compatibility. TOC is deprecated, use TOC_t instead. */
|
||||
#define TOC TOC_t
|
||||
|
||||
/** \brief Structure for cdparanoia's CD-ROM access */
|
||||
struct cdrom_drive_s {
|
||||
|
||||
CdIo_t *p_cdio;
|
||||
int opened; /**< This struct may just represent a candidate for opening */
|
||||
|
||||
char *cdda_device_name;
|
||||
|
||||
char *drive_model;
|
||||
int drive_type;
|
||||
int bigendianp; /**< Whether data returned on the CDDA is bigendian or
|
||||
not. 1 if big endian, 0 if little endian and -1 if
|
||||
we don't know.
|
||||
*/
|
||||
int nsectors; /**< Number of sectors use in reading. Multiply by
|
||||
CDIO_CD_FRAMESIZE_RAW to get number of bytes used in
|
||||
the read buffer. */
|
||||
|
||||
int cd_extra; /**< -1 if we can't get multisession info, 0 if
|
||||
there is one session only or the multi-session
|
||||
LBA is less than or 100 (don't ask me why -- I
|
||||
don't know), and 1 if the multi-session lba is
|
||||
greater than 100. */
|
||||
|
||||
bool b_swap_bytes; /**< Swap bytes if Endian-ness of drive
|
||||
mismatches the endian-ness of the
|
||||
computer? */
|
||||
track_t tracks;
|
||||
TOC_t disc_toc[MAXTRK]; /**< info here starts origin 0 rather than the
|
||||
first track number (usually 1). So to take
|
||||
a track number and use it here, subtract
|
||||
off cdio_get_first_track_num() beforehand.
|
||||
*/
|
||||
lsn_t audio_first_sector;
|
||||
lsn_t audio_last_sector;
|
||||
|
||||
int errordest;
|
||||
int messagedest;
|
||||
char *errorbuf;
|
||||
char *messagebuf;
|
||||
|
||||
/* functions specific to particular drives/interfaces */
|
||||
|
||||
int (*enable_cdda) (cdrom_drive_t *d, int onoff);
|
||||
int (*read_toc) (cdrom_drive_t *d);
|
||||
long (*read_audio) (cdrom_drive_t *d, void *p, lsn_t begin,
|
||||
long sectors);
|
||||
int (*set_speed) (cdrom_drive_t *d, int speed);
|
||||
int error_retry;
|
||||
int report_all;
|
||||
|
||||
int is_atapi;
|
||||
int is_mmc;
|
||||
|
||||
int i_test_flags; /**< Normally set 0. But if we are testing
|
||||
paranoia operation this can be set to one of
|
||||
the flag masks to simulate a particular kind of
|
||||
failure. */
|
||||
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
Flags for simulating jitter used in testing.
|
||||
|
||||
The enumeration type one probably wouldn't really use in a program.
|
||||
It is here instead of defines to give symbolic names that can be
|
||||
helpful in debuggers where wants just to say refer to
|
||||
CDDA_TEST_JITTER_SMALL and get the correct value.
|
||||
*/
|
||||
typedef enum {
|
||||
CDDA_TEST_JITTER_SMALL = 1,
|
||||
CDDA_TEST_JITTER_LARGE = 2,
|
||||
CDDA_TEST_JITTER_MASSIVE = 3,
|
||||
CDDA_TEST_FRAG_SMALL = (1<<3),
|
||||
CDDA_TEST_FRAG_LARGE = (2<<3),
|
||||
CDDA_TEST_FRAG_MASSIVE = (3<<3),
|
||||
CDDA_TEST_UNDERRUN = 64
|
||||
} paranoia_jitter_t;
|
||||
|
||||
/** jitter testing. The first two bits are set to determine the
|
||||
byte-distance we will jitter the data; 0 is no shifting.
|
||||
*/
|
||||
|
||||
/**< jitter testing. Set the below bit to always cause jittering on reads.
|
||||
The below bit only has any effect if the first two (above) bits are
|
||||
nonzero. If the above bits are set, but the below bit isn't we'll
|
||||
jitter 90% of the time.
|
||||
*/
|
||||
#define CDDA_TEST_ALWAYS_JITTER 4
|
||||
|
||||
/** fragment testing */
|
||||
#define CDDA_TEST_FRAG_SMALL (1<<3)
|
||||
#define CDDA_TEST_FRAG_LARGE (2<<3)
|
||||
#define CDDA_TEST_FRAG_MASSIVE (3<<3)
|
||||
|
||||
/**< under-run testing. The below bit is set for testing. */
|
||||
#define CDDA_TEST_UNDERRUN 64
|
||||
|
||||
#if TESTING_IS_FINISHED
|
||||
|
||||
/** scratch testing */
|
||||
#define CDDA_TEST_SCRATCH 128
|
||||
#undef CDDA_TEST_BOGUS_BYTES 256
|
||||
#undef CDDA_TEST_DROPDUPE_BYTES 512
|
||||
#endif /* TESTING_IS_FINISHED */
|
||||
|
||||
/** autosense functions */
|
||||
|
||||
/** Get a CD-ROM drive with a CD-DA in it.
|
||||
If mesagedest is 1, then any messages in the process will be stored
|
||||
in message.
|
||||
*/
|
||||
extern cdrom_drive_t *cdio_cddap_find_a_cdrom(int messagedest,
|
||||
char **ppsz_message);
|
||||
|
||||
/** Returns a paranoia CD-ROM drive object with a CD-DA in it or NULL
|
||||
if there was an error.
|
||||
@see cdio_cddap_identify_cdio
|
||||
*/
|
||||
extern cdrom_drive_t *cdio_cddap_identify(const char *psz_device,
|
||||
int messagedest,
|
||||
char **ppsz_message);
|
||||
|
||||
/** Returns a paranoia CD-ROM drive object with a CD-DA in it or NULL
|
||||
if there was an error. In contrast to cdio_cddap_identify, we
|
||||
start out with an initialized p_cdio object. For example you may
|
||||
have used that for other purposes such as to get CDDB/CD-Text
|
||||
information. @see cdio_cddap_identify
|
||||
*/
|
||||
cdrom_drive_t *cdio_cddap_identify_cdio(CdIo_t *p_cdio,
|
||||
int messagedest, char **ppsz_messages);
|
||||
|
||||
/** drive-oriented functions */
|
||||
|
||||
extern int cdio_cddap_speed_set(cdrom_drive_t *d, int speed);
|
||||
extern void cdio_cddap_verbose_set(cdrom_drive_t *d, int err_action,
|
||||
int mes_action);
|
||||
extern char *cdio_cddap_messages(cdrom_drive_t *d);
|
||||
extern char *cdio_cddap_errors(cdrom_drive_t *d);
|
||||
|
||||
/*!
|
||||
Closes d and releases all storage associated with it except
|
||||
the internal p_cdio pointer.
|
||||
|
||||
@param d cdrom_drive_t object to be closed.
|
||||
@return 0 if passed a null pointer and 1 if not in which case
|
||||
some work was probably done.
|
||||
|
||||
@see cdio_cddap_close
|
||||
*/
|
||||
bool cdio_cddap_close_no_free_cdio(cdrom_drive_t *d);
|
||||
|
||||
/*!
|
||||
Closes d and releases all storage associated with it.
|
||||
Doubles as "cdrom_drive_free()".
|
||||
|
||||
@param d cdrom_drive_t object to be closed.
|
||||
@return 0 if passed a null pointer and 1 if not in which case
|
||||
some work was probably done.
|
||||
|
||||
@see cdio_cddap_close_no_free_cdio
|
||||
*/
|
||||
extern int cdio_cddap_close(cdrom_drive_t *d);
|
||||
|
||||
extern int cdio_cddap_open(cdrom_drive_t *d);
|
||||
|
||||
extern long cdio_cddap_read(cdrom_drive_t *d, void *p_buffer,
|
||||
lsn_t beginsector, long sectors);
|
||||
|
||||
/*! Return the lsn for the start of track i_track */
|
||||
extern lsn_t cdio_cddap_track_firstsector(cdrom_drive_t *d,
|
||||
track_t i_track);
|
||||
|
||||
/*! Get last lsn of the track. This generally one less than the start
|
||||
of the next track. -1 is returned on error. */
|
||||
extern lsn_t cdio_cddap_track_lastsector(cdrom_drive_t *d, track_t i_track);
|
||||
|
||||
/*! Return the number of tracks on the CD. */
|
||||
extern track_t cdio_cddap_tracks(cdrom_drive_t *d);
|
||||
|
||||
/*! Return the track containing the given LSN. If the LSN is before
|
||||
the first track (in the pregap), 0 is returned. If there was an
|
||||
error or the LSN after the LEADOUT (beyond the end of the CD), then
|
||||
CDIO_INVALID_TRACK is returned.
|
||||
*/
|
||||
extern int cdio_cddap_sector_gettrack(cdrom_drive_t *d, lsn_t lsn);
|
||||
|
||||
/*! Return the number of channels in track: 2 or 4; -2 if not
|
||||
implemented or -1 for error.
|
||||
Not meaningful if track is not an audio track.
|
||||
*/
|
||||
extern int cdio_cddap_track_channels(cdrom_drive_t *d, track_t i_track);
|
||||
|
||||
/*! Return 1 is track is an audio track, 0 otherwise. */
|
||||
extern int cdio_cddap_track_audiop(cdrom_drive_t *d, track_t i_track);
|
||||
|
||||
/*! Return 1 is track has copy permit set, 0 otherwise. */
|
||||
extern int cdio_cddap_track_copyp(cdrom_drive_t *d, track_t i_track);
|
||||
|
||||
/*! Return 1 is audio track has linear preemphasis set, 0 otherwise.
|
||||
Only makes sense for audio tracks.
|
||||
*/
|
||||
extern int cdio_cddap_track_preemp(cdrom_drive_t *d, track_t i_track);
|
||||
|
||||
/*! Get first lsn of the first audio track. -1 is returned on error. */
|
||||
extern lsn_t cdio_cddap_disc_firstsector(cdrom_drive_t *d);
|
||||
|
||||
/*! Get last lsn of the last audio track. The last lsn is generally one
|
||||
less than the start of the next track after the audio track. -1 is
|
||||
returned on error. */
|
||||
extern lsn_t cdio_cddap_disc_lastsector(cdrom_drive_t *d);
|
||||
|
||||
/*! Determine Endian-ness of the CD-drive based on reading data from
|
||||
it. Some drives return audio data Big Endian while some (most)
|
||||
return data Little Endian. Drives known to return data bigendian are
|
||||
SCSI drives from Kodak, Ricoh, HP, Philips, Plasmon, Grundig
|
||||
CDR100IPW, and Mitsumi CD-R. ATAPI and MMC drives are little endian.
|
||||
|
||||
rocky: As someone who didn't write the code, I have to say this is
|
||||
nothing less than brilliant. An FFT is done both ways and the the
|
||||
transform is looked at to see which has data in the FFT (or audible)
|
||||
portion. (Or so that's how I understand it.)
|
||||
|
||||
@return 1 if big-endian, 0 if little-endian, -1 if we couldn't
|
||||
figure things out or some error.
|
||||
*/
|
||||
extern int data_bigendianp(cdrom_drive_t *d);
|
||||
|
||||
/** transport errors: */
|
||||
|
||||
typedef enum {
|
||||
TR_OK = 0,
|
||||
TR_EWRITE = 1 /**< Error writing packet command (transport) */,
|
||||
TR_EREAD = 2 /**< Error reading packet data (transport) */,
|
||||
TR_UNDERRUN = 3 /**< Read underrun */,
|
||||
TR_OVERRUN = 4 /**< Read overrun */,
|
||||
TR_ILLEGAL = 5 /**< Illegal/rejected request */,
|
||||
TR_MEDIUM = 6 /**< Medium error */,
|
||||
TR_BUSY = 7 /**< Device busy */,
|
||||
TR_NOTREADY = 8 /**< Device not ready */,
|
||||
TR_FAULT = 9 /**< Device failure */,
|
||||
TR_UNKNOWN = 10 /**< Unspecified error */,
|
||||
TR_STREAMING = 11 /**< loss of streaming */,
|
||||
} transport_error_t;
|
||||
|
||||
|
||||
#ifdef NEED_STRERROR_TR
|
||||
const char *strerror_tr[]={
|
||||
"Success",
|
||||
"Error writing packet command to device",
|
||||
"Error reading command from device",
|
||||
"SCSI packet data underrun (too little data)",
|
||||
"SCSI packet data overrun (too much data)",
|
||||
"Illegal SCSI request (rejected by target)",
|
||||
"Medium reading data from medium",
|
||||
"Device busy",
|
||||
"Device not ready",
|
||||
"Target hardware fault",
|
||||
"Unspecified error",
|
||||
"Drive lost streaming"
|
||||
};
|
||||
#endif /*NEED_STERROR_TR*/
|
||||
|
||||
/** Errors returned by lib:
|
||||
|
||||
\verbatim
|
||||
001: Unable to set CDROM to read audio mode
|
||||
002: Unable to read table of contents lead-out
|
||||
003: CDROM reporting illegal number of tracks
|
||||
004: Unable to read table of contents header
|
||||
005: Unable to read table of contents entry
|
||||
006: Could not read any data from drive
|
||||
007: Unknown, unrecoverable error reading data
|
||||
008: Unable to identify CDROM model
|
||||
009: CDROM reporting illegal table of contents
|
||||
010: Unaddressable sector
|
||||
|
||||
100: Interface not supported
|
||||
101: Drive is neither a CDROM nor a WORM device
|
||||
102: Permision denied on cdrom (ioctl) device
|
||||
103: Permision denied on cdrom (data) device
|
||||
|
||||
300: Kernel memory error
|
||||
|
||||
400: Device not open
|
||||
401: Invalid track number
|
||||
402: Track not audio data
|
||||
403: No audio tracks on disc
|
||||
\endverbatim
|
||||
|
||||
*/
|
||||
|
||||
#ifndef DO_NOT_WANT_PARANOIA_COMPATIBILITY
|
||||
/** For compatibility with good ol' paranoia */
|
||||
#define cdda_find_a_cdrom cdio_cddap_find_a_cdrom
|
||||
#define cdda_identify cdio_cddap_identify
|
||||
#define cdda_speed_set cdio_cddap_speed_set
|
||||
#define cdda_verbose_set cdio_cddap_verbose_set
|
||||
#define cdda_messages cdio_cddap_messages
|
||||
#define cdda_errors cdio_cddap_errors
|
||||
#define cdda_close cdio_cddap_close
|
||||
#define cdda_open cdio_cddap_open
|
||||
#define cdda_read cdio_cddap_read
|
||||
#define cdda_track_firstsector cdio_cddap_track_firstsector
|
||||
#define cdda_track_lastsector cdio_cddap_track_lastsector
|
||||
#define cdda_tracks cdio_cddap_tracks
|
||||
#define cdda_sector_gettrack cdio_cddap_sector_gettrack
|
||||
#define cdda_track_channels cdio_cddap_track_channels
|
||||
#define cdda_track_audiop cdio_cddap_track_audiop
|
||||
#define cdda_track_copyp cdio_cddap_track_copyp
|
||||
#define cdda_track_preemp cdio_cddap_track_preemp
|
||||
#define cdda_disc_firstsector cdio_cddap_disc_firstsector
|
||||
#define cdda_disc_lastsector cdio_cddap_disc_lastsector
|
||||
#define cdrom_drive cdrom_drive_t
|
||||
|
||||
#endif /*DO_NOT_WANT_PARANOIA_COMPATIBILITY*/
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/** The below variables are trickery to force the above enum symbol
|
||||
values to be recorded in debug symbol tables. They are used to
|
||||
allow one to refer to the enumeration value names in the typedefs
|
||||
above in a debugger and debugger expressions
|
||||
*/
|
||||
|
||||
extern paranoia_jitter_t debug_paranoia_jitter;
|
||||
extern paranoia_cdda_enums_t debug_paranoia_cdda_enums;
|
||||
|
||||
#endif /*_CDDA_INTERFACE_H_*/
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/*
|
||||
$Id: cdtext.h,v 1.14 2008/03/25 15:59:08 karl Exp $
|
||||
|
||||
Copyright (C) 2004, 2005, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2004, 2005, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
adapted from cuetools
|
||||
Copyright (C) 2003 Svend Sanjay Sorensen <ssorensen@fastmail.fm>
|
||||
|
||||
@@ -26,8 +24,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __CDIO_CDTEXT_H__
|
||||
#define __CDIO_CDTEXT_H__
|
||||
#ifndef CDIO_CDTEXT_H_
|
||||
#define CDIO_CDTEXT_H_
|
||||
|
||||
#include <cdio/types.h>
|
||||
|
||||
@@ -305,7 +303,7 @@ void cdtext_set (cdtext_t *p_cdtext, cdtext_field_t key, const uint8_t *value, t
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __CDIO_CDTEXT_H__ */
|
||||
#endif /* CDIO_CDTEXT_H_ */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -23,8 +23,8 @@
|
||||
* \brief C header for driver- or device-related libcdio
|
||||
* calls. ("device" includes CD-image reading devices).
|
||||
*/
|
||||
#ifndef __CDIO_DEVICE_H__
|
||||
#define __CDIO_DEVICE_H__
|
||||
#ifndef CDIO_DEVICE_H_
|
||||
#define CDIO_DEVICE_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -1055,4 +1055,4 @@ extern cdio_drive_cap_write_t debug_drive_cap_write_t;
|
||||
extern cdio_mmc_hw_len_t debug_cdio_mmc_hw_len;
|
||||
extern cdio_src_category_mask_t debug_cdio_src_category_mask;
|
||||
|
||||
#endif /* __CDIO_DEVICE_H__ */
|
||||
#endif /* CDIO_DEVICE_H_ */
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/* -*- c -*-
|
||||
|
||||
Copyright (C) 2004, 2005, 2006, 2008, 2010 Rocky Bernstein
|
||||
Copyright (C) 2004, 2005, 2006, 2008, 2010, 2012 Rocky Bernstein
|
||||
<rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
@@ -21,8 +21,8 @@
|
||||
\file disc.h
|
||||
\brief The top-level header for disc-related libcdio calls.
|
||||
*/
|
||||
#ifndef __CDIO_DISC_H__
|
||||
#define __CDIO_DISC_H__
|
||||
#ifndef CDIO_DISC_H_
|
||||
#define CDIO_DISC_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -134,4 +134,4 @@ extern "C" {
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __CDIO_DISC_H__ */
|
||||
#endif /* CDIO_DISC_H_ */
|
||||
|
||||
@@ -26,8 +26,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __CDIO_DS_H__
|
||||
#define __CDIO_DS_H__
|
||||
#ifndef CDIO_DS_H_
|
||||
#define CDIO_DS_H_
|
||||
|
||||
#include <cdio/types.h>
|
||||
|
||||
@@ -86,7 +86,7 @@ void *_cdio_list_node_data (CdioListNode_t *p_node);
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __CDIO_DS_H__ */
|
||||
#endif /* CDIO_DS_H_ */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -27,35 +27,40 @@
|
||||
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_DVD_H__
|
||||
#define __CDIO_DVD_H__
|
||||
#ifndef CDIO_DVD_H_
|
||||
#define CDIO_DVD_H_
|
||||
|
||||
#include <cdio/types.h>
|
||||
|
||||
/**
|
||||
Values used in a READ DVD STRUCTURE
|
||||
*/
|
||||
|
||||
#define CDIO_DVD_STRUCT_PHYSICAL 0x00
|
||||
#define CDIO_DVD_STRUCT_COPYRIGHT 0x01
|
||||
#define CDIO_DVD_STRUCT_DISCKEY 0x02
|
||||
#define CDIO_DVD_STRUCT_BCA 0x03
|
||||
#define CDIO_DVD_STRUCT_MANUFACT 0x04
|
||||
typedef enum cdio_dvd_structure
|
||||
{
|
||||
CDIO_DVD_STRUCT_PHYSICAL = 0x00,
|
||||
CDIO_DVD_STRUCT_COPYRIGHT = 0x01,
|
||||
CDIO_DVD_STRUCT_DISCKEY = 0x02,
|
||||
CDIO_DVD_STRUCT_BCA = 0x03,
|
||||
CDIO_DVD_STRUCT_MANUFACT = 0x04
|
||||
} cdio_dvd_structure;
|
||||
|
||||
/**
|
||||
Media definitions for "DVD Book" from MMC-5 Table 400, page 419.
|
||||
*/
|
||||
#define CDIO_DVD_BOOK_DVD_ROM 0x0 /**< DVD-ROM */
|
||||
#define CDIO_DVD_BOOK_DVD_RAM 0x1 /**< DVD-RAM */
|
||||
#define CDIO_DVD_BOOK_DVD_R 0x2 /**< DVD-R */
|
||||
#define CDIO_DVD_BOOK_DVD_RW 0x3 /**< DVD-RW */
|
||||
#define CDIO_DVD_BOOK_HD_DVD_ROM 0x4 /**< HD DVD-ROM */
|
||||
#define CDIO_DVD_BOOK_HD_DVD_RAM 0x5 /**< HD DVD-RAM */
|
||||
#define CDIO_DVD_BOOK_HD_DVD_R 0x6 /**< HD DVD-R */
|
||||
#define CDIO_DVD_BOOK_DVD_PRW 0x9 /**< DVD+RW */
|
||||
#define CDIO_DVD_BOOK_DVD_PR 0xa /**< DVD+R */
|
||||
#define CDIO_DVD_BOOK_DVD_PRW_DL 0xd /**< DVD+RW DL */
|
||||
#define CDIO_DVD_BOOK_DVD_PR_DL 0xe /**< DVD+R DL */
|
||||
typedef enum cdio_dvd_book
|
||||
{
|
||||
CDIO_DVD_BOOK_DVD_ROM = 0x0, /**< DVD-ROM */
|
||||
CDIO_DVD_BOOK_DVD_RAM = 0x1, /**< DVD-RAM */
|
||||
CDIO_DVD_BOOK_DVD_R = 0x2, /**< DVD-R */
|
||||
CDIO_DVD_BOOK_DVD_RW = 0x3, /**< DVD-RW */
|
||||
CDIO_DVD_BOOK_HD_DVD_ROM = 0x4, /**< HD DVD-ROM */
|
||||
CDIO_DVD_BOOK_HD_DVD_RAM = 0x5, /**< HD DVD-RAM */
|
||||
CDIO_DVD_BOOK_HD_DVD_R = 0x6, /**< HD DVD-R */
|
||||
CDIO_DVD_BOOK_DVD_PRW = 0x9, /**< DVD+RW */
|
||||
CDIO_DVD_BOOK_DVD_PR = 0xa, /**< DVD+R */
|
||||
CDIO_DVD_BOOK_DVD_PRW_DL = 0xd, /**< DVD+RW DL */
|
||||
CDIO_DVD_BOOK_DVD_PR_DL = 0xe /**< DVD+R DL */
|
||||
} cdio_dvd_book;
|
||||
|
||||
typedef struct cdio_dvd_layer {
|
||||
unsigned int book_version : 4;
|
||||
@@ -124,4 +129,4 @@ typedef union {
|
||||
cdio_dvd_manufact_t manufact;
|
||||
} cdio_dvd_struct_t;
|
||||
|
||||
#endif /* __CDIO_DVD_H__ */
|
||||
#endif /* CDIO_DVD_H_ */
|
||||
|
||||
@@ -49,8 +49,8 @@
|
||||
* See http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-167.pdf
|
||||
*/
|
||||
|
||||
#ifndef _ECMA_167_H
|
||||
#define _ECMA_167_H 1
|
||||
#ifndef CDIO_ECMA_167_H
|
||||
#define CDIO_ECMA_167_H 1
|
||||
|
||||
#include <cdio/types.h>
|
||||
|
||||
@@ -1039,4 +1039,4 @@ extern icbtag_flag_enum_t debug_flag_enum;
|
||||
extern ecma_167_enum1_t debug_ecma_167_enum1;
|
||||
extern ecma_167_timezone_enum_t debug_ecma_167_timezone_enum;
|
||||
|
||||
#endif /* _ECMA_167_H */
|
||||
#endif /* CDIO_ECMA_167_H */
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/*
|
||||
$Id: iso9660.h,v 1.102 2008/07/16 00:28:54 rocky Exp $
|
||||
|
||||
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008
|
||||
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2012
|
||||
Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
|
||||
|
||||
@@ -33,8 +31,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __CDIO_ISO9660_H__
|
||||
#define __CDIO_ISO9660_H__
|
||||
#ifndef CDIO_ISO9660_H_
|
||||
#define CDIO_ISO9660_H_
|
||||
|
||||
#include <time.h>
|
||||
|
||||
@@ -1133,7 +1131,7 @@ lsn_t iso9660_get_dir_extent(const iso9660_dir_t *p_idr);
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#undef ISODCL
|
||||
#endif /* __CDIO_ISO9660_H__ */
|
||||
#endif /* CDIO_ISO9660_H_ */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/*
|
||||
$Id: logging.h,v 1.11 2008/03/25 15:59:09 karl Exp $
|
||||
|
||||
Copyright (C) 2003, 2004, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2003, 2004, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
@@ -23,8 +21,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __LOGGING_H__
|
||||
#define __LOGGING_H__
|
||||
#ifndef CDIO_LOGGING_H_
|
||||
#define CDIO_LOGGING_H_
|
||||
|
||||
#include <cdio/types.h>
|
||||
|
||||
@@ -124,7 +122,7 @@ void cdio_error (const char format[], ...) GNUC_PRINTF(1,2);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __LOGGING_H__ */
|
||||
#endif /* CDIO_LOGGING_H_ */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
|
||||
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012
|
||||
Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
@@ -33,8 +33,8 @@
|
||||
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_MMC_H__
|
||||
#define __CDIO_MMC_H__
|
||||
#ifndef CDIO_MMC_H_
|
||||
#define CDIO_MMC_H_
|
||||
|
||||
#include <cdio/cdio.h>
|
||||
#include <cdio/types.h>
|
||||
@@ -800,7 +800,7 @@ extern cdio_mmc_mode_page_t debug_cdio_mmc_mode_page;
|
||||
CDIO_MMC_GPCMD_PREVENT_ALLOW_MEDIUM_REMOVAL
|
||||
#endif /*DO_NOT_WANT_PARANOIA_COMPATIBILITY*/
|
||||
|
||||
#endif /* __MMC_H__ */
|
||||
#endif /* CDIO_MMC_H_ */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2010 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2010, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -15,14 +15,14 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_MMC_CMDS_H__
|
||||
#define __CDIO_MMC_CMDS_H__
|
||||
#ifndef CDIO_MMC_CMDS_H_
|
||||
#define CDIO_MMC_CMDS_H_
|
||||
|
||||
#include <cdio/mmc.h>
|
||||
#include <cdio/mmc_ll_cmds.h>
|
||||
#include <cdio/mmc_hl_cmds.h>
|
||||
|
||||
#endif /* __CDIO_MMC_CMDS_H__ */
|
||||
#endif /* CDIO_MMC_CMDS_H_ */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2010 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2010, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -22,8 +22,8 @@
|
||||
MMC commands.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_MMC_HL_CMDS_H__
|
||||
#define __CDIO_MMC_HL_CMDS_H__
|
||||
#ifndef CDIO_MMC_HL_CMDS_H_
|
||||
#define CDIO_MMC_HL_CMDS_H_
|
||||
|
||||
#include <cdio/mmc.h>
|
||||
|
||||
@@ -121,7 +121,7 @@ extern "C" {
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __CDIO_MMC_HL_CMDS_H__ */
|
||||
#endif /* CDIO_MMC_HL_CMDS_H_ */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2010 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2010, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -32,8 +32,8 @@
|
||||
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_MMC_LL_CMDS_H__
|
||||
#define __CDIO_MMC_LL_CMDS_H__
|
||||
#ifndef CDIO_MMC_LL_CMDS_H_
|
||||
#define CDIO_MMC_LL_CMDS_H_
|
||||
|
||||
#include <cdio/mmc.h>
|
||||
|
||||
@@ -352,7 +352,7 @@ extern "C" {
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __CDIO_MMC_HL_CMDS_H__ */
|
||||
#endif /* CDIO_MMC_HL_CMDS_H_ */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2010 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2010, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -22,8 +22,8 @@
|
||||
on anything other than headers.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_MMC_UTIL_H__
|
||||
#define __CDIO_MMC_UTIL_H__
|
||||
#ifndef CDIO_MMC_UTIL_H_
|
||||
#define CDIO_MMC_UTIL_H_
|
||||
|
||||
#include <cdio/device.h>
|
||||
|
||||
@@ -147,7 +147,7 @@ extern "C" {
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __MMC_UTIL_H__ */
|
||||
#endif /* CDIO_MMC_UTIL_H_ */
|
||||
/*
|
||||
* Local variables:
|
||||
* c-file-style: "gnu"
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/*
|
||||
$Id: posix.h,v 1.2 2008/03/25 15:59:09 karl Exp $
|
||||
|
||||
Copyright (C) 2005, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2005, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -22,8 +20,8 @@
|
||||
* \brief various POSIX definitions.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_POSIX_H__
|
||||
#define __CDIO_POSIX_H__
|
||||
#ifndef CDIO_POSIX_H_
|
||||
#define CDIO_POSIX_H_
|
||||
|
||||
typedef uint32_t posix_mode_t;
|
||||
typedef uint32_t posix_nlink_t;
|
||||
@@ -31,7 +29,7 @@ typedef uint32_t posix_uid_t;
|
||||
typedef uint32_t posix_gid_t;
|
||||
typedef uint16_t unicode16_t;
|
||||
|
||||
#endif /* __CDIO_POSIX_H__ */
|
||||
#endif /* CDIO_POSIX_H_ */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/*
|
||||
$Id: read.h,v 1.15 2008/03/25 15:59:09 karl Exp $
|
||||
|
||||
Copyright (C) 2005, 2006, 2007, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2005, 2006, 2007, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -23,8 +21,8 @@
|
||||
* libcdio calls.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_READ_H__
|
||||
#define __CDIO_READ_H__
|
||||
#ifndef CDIO_READ_H_
|
||||
#define CDIO_READ_H_
|
||||
|
||||
#include <cdio/types.h>
|
||||
|
||||
@@ -223,4 +221,4 @@ extern "C" {
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __CDIO_TRACK_H__ */
|
||||
#endif /* CDIO_READ_H_ */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2005, 2006 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2005, 2006 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
See also rock.c by Eric Youngdale (1993) from GNU/Linux
|
||||
This is Copyright 1993 Yggdrasil Computing, Incorporated
|
||||
@@ -26,8 +26,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __CDIO_ROCK_H__
|
||||
#define __CDIO_ROCK_H__
|
||||
#ifndef CDIO_ROCK_H_
|
||||
#define CDIO_ROCK_H_
|
||||
|
||||
#include <cdio/types.h>
|
||||
|
||||
@@ -373,7 +373,7 @@ extern iso_rock_tf_flag_t iso_rock_tf_flag;
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __ISO_ROCK_H__ */
|
||||
#endif /* CDIO_ROCK_H_ */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
$Id: sector.h,v 1.38 2008/03/25 15:59:09 karl Exp $
|
||||
|
||||
Copyright (C) 2003, 2004, 2005, 2006, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2003, 2004, 2005, 2006, 2008, 2012
|
||||
Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
@@ -57,8 +56,8 @@
|
||||
|
||||
*/
|
||||
|
||||
#ifndef _CDIO_SECTOR_H_
|
||||
#define _CDIO_SECTOR_H_
|
||||
#ifndef CDIO_SECTOR_H_
|
||||
#define CDIO_SECTOR_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -69,10 +68,13 @@
|
||||
/*! Information that can be obtained through a Read Subchannel
|
||||
command.
|
||||
*/
|
||||
#define CDIO_SUBCHANNEL_SUBQ_DATA 0
|
||||
#define CDIO_SUBCHANNEL_CURRENT_POSITION 1
|
||||
#define CDIO_SUBCHANNEL_MEDIA_CATALOG 2
|
||||
#define CDIO_SUBCHANNEL_TRACK_ISRC 3
|
||||
typedef enum cdio_subchannel
|
||||
{
|
||||
CDIO_SUBCHANNEL_SUBQ_DATA = 0,
|
||||
CDIO_SUBCHANNEL_CURRENT_POSITION = 1,
|
||||
CDIO_SUBCHANNEL_MEDIA_CATALOG = 2,
|
||||
CDIO_SUBCHANNEL_TRACK_ISRC = 3
|
||||
} cdio_subchannel;
|
||||
|
||||
/*! track flags
|
||||
* Q Sub-channel Control Field (4.2.3.3)
|
||||
@@ -199,12 +201,14 @@
|
||||
#define CDIO_CD_FRAMES_PER_MIN \
|
||||
(CDIO_CD_FRAMES_PER_SEC*CDIO_CD_SECS_PER_MIN)
|
||||
|
||||
#define CDIO_CD_74MIN_SECTORS (UINT32_C(74)*CDIO_CD_FRAMES_PER_MIN)
|
||||
#define CDIO_CD_80MIN_SECTORS (UINT32_C(80)*CDIO_CD_FRAMES_PER_MIN)
|
||||
#define CDIO_CD_90MIN_SECTORS (UINT32_C(90)*CDIO_CD_FRAMES_PER_MIN)
|
||||
typedef enum cdio_cd_minutes_sectors
|
||||
{
|
||||
CDIO_CD_74MIN_SECTORS = UINT32_C(74) * CDIO_CD_FRAMES_PER_MIN,
|
||||
CDIO_CD_80MIN_SECTORS = UINT32_C(80) * CDIO_CD_FRAMES_PER_MIN,
|
||||
CDIO_CD_90MIN_SECTORS = UINT32_C(90) * CDIO_CD_FRAMES_PER_MIN,
|
||||
|
||||
#define CDIO_CD_MAX_SECTORS \
|
||||
(UINT32_C(100)*CDIO_CD_FRAMES_PER_MIN-CDIO_PREGAP_SECTORS)
|
||||
CDIO_CD_MAX_SECTORS = UINT32_C(100) * CDIO_CD_FRAMES_PER_MIN - CDIO_PREGAP_SECTORS
|
||||
} cdio_cd_minutes_sectors;
|
||||
|
||||
#define msf_t_SIZEOF 3
|
||||
|
||||
@@ -274,7 +278,7 @@
|
||||
#define CD_FRAMESIZE_RAW CDIO_CD_FRAMESIZE_RAW
|
||||
#endif /*DO_NOT_WANT_PARANOIA_COMPATIBILITY*/
|
||||
|
||||
#endif /* _CDIO_SECTOR_H_ */
|
||||
#endif /* CDIO_SECTOR_H_ */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2005, 2006, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2005, 2006, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -18,8 +18,8 @@
|
||||
/** \file track.h
|
||||
* \brief The top-level header for track-related libcdio calls.
|
||||
*/
|
||||
#ifndef __CDIO_TRACK_H__
|
||||
#define __CDIO_TRACK_H__
|
||||
#ifndef CDIO_TRACK_H_
|
||||
#define CDIO_TRACK_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -250,5 +250,4 @@ extern "C" {
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __CDIO_TRACK_H__ */
|
||||
|
||||
#endif /* CDIO_TRACK_H_ */
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __CDIO_TYPES_H__
|
||||
#define __CDIO_TYPES_H__
|
||||
#ifndef CDIO_TYPES_H_
|
||||
#define CDIO_TYPES_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -338,7 +338,7 @@ typedef uint8_t ubyte;
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __CDIO_TYPES_H__ */
|
||||
#endif /* CDIO_TYPES_H_ */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -99,6 +99,7 @@ bool cdio_charset_to_utf8(const char *src, size_t src_len, cdio_utf8_t **dst,
|
||||
*/
|
||||
wchar_t* cdio_utf8_to_wchar(const char* str);
|
||||
|
||||
#include <stdio.h> /* for FILE */
|
||||
/** \brief Provides an UTF-8 compliant version of fopen for Windows
|
||||
* The parameters and return value are the same as fopen().
|
||||
*/
|
||||
|
||||
@@ -17,8 +17,8 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_UTIL_H__
|
||||
#define __CDIO_UTIL_H__
|
||||
#ifndef CDIO_UTIL_H_
|
||||
#define CDIO_UTIL_H_
|
||||
|
||||
/*!
|
||||
\file util.h
|
||||
@@ -129,7 +129,7 @@ char *cdio_realpath (const char *psz_src, char *psz_dst);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __CDIO_UTIL_H__ */
|
||||
#endif /* CDIO_UTIL_H_ */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
/*
|
||||
$Id: xa.h,v 1.19 2008/03/25 15:59:10 karl Exp $
|
||||
|
||||
Copyright (C) 2003, 2004, 2005, 2006, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2003, 2004, 2005, 2006, 2008, 2012
|
||||
Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
|
||||
|
||||
See also iso9660.h by Eric Youngdale (1993) and in cdrtools. These are
|
||||
@@ -31,8 +30,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __CDIO_XA_H__
|
||||
#define __CDIO_XA_H__
|
||||
#ifndef CDIO_XA_H_
|
||||
#define CDIO_XA_H_
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -168,7 +167,7 @@ extern xa_misc_enum_t debugger_xa_misc_enum;
|
||||
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __CDIO_XA_H__ */
|
||||
#endif /* CDIO_XA_H_ */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/*
|
||||
$Id: _cdio_stdio.h,v 1.3 2008/04/22 15:29:11 karl Exp $
|
||||
|
||||
Copyright (C) 2003, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2003, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
@@ -19,8 +17,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __CDIO_STDIO_H__
|
||||
#define __CDIO_STDIO_H__
|
||||
#ifndef CDIO_STDIO_H_
|
||||
#define CDIO_STDIO_H_
|
||||
|
||||
#include "_cdio_stream.h"
|
||||
|
||||
@@ -39,7 +37,7 @@ CdioDataSource_t * cdio_stdio_new(const char psz_path[]);
|
||||
void cdio_stdio_destroy(CdioDataSource_t *p_obj);
|
||||
|
||||
|
||||
#endif /* __CDIO_STREAM_STDIO_H__ */
|
||||
#endif /* CDIO_STDIO_H_ */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
*/
|
||||
|
||||
|
||||
#ifndef __CDIO_STREAM_H__
|
||||
#define __CDIO_STREAM_H__
|
||||
#ifndef CDIO_STREAM_H_
|
||||
#define CDIO_STREAM_H_
|
||||
|
||||
#include <cdio/types.h>
|
||||
#include "cdio_private.h"
|
||||
@@ -126,7 +126,7 @@ extern "C" {
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __CDIO_STREAM_H__ */
|
||||
#endif /* CDIO_STREAM_H_ */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -16,8 +16,8 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_ASSERT_H__
|
||||
#define __CDIO_ASSERT_H__
|
||||
#ifndef CDIO_ASSERT_H_
|
||||
#define CDIO_ASSERT_H_
|
||||
|
||||
#if defined(__GNUC__) && !defined(__MINGW32__)
|
||||
|
||||
@@ -55,4 +55,4 @@
|
||||
|
||||
#endif
|
||||
|
||||
#endif /* __CDIO_ASSERT_H__ */
|
||||
#endif /* CDIO_ASSERT_H_ */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2003, 2004, 2005, 2008, 2009, 2011
|
||||
Copyright (C) 2003, 2004, 2005, 2008, 2009, 2011, 2012
|
||||
Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
@@ -19,8 +19,8 @@
|
||||
/* Internal routines for CD I/O drivers. */
|
||||
|
||||
|
||||
#ifndef __CDIO_PRIVATE_H__
|
||||
#define __CDIO_PRIVATE_H__
|
||||
#ifndef CDIO_DRIVER_PRIVATE_H_
|
||||
#define CDIO_DRIVER_PRIVATE_H_
|
||||
|
||||
#if defined(HAVE_CONFIG_H) && !defined(LIBCDIO_CONFIG_H)
|
||||
# include "config.h"
|
||||
@@ -559,4 +559,4 @@ extern "C" {
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __CDIO_PRIVATE_H__ */
|
||||
#endif /* CDIO_DRIVER_PRIVATE_H_ */
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
Copyright (C) 2004, 2005, 2008, 2011 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2004, 2005, 2008, 2011, 2012
|
||||
Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -15,8 +16,8 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_CDTEXT_PRIVATE_H__
|
||||
#define __CDIO_CDTEXT_PRIVATE_H__
|
||||
#ifndef CDIO_DRIVER_CDTEXT_PRIVATE_H_
|
||||
#define CDIO_DRIVER_CDTEXT_PRIVATE_H_
|
||||
|
||||
#include <cdio/types.h>
|
||||
|
||||
@@ -136,7 +137,7 @@ cdtext_field_t cdtext_is_field (const char *field);
|
||||
cdtext_lang_t cdtext_is_language (const char *lang);
|
||||
|
||||
|
||||
#endif /* __CDIO_CDTEXT_PRIVATE_H__ */
|
||||
#endif /* CDIO_DRIVER_CDTEXT_PRIVATE_H_ */
|
||||
|
||||
/*
|
||||
* Local variables:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
filemode.h -- file modes common definitions
|
||||
|
||||
Copyright (C) 2005, 2008, 2011 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2005, 2008, 2011, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 1985, 1990, 1993, 1998-2000 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
@@ -18,8 +18,8 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __FILEMODE_H__
|
||||
#define __FILEMODE_H__
|
||||
#ifndef CDIO_DRIVER_FILEMODE_H_
|
||||
#define CDIO_DRIVER_FILEMODE_H_
|
||||
|
||||
#ifdef HAVE_SYS_STAT_H
|
||||
#include <sys/stat.h>
|
||||
@@ -131,4 +131,4 @@
|
||||
# define S_ISCTG(m) (((m) & S_IFMT) == S_IFCTG)
|
||||
#endif
|
||||
|
||||
#endif /* __FILEMODE_H__ */
|
||||
#endif /* CDIO_DRIVER_FILEMODE_H_ */
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
Copyright (C) 2004, 2005, 2006, 2008, 2009 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2004, 2005, 2006, 2008, 2009, 2012
|
||||
Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -18,8 +19,8 @@
|
||||
/* Internal routines for CD I/O drivers. */
|
||||
|
||||
|
||||
#ifndef __CDIO_GENERIC_H__
|
||||
#define __CDIO_GENERIC_H__
|
||||
#ifndef CDIO_DRIVER_GENERIC_H_
|
||||
#define CDIO_DRIVER_GENERIC_H_
|
||||
|
||||
#if defined(HAVE_CONFIG_H) && !defined(LIBCDIO_CONFIG_H)
|
||||
# include "config.h"
|
||||
@@ -237,7 +238,7 @@ extern "C" {
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __CDIO_GENERIC_H__ */
|
||||
#endif /* CDIO_DRIVER_GENERIC_H_ */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
/*
|
||||
Copyright (C) 2004, 2005, 2008, 2011 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2004, 2005, 2008, 2011, 2012
|
||||
Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -21,8 +22,8 @@
|
||||
defined before it is included.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_IMAGE_H__
|
||||
#define __CDIO_IMAGE_H__
|
||||
#ifndef CDIO_DRIVER_IMAGE_H_
|
||||
#define CDIO_DRIVER_IMAGE_H_
|
||||
|
||||
#if defined(HAVE_CONFIG_H) && !defined(__CDIO_CONFIG_H__)
|
||||
# include "config.h"
|
||||
@@ -76,4 +77,4 @@ typedef struct {
|
||||
} track_info_t;
|
||||
|
||||
|
||||
#endif /* __CDIO_IMAGE_H__ */
|
||||
#endif /* CDIO_DRIVER_IMAGE_H_ */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2004, 2005, 2008 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2004, 2005, 2008, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -24,8 +24,8 @@
|
||||
image.h
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_IMAGE_COMMON_H__
|
||||
#define __CDIO_IMAGE_COMMON_H__
|
||||
#ifndef CDIO_DRIVER_IMAGE_COMMON_H_
|
||||
#define CDIO_DRIVER_IMAGE_COMMON_H_
|
||||
|
||||
typedef struct {
|
||||
/* Things common to all drivers like this.
|
||||
@@ -202,4 +202,4 @@ read_data_sectors_image ( void *p_user_data, void *p_buf,
|
||||
*/
|
||||
int _set_arg_image (void *user_data, const char key[], const char value[]);
|
||||
|
||||
#endif /* __CDIO_IMAGE_COMMON_H__ */
|
||||
#endif /* CDIO_DRIVER_IMAGE_COMMON_H_ */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2010 Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2010, 2012 Rocky Bernstein <rocky@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -15,8 +15,8 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_MMC_CMD_HELPER_H__
|
||||
#define __CDIO_MMC_CMD_HELPER_H__
|
||||
#ifndef CDIO_DRIVER_MMC_CMD_HELPER_H_
|
||||
#define CDIO_DRIVER_MMC_CMD_HELPER_H_
|
||||
|
||||
/* Boilerplate initialization code to setup running MMC command. We
|
||||
assume variables 'p_cdio', 'p_buf', and 'i_size' are previously
|
||||
@@ -60,4 +60,4 @@
|
||||
&cdb, \
|
||||
direction, i_size, p_buf)
|
||||
|
||||
#endif /* __CDIO_MMC_CMD_HELPER_H__ */
|
||||
#endif /* CDIO_DRIVER_MMC_CMD_HELPER_H_ */
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
included other routines can be more portable.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_PORTABLE_H__
|
||||
#define __CDIO_PORTABLE_H__
|
||||
#ifndef CDIO_DRIVER_PORTABLE_H_
|
||||
#define CDIO_DRIVER_PORTABLE_H_
|
||||
|
||||
#if defined(HAVE_CONFIG_H) && !defined(__CDIO_CONFIG_H__)
|
||||
# include "config.h"
|
||||
@@ -51,4 +51,4 @@
|
||||
# define drand48() (rand() / (double)RAND_MAX)
|
||||
#endif
|
||||
|
||||
#endif /* __CDIO_PORTABLE_H__ */
|
||||
#endif /* CDIO_DRIVER_PORTABLE_H_ */
|
||||
|
||||
@@ -335,15 +335,17 @@ iso9660_set_dtime_with_timezone (const struct tm *p_tm,
|
||||
Set time in format used in ISO 9660 directory index record
|
||||
from a Unix time structure. */
|
||||
void
|
||||
iso9660_set_dtime (const struct tm *p_tm, /*out*/ iso9660_dtime_t *p_idr_date)
|
||||
iso9660_set_dtime(const struct tm *p_tm, /*out*/ iso9660_dtime_t *p_idr_date)
|
||||
{
|
||||
int time_zone;
|
||||
int time_zone = 0;
|
||||
if (p_tm) {
|
||||
#ifdef HAVE_TM_GMTOFF
|
||||
/* Convert seconds to minutes */
|
||||
time_zone = p_tm->tm_gmtoff / 60;
|
||||
#else
|
||||
time_zone = (p_tm->tm_isdst > 0) ? -60 : 0;
|
||||
#endif
|
||||
}
|
||||
iso9660_set_dtime_with_timezone (p_tm, time_zone, p_idr_date);
|
||||
}
|
||||
|
||||
@@ -353,7 +355,7 @@ iso9660_set_dtime (const struct tm *p_tm, /*out*/ iso9660_dtime_t *p_idr_date)
|
||||
correction in minutes.
|
||||
*/
|
||||
void
|
||||
iso9660_set_ltime_with_timezone (const struct tm *p_tm,
|
||||
iso9660_set_ltime_with_timezone(const struct tm *p_tm,
|
||||
int time_zone,
|
||||
/*out*/ iso9660_ltime_t *pvd_date)
|
||||
{
|
||||
@@ -388,15 +390,17 @@ iso9660_set_ltime_with_timezone (const struct tm *p_tm,
|
||||
Set "long" time in format used in ISO 9660 primary volume descriptor
|
||||
from a Unix time structure. */
|
||||
void
|
||||
iso9660_set_ltime (const struct tm *p_tm, /*out*/ iso9660_ltime_t *pvd_date)
|
||||
iso9660_set_ltime(const struct tm *p_tm, /*out*/ iso9660_ltime_t *pvd_date)
|
||||
{
|
||||
int time_zone;
|
||||
int time_zone = 0;
|
||||
if (p_tm) {
|
||||
#ifdef HAVE_TM_GMTOFF
|
||||
/* Set time zone in 15-minute interval encoding. */
|
||||
time_zone = p_tm->tm_gmtoff / 60;
|
||||
#else
|
||||
time_zone = (p_tm->tm_isdst > 0) ? -60 : 0;
|
||||
#endif
|
||||
}
|
||||
iso9660_set_ltime_with_timezone (p_tm, time_zone, pvd_date);
|
||||
}
|
||||
|
||||
@@ -666,8 +670,8 @@ iso9660_set_pvd(void *pd,
|
||||
iso9660_set_ltime (&temp_tm, &(ipd.creation_date));
|
||||
gmtime_r(pvd_time, &temp_tm);
|
||||
iso9660_set_ltime (&temp_tm, &(ipd.modification_date));
|
||||
iso9660_set_ltime (&temp_tm, &(ipd.expiration_date));
|
||||
iso9660_set_ltime (&temp_tm, &(ipd.effective_date));
|
||||
iso9660_set_ltime (NULL, &(ipd.expiration_date));
|
||||
iso9660_set_ltime (NULL, &(ipd.effective_date));
|
||||
|
||||
ipd.file_structure_version = to_711(1);
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
Copyright (C) 2003, 2004, 2005, 2008, 2011
|
||||
Copyright (C) 2003, 2004, 2005, 2008, 2011, 2012
|
||||
Rocky Bernstein <rocky@gnu.org>
|
||||
Copyright (C) 2000 Herbert Valerio Riedel <hvr@gnu.org>
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_ISO9660_PRIVATE_H__
|
||||
#define __CDIO_ISO9660_PRIVATE_H__
|
||||
#ifndef CDIO_ISO9660_ISO9660_PRIVATE_H_
|
||||
#define CDIO_ISO9660_ISO9660_PRIVATE_H_
|
||||
|
||||
#if defined(HAVE_CONFIG_H) && !defined(__CDIO_CONFIG_H__)
|
||||
# include "config.h"
|
||||
@@ -71,7 +71,7 @@ typedef struct iso_path_table_s {
|
||||
|
||||
PRAGMA_END_PACKED
|
||||
|
||||
#endif /* __CDIO_ISO9660_PRIVATE_H__ */
|
||||
#endif /* CDIO_ISO0660_ISO9660_PRIVATE_H_ */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/*
|
||||
$Id: udf_fs.h,v 1.3 2008/04/18 16:02:10 karl Exp $
|
||||
|
||||
Copyright (C) 2006, 2008 Rocky Bernstein <rockyb@gnu.org>
|
||||
Copyright (C) 2006, 2008, 2012 Rocky Bernstein <rockyb@gnu.org>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@@ -17,8 +15,8 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_UDF_FS_H__
|
||||
#define __CDIO_UDF_FS_H__
|
||||
#ifndef CDIO_UDF_UDF_FS_H_
|
||||
#define CDIO_UDF_UDF_FS_H_
|
||||
|
||||
#include <cdio/ecma_167.h>
|
||||
/**
|
||||
@@ -27,7 +25,7 @@
|
||||
*/
|
||||
int udf_checktag(const udf_tag_t *p_tag, udf_Uint16_t tag_id);
|
||||
|
||||
#endif /* __CDIO_UDF_FS_H__ */
|
||||
#endif /* CDIO_UDF_UDF_FS_H_ */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
@@ -15,8 +15,8 @@
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef __CDIO_UDF_PRIVATE_H__
|
||||
#define __CDIO_UDF_PRIVATE_H__
|
||||
#ifndef CDIO_UDF_UDF_PRIVATE_H_
|
||||
#define CDIO_UDF_UDF_PRIVATE_H_
|
||||
|
||||
#if defined(HAVE_CONFIG_H) && !defined(LIBCDIO_CONFIG_H) && !defined(__CDIO_CONFIG_H__)
|
||||
# include "config.h"
|
||||
@@ -43,7 +43,7 @@ struct udf_s {
|
||||
uint32_t fsd_offset; /* lba of fileset descriptor */
|
||||
};
|
||||
|
||||
#endif /* __CDIO_UDF_PRIVATE_H__ */
|
||||
#endif /* CDIO_UDF_UDF_PRIVATE_H_ */
|
||||
|
||||
|
||||
/*
|
||||
|
||||
14
src/getopt.h
14
src/getopt.h
@@ -19,8 +19,8 @@
|
||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
||||
USA. */
|
||||
|
||||
#ifndef _GETOPT_H
|
||||
#define _GETOPT_H 1
|
||||
#ifndef CDIO_SRC_GETOPT_H
|
||||
#define CDIO_SRC_GETOPT_H 1
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
@@ -119,15 +119,15 @@ extern int _getopt_internal (int argc, char *const *argv,
|
||||
const struct option *longopts, int *longind,
|
||||
int long_only);
|
||||
#else /* not __STDC__ */
|
||||
extern int getopt ();
|
||||
extern int getopt_long ();
|
||||
extern int getopt_long_only ();
|
||||
extern int getopt();
|
||||
extern int getopt_long();
|
||||
extern int getopt_long_only();
|
||||
|
||||
extern int _getopt_internal ();
|
||||
extern int _getopt_internal();
|
||||
#endif /* __STDC__ */
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* getopt.h */
|
||||
#endif /* CDIO_SRC_GETOPT_H */
|
||||
|
||||
@@ -2,15 +2,15 @@
|
||||
# Tests to see that BIN/CUE and cdrdao TOC file iamge reading is correct
|
||||
# (via cd-info).
|
||||
|
||||
if test "@VCDINFO_LIBS@X" != "X" ; then
|
||||
if test ! -d "@VCDINFO_LIBS@" ; then
|
||||
vcd_opt='--no-vcd'
|
||||
fi
|
||||
|
||||
if test "X$abs_top_srcdir" = "X" ; then
|
||||
if test ! -d "$abs_top_srcdir" ; then
|
||||
abs_top_srcdir=@abs_top_srcdir@
|
||||
fi
|
||||
|
||||
if test "X$top_builddir" = "X" ; then
|
||||
if test ! -d "$top_builddir" ; then
|
||||
top_builddir=@abs_top_builddir@
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user