1
/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
4
* Copyright (C) Philippe Rouquier 2007-2008 <bonfire-app@wanadoo.fr>
6
* Brasero is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* brasero is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14
* See the GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with brasero. If not, write to:
18
* The Free Software Foundation, Inc.,
19
* 51 Franklin Street, Fifth Floor
20
* Boston, MA 02110-1301, USA.
27
#include "scsi-error.h"
28
#include "scsi-utils.h"
29
#include "scsi-base.h"
30
#include "scsi-command.h"
31
#include "scsi-opcodes.h"
33
struct _BraseroTestUnitReadyCDB {
39
typedef struct _BraseroTestUnitReadyCDB BraseroTestUnitReadyCDB;
41
BRASERO_SCSI_COMMAND_DEFINE (BraseroTestUnitReadyCDB,
46
brasero_spc1_test_unit_ready (BraseroDeviceHandle *handle,
47
BraseroScsiErrCode *error)
49
BraseroTestUnitReadyCDB *cdb;
50
BraseroScsiResult res;
52
cdb = brasero_scsi_command_new (&info, handle);
53
res = brasero_scsi_command_issue_sync (cdb,
57
brasero_scsi_command_free (cdb);