2003-03-24 19:01:09 +00:00
|
|
|
|
/*
|
2004-07-22 09:52:17 +00:00
|
|
|
|
$Id: cdio_private.h,v 1.32 2004/07/22 09:52:17 rocky Exp $
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
2004-03-05 04:23:52 +00:00
|
|
|
|
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
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 2 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, write to the Free Software
|
|
|
|
|
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/* Internal routines for CD I/O drivers. */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __CDIO_PRIVATE_H__
|
|
|
|
|
|
#define __CDIO_PRIVATE_H__
|
|
|
|
|
|
|
2003-09-18 13:40:54 +00:00
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
|
|
# include "config.h"
|
2003-03-29 17:32:00 +00:00
|
|
|
|
#endif
|
|
|
|
|
|
|
2003-04-22 12:09:08 +00:00
|
|
|
|
#include <cdio/cdio.h>
|
2004-07-08 01:27:57 +00:00
|
|
|
|
#include <cdio/cdtext.h>
|
2004-07-22 09:52:17 +00:00
|
|
|
|
#include <cdio/scsi_mmc.h>
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
|
extern "C" {
|
|
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
2003-05-24 15:43:06 +00:00
|
|
|
|
/* Opaque type */
|
2003-04-07 11:31:19 +00:00
|
|
|
|
typedef struct _CdioDataSource CdioDataSource;
|
|
|
|
|
|
|
2003-03-24 19:01:09 +00:00
|
|
|
|
typedef struct {
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Eject media in CD drive. If successful, as a side effect we
|
|
|
|
|
|
also free obj. Return 0 if success and 1 for failure.
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
int (*eject_media) (void *env);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Release and free resources associated with cd.
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
void (*free) (void *env);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Return the value associated with the key "arg".
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
const char * (*get_arg) (void *env, const char key[]);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
2004-07-17 02:18:26 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Get cdtext information for a CdIo object.
|
|
|
|
|
|
|
|
|
|
|
|
@param obj the CD object that may contain CD-TEXT information.
|
|
|
|
|
|
@return the CD-TEXT object or NULL if obj is NULL
|
|
|
|
|
|
or CD-TEXT information does not exist.
|
|
|
|
|
|
|
|
|
|
|
|
If i_track is 0 or CDIO_CDROM_LEADOUT_TRACK the track returned
|
|
|
|
|
|
is the information assocated with the CD.
|
2004-07-11 14:25:07 +00:00
|
|
|
|
*/
|
2004-07-17 02:18:26 +00:00
|
|
|
|
const cdtext_t * (*get_cdtext) (void *env, track_t i_track);
|
2004-07-11 14:25:07 +00:00
|
|
|
|
|
2003-09-28 17:14:20 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Return an array of device names. if CdIo is NULL (we haven't
|
|
|
|
|
|
initialized a specific device driver), then find a suitable device
|
|
|
|
|
|
driver.
|
|
|
|
|
|
|
|
|
|
|
|
NULL is returned if we couldn't return a list of devices.
|
|
|
|
|
|
*/
|
2003-09-29 02:56:22 +00:00
|
|
|
|
char ** (*get_devices) (void);
|
2003-09-28 17:14:20 +00:00
|
|
|
|
|
2003-03-24 19:01:09 +00:00
|
|
|
|
/*!
|
2003-06-07 16:48:33 +00:00
|
|
|
|
Return a string containing the default CD device if none is specified.
|
2003-03-24 19:01:09 +00:00
|
|
|
|
*/
|
|
|
|
|
|
char * (*get_default_device)(void);
|
|
|
|
|
|
|
2004-07-21 10:19:20 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Get disc mode associated with cd_obj.
|
|
|
|
|
|
*/
|
|
|
|
|
|
discmode_t (*get_discmode) (void *env);
|
|
|
|
|
|
|
2004-04-22 03:24:38 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Return the what kind of device we've got.
|
|
|
|
|
|
|
|
|
|
|
|
See cd_types.h for a list of bitmasks for the drive type;
|
|
|
|
|
|
*/
|
2004-07-17 22:16:46 +00:00
|
|
|
|
void (*get_drive_cap) (const void *env,
|
|
|
|
|
|
cdio_drive_read_cap_t *p_read_cap,
|
|
|
|
|
|
cdio_drive_write_cap_t *p_write_cap,
|
|
|
|
|
|
cdio_drive_misc_cap_t *p_misc_cap);
|
2003-09-25 09:38:15 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Return the media catalog number MCN from the CD or NULL if
|
|
|
|
|
|
there is none or we don't have the ability to get it.
|
|
|
|
|
|
*/
|
2004-04-25 03:52:37 +00:00
|
|
|
|
char * (*get_mcn) (const void *env);
|
2003-09-25 09:38:15 +00:00
|
|
|
|
|
2003-03-24 19:01:09 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Return the number of of the first track.
|
|
|
|
|
|
CDIO_INVALID_TRACK is returned on error.
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
track_t (*get_first_track_num) (void *env);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Return the number of tracks in the current medium.
|
|
|
|
|
|
CDIO_INVALID_TRACK is returned on error.
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
track_t (*get_num_tracks) (void *env);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
/*!
|
2003-03-29 17:32:00 +00:00
|
|
|
|
Return the starting LBA for track number
|
2003-03-24 19:01:09 +00:00
|
|
|
|
track_num in obj. Tracks numbers start at 1.
|
|
|
|
|
|
The "leadout" track is specified either by
|
|
|
|
|
|
using track_num LEADOUT_TRACK or the total tracks+1.
|
2003-03-29 17:32:00 +00:00
|
|
|
|
CDIO_INVALID_LBA is returned on error.
|
2003-03-24 19:01:09 +00:00
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
lba_t (*get_track_lba) (void *env, track_t track_num);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Get format of track.
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
track_format_t (*get_track_format) (void *env, track_t track_num);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Return true if we have XA data (green, mode2 form1) or
|
|
|
|
|
|
XA data (green, mode2 form2). That is track begins:
|
|
|
|
|
|
sync - header - subheader
|
|
|
|
|
|
12 4 - 8
|
|
|
|
|
|
|
|
|
|
|
|
FIXME: there's gotta be a better design for this and get_track_format?
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
bool (*get_track_green) (void *env, track_t track_num);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Return the starting MSF (minutes/secs/frames) for track number
|
|
|
|
|
|
track_num in obj. Tracks numbers start at 1.
|
|
|
|
|
|
The "leadout" track is specified either by
|
|
|
|
|
|
using track_num LEADOUT_TRACK or the total tracks+1.
|
2003-03-29 17:32:00 +00:00
|
|
|
|
False is returned on error.
|
2003-03-24 19:01:09 +00:00
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
bool (*get_track_msf) (void *env, track_t track_num, msf_t *msf);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
/*!
|
2003-03-29 17:32:00 +00:00
|
|
|
|
lseek - reposition read/write file offset
|
|
|
|
|
|
Returns (off_t) -1 on error.
|
|
|
|
|
|
Similar to libc's lseek()
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
off_t (*lseek) (void *env, off_t offset, int whence);
|
2003-03-29 17:32:00 +00:00
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Reads into buf the next size bytes.
|
|
|
|
|
|
Returns -1 on error.
|
|
|
|
|
|
Similar to libc's read()
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
ssize_t (*read) (void *env, void *buf, size_t size);
|
2003-03-29 17:32:00 +00:00
|
|
|
|
|
2003-04-10 04:13:41 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Reads a single mode2 sector from cd device into buf starting
|
|
|
|
|
|
from lsn. Returns 0 if no error.
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
int (*read_audio_sectors) (void *env, void *buf, lsn_t lsn,
|
2003-09-20 12:34:02 +00:00
|
|
|
|
unsigned int nblocks);
|
2003-04-10 04:13:41 +00:00
|
|
|
|
|
2003-03-29 17:32:00 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Reads a single mode2 sector from cd device into buf starting
|
2003-03-24 19:01:09 +00:00
|
|
|
|
from lsn. Returns 0 if no error.
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
int (*read_mode2_sector) (void *env, void *buf, lsn_t lsn,
|
2004-03-05 04:23:52 +00:00
|
|
|
|
bool mode2_form2);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Reads nblocks of mode2 sectors from cd device into data starting
|
|
|
|
|
|
from lsn.
|
|
|
|
|
|
Returns 0 if no error.
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
int (*read_mode2_sectors) (void *env, void *buf, lsn_t lsn,
|
2004-03-05 04:23:52 +00:00
|
|
|
|
bool mode2_form2, unsigned int nblocks);
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Reads a single mode1 sector from cd device into buf starting
|
|
|
|
|
|
from lsn. Returns 0 if no error.
|
|
|
|
|
|
*/
|
|
|
|
|
|
int (*read_mode1_sector) (void *env, void *buf, lsn_t lsn,
|
|
|
|
|
|
bool mode1_form2);
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Reads nblocks of mode1 sectors from cd device into data starting
|
|
|
|
|
|
from lsn.
|
|
|
|
|
|
Returns 0 if no error.
|
|
|
|
|
|
*/
|
|
|
|
|
|
int (*read_mode1_sectors) (void *env, void *buf, lsn_t lsn,
|
|
|
|
|
|
bool mode1_form2, unsigned int nblocks);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
2004-07-22 09:52:17 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Run a SCSI MMC command.
|
|
|
|
|
|
|
|
|
|
|
|
cdio CD structure set by cdio_open().
|
|
|
|
|
|
i_timeout time in milliseconds we will wait for the command
|
|
|
|
|
|
to complete. If this value is -1, use the default
|
|
|
|
|
|
time-out value.
|
|
|
|
|
|
cdb_len number of bytes in cdb (6, 10, or 12).
|
|
|
|
|
|
cdb CDB bytes. All values that are needed should be set on
|
|
|
|
|
|
input.
|
|
|
|
|
|
b_return_data TRUE if the command expects data to be returned in
|
|
|
|
|
|
the buffer
|
|
|
|
|
|
len Size of buffer
|
|
|
|
|
|
buf Buffer for data, both sending and receiving
|
|
|
|
|
|
|
|
|
|
|
|
Returns 0 if command completed successfully.
|
|
|
|
|
|
*/
|
|
|
|
|
|
int (*run_scsi_mmc_cmd) ( const CdIo *cdio, unsigned int i_timeout,
|
|
|
|
|
|
unsigned int cdb_len,
|
|
|
|
|
|
const scsi_mmc_cdb_t *p_cdb,
|
|
|
|
|
|
scsi_mmc_direction_t e_direction,
|
|
|
|
|
|
unsigned int len, /*in/out*/ void *p_buf );
|
|
|
|
|
|
|
2003-03-24 19:01:09 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Set the arg "key" with "value" in the source device.
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
int (*set_arg) (void *env, const char key[], const char value[]);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Return the size of the CD in logical block address (LBA) units.
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
uint32_t (*stat_size) (void *env);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
} cdio_funcs;
|
2003-03-29 17:32:00 +00:00
|
|
|
|
|
|
|
|
|
|
|
2003-05-24 15:43:06 +00:00
|
|
|
|
/* Implementation of CdIo type */
|
|
|
|
|
|
struct _CdIo {
|
|
|
|
|
|
driver_id_t driver_id; /* Particular driver opened. */
|
|
|
|
|
|
cdio_funcs op; /* driver-specific routines handling implimentatin*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
void *env; /* environment. Passed to routine above. */
|
2003-05-24 15:43:06 +00:00
|
|
|
|
};
|
|
|
|
|
|
|
2003-03-30 13:01:22 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Things common to private device structures. Even though not all
|
|
|
|
|
|
devices may have some of these fields, by listing common ones
|
|
|
|
|
|
we facilitate writing generic routines and even cut-and-paste
|
|
|
|
|
|
code.
|
|
|
|
|
|
*/
|
2003-03-29 17:32:00 +00:00
|
|
|
|
typedef struct {
|
2003-03-30 13:01:22 +00:00
|
|
|
|
char *source_name; /* Name used in open. */
|
|
|
|
|
|
bool init; /* True if structure has been initialized */
|
|
|
|
|
|
bool toc_init; /* True TOC read in */
|
|
|
|
|
|
int ioctls_debugged; /* for debugging */
|
2003-04-07 11:31:19 +00:00
|
|
|
|
|
|
|
|
|
|
/* Only one of the below is used. The first is for CD-ROM devices
|
|
|
|
|
|
and the second for stream reading (bincue, nrg, toc, network).
|
|
|
|
|
|
*/
|
2003-03-30 13:01:22 +00:00
|
|
|
|
int fd; /* File descriptor of device */
|
2003-04-07 11:31:19 +00:00
|
|
|
|
CdioDataSource *data_source;
|
2003-03-29 17:32:00 +00:00
|
|
|
|
} generic_img_private_t;
|
|
|
|
|
|
|
2003-04-07 11:31:19 +00:00
|
|
|
|
/* This is used in drivers that must keep their own internal
|
|
|
|
|
|
position pointer for doing seeks. Stream-based drivers (like bincue,
|
|
|
|
|
|
nrg, toc, network) would use this.
|
|
|
|
|
|
*/
|
|
|
|
|
|
typedef struct
|
|
|
|
|
|
{
|
|
|
|
|
|
off_t buff_offset; /* buffer offset in disk-image seeks. */
|
|
|
|
|
|
track_t index; /* Current track index in tocent. */
|
|
|
|
|
|
lba_t lba; /* Current LBA */
|
|
|
|
|
|
} internal_position_t;
|
|
|
|
|
|
|
2003-09-25 09:38:15 +00:00
|
|
|
|
CdIo * cdio_new (void *env, const cdio_funcs *funcs);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
/* The below structure describes a specific CD Input driver */
|
|
|
|
|
|
typedef struct
|
|
|
|
|
|
{
|
|
|
|
|
|
driver_id_t id;
|
2003-09-30 03:26:11 +00:00
|
|
|
|
unsigned int flags;
|
2003-03-24 19:01:09 +00:00
|
|
|
|
const char *name;
|
|
|
|
|
|
const char *describe;
|
|
|
|
|
|
bool (*have_driver) (void);
|
2004-04-30 06:54:15 +00:00
|
|
|
|
CdIo *(*driver_open) (const char *psz_source_name);
|
|
|
|
|
|
CdIo *(*driver_open_am) (const char *psz_source_name,
|
|
|
|
|
|
const char *psz_access_mode);
|
2003-04-10 04:13:41 +00:00
|
|
|
|
char *(*get_default_device) (void);
|
2004-04-30 06:54:15 +00:00
|
|
|
|
bool (*is_device) (const char *psz_source_name);
|
2003-09-30 03:26:11 +00:00
|
|
|
|
char **(*get_devices) (void);
|
2003-03-24 19:01:09 +00:00
|
|
|
|
} CdIo_driver_t;
|
|
|
|
|
|
|
|
|
|
|
|
/* The below array gives of the drivers that are currently available for
|
|
|
|
|
|
on a particular host. */
|
2003-06-22 22:41:29 +00:00
|
|
|
|
extern CdIo_driver_t CdIo_driver[CDIO_MAX_DRIVER];
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
|
|
|
|
|
/* The last valid entry of Cdio_driver. -1 means uninitialzed. -2
|
|
|
|
|
|
means some sort of error.
|
|
|
|
|
|
*/
|
|
|
|
|
|
extern int CdIo_last_driver;
|
|
|
|
|
|
|
|
|
|
|
|
/* The below array gives all drivers that can possibly appear.
|
|
|
|
|
|
on a particular host. */
|
2003-06-22 22:41:29 +00:00
|
|
|
|
extern CdIo_driver_t CdIo_all_drivers[CDIO_MAX_DRIVER+1];
|
2003-03-24 19:01:09 +00:00
|
|
|
|
|
2003-09-28 17:14:20 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Add/allocate a drive to the end of drives.
|
|
|
|
|
|
Use cdio_free_device_list() to free this device_list.
|
|
|
|
|
|
*/
|
|
|
|
|
|
void cdio_add_device_list(char **device_list[], const char *drive,
|
|
|
|
|
|
int *num_drives);
|
|
|
|
|
|
|
2003-03-30 13:01:22 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Bogus eject media when there is no ejectable media, e.g. a disk image
|
|
|
|
|
|
We always return 2. Should we also free resources?
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
int cdio_generic_bogus_eject_media (void *env);
|
2003-03-30 13:01:22 +00:00
|
|
|
|
|
2003-03-29 17:32:00 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Release and free resources associated with cd.
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
void cdio_generic_free (void *env);
|
2003-03-29 17:32:00 +00:00
|
|
|
|
|
2003-03-30 13:01:22 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Initialize CD device.
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
bool cdio_generic_init (void *env);
|
2003-03-30 13:01:22 +00:00
|
|
|
|
|
2003-03-29 17:32:00 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Reads into buf the next size bytes.
|
|
|
|
|
|
Returns -1 on error.
|
|
|
|
|
|
Is in fact libc's read().
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
off_t cdio_generic_lseek (void *env, off_t offset, int whence);
|
2003-03-29 17:32:00 +00:00
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Reads into buf the next size bytes.
|
|
|
|
|
|
Returns -1 on error.
|
|
|
|
|
|
Is in fact libc's read().
|
|
|
|
|
|
*/
|
2003-09-25 09:38:15 +00:00
|
|
|
|
ssize_t cdio_generic_read (void *env, void *buf, size_t size);
|
2003-03-29 17:32:00 +00:00
|
|
|
|
|
2004-06-26 00:39:00 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Reads a single form1 sector from cd device into data starting
|
|
|
|
|
|
from lsn. Returns 0 if no error.
|
|
|
|
|
|
*/
|
|
|
|
|
|
int cdio_generic_read_form1_sector (void * user_data, void *data,
|
|
|
|
|
|
lsn_t lsn);
|
|
|
|
|
|
|
2003-03-29 17:32:00 +00:00
|
|
|
|
/*!
|
2003-04-07 11:31:19 +00:00
|
|
|
|
Release and free resources associated with stream or disk image.
|
2003-03-29 17:32:00 +00:00
|
|
|
|
*/
|
2004-02-07 18:53:02 +00:00
|
|
|
|
void cdio_generic_stdio_free (void *env);
|
2003-06-07 16:48:33 +00:00
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Return true if source_name could be a device containing a CD-ROM on
|
|
|
|
|
|
Win32
|
|
|
|
|
|
*/
|
|
|
|
|
|
bool cdio_is_device_win32(const char *source_name);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*!
|
|
|
|
|
|
Return true if source_name could be a device containing a CD-ROM on
|
|
|
|
|
|
most Unix servers with block and character devices.
|
|
|
|
|
|
*/
|
|
|
|
|
|
bool cdio_is_device_generic(const char *source_name);
|
|
|
|
|
|
|
2003-04-07 11:31:19 +00:00
|
|
|
|
|
2003-06-12 04:46:27 +00:00
|
|
|
|
/*!
|
|
|
|
|
|
Like above, but don't give a warning device doesn't exist.
|
|
|
|
|
|
*/
|
|
|
|
|
|
bool cdio_is_device_quiet_generic(const char *source_name);
|
|
|
|
|
|
|
|
|
|
|
|
|
2003-03-24 19:01:09 +00:00
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
|
}
|
|
|
|
|
|
#endif /* __cplusplus */
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* __CDIO_PRIVATE_H__ */
|