Regularize MMC commands more. Add ALLOW_PREVENT_MEDIUM.

Start CDTEXT. _cdio_linux.c: better at reporting errors.
This commit is contained in:
rocky
2004-07-08 01:27:57 +00:00
parent 38a5241b83
commit 65fd7d3b43
9 changed files with 268 additions and 39 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: cdio.c,v 1.56 2004/06/19 19:15:15 rocky Exp $
$Id: cdio.c,v 1.57 2004/07/08 01:28:00 rocky Exp $
Copyright (C) 2003, 2004 Rocky Bernstein <rocky@panix.com>
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
@@ -39,7 +39,7 @@
#include <cdio/logging.h>
#include "cdio_private.h"
static const char _rcsid[] = "$Id: cdio.c,v 1.56 2004/06/19 19:15:15 rocky Exp $";
static const char _rcsid[] = "$Id: cdio.c,v 1.57 2004/07/08 01:28:00 rocky Exp $";
const char *track_format2str[6] =
@@ -212,6 +212,22 @@ scan_for_driver(driver_id_t start, driver_id_t end,
return NULL;
}
/*!
Return the value associatied with key. NULL is returned if obj is NULL
or "key" does not exist.
*/
CDText_data_t *
cdio_cdtext_query (const CdIo *obj)
{
if (obj == NULL) return NULL;
if (obj->op.get_arg) {
return obj->op.cdtext_query (obj->env);
} else {
return NULL;
}
}
const char *
cdio_driver_describe(driver_id_t driver_id)
{