|
libcdio 2.3.0
|
C header for driver- or device-related libcdio calls. ("device" includes CD-image reading devices). More...
Go to the source code of this file.
Data Structures | |
| struct | cdio_hwinfo |
Structure to return CD vendor, model, and revision-level strings obtained via the INQUIRY command. More... | |
Typedefs | |
| typedef uint32_t | cdio_drive_read_cap_t |
| typedef uint32_t | cdio_drive_write_cap_t |
| typedef uint32_t | cdio_drive_misc_cap_t |
| typedef struct cdio_hwinfo | cdio_hwinfo_t |
Structure to return CD vendor, model, and revision-level strings obtained via the INQUIRY command. | |
Functions | |
| driver_return_code_t | cdio_close_tray (const char *psz_drive, driver_id_t *p_driver_id) |
| const char * | cdio_driver_errmsg (driver_return_code_t drc) |
| driver_return_code_t | cdio_eject_media (CdIo_t **p_cdio) |
| driver_return_code_t | cdio_eject_media_drive (const char *psz_drive) |
| void | cdio_free_device_list (char *device_list[]) |
| char * | cdio_get_default_device (const CdIo_t *p_cdio) |
| char * | cdio_get_default_device_driver (driver_id_t *p_driver_id) |
| char ** | cdio_get_devices (driver_id_t driver_id) |
| char ** | cdio_get_devices_with_cap (char *ppsz_search_devices[], cdio_fs_anal_t capabilities, bool b_any) |
| char ** | cdio_get_devices_with_cap_ret (char *ppsz_search_devices[], cdio_fs_anal_t capabilities, bool b_any, driver_id_t *p_driver_id) |
| char ** | cdio_get_devices_ret (driver_id_t *p_driver_id) |
| 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) |
| void | cdio_get_drive_cap_dev (const char *device, cdio_drive_read_cap_t *p_read_cap, cdio_drive_write_cap_t *p_write_cap, cdio_drive_misc_cap_t *p_misc_cap) |
| const char * | cdio_get_driver_name (const CdIo_t *p_cdio) |
| const char * | cdio_get_driver_name_from_id (driver_id_t driver_id) |
| driver_id_t | cdio_get_driver_id (const CdIo_t *p_cdio) |
| bool | cdio_get_hwinfo (const CdIo_t *p_cdio, cdio_hwinfo_t *p_hw_info) |
| driver_return_code_t | cdio_get_last_session (CdIo_t *p_cdio, lsn_t *i_last_session) |
| int | cdio_get_media_changed (CdIo_t *p_cdio) |
| bool_3way_t | cdio_have_atapi (CdIo_t *p_cdio) |
| bool | cdio_have_driver (driver_id_t driver_id) |
| void | cdio_destroy (CdIo_t *p_cdio) |
| const char * | cdio_driver_describe (driver_id_t driver_id) |
| CdIo_t * | cdio_open (const char *psz_source, driver_id_t driver_id) |
| CdIo_t * | cdio_open_am (const char *psz_source, driver_id_t driver_id, const char *psz_access_mode) |
| CdIo_t * | cdio_open_bincue (const char *psz_cue_name) |
| CdIo_t * | cdio_open_am_bincue (const char *psz_cue_name, const char *psz_access_mode) |
| CdIo_t * | cdio_open_cdrdao (const char *psz_toc_name) |
| CdIo_t * | cdio_open_am_cdrdao (const char *psz_toc_name, const char *psz_access_mode) |
| char * | cdio_get_default_device_bincue (void) |
| char ** | cdio_get_devices_bincue (void) |
| char * | cdio_get_default_device_cdrdao (void) |
| char ** | cdio_get_devices_cdrdao (void) |
| CdIo_t * | cdio_open_cd (const char *device_name) |
| CdIo_t * | cdio_open_am_cd (const char *psz_device, const char *psz_access_mode) |
| CdIo_t * | cdio_open_cue (const char *cue_name) |
| CdIo_t * | cdio_open_am_aix (const char *psz_source, const char *psz_access_mode) |
| CdIo_t * | cdio_open_aix (const char *psz_source) |
| char * | cdio_get_default_device_aix (void) |
| char ** | cdio_get_devices_aix (void) |
| CdIo_t * | cdio_open_freebsd (const char *paz_psz_source) |
| CdIo_t * | cdio_open_am_freebsd (const char *psz_source, const char *psz_access_mode) |
| char * | cdio_get_default_device_freebsd (void) |
| char ** | cdio_get_devices_freebsd (void) |
| CdIo_t * | cdio_open_linux (const char *psz_source) |
| CdIo_t * | cdio_open_am_linux (const char *psz_source, const char *access_mode) |
| char * | cdio_get_default_device_linux (void) |
| char ** | cdio_get_devices_linux (void) |
| CdIo_t * | cdio_open_solaris (const char *psz_source) |
| CdIo_t * | cdio_open_am_solaris (const char *psz_source, const char *psz_access_mode) |
| char * | cdio_get_default_device_solaris (void) |
| char ** | cdio_get_devices_solaris (void) |
| CdIo_t * | cdio_open_osx (const char *psz_source) |
| CdIo_t * | cdio_open_am_osx (const char *psz_source, const char *psz_access_mode) |
| char * | cdio_get_default_device_osx (void) |
| char ** | cdio_get_devices_osx (void) |
| CdIo_t * | cdio_open_win32 (const char *psz_source) |
| CdIo_t * | cdio_open_am_win32 (const char *psz_source, const char *psz_access_mode) |
| char * | cdio_get_default_device_win32 (void) |
| char ** | cdio_get_devices_win32 (void) |
| CdIo_t * | cdio_open_nrg (const char *psz_source) |
| CdIo_t * | cdio_open_am_nrg (const char *psz_source, const char *psz_access_mode) |
| char * | cdio_get_default_device_nrg (void) |
| char ** | cdio_get_devices_nrg (void) |
| char * | cdio_is_binfile (const char *bin_name) |
| char * | cdio_is_cuefile (const char *cue_name) |
| bool | cdio_is_nrg (const char *psz_nrg) |
| bool | cdio_is_tocfile (const char *psz_toc) |
| bool | cdio_is_device (const char *psz_source, driver_id_t driver_id) |
| driver_return_code_t | cdio_set_blocksize (const CdIo_t *p_cdio, int i_blocksize) |
| driver_return_code_t | cdio_set_speed (const CdIo_t *p_cdio, int i_drive_speed) |
| const char * | cdio_get_arg (const CdIo_t *p_cdio, const char key[]) |
| driver_return_code_t | cdio_set_arg (CdIo_t *p_cdio, const char key[], const char value[]) |
| bool | cdio_init (void) |
| int | cdio_get_device_fd (CdIo_t *p_cdio) |
C header for driver- or device-related libcdio calls. ("device" includes CD-image reading devices).
| typedef uint32_t cdio_drive_misc_cap_t |
| typedef uint32_t cdio_drive_read_cap_t |
The type of an drive capability bit mask. See below for values
| typedef uint32_t cdio_drive_write_cap_t |
| typedef struct cdio_hwinfo cdio_hwinfo_t |
Structure to return CD vendor, model, and revision-level strings obtained via the INQUIRY command.
Drive capability bits returned by cdio_get_drive_cap() NOTE: Setting a bit here means the presence of a capability.
Miscellaneous capabilities.
Reading masks..
Writing masks..
| enum cdio_mmc_hw_len_t |
| enum driver_id_t |
The driver_id_t enumerations may be used to tag a specific driver that is opened or is desired to be opened. Note that this is different than what is available on a given host.
Order should not be changed lightly because it breaks the ABI. One is not supposed to iterate over the values, but iterate over the cdio_drivers and cdio_device_drivers arrays.
NOTE: IF YOU MODIFY ENUM MAKE SURE INITIALIZATION IN CDIO.C AGREES.
| enum driver_return_code_t |
The following are status codes for completion of a given cdio operation. By design 0 is successful completion and -1 is error completion. This is compatible with ioctl so those routines that call ioctl can just pass the value the get back (cast as this enum). Also, by using negative numbers for errors, the enumeration values below can be used in places where a positive value is expected when things complete successfully. For example, get_blocksize returns the blocksize, but on error uses the error codes below. So note that this enumeration is often cast to an integer. C seems to tolerate this.
| driver_return_code_t cdio_close_tray | ( | const char * | psz_drive, |
| driver_id_t * | p_driver_id ) |
Close media tray in CD drive if there is a routine to do so.
| psz_drive | the name of CD-ROM to be closed. If NULL, we will use the default device. |
| 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. |
References cdio_close_tray().
Referenced by cdio_close_tray().
| void cdio_destroy | ( | CdIo_t * | p_cdio | ) |
Free any resources associated with p_cdio. Call this when done using p_cdio and using CD reading/control operations.
| p_cdio | the CD object to eliminated. |
References cdio_destroy().
Referenced by cdio_destroy().
| const char * cdio_driver_describe | ( | driver_id_t | driver_id | ) |
Get a string describing driver_id.
| driver_id | the driver you want the description for |
References cdio_driver_describe().
Referenced by cdio_driver_describe().
| const char * cdio_driver_errmsg | ( | driver_return_code_t | drc | ) |
| drc | the return code you want interpreted. |
drc References cdio_driver_errmsg().
Referenced by cdio_driver_errmsg().
| driver_return_code_t cdio_eject_media | ( | CdIo_t ** | p_cdio | ) |
Eject media in CD drive if there is a routine to do so.
| 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. |
References cdio_eject_media().
Referenced by cdio_eject_media().
| driver_return_code_t cdio_eject_media_drive | ( | const char * | psz_drive | ) |
Eject media in CD drive if there is a routine to do so.
| 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. |
References cdio_eject_media_drive().
Referenced by cdio_eject_media_drive().
| void cdio_free_device_list | ( | char * | device_list[] | ) |
Free device list returned by cdio_get_devices or cdio_get_devices_with_cap().
| device_list | list returned by cdio_get_devices or cdio_get_devices_with_cap(). |
References cdio_free_device_list().
Referenced by cdio_free_device_list().
| const char * cdio_get_arg | ( | const CdIo_t * | p_cdio, |
| const char | key[] ) |
Get the value associated with key.
| p_cdio | the CD object queried |
| key | the key to retrieve |
NULL if p_cdio is NULL, or "key" does not exist. References cdio_get_arg().
Referenced by cdio_get_arg().
| char * cdio_get_default_device | ( | const CdIo_t * | p_cdio | ) |
Get the default CD device. 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.
| p_cdio | the CD object queried |
NULL if we couldn't get a default device.In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM.
References cdio_get_default_device().
Referenced by cdio_get_default_device().
| char * cdio_get_default_device_aix | ( | void | ) |
Return a string containing the default device name that the AIX driver would use when none is specified.
NULL on error or there is no AIX driver.References cdio_get_default_device_aix().
Referenced by cdio_get_default_device_aix().
| char * cdio_get_default_device_bincue | ( | void | ) |
Return a string containing the default CUE file that would be used when none is specified.
NULL on error or no device. References cdio_get_default_device_bincue().
Referenced by cdio_get_default_device_bincue().
| char * cdio_get_default_device_cdrdao | ( | void | ) |
NULL is returned on error or there is no device. References cdio_get_default_device_cdrdao().
Referenced by cdio_get_default_device_cdrdao().
| char * cdio_get_default_device_driver | ( | driver_id_t * | p_driver_id | ) |
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.
References cdio_get_default_device_driver().
Referenced by cdio_get_default_device_driver().
| char * cdio_get_default_device_freebsd | ( | void | ) |
Return a string containing the default device name that the FreeBSD driver would use when none is specified.
NULL is returned on error or there is no CD-ROM device.
References cdio_get_default_device_freebsd().
Referenced by cdio_get_default_device_freebsd().
| char * cdio_get_default_device_linux | ( | void | ) |
Return a string containing the default device name that the GNU/Linux driver would use when none is specified. A scan is made for CD-ROM drives with CDs in them.
NULL is returned on error or there is no CD-ROM device.
In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM.
References cdio_get_default_device_linux().
Referenced by cdio_get_default_device_linux().
| char * cdio_get_default_device_nrg | ( | void | ) |
Get a string containing the default device name that the NRG driver would use when none is specified. A scan is made for NRG disk images in the current directory.
References cdio_get_default_device_nrg().
Referenced by cdio_get_default_device_nrg().
| char * cdio_get_default_device_osx | ( | void | ) |
Return a string containing the default device name that the OSX driver would use when none is specified. A scan is made for CD-ROM drives with CDs in them.
In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM.
References cdio_get_default_device_osx().
Referenced by cdio_get_default_device_osx().
| char * cdio_get_default_device_solaris | ( | void | ) |
Return a string containing the default device name that the Solaris driver would use when none is specified. A scan is made for CD-ROM drives with CDs in them.
NULL is returned on error or there is no CD-ROM device.
In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM.
References cdio_get_default_device_solaris().
Referenced by cdio_get_default_device_solaris().
| char * cdio_get_default_device_win32 | ( | void | ) |
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.
In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM.
References cdio_get_default_device_win32().
Referenced by cdio_get_default_device_win32().
| int cdio_get_device_fd | ( | CdIo_t * | p_cdio | ) |
Get access to the underlying device file descriptor of the driver.
| p_cdio | the CD object. |
References cdio_get_device_fd().
Referenced by cdio_get_device_fd().
| char ** cdio_get_devices | ( | driver_id_t | driver_id | ) |
Return an array of device names. If you want a specific 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 there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM.
References cdio_get_devices().
Referenced by cdio_get_devices().
| char ** cdio_get_devices_aix | ( | void | ) |
Return a list of all of the CD-ROM devices that the AIX driver can find.
In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM.
References cdio_get_devices_aix().
Referenced by cdio_get_devices_aix().
| char ** cdio_get_devices_bincue | ( | void | ) |
References cdio_get_devices_bincue().
Referenced by cdio_get_devices_bincue().
| char ** cdio_get_devices_cdrdao | ( | void | ) |
References cdio_get_devices_cdrdao().
Referenced by cdio_get_devices_cdrdao().
| char ** cdio_get_devices_freebsd | ( | void | ) |
Return a list of all of the CD-ROM devices that the FreeBSD driver can find.
References cdio_get_devices_freebsd().
Referenced by cdio_get_devices_freebsd().
| char ** cdio_get_devices_linux | ( | void | ) |
Return a list of all of the CD-ROM devices that the GNU/Linux driver can find.
References cdio_get_devices_linux().
Referenced by cdio_get_devices_linux().
| char ** cdio_get_devices_nrg | ( | void | ) |
References cdio_get_devices_nrg().
Referenced by cdio_get_devices_nrg().
| char ** cdio_get_devices_osx | ( | void | ) |
Return a list of all of the CD-ROM devices that the OSX driver can find.
References cdio_get_devices_osx().
Referenced by cdio_get_devices_osx().
| char ** cdio_get_devices_ret | ( | driver_id_t * | p_driver_id | ) |
Like cdio_get_devices(), but we may change the p_driver_id if we were given DRIVER_DEVICE or DRIVER_UNKNOWN. This is because often one wants to get a drive name and then open it afterwards. Giving the driver back facilitates this, and speeds things up for libcdio as well.
References cdio_get_devices_ret().
Referenced by cdio_get_devices_ret().
| char ** cdio_get_devices_solaris | ( | void | ) |
Return a list of all of the CD-ROM devices that the Solaris driver can find.
References cdio_get_devices_solaris().
Referenced by cdio_get_devices_solaris().
| char ** cdio_get_devices_win32 | ( | void | ) |
References cdio_get_devices_win32().
Referenced by cdio_get_devices_win32().
| char ** cdio_get_devices_with_cap | ( | char * | ppsz_search_devices[], |
| cdio_fs_anal_t | capabilities, | ||
| bool | b_any ) |
Get an array of device names in search_devices that have at least the capabilities listed by the capabities parameter. If search_devices is NULL, then we'll search all possible CD drives.
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, filesystems. 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 satisfied. 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.
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.
References cdio_get_devices_with_cap().
Referenced by cdio_get_devices_with_cap().
| char ** cdio_get_devices_with_cap_ret | ( | char * | ppsz_search_devices[], |
| cdio_fs_anal_t | capabilities, | ||
| bool | b_any, | ||
| driver_id_t * | p_driver_id ) |
Like cdio_get_devices_with_cap() but we return the driver we found as well. This is because often one wants to search for kind of drive and then open it afterwards. Giving the driver back facilitates this, and speeds things up for libcdio as well.
References cdio_get_devices_with_cap_ret().
Referenced by cdio_get_devices_with_cap_ret().
| 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 what kind of device we've got.
| p_cdio | the CD object queried |
| p_read_cap | pointer to return read capabilities |
| p_write_cap | pointer to return write capabilities |
| 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 NULL even though there isa hardware CD-ROM.
References cdio_get_drive_cap().
Referenced by cdio_get_drive_cap().
| void cdio_get_drive_cap_dev | ( | const char * | device, |
| 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 NULL even though there isa hardware CD-ROM.
References cdio_get_drive_cap_dev().
Referenced by cdio_get_drive_cap_dev().
| driver_id_t cdio_get_driver_id | ( | const CdIo_t * | p_cdio | ) |
Get the driver id. if p_cdio is NULL (we haven't initialized a specific device driver), then return DRIVER_UNKNOWN.
| p_cdio | the CD object to be acted upon. |
References cdio_get_driver_id().
Referenced by cdio_get_driver_id().
| const char * cdio_get_driver_name | ( | const CdIo_t * | p_cdio | ) |
Get a string containing the name of the driver in use.
| p_cdio | the CD object to be acted upon. |
References cdio_get_driver_name().
Referenced by cdio_get_driver_name().
| const char * cdio_get_driver_name_from_id | ( | driver_id_t | driver_id | ) |
Return a string name for the driver_id.
References cdio_get_driver_name_from_id().
Referenced by cdio_get_driver_name_from_id().
| bool cdio_get_hwinfo | ( | const CdIo_t * | p_cdio, |
| cdio_hwinfo_t * | p_hw_info ) |
Get the CD-ROM hardware info via a SCSI MMC INQUIRY command. False is returned if we had an error getting the information.
References cdio_get_hwinfo().
Referenced by cdio_get_hwinfo().
| driver_return_code_t cdio_get_last_session | ( | CdIo_t * | p_cdio, |
| lsn_t * | i_last_session ) |
Get the LSN of the first track of the last session of on the CD.
| p_cdio | the CD object to be acted upon. |
| i_last_session | pointer to the session number to be returned. |
References cdio_get_last_session().
Referenced by cdio_get_last_session().
| int cdio_get_media_changed | ( | CdIo_t * | p_cdio | ) |
Find out if media has changed since the last call.
| p_cdio | the CD object to be acted upon. |
driver_return_code_t References cdio_get_media_changed().
Referenced by cdio_get_media_changed().
| bool_3way_t cdio_have_atapi | ( | CdIo_t * | p_cdio | ) |
True if CD-ROM understand ATAPI commands.
References cdio_have_atapi().
Referenced by cdio_have_atapi().
| bool cdio_have_driver | ( | driver_id_t | driver_id | ) |
Like cdio_have_xxx but uses an enumeration instead.
References cdio_have_driver().
Referenced by cdio_have_driver().
| bool cdio_init | ( | void | ) |
Initialize CD Reading and control routines. Should be called first.
References cdio_init().
Referenced by cdio_init().
| char * cdio_is_binfile | ( | const char * | bin_name | ) |
Determine if bin_name is the bin file part of a CDRWIN CD disk image.
| bin_name | location of presumed CDRWIN bin image file. |
NULL if not a BIN file. References cdio_is_binfile().
Referenced by cdio_is_binfile().
| char * cdio_is_cuefile | ( | const char * | cue_name | ) |
Determine if cue_name is the cue sheet for a CDRWIN CD disk image.
NULL if not a CUE file. References cdio_is_cuefile().
Referenced by cdio_is_cuefile().
| bool cdio_is_device | ( | const char * | psz_source, |
| driver_id_t | driver_id ) |
Determine if psz_source refers to a real hardware CD-ROM.
| psz_source | location name of object |
| driver_id | driver for reading object. Use DRIVER_UNKNOWN if you don't know what driver to use. |
References cdio_is_device().
Referenced by cdio_is_device().
| bool cdio_is_nrg | ( | const char * | psz_nrg | ) |
Determine if psg_nrg is a Nero CD disc image.
| psz_nrg | location of presumed NRG image file. |
References cdio_is_nrg().
Referenced by cdio_is_nrg().
| bool cdio_is_tocfile | ( | const char * | psz_toc | ) |
Determine if psz_toc is a TOC file for a cdrdao CD disc image.
| psz_toc | location of presumed TOC image file. |
References cdio_is_tocfile().
Referenced by cdio_is_tocfile().
| CdIo_t * cdio_open | ( | const char * | psz_source, |
| 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.
References cdio_open().
Referenced by cdio_open().
| CdIo_t * cdio_open_aix | ( | const char * | psz_source | ) |
Set up CD-ROM for reading using the AIX driver. The device_name is the some sort of device name.
NULL on error or there is no AIX driver.References cdio_open_aix().
Referenced by cdio_open_aix().
| CdIo_t * cdio_open_am | ( | const char * | psz_source, |
| driver_id_t | driver_id, | ||
| const char * | psz_access_mode ) |
Sets up to read from place specified by psz_source, driver_id and access mode. 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. 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.
NULL on error or no device. References cdio_open_am().
Referenced by cdio_open_am().
| 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.
NULL on error or there is no AIX driver.References cdio_open_am_aix().
Referenced by cdio_open_am_aix().
| CdIo_t * cdio_open_am_bincue | ( | const char * | psz_cue_name, |
| const char * | psz_access_mode ) |
Set up BIN/CUE CD disk-image for reading. Source is the .bin or .cue file
NULL on error or no device.. References cdio_open_am_bincue().
Referenced by cdio_open_am_bincue().
| CdIo_t * cdio_open_am_cd | ( | const char * | psz_device, |
| const char * | psz_access_mode ) |
Set up CD-ROM for reading. The device_name is the some sort of device name.
NULL on error or there is no driver for a some sort of hardware CD-ROM. References cdio_open_am_cd().
Referenced by cdio_open_am_cd().
| CdIo_t * cdio_open_am_cdrdao | ( | const char * | psz_toc_name, |
| const char * | psz_access_mode ) |
Set up cdrdao CD disk-image for reading. Source is the .toc file
References cdio_open_am_cdrdao().
Referenced by cdio_open_am_cdrdao().
| CdIo_t * cdio_open_am_freebsd | ( | const char * | psz_source, |
| const char * | psz_access_mode ) |
Set up CD-ROM for reading using the FreeBSD driver. The device_name is the some sort of device name.
NULL is returned on error or there is no FreeBSD driver.
References cdio_open_am_freebsd().
Referenced by cdio_open_am_freebsd().
| CdIo_t * cdio_open_am_linux | ( | const char * | psz_source, |
| const char * | access_mode ) |
Set up CD-ROM for reading using the GNU/Linux driver. The device_name is the some sort of device name.
References cdio_open_am_linux().
Referenced by cdio_open_am_linux().
| CdIo_t * cdio_open_am_nrg | ( | const char * | psz_source, |
| const char * | psz_access_mode ) |
Set up CD-ROM for reading using the Nero driver. The device_name is the some sort of device name.
References cdio_open_am_nrg().
Referenced by cdio_open_am_nrg().
| CdIo_t * cdio_open_am_osx | ( | const char * | psz_source, |
| const char * | psz_access_mode ) |
Set up CD-ROM for reading using the Apple OSX driver. The device_name is the some sort of device name.
NULL is returned on error or there is no OSX driver.
References cdio_open_am_osx().
Referenced by cdio_open_am_osx().
| CdIo_t * cdio_open_am_solaris | ( | const char * | psz_source, |
| const char * | psz_access_mode ) |
Set up CD-ROM for reading using the Sun Solaris driver. The device_name is the some sort of device name.
NULL on error or there is no Solaris driver. References cdio_open_am_solaris().
Referenced by cdio_open_am_solaris().
| CdIo_t * cdio_open_am_win32 | ( | const char * | psz_source, |
| const char * | psz_access_mode ) |
Set up CD-ROM for reading using the Microsoft Windows driver. The device_name is the some sort of device name.
NULL is returned on error or there is no Microsoft Windows driver.
References cdio_open_am_win32().
Referenced by cdio_open_am_win32().
| CdIo_t * cdio_open_bincue | ( | const char * | psz_cue_name | ) |
Set up BIN/CUE CD disk-image for reading. Source is the .bin or .cue file
NULL on error or no device. References cdio_open_bincue().
Referenced by cdio_open_bincue().
| CdIo_t * cdio_open_cd | ( | const char * | device_name | ) |
Set up CD-ROM for reading. The device_name is the some sort of device name.
NULL on error or there is no driver for a some sort of hardware CD-ROM. References cdio_open_cd().
Referenced by cdio_open_cd().
| CdIo_t * cdio_open_cdrdao | ( | const char * | psz_toc_name | ) |
Set up cdrdao CD disk-image for reading. Source is the .toc file
NULL on error or no device. References cdio_open_cdrdao().
Referenced by cdio_open_cdrdao().
| CdIo_t * cdio_open_cue | ( | const char * | cue_name | ) |
CDRWIN BIN/CUE CD disc-image routines. Source is the .cue file
NULL on error. References cdio_open_cue().
Referenced by cdio_open_cue().
| 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.
NULL is returned on error or there is no FreeBSD driver.
References cdio_open_freebsd().
Referenced by cdio_open_freebsd().
| CdIo_t * cdio_open_linux | ( | const char * | psz_source | ) |
Set up CD-ROM for reading using the GNU/Linux driver. The device_name is the some sort of device name.
In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM.
References cdio_open_linux().
Referenced by cdio_open_linux().
| 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.
References cdio_open_nrg().
Referenced by cdio_open_nrg().
| CdIo_t * cdio_open_osx | ( | const char * | psz_source | ) |
Set up CD-ROM for reading using the Apple OSX driver. The device_name is the some sort of device name.
NULL is returned on error or there is no OSX driver.
In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM.
References cdio_open_osx().
Referenced by cdio_open_osx().
| 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.
NULL on error or there is no Solaris driver. References cdio_open_solaris().
Referenced by cdio_open_solaris().
| 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.
In some situations of drivers or OS's we can't find a CD device if there is no media in it and it is possible for this routine to return NULL even though there may be a hardware CD-ROM.
References cdio_open_win32().
Referenced by cdio_open_win32().
| driver_return_code_t cdio_set_arg | ( | CdIo_t * | p_cdio, |
| const char | key[], | ||
| const char | value[] ) |
Set the arg "key" with "value" in "p_cdio".
| p_cdio | the CD object to set |
| key | the key to set |
| value | the value to assocaiate with key |
References cdio_set_arg().
Referenced by cdio_set_arg().
| driver_return_code_t cdio_set_blocksize | ( | const CdIo_t * | p_cdio, |
| int | i_blocksize ) |
Set the blocksize for subsequent reads.
References cdio_set_blocksize().
Referenced by cdio_set_blocksize().
| driver_return_code_t cdio_set_speed | ( | const CdIo_t * | p_cdio, |
| int | i_drive_speed ) |
Set the drive speed.
| p_cdio | CD structure set by cdio_open(). |
| i_drive_speed | speed in CD-ROM speed units. Note this not Kbs as would be used in the MMC spec or in mmc_set_speed(). To convert CD-ROM speed units to Kbs, multiply the number by 176 (for raw data) and by 150 (for filesystem data). On many CD-ROM drives, specifying a value too large will result in using the fastest speed. |
References cdio_set_speed().
Referenced by cdio_set_speed().
|
extern |
A null-terminated (that is DRIVER_UNKNOWN-terminated) ordered (in order of preference) array of device drivers.
|
extern |
A null-terminated (that is DRIVER_UNKNOWN-terminated) ordered (in order of preference) array of drivers.
|
extern |
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 |
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 |
|
extern |
|
extern |
|
extern |
1.18.0