mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-01 23:38:30 -04:00
[iso] upgrade to libcdio latest
* This should fix #179 * Also bump rufus-next to v1.4.0
This commit is contained in:
parent
3c438db3fd
commit
cf3964c8a3
12 changed files with 644 additions and 625 deletions
|
@ -1,7 +1,6 @@
|
|||
/* -*- c -*-
|
||||
|
||||
Copyright (C) 2005, 2006, 2008, 2009, 2010, 2011, 2012 Rocky Bernstein
|
||||
<rocky@gnu.org>
|
||||
Copyright (C) 2005-2006, 2008-2013 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,7 +17,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* \file device.h
|
||||
* \file device.h
|
||||
*
|
||||
* \brief C header for driver- or device-related libcdio
|
||||
* calls. ("device" includes CD-image reading devices).
|
||||
|
@ -37,25 +36,25 @@ extern "C" {
|
|||
typedef uint32_t cdio_drive_read_cap_t;
|
||||
typedef uint32_t cdio_drive_write_cap_t;
|
||||
typedef uint32_t cdio_drive_misc_cap_t;
|
||||
|
||||
|
||||
/**
|
||||
\brief Drive capability bits returned by cdio_get_drive_cap()
|
||||
NOTE: Setting a bit here means the presence of a capability.
|
||||
*/
|
||||
*/
|
||||
|
||||
/** Miscellaneous capabilities. */
|
||||
typedef enum {
|
||||
CDIO_DRIVE_CAP_ERROR = 0x40000, /**< Error */
|
||||
CDIO_DRIVE_CAP_UNKNOWN = 0x80000, /**< Dunno. It can be on if we
|
||||
have only partial information
|
||||
have only partial information
|
||||
or are not completely certain
|
||||
*/
|
||||
CDIO_DRIVE_CAP_MISC_CLOSE_TRAY = 0x00001, /**< caddy systems can't
|
||||
CDIO_DRIVE_CAP_MISC_CLOSE_TRAY = 0x00001, /**< caddy systems can't
|
||||
close... */
|
||||
CDIO_DRIVE_CAP_MISC_EJECT = 0x00002, /**< but can eject. */
|
||||
CDIO_DRIVE_CAP_MISC_LOCK = 0x00004, /**< disable manual eject */
|
||||
CDIO_DRIVE_CAP_MISC_SELECT_SPEED = 0x00008, /**< programmable speed */
|
||||
CDIO_DRIVE_CAP_MISC_SELECT_DISC = 0x00010, /**< select disc from
|
||||
CDIO_DRIVE_CAP_MISC_SELECT_DISC = 0x00010, /**< select disc from
|
||||
juke-box */
|
||||
CDIO_DRIVE_CAP_MISC_MULTI_SESSION= 0x00020, /**< read sessions>1 */
|
||||
CDIO_DRIVE_CAP_MISC_MEDIA_CHANGED= 0x00080, /**< media changed */
|
||||
|
@ -99,28 +98,28 @@ extern "C" {
|
|||
(CDIO_DRIVE_CAP_WRITE_CD_R | CDIO_DRIVE_CAP_WRITE_CD_RW),
|
||||
/**< Has some sort of CD writer ability */
|
||||
|
||||
CDIO_DRIVE_CAP_WRITE_DVD =
|
||||
(CDIO_DRIVE_CAP_WRITE_DVD_R | CDIO_DRIVE_CAP_WRITE_DVD_PR
|
||||
| CDIO_DRIVE_CAP_WRITE_DVD_RAM | CDIO_DRIVE_CAP_WRITE_DVD_RW
|
||||
CDIO_DRIVE_CAP_WRITE_DVD =
|
||||
(CDIO_DRIVE_CAP_WRITE_DVD_R | CDIO_DRIVE_CAP_WRITE_DVD_PR
|
||||
| CDIO_DRIVE_CAP_WRITE_DVD_RAM | CDIO_DRIVE_CAP_WRITE_DVD_RW
|
||||
| CDIO_DRIVE_CAP_WRITE_DVD_RPW ),
|
||||
/**< Has some sort of DVD writer ability */
|
||||
|
||||
CDIO_DRIVE_CAP_WRITE =
|
||||
CDIO_DRIVE_CAP_WRITE =
|
||||
(CDIO_DRIVE_CAP_WRITE_CD | CDIO_DRIVE_CAP_WRITE_DVD)
|
||||
/**< Has some sort of DVD or CD writing ability */
|
||||
} cdio_drive_cap_write_t;
|
||||
|
||||
|
||||
/** Size of fields returned by an INQUIRY command */
|
||||
typedef enum {
|
||||
CDIO_MMC_HW_VENDOR_LEN = 8, /**< length of vendor field */
|
||||
CDIO_MMC_HW_MODEL_LEN = 16, /**< length of model field */
|
||||
CDIO_MMC_HW_REVISION_LEN = 4 /**< length of revision field */
|
||||
} cdio_mmc_hw_len_t;
|
||||
|
||||
|
||||
|
||||
/** \brief Structure to return CD vendor, model, and revision-level
|
||||
strings obtained via the INQUIRY command */
|
||||
typedef struct cdio_hwinfo
|
||||
typedef struct cdio_hwinfo
|
||||
{
|
||||
char psz_vendor [CDIO_MMC_HW_VENDOR_LEN+1];
|
||||
char psz_model [CDIO_MMC_HW_MODEL_LEN+1];
|
||||
|
@ -135,7 +134,7 @@ extern "C" {
|
|||
CDIO_SRC_IS_SCSI_MASK = 0x0004, /**< Read source SCSI device. */
|
||||
CDIO_SRC_IS_NATIVE_MASK = 0x0008
|
||||
} cdio_src_category_mask_t;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The driver_id_t enumerations may be used to tag a specific driver
|
||||
|
@ -147,10 +146,10 @@ extern "C" {
|
|||
* cdio_drivers and cdio_device_drivers arrays.
|
||||
*
|
||||
* NOTE: IF YOU MODIFY ENUM MAKE SURE INITIALIZATION IN CDIO.C AGREES.
|
||||
*
|
||||
*
|
||||
*/
|
||||
typedef enum {
|
||||
DRIVER_UNKNOWN, /**< Used as input when we don't care what kind
|
||||
DRIVER_UNKNOWN, /**< Used as input when we don't care what kind
|
||||
of driver to use. */
|
||||
DRIVER_AIX, /**< AIX driver */
|
||||
DRIVER_BSDI, /**< BSDI driver */
|
||||
|
@ -160,7 +159,7 @@ extern "C" {
|
|||
DRIVER_SOLARIS, /**< Sun Solaris Driver */
|
||||
DRIVER_OS2, /**< IBM OS/2 Driver */
|
||||
DRIVER_OSX, /**< Apple OSX Driver */
|
||||
DRIVER_WIN32, /**< Microsoft Windows Driver. Includes ASPI and
|
||||
DRIVER_WIN32, /**< Microsoft Windows Driver. Includes ASPI and
|
||||
ioctl access. */
|
||||
DRIVER_CDRDAO, /**< cdrdao format CD image. This is listed
|
||||
before BIN/CUE, to make the code prefer cdrdao
|
||||
|
@ -184,14 +183,14 @@ extern "C" {
|
|||
*/
|
||||
extern const driver_id_t cdio_device_drivers[];
|
||||
|
||||
/**
|
||||
/**
|
||||
There will generally be only one hardware for a given
|
||||
build/platform from the list above. You can use the variable
|
||||
below to determine which you've got. If the build doesn't make an
|
||||
hardware driver, then the value will be DRIVER_UNKNOWN.
|
||||
*/
|
||||
extern const driver_id_t cdio_os_driver;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
Those are deprecated; use cdio_drivers or cdio_device_drivers to
|
||||
|
@ -246,15 +245,15 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
} driver_return_code_t;
|
||||
|
||||
/**
|
||||
Close media tray in CD drive if there is a routine to do so.
|
||||
|
||||
Close media tray in CD drive if there is a routine to do so.
|
||||
|
||||
@param psz_drive the name of CD-ROM to be closed. If NULL, we will
|
||||
use the default device.
|
||||
@param p_driver_id is the driver to be used or that got used if
|
||||
it was DRIVER_UNKNOWN or DRIVER_DEVICE; If this is NULL, we won't
|
||||
report back the driver used.
|
||||
*/
|
||||
driver_return_code_t cdio_close_tray (const char *psz_drive,
|
||||
driver_return_code_t cdio_close_tray (const char *psz_drive,
|
||||
/*in/out*/ driver_id_t *p_driver_id);
|
||||
|
||||
/**
|
||||
|
@ -262,9 +261,9 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
@return the string information about drc
|
||||
*/
|
||||
const char *cdio_driver_errmsg(driver_return_code_t drc);
|
||||
|
||||
|
||||
/**
|
||||
Eject media in CD drive if there is a routine to do so.
|
||||
Eject media in CD drive if there is a routine to do so.
|
||||
|
||||
@param p_cdio the CD object to be acted upon.
|
||||
If the CD is ejected *p_cdio is free'd and p_cdio set to NULL.
|
||||
|
@ -272,7 +271,7 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
driver_return_code_t cdio_eject_media (CdIo_t **p_cdio);
|
||||
|
||||
/**
|
||||
Eject media in CD drive if there is a routine to do so.
|
||||
Eject media in CD drive if there is a routine to do so.
|
||||
|
||||
@param psz_drive the name of the device to be acted upon.
|
||||
If NULL is given as the drive, we'll use the default driver device.
|
||||
|
@ -282,7 +281,7 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
/**
|
||||
Free device list returned by cdio_get_devices or
|
||||
cdio_get_devices_with_cap.
|
||||
|
||||
|
||||
@param device_list list returned by cdio_get_devices or
|
||||
cdio_get_devices_with_cap
|
||||
|
||||
|
@ -293,9 +292,9 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
|
||||
/**
|
||||
Get the default CD device.
|
||||
if p_cdio is NULL (we haven't initialized a specific device driver),
|
||||
if p_cdio is NULL (we haven't initialized a specific device driver),
|
||||
then find a suitable one and return the default device for that.
|
||||
|
||||
|
||||
@param p_cdio the CD object queried
|
||||
@return a string containing the default CD device or NULL is
|
||||
if we couldn't get a default device.
|
||||
|
@ -310,7 +309,7 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
Return a string containing the default CD device if none is specified.
|
||||
if p_driver_id is DRIVER_UNKNOWN or DRIVER_DEVICE
|
||||
then find a suitable one set the default device for that.
|
||||
|
||||
|
||||
NULL is returned if we couldn't get a default device.
|
||||
*/
|
||||
char * cdio_get_default_device_driver (/*in/out*/ driver_id_t *p_driver_id);
|
||||
|
@ -319,7 +318,7 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
devices for a driver, give that device. If you want hardware
|
||||
devices, give DRIVER_DEVICE and if you want all possible devices,
|
||||
image drivers and hardware drivers give DRIVER_UNKNOWN.
|
||||
|
||||
|
||||
NULL is returned if we couldn't return a list of devices.
|
||||
|
||||
In some situations of drivers or OS's we can't find a CD device if
|
||||
|
@ -335,30 +334,30 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
|
||||
Capabilities have two parts to them, a "filesystem" part and an
|
||||
"analysis" part.
|
||||
|
||||
|
||||
The filesystem part is mutually exclusive. For example either the
|
||||
filesystem is at most one of the High-Sierra, UFS, or HFS,
|
||||
ISO9660, fileystems. Valid combinations of say HFS and ISO9660
|
||||
are specified as a separate "filesystem".
|
||||
|
||||
|
||||
Capabilities on the other hand are not mutually exclusive. For
|
||||
example a filesystem may have none, either, or both of the XA or
|
||||
Rock-Ridge extension properties.
|
||||
|
||||
|
||||
If "b_any" is set false then every capability listed in the
|
||||
analysis portion of capabilities (i.e. not the basic filesystem)
|
||||
must be satisified. If no analysis capabilities are specified,
|
||||
that's a match.
|
||||
|
||||
If "b_any" is set true, then if any of the analysis capabilities
|
||||
matches, we call that a success.
|
||||
|
||||
matches, we call that a success.
|
||||
|
||||
In either case, in the filesystem portion different filesystem
|
||||
either specify 0 to match any filesystem or the specific
|
||||
filesystem type.
|
||||
|
||||
|
||||
To find a CD-drive of any type, use the mask CDIO_FS_MATCH_ALL.
|
||||
|
||||
|
||||
@return the array of device names or NULL if we couldn't get a
|
||||
default device. It is also possible to return a non NULL but
|
||||
after dereferencing the the value is NULL. This also means nothing
|
||||
|
@ -374,7 +373,7 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
and speeds things up for libcdio as well.
|
||||
*/
|
||||
char ** cdio_get_devices_with_cap_ret (/*in*/ char* ppsz_search_devices[],
|
||||
cdio_fs_anal_t capabilities,
|
||||
cdio_fs_anal_t capabilities,
|
||||
bool b_any,
|
||||
/*out*/ driver_id_t *p_driver_id);
|
||||
|
||||
|
@ -385,33 +384,33 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
afterwards. Giving the driver back facilitates this, and speeds
|
||||
things up for libcdio as well.
|
||||
*/
|
||||
|
||||
|
||||
char ** cdio_get_devices_ret (/*in/out*/ driver_id_t *p_driver_id);
|
||||
|
||||
/**
|
||||
Get the what kind of device we've got.
|
||||
|
||||
|
||||
@param p_cdio the CD object queried
|
||||
@param p_read_cap pointer to return read capabilities
|
||||
@param p_write_cap pointer to return write capabilities
|
||||
@param p_misc_cap pointer to return miscellaneous other capabilities
|
||||
|
||||
|
||||
In some situations of drivers or OS's we can't find a CD device if
|
||||
there is no media in it. In this situation capabilities will show up as
|
||||
there is no media in it. In this situation capabilities will show up as
|
||||
NULL even though there isa hardware CD-ROM.
|
||||
*/
|
||||
void cdio_get_drive_cap (const CdIo_t *p_cdio,
|
||||
cdio_drive_read_cap_t *p_read_cap,
|
||||
cdio_drive_write_cap_t *p_write_cap,
|
||||
cdio_drive_misc_cap_t *p_misc_cap);
|
||||
|
||||
|
||||
/**
|
||||
Get the drive capabilities for a specified device.
|
||||
|
||||
|
||||
Return a list of device capabilities.
|
||||
|
||||
|
||||
In some situations of drivers or OS's we can't find a CD device if
|
||||
there is no media in it. In this situation capabilities will show up as
|
||||
there is no media in it. In this situation capabilities will show up as
|
||||
NULL even though there isa hardware CD-ROM.
|
||||
*/
|
||||
void cdio_get_drive_cap_dev (const char *device,
|
||||
|
@ -421,33 +420,41 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
|
||||
/**
|
||||
Get a string containing the name of the driver in use.
|
||||
|
||||
|
||||
@return a string with driver name or NULL if CdIo_t is NULL (we
|
||||
haven't initialized a specific device.
|
||||
*/
|
||||
const char * cdio_get_driver_name (const CdIo_t *p_cdio);
|
||||
|
||||
/**
|
||||
Get the driver id.
|
||||
if CdIo_t is NULL (we haven't initialized a specific device driver),
|
||||
Return a string containing the name of the driver in use from the driver_id.
|
||||
if CdIo is NULL (we haven't initialized a specific device driver),
|
||||
then return NULL.
|
||||
*/
|
||||
const char * cdio_get_driver_name_from_id (driver_id_t driver_id);
|
||||
|
||||
|
||||
/**
|
||||
Get the driver id.
|
||||
if CdIo_t is NULL (we haven't initialized a specific device driver),
|
||||
then return DRIVER_UNKNOWN.
|
||||
|
||||
|
||||
@return the driver id..
|
||||
*/
|
||||
driver_id_t cdio_get_driver_id (const CdIo_t *p_cdio);
|
||||
|
||||
/**
|
||||
/**
|
||||
Get the CD-ROM hardware info via a SCSI MMC INQUIRY command.
|
||||
False is returned if we had an error getting the information.
|
||||
*/
|
||||
bool cdio_get_hwinfo ( const CdIo_t *p_cdio,
|
||||
bool cdio_get_hwinfo ( const CdIo_t *p_cdio,
|
||||
/*out*/ cdio_hwinfo_t *p_hw_info );
|
||||
|
||||
|
||||
/**
|
||||
Get the LSN of the first track of the last session of
|
||||
on the CD.
|
||||
|
||||
|
||||
@param p_cdio the CD object to be acted upon.
|
||||
@param i_last_session pointer to the session number to be returned.
|
||||
*/
|
||||
|
@ -477,20 +484,20 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
void cdio_destroy (CdIo_t *p_cdio);
|
||||
|
||||
/**
|
||||
Get a string decribing driver_id.
|
||||
Get a string decribing driver_id.
|
||||
|
||||
@param driver_id the driver you want the description for
|
||||
@return a string of driver description
|
||||
*/
|
||||
const char *cdio_driver_describe (driver_id_t driver_id);
|
||||
|
||||
|
||||
/**
|
||||
Sets up to read from place specified by psz_source and
|
||||
driver_id. This or cdio_open_* should be called before using any
|
||||
other routine, except cdio_init or any routine that accesses the
|
||||
CD-ROM drive by name. cdio_open will call cdio_init, if that
|
||||
hasn't been done previously.
|
||||
|
||||
|
||||
@return the cdio object or NULL on error or no device. If NULL
|
||||
is given as the source, we'll use the default driver device.
|
||||
*/
|
||||
|
@ -502,50 +509,50 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
other routine, except cdio_init or any routine that accesses the
|
||||
CD-ROM drive by name. This will call cdio_init, if that hasn't
|
||||
been done previously.
|
||||
|
||||
|
||||
If NULL is given as the source, we'll use the default driver device.
|
||||
|
||||
|
||||
@return the cdio object or NULL on error or no device.
|
||||
*/
|
||||
CdIo_t * cdio_open_am (const char *psz_source,
|
||||
CdIo_t * cdio_open_am (const char *psz_source,
|
||||
driver_id_t driver_id, const char *psz_access_mode);
|
||||
|
||||
/**
|
||||
Set up BIN/CUE CD disk-image for reading. Source is the .bin or
|
||||
Set up BIN/CUE CD disk-image for reading. Source is the .bin or
|
||||
.cue file
|
||||
|
||||
|
||||
@return the cdio object or NULL on error or no device.
|
||||
*/
|
||||
CdIo_t * cdio_open_bincue (const char *psz_cue_name);
|
||||
|
||||
|
||||
/**
|
||||
Set up BIN/CUE CD disk-image for reading. Source is the .bin or
|
||||
Set up BIN/CUE CD disk-image for reading. Source is the .bin or
|
||||
.cue file
|
||||
|
||||
|
||||
@return the cdio object or NULL on error or no device..
|
||||
*/
|
||||
CdIo_t * cdio_open_am_bincue (const char *psz_cue_name,
|
||||
CdIo_t * cdio_open_am_bincue (const char *psz_cue_name,
|
||||
const char *psz_access_mode);
|
||||
|
||||
|
||||
/**
|
||||
Set up cdrdao CD disk-image for reading. Source is the .toc file
|
||||
|
||||
|
||||
@return the cdio object or NULL on error or no device.
|
||||
*/
|
||||
CdIo_t * cdio_open_cdrdao (const char *psz_toc_name);
|
||||
|
||||
|
||||
/**
|
||||
Set up cdrdao CD disk-image for reading. Source is the .toc file
|
||||
|
||||
|
||||
@return the cdio object or NULL on error or no device..
|
||||
*/
|
||||
CdIo_t * cdio_open_am_cdrdao (const char *psz_toc_name,
|
||||
CdIo_t * cdio_open_am_cdrdao (const char *psz_toc_name,
|
||||
const char *psz_access_mode);
|
||||
|
||||
|
||||
/**
|
||||
Return a string containing the default CUE file that would
|
||||
be used when none is specified.
|
||||
|
||||
|
||||
@return the cdio object or NULL on error or no device.
|
||||
*/
|
||||
char * cdio_get_default_device_bincue(void);
|
||||
|
@ -564,8 +571,8 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
/**
|
||||
Set up CD-ROM for reading. The device_name is
|
||||
the some sort of device name.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
NULL on error or there is no driver for a some sort of hardware CD-ROM.
|
||||
*/
|
||||
CdIo_t * cdio_open_cd (const char *device_name);
|
||||
|
@ -573,8 +580,8 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
/**
|
||||
Set up CD-ROM for reading. The device_name is
|
||||
the some sort of device name.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
NULL on error or there is no driver for a some sort of hardware CD-ROM.
|
||||
*/
|
||||
CdIo_t * cdio_open_am_cd (const char *psz_device,
|
||||
|
@ -582,8 +589,8 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
|
||||
/**
|
||||
CDRWIN BIN/CUE CD disc-image routines. Source is the .cue file
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
NULL on error.
|
||||
*/
|
||||
CdIo_t * cdio_open_cue (const char *cue_name);
|
||||
|
@ -591,31 +598,31 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
/**
|
||||
Set up CD-ROM for reading using the AIX driver. The device_name is
|
||||
the some sort of device name.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
NULL on error or there is no AIX driver.
|
||||
|
||||
|
||||
@see cdio_open
|
||||
*/
|
||||
CdIo_t * cdio_open_am_aix (const char *psz_source,
|
||||
const char *psz_access_mode);
|
||||
|
||||
|
||||
/**
|
||||
Set up CD-ROM for reading using the AIX driver. The device_name is
|
||||
the some sort of device name.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
NULL on error or there is no AIX driver.
|
||||
|
||||
|
||||
@see cdio_open
|
||||
*/
|
||||
CdIo_t * cdio_open_aix (const char *psz_source);
|
||||
|
||||
|
||||
/**
|
||||
Return a string containing the default device name that the AIX
|
||||
driver would use when none is specified.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
@return the cdio object for subsequent operations.
|
||||
NULL on error or there is no AIX driver.
|
||||
|
||||
@see cdio_open_cd, cdio_open
|
||||
|
@ -631,36 +638,36 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
return NULL even though there may be a hardware CD-ROM.
|
||||
*/
|
||||
char **cdio_get_devices_aix(void);
|
||||
|
||||
|
||||
/**
|
||||
Set up CD-ROM for reading using the BSDI driver. The device_name
|
||||
is the some sort of device name.
|
||||
|
||||
@param psz_source the name of the device to open
|
||||
@return the cdio object for subsequent operations.
|
||||
@return the cdio object for subsequent operations.
|
||||
NULL on error or there is no BSDI driver.
|
||||
|
||||
@see cdio_open
|
||||
*/
|
||||
CdIo_t * cdio_open_bsdi (const char *psz_source);
|
||||
|
||||
|
||||
/**
|
||||
Set up CD-ROM for reading using the BSDI driver. The device_name
|
||||
is the some sort of device name.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
@return the cdio object for subsequent operations.
|
||||
NULL on error or there is no BSDI driver.
|
||||
|
||||
@see cdio_open
|
||||
*/
|
||||
CdIo_t * cdio_open_am_bsdi (const char *psz_source,
|
||||
const char *psz_access_mode);
|
||||
|
||||
|
||||
/**
|
||||
Return a string containing the default device name that the BSDI
|
||||
driver would use when none is specified.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
@return the cdio object for subsequent operations.
|
||||
NULL on error or there is no BSDI driver.
|
||||
|
||||
@see cdio_open_cd, cdio_open
|
||||
|
@ -676,7 +683,7 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
return NULL even though there may be a hardware CD-ROM.
|
||||
*/
|
||||
char **cdio_get_devices_bsdi(void);
|
||||
|
||||
|
||||
/**
|
||||
Set up CD-ROM for reading using the FreeBSD driver. The
|
||||
device_name is the some sort of device name.
|
||||
|
@ -686,7 +693,7 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
@see cdio_open_cd, cdio_open
|
||||
*/
|
||||
CdIo_t * cdio_open_freebsd (const char *paz_psz_source);
|
||||
|
||||
|
||||
/**
|
||||
Set up CD-ROM for reading using the FreeBSD driver. The
|
||||
device_name is the some sort of device name.
|
||||
|
@ -697,7 +704,7 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
*/
|
||||
CdIo_t * cdio_open_am_freebsd (const char *psz_source,
|
||||
const char *psz_access_mode);
|
||||
|
||||
|
||||
/**
|
||||
Return a string containing the default device name that the
|
||||
FreeBSD driver would use when none is specified.
|
||||
|
@ -711,12 +718,12 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
driver can find.
|
||||
*/
|
||||
char **cdio_get_devices_freebsd(void);
|
||||
|
||||
|
||||
/**
|
||||
Set up CD-ROM for reading using the GNU/Linux driver. The
|
||||
device_name is the some sort of device name.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
@return the cdio object for subsequent operations.
|
||||
NULL on error or there is no GNU/Linux driver.
|
||||
|
||||
In some situations of drivers or OS's we can't find a CD device if
|
||||
|
@ -729,7 +736,7 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
Set up CD-ROM for reading using the GNU/Linux driver. The
|
||||
device_name is the some sort of device name.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
@return the cdio object for subsequent operations.
|
||||
NULL on error or there is no GNU/Linux driver.
|
||||
*/
|
||||
CdIo_t * cdio_open_am_linux (const char *psz_source,
|
||||
|
@ -755,26 +762,26 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
driver can find.
|
||||
*/
|
||||
char **cdio_get_devices_linux(void);
|
||||
|
||||
|
||||
/**
|
||||
Set up CD-ROM for reading using the Sun Solaris driver. The
|
||||
device_name is the some sort of device name.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
@return the cdio object for subsequent operations.
|
||||
NULL on error or there is no Solaris driver.
|
||||
*/
|
||||
CdIo_t * cdio_open_solaris (const char *psz_source);
|
||||
|
||||
|
||||
/**
|
||||
Set up CD-ROM for reading using the Sun Solaris driver. The
|
||||
device_name is the some sort of device name.
|
||||
|
||||
@return the cdio object for subsequent operations.
|
||||
@return the cdio object for subsequent operations.
|
||||
NULL on error or there is no Solaris driver.
|
||||
*/
|
||||
CdIo_t * cdio_open_am_solaris (const char *psz_source,
|
||||
CdIo_t * cdio_open_am_solaris (const char *psz_source,
|
||||
const char *psz_access_mode);
|
||||
|
||||
|
||||
/**
|
||||
Return a string containing the default device name that the
|
||||
Solaris driver would use when none is specified. A scan is made
|
||||
|
@ -789,13 +796,13 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
@see cdio_open_cd, cdio_open
|
||||
*/
|
||||
char * cdio_get_default_device_solaris(void);
|
||||
|
||||
|
||||
/**
|
||||
Return a list of all of the CD-ROM devices that the Solaris
|
||||
driver can find.
|
||||
*/
|
||||
char **cdio_get_devices_solaris(void);
|
||||
|
||||
|
||||
/**
|
||||
Set up CD-ROM for reading using the Apple OSX driver. The
|
||||
device_name is the some sort of device name.
|
||||
|
@ -831,13 +838,13 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
NULL even though there may be a hardware CD-ROM.
|
||||
*/
|
||||
char * cdio_get_default_device_osx(void);
|
||||
|
||||
|
||||
/**
|
||||
Return a list of all of the CD-ROM devices that the OSX driver
|
||||
can find.
|
||||
*/
|
||||
char **cdio_get_devices_osx(void);
|
||||
|
||||
|
||||
/**
|
||||
Set up CD-ROM for reading using the Microsoft Windows driver. The
|
||||
device_name is the some sort of device name.
|
||||
|
@ -847,7 +854,7 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
NULL even though there may be a hardware CD-ROM.
|
||||
*/
|
||||
CdIo_t * cdio_open_win32 (const char *psz_source);
|
||||
|
||||
|
||||
/**
|
||||
Set up CD-ROM for reading using the Microsoft Windows driver. The
|
||||
device_name is the some sort of device name.
|
||||
|
@ -856,9 +863,9 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
*/
|
||||
CdIo_t * cdio_open_am_win32 (const char *psz_source,
|
||||
const char *psz_access_mode);
|
||||
|
||||
|
||||
/**
|
||||
Return a string containing the default device name that the
|
||||
Return a string containing the default device name that the
|
||||
Win32 driver would use when none is specified. A scan is made
|
||||
for CD-ROM drives with CDs in them.
|
||||
|
||||
|
@ -871,7 +878,7 @@ LIBCDIO_DEPRECATED(static const driver_id_t CDIO_MAX_DEVICE_DRIVER, "please use
|
|||
char * cdio_get_default_device_win32(void);
|
||||
|
||||
char **cdio_get_devices_win32(void);
|
||||
|
||||
|
||||
/**
|
||||
Set up CD-ROM for reading using the IBM OS/2 driver. The
|
||||
device_name is the some sort of device name.
|
||||
|
@ -918,19 +925,19 @@ Return a list of all of the CD-ROM devices that the OS/2 driver
|
|||
Set up CD-ROM for reading using the Nero driver. The device_name
|
||||
is the some sort of device name.
|
||||
|
||||
@return true on success; NULL on error or there is no Nero driver.
|
||||
@return true on success; NULL on error or there is no Nero driver.
|
||||
*/
|
||||
CdIo_t * cdio_open_nrg (const char *psz_source);
|
||||
|
||||
|
||||
/**
|
||||
Set up CD-ROM for reading using the Nero driver. The device_name
|
||||
is the some sort of device name.
|
||||
|
||||
@return true on success; NULL on error or there is no Nero driver.
|
||||
@return true on success; NULL on error or there is no Nero driver.
|
||||
*/
|
||||
CdIo_t * cdio_open_am_nrg (const char *psz_source,
|
||||
const char *psz_access_mode);
|
||||
|
||||
|
||||
/**
|
||||
Get a string containing the default device name that the NRG
|
||||
driver would use when none is specified. A scan is made for NRG
|
||||
|
@ -946,21 +953,21 @@ Return a list of all of the CD-ROM devices that the OS/2 driver
|
|||
/**
|
||||
|
||||
Determine if bin_name is the bin file part of a CDRWIN CD disk image.
|
||||
|
||||
|
||||
@param bin_name location of presumed CDRWIN bin image file.
|
||||
@return the corresponding CUE file if bin_name is a BIN file or
|
||||
NULL if not a BIN file.
|
||||
*/
|
||||
char *cdio_is_binfile(const char *bin_name);
|
||||
|
||||
|
||||
/**
|
||||
Determine if cue_name is the cue sheet for a CDRWIN CD disk image.
|
||||
|
||||
|
||||
@return corresponding BIN file if cue_name is a CDRWIN cue file or
|
||||
NULL if not a CUE file.
|
||||
*/
|
||||
char *cdio_is_cuefile(const char *cue_name);
|
||||
|
||||
|
||||
/**
|
||||
Determine if psg_nrg is a Nero CD disc image.
|
||||
|
||||
|
@ -969,36 +976,36 @@ Return a list of all of the CD-ROM devices that the OS/2 driver
|
|||
if not a NRG image.
|
||||
*/
|
||||
bool cdio_is_nrg(const char *psz_nrg);
|
||||
|
||||
|
||||
/**
|
||||
Determine if psz_toc is a TOC file for a cdrdao CD disc image.
|
||||
|
||||
|
||||
@param psz_toc location of presumed TOC image file.
|
||||
@return true if toc_name is a cdrdao TOC file or false
|
||||
if not a TOC file.
|
||||
*/
|
||||
bool cdio_is_tocfile(const char *psz_toc);
|
||||
|
||||
|
||||
/**
|
||||
Determine if psz_source refers to a real hardware CD-ROM.
|
||||
|
||||
|
||||
@param psz_source location name of object
|
||||
@param driver_id driver for reading object. Use DRIVER_UNKNOWN if you
|
||||
don't know what driver to use.
|
||||
@return true if psz_source is a device; If false is returned we
|
||||
could have a CD disk image.
|
||||
could have a CD disk image.
|
||||
*/
|
||||
bool cdio_is_device(const char *psz_source, driver_id_t driver_id);
|
||||
|
||||
/**
|
||||
Set the blocksize for subsequent reads.
|
||||
Set the blocksize for subsequent reads.
|
||||
*/
|
||||
driver_return_code_t cdio_set_blocksize ( const CdIo_t *p_cdio,
|
||||
driver_return_code_t cdio_set_blocksize ( const CdIo_t *p_cdio,
|
||||
int i_blocksize );
|
||||
|
||||
/**
|
||||
Set the drive speed.
|
||||
|
||||
Set the drive speed.
|
||||
|
||||
@param p_cdio CD structure set by cdio_open().
|
||||
|
||||
@param i_drive_speed speed in CD-ROM speed units. Note this not
|
||||
|
@ -1012,12 +1019,12 @@ Return a list of all of the CD-ROM devices that the OS/2 driver
|
|||
|
||||
@see mmc_set_speed and mmc_set_drive_speed
|
||||
*/
|
||||
driver_return_code_t cdio_set_speed ( const CdIo_t *p_cdio,
|
||||
driver_return_code_t cdio_set_speed ( const CdIo_t *p_cdio,
|
||||
int i_drive_speed );
|
||||
|
||||
/**
|
||||
Get the value associatied with key.
|
||||
|
||||
Get the value associatied with key.
|
||||
|
||||
@param p_cdio the CD object queried
|
||||
@param key the key to retrieve
|
||||
@return the value associatd with "key" or NULL if p_cdio is NULL
|
||||
|
@ -1027,19 +1034,19 @@ Return a list of all of the CD-ROM devices that the OS/2 driver
|
|||
|
||||
/**
|
||||
Set the arg "key" with "value" in "p_cdio".
|
||||
|
||||
|
||||
@param p_cdio the CD object to set
|
||||
@param key the key to set
|
||||
@param value the value to assocaiate with key
|
||||
*/
|
||||
driver_return_code_t cdio_set_arg (CdIo_t *p_cdio, const char key[],
|
||||
driver_return_code_t cdio_set_arg (CdIo_t *p_cdio, const char key[],
|
||||
const char value[]);
|
||||
|
||||
|
||||
/**
|
||||
Initialize CD Reading and control routines. Should be called first.
|
||||
*/
|
||||
bool cdio_init(void);
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue