VirtualBox

Changeset 33859 in vbox for trunk/include/iprt/vfs.h


Ignore:
Timestamp:
Nov 8, 2010 4:15:07 PM (14 years ago)
Author:
vboxsync
Message:

iprt/vfs: more code.

File:
1 edited

Legend:

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

    r33822 r33859  
    120120                                       char *pszMountPoint, size_t cbMountPoint);
    121121
     122
    122123/** @defgroup grp_vfs_dir           VFS Directory API
    123124 * @{
    124125 */
     126
     127/**
     128 * Retains a reference to the VFS directory handle.
     129 *
     130 * @returns New reference count on success, UINT32_MAX on failure.
     131 * @param   hVfsDir         The VFS directory handle.
     132 */
     133RTDECL(uint32_t)    RTVfsDirRetain(RTVFSDIR hVfsDir);
     134
     135/**
     136 * Releases a reference to the VFS directory handle.
     137 *
     138 * @returns New reference count on success (0 if closed), UINT32_MAX on failure.
     139 * @param   hVfsIos         The VFS directory handle.
     140 */
     141RTDECL(uint32_t)    RTVfsDirRelease(RTVFSDIR hVfsDir);
     142
    125143/** @}  */
    126144
    127145
    128 /** @defgroup grp_vfs_iostream      VFS I/O Stream
     146/** @defgroup grp_vfs_iostream      VFS Symbolic Link API
     147 * @{
     148 */
     149
     150/**
     151 * Read the symbolic link target.
     152 *
     153 * @returns IPRT status code.
     154 * @param   hVfsSym         The VFS symbolic link handle.
     155 * @param   pszTarget       The target buffer.
     156 * @param   cbTarget        The size of the target buffer.
     157 * @sa      RTSymlinkRead
     158 */
     159RTDECL(int)         RTVfsSymlinkRead(RTVFSSYMLINK hVfsSym, char *pszTarget, size_t cbTarget);
     160
     161/** @}  */
     162
     163
     164
     165/** @defgroup grp_vfs_iostream      VFS I/O Stream API
    129166 * @{
    130167 */
     
    264301 */
    265302RTDECL(RTFOFF)      RTVfsIoStrmTell(RTVFSIOSTREAM hVfsIos);
     303
     304/**
     305 * Skips @a cb ahead in the stream.
     306 *
     307 * @returns IPRT status code.
     308 * @param   hVfsIos         The VFS I/O stream handle.
     309 * @param   cb              The number bytes to skip.
     310 */
     311RTDECL(int)         RTVfsIoStrmSkip(RTVFSIOSTREAM hVfsIos, RTFOFF cb);
     312
     313/**
     314 * Fills the stream with @a cb zeros.
     315 *
     316 * @returns IPRT status code.
     317 * @param   hVfsIos         The VFS I/O stream handle.
     318 * @param   cb              The number of zero bytes to insert.
     319 */
     320RTDECL(int)         RTVfsIoStrmZeroFill(RTVFSIOSTREAM hVfsIos, RTFOFF cb);
    266321/** @} */
    267322
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