lib/*c, include/cdio/*.h: Add more drive capability info

util.{c,h}: common routine for printing capbilities
cd-info.c: use above.
*.right: update for capability display of above

cd-drive.c: new program to show drive capabilities
This commit is contained in:
rocky
2004-04-25 00:46:34 +00:00
parent dee62a7917
commit 52e0a80503
28 changed files with 609 additions and 124 deletions

View File

@@ -1,5 +1,5 @@
/* -*- c -*-
$Id: cdio.h,v 1.41 2004/04/24 11:48:37 rocky Exp $
$Id: cdio.h,v 1.42 2004/04/25 00:46:34 rocky Exp $
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
@@ -51,32 +51,6 @@
#define CDIO_SRC_IS_SCSI_MASK 0x0004 /**< Read source SCSI device. */
#define CDIO_SRC_IS_NATIVE_MASK 0x0008
/*!
\brief Drive types returned by cdio_get_drive_cap()
*/
#define CDIO_DRIVE_ERROR 0x0000 /**< Error */
#define CDIO_DRIVE_UNKNOWN 0x0001 /**< Dunno. It can be on if we
have only partial information or
are not completely certain
*/
#define CDIO_DRIVE_CD_AUDIO 0x100 /**< drive can play CD audio */
#define CDIO_DRIVE_CD_R 0x2000 /**< drive can write CD-R */
#define CDIO_DRIVE_CD_RW 0x4000 /**< drive can write CD-RW */
#define CDIO_DRIVE_DVD 0x8000 /**< drive can read DVD */
#define CDIO_DRIVE_DVD_R 0x10000 /**< drive can write DVD-R */
#define CDIO_DRIVE_DVD_RAM 0x20000 /**< drive can write DVD-RAM */
#define CDIO_DRIVE_FILE 0x80000 /**< drive is really a file, i.e a
CD file image */
#define CDIO_DRIVE_CD_WRITER (CDIO_DRIVE_CD_R|CDIO_DRIVE_CD_RW)
/**< Has some sort of CD writer ability */
#define CDIO_DRIVE_CD (CDIO_DRIVE_CD_AUDIO|CDIO_DRIVE_CD_WRITER)
/**< Has some sort of CD ability */
#define CDIO_DRIVE_DVD_WRITER (CDIO_DRIVE_DVD_R|CDIO_DRIVE_DVD_RAM)
/**< Has some sort of DVD writer ability */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */