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:
rocky
2005-11-07 07:44:00 +00:00
parent 2f8e8b9529
commit 6f81e9252b
9 changed files with 133 additions and 12 deletions

View File

@@ -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.