VirtualBox

Changeset 34407 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Nov 26, 2010 4:45:50 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68178
Message:

vfsmemory.cpp: initial coding.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/vfslowlevel.h

    r34029 r34407  
    620620    /** The structure version (RTVFSIOSTREAMOPS_VERSION). */
    621621    uint32_t                uVersion;
    622     /** Reserved field, MBZ. */
    623     uint32_t                fReserved;
     622    /** Feature field. */
     623    uint32_t                fFeatures;
    624624
    625625    /**
     
    722722/** The RTVFSIOSTREAMOPS structure version. */
    723723#define RTVFSIOSTREAMOPS_VERSION    RT_MAKE_U32_FROM_U8(0xff,0x6f,1,0)
     724
     725/** @name RTVFSIOSTREAMOPS::fFeatures
     726 * @{ */
     727/** No scatter gather lists, thank you. */
     728#define RTVFSIOSTREAMOPS_FEAT_NO_SG         RT_BIT_32(0)
     729/** Mask of the valid I/O stream feature flags. */
     730#define RTVFSIOSTREAMOPS_FEAT_VALID_MASK    UINT32_C(0x00000001)
     731/** @}  */
    724732
    725733
     
    900908RTDECL(void) RTVfsParsePathFree(PRTVFSPARSEDPATH pPath);
    901909
     910/**
     911 * Dummy implementation of RTVFSIOSTREAMOPS::pfnPollOne.
     912 *
     913 * This handles the case where there is no chance any events my be raised and
     914 * all that is required is to wait according to the parameters.
     915 *
     916 * @returns IPRT status code.
     917 * @param   pvThis      The implementation specific file data.
     918 * @param   fEvents     The events to poll for (RTPOLL_EVT_XXX).
     919 * @param   cMillies    How long to wait for event to eventuate.
     920 * @param   fIntr       Whether the wait is interruptible and can return
     921 *                      VERR_INTERRUPTED (@c true) or if this condition
     922 *                      should be hidden from the caller (@c false).
     923 * @param   pfRetEvents Where to return the event mask.
     924 * @sa      RTVFSIOSTREAMOPS::pfnPollOne, RTPollSetAdd, RTPoll, RTPollNoResume.
     925 */
     926RTDECL(int) RTVfsUtilDummyPollOne(uint32_t fEvents, RTMSINTERVAL cMillies, bool fIntr, uint32_t *pfRetEvents);
     927
     928/**
     929 * Pumps data from one I/O stream to another.
     930 *
     931 * The data is read in chunks from @a hVfsIosSrc and written to @a hVfsIosDst
     932 * until @hVfsIosSrc indicates end of stream.
     933 *
     934 * @returns IPRT status code
     935 *
     936 * @param   hVfsIosSrc  The input stream.
     937 * @param   hVfsIosDst  The output stream.
     938 * @param   cbBufHint   Hints at a good temporary buffer size, pass 0 if
     939 *                      clueless.
     940 */
     941RTDECL(int) RTVfsUtilPumpIoStreams(RTVFSIOSTREAM hVfsIosSrc, RTVFSIOSTREAM hVfsIosDst, size_t cbBufHint);
     942
    902943/** @}  */
    903944
Note: See TracChangeset for help on using the changeset viewer.

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