Add interface to eject CD-ROM by device name.
eject.c: new routine to test/show this. example/*.c iso2.cpp: Note in comment allowance of an optional argument.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/* -*- c -*-
|
||||
$Id: cdio.h,v 1.80 2005/02/10 01:59:05 rocky Exp $
|
||||
$Id: cdio.h,v 1.81 2005/11/07 07:44:00 rocky Exp $
|
||||
|
||||
Copyright (C) 2001 Herbert Valerio Riedel <hvr@gnu.org>
|
||||
Copyright (C) 2003, 2004, 2005 Rocky Bernstein <rocky@panix.com>
|
||||
@@ -50,7 +50,7 @@
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* For compatability. */
|
||||
/* For compatibility. */
|
||||
#define CdIo CdIo_t
|
||||
|
||||
/** This is an opaque structure for the CD object. */
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/* -*- c -*-
|
||||
$Id: device.h,v 1.24 2005/11/06 22:50:37 rocky Exp $
|
||||
$Id: device.h,v 1.25 2005/11/07 07:44:00 rocky Exp $
|
||||
|
||||
Copyright (C) 2005 Rocky Bernstein <rocky@panix.com>
|
||||
|
||||
@@ -237,6 +237,13 @@ extern "C" {
|
||||
*/
|
||||
driver_return_code_t cdio_eject_media (CdIo_t **p_cdio);
|
||||
|
||||
/*!
|
||||
Eject media in CD drive if there is a routine to do so.
|
||||
|
||||
@param psz_drive the name of the device to be acted upon.
|
||||
*/
|
||||
driver_return_code_t cdio_eject_media_drive (const char *psz_drive);
|
||||
|
||||
/*!
|
||||
Free device list returned by cdio_get_devices or
|
||||
cdio_get_devices_with_cap.
|
||||
|
||||
Reference in New Issue
Block a user