~ubuntu-branches/ubuntu/oneiric/virtualbox-ose/oneiric

« back to all changes in this revision

Viewing changes to include/VBox/vscsi.h

  • Committer: Bazaar Package Importer
  • Author(s): Felix Geyer
  • Date: 2011-01-30 23:27:25 UTC
  • mfrom: (0.3.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20110130232725-2ouajjd2ggdet0zd
Tags: 4.0.2-dfsg-1ubuntu1
* Merge from Debian unstable, remaining changes:
  - Add Apport hook.
    - debian/virtualbox-ose.files/source_virtualbox-ose.py
    - debian/virtualbox-ose.install
  - Drop *-source packages.
* Drop ubuntu-01-fix-build-gcc45.patch, fixed upstream.
* Drop ubuntu-02-as-needed.patch, added to the Debian package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $Id: vscsi.h $ */
 
1
/* $Id: vscsi.h 33540 2010-10-28 09:27:05Z vboxsync $ */
2
2
/** @file
3
3
 * VBox storage drivers: Virtual SCSI driver
4
4
 */
134
134
typedef DECLCALLBACK(void) FNVSCSIREQCOMPLETED(VSCSIDEVICE hVScsiDevice,
135
135
                                               void *pvVScsiDeviceUser,
136
136
                                               void *pvVScsiReqUser,
 
137
                                               int rcScsiCode,
 
138
                                               bool fRedoPossible,
137
139
                                               int rcReq);
138
140
/** Pointer to a virtual SCSI request completed callback. */
139
141
typedef FNVSCSIREQCOMPLETED *PFNVSCSIREQCOMPLETED;
240
242
 * Destroy virtual SCSI LUN.
241
243
 *
242
244
 * @returns VBox status code.
243
 
 * @param   hVScsiLun               The virtal SCSI LUN handle to destroy.
 
245
 * @param   hVScsiLun               The virtual SCSI LUN handle to destroy.
244
246
 */
245
247
VBOXDDU_DECL(int) VSCSILunDestroy(VSCSILUN hVScsiLun);
246
248
 
252
254
 *                                  This is given when a I/O callback for
253
255
 *                                  the LUN is called by the virtual SCSI layer.
254
256
 * @param   rcIoReq                 The status code the I/O request completed with.
 
257
 * @param   fRedoPossible           Flag whether it is possible to redo the request.
 
258
 *                                  If true setting any sense code will be omitted
 
259
 *                                  in case of an error to not alter the device state.
255
260
 */
256
 
VBOXDDU_DECL(int) VSCSIIoReqCompleted(VSCSIIOREQ hVScsiIoReq, int rcIoReq);
 
261
VBOXDDU_DECL(int) VSCSIIoReqCompleted(VSCSIIOREQ hVScsiIoReq, int rcIoReq, bool fRedoPossible);
257
262
 
258
263
/**
259
264
 * Query the transfer direction of the I/O request.