Add device for drive(r)/device things. Reorganize more to pull things

out of cdio and into their respective units.
This commit is contained in:
rocky
2005-01-04 10:58:03 +00:00
parent 694fbf8006
commit 2c20dfb2ef
6 changed files with 767 additions and 730 deletions

View File

@@ -1,5 +1,5 @@
/*
$Id: disc.c,v 1.1 2005/01/04 04:33:36 rocky Exp $
$Id: disc.c,v 1.2 2005/01/04 10:58:03 rocky Exp $
Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
@@ -27,6 +27,12 @@
#include <cdio/cdio.h>
#include "cdio_private.h"
unsigned int
cdio_get_disc_last_lsn(const CdIo *p_cdio)
{
return cdio_get_track_lsn(p_cdio, CDIO_CDROM_LEADOUT_TRACK);
}
/*!
Get medium associated with cd_obj.
*/
@@ -42,12 +48,6 @@ cdio_get_discmode (CdIo *cd_obj)
}
}
unsigned int
cdio_get_disc_last_lsn(const CdIo *p_cdio)
{
return cdio_get_track_lsn(p_cdio, CDIO_CDROM_LEADOUT_TRACK);
}
/*!
Return a string containing the name of the driver in use.
if CdIo is NULL (we haven't initialized a specific device driver),