Move another routine from mmc.c into mmc_hl_cmds.c

This commit is contained in:
R. Bernstein
2010-02-11 06:35:22 -05:00
parent 74762179d2
commit ff49db8449
5 changed files with 52 additions and 53 deletions

View File

@@ -24,6 +24,22 @@
#include <cdio/cdio.h>
#include <cdio/mmc_cmds.h>
/**
Close tray using a MMC START STOP UNIT command.
@param p_cdio the CD object to be acted upon.
@return DRIVER_OP_SUCCESS (0) if we got the status.
return codes are the same as driver_return_code_t
*/
driver_return_code_t
mmc_close_tray( CdIo_t *p_cdio )
{
if (p_cdio) {
return mmc_start_stop_unit(p_cdio, false, false, 0, 0);
} else {
return DRIVER_OP_ERROR;
}
}
/**
Eject using MMC commands. If CD-ROM is "locked" we'll unlock it.
Command is not "immediate" -- we'll wait for the command to complete.