Add ability to retrieve SCSI tuple for a name and/or fake one up. This

helps programs that want to be cd-record compatible. In particular to
parameters were added to cdio_get_arg, "scsi-tuple", and
"scsi-tuple-linux".

Code from Thomas Schmitt.
This commit is contained in:
R. Bernstein
2009-12-31 18:51:50 -05:00
parent 7e14578ffe
commit cf882cfd20
4 changed files with 118 additions and 13 deletions

View File

@@ -1,6 +1,4 @@
/*
$Id: _cdio_generic.c,v 1.27 2008/04/22 15:29:11 karl Exp $
Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009
Rocky Bernstein <rocky@gnu.org>
@@ -105,6 +103,9 @@ cdio_generic_free (void *p_user_data)
if (p_env->fd >= 0)
close (p_env->fd);
if (p_env->scsi_tuple != NULL)
free (p_env->scsi_tuple);
free (p_env);
}