VirtualBox

Changeset 59601 in vbox for trunk/include/VBox/vd-ifs.h


Ignore:
Timestamp:
Feb 6, 2016 4:19:51 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
105420
Message:

StorageLib: Added VDIfCreateFromVfsStream and VDIfDestroyFromVfsStream (untested).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vd-ifs.h

    r59455 r59601  
    670670VBOXDDU_DECL(int) VDIfCreateVfsFile(PVDINTERFACEIO pVDIfs, struct VDINTERFACEIOINT *pVDIfsInt, void *pvStorage, uint32_t fFlags, PRTVFSFILE phVfsFile);
    671671
     672/**
     673 * Creates an VD I/O interface wrapper around an IPRT VFS I/O stream.
     674 *
     675 * @return  VBox status code.
     676 * @param   hVfsIos         The IPRT VFS I/O stream handle. The handle will be
     677 *                          retained by the returned I/O interface (released on
     678 *                          close or destruction).
     679 * @param   fAccessMode     The access mode (RTFILE_O_ACCESS_MASK) to accept.
     680 * @param   ppIoIf          Where to return the pointer to the VD I/O interface.
     681 *                          This must be passed to VDIfDestroyFromVfsStream().
     682 */
     683VBOXDDU_DECL(int) VDIfCreateFromVfsStream(RTVFSIOSTREAM hVfsIos, uint32_t fAccessMode, PVDINTERFACEIO *ppIoIf);
     684
     685/**
     686 * Destroys the VD I/O interface returned by VDIfCreateFromVfsStream.
     687 *
     688 * @returns VBox status code.
     689 * @param   pIoIf           The I/O interface pointer returned by
     690 *                          VDIfCreateFromVfsStream.  NULL will be quietly
     691 *                          ignored.
     692 */
     693VBOXDDU_DECL(int) VDIfDestroyFromVfsStream(PVDINTERFACEIO pIoIf);
     694
    672695
    673696/**
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette