VirtualBox

Changeset 80585 in vbox for trunk/include


Ignore:
Timestamp:
Sep 4, 2019 2:05:50 PM (5 years ago)
Author:
vboxsync
Message:

Runtime: Some renaming to stay consistent (*Get* always returns what is asked for while *Query* returns a status code and where to store the value on success is given as a pointer)

  • RTVfsFileGetSize -> RTVfsFileQuerySize
  • RTFileQuerySize -> RTFileQuerySizeByPath
  • RTFileGetSize -> RTFileQuerySize
  • RTFileGetSizeMaxEx -> RTFileQuerySizeMaxEx
Location:
trunk/include/iprt
Files:
4 edited

Legend:

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

    r79200 r80585  
    9494 * @param   pcbFile         Where to return the file size (bytes).
    9595 *
    96  * @sa      RTFileGetSize, RTPathQueryInfoEx.
    97  */
    98 RTDECL(int) RTFileQuerySize(const char *pszPath, uint64_t *pcbFile);
     96 * @sa      RTFileQuerySize, RTPathQueryInfoEx.
     97 */
     98RTDECL(int) RTFileQuerySizeByPath(const char *pszPath, uint64_t *pcbFile);
    9999
    100100
     
    560560 * @param   pcbSize     Where to store the filesize.
    561561 */
    562 RTDECL(int)  RTFileGetSize(RTFILE File, uint64_t *pcbSize);
     562RTDECL(int)  RTFileQuerySize(RTFILE File, uint64_t *pcbSize);
    563563
    564564/**
     
    568568 *          -1 on failure, the file position is undefined.
    569569 * @param   File        Handle to the file.
    570  * @see     RTFileGetMaxSizeEx.
     570 * @see     RTFileQueryMaxSizeEx.
    571571 */
    572572RTDECL(RTFOFF) RTFileGetMaxSize(RTFILE File);
     
    580580 * @see     RTFileGetMaxSize.
    581581 */
    582 RTDECL(int) RTFileGetMaxSizeEx(RTFILE File, PRTFOFF pcbMax);
     582RTDECL(int) RTFileQueryMaxSizeEx(RTFILE File, PRTFOFF pcbMax);
    583583
    584584/**
  • trunk/include/iprt/mangling.h

    r80518 r80585  
    932932# define RTFileFromNative                               RT_MANGLER(RTFileFromNative)
    933933# define RTFileGetMaxSize                               RT_MANGLER(RTFileGetMaxSize)
    934 # define RTFileGetMaxSizeEx                             RT_MANGLER(RTFileGetMaxSizeEx)
    935 # define RTFileGetSize                                  RT_MANGLER(RTFileGetSize)
     934# define RTFileQueryMaxSizeEx                           RT_MANGLER(RTFileQueryMaxSizeEx)
     935# define RTFileQuerySizeByPath                          RT_MANGLER(RTFileQuerySizeByPath)
    936936# define RTFileIoCtl                                    RT_MANGLER(RTFileIoCtl)
    937937# define RTFileIsValid                                  RT_MANGLER(RTFileIsValid)
     
    26402640# define RTVfsFileFromRTFile                            RT_MANGLER(RTVfsFileFromRTFile)
    26412641# define RTVfsFileGetOpenFlags                          RT_MANGLER(RTVfsFileGetOpenFlags)
    2642 # define RTVfsFileGetSize                               RT_MANGLER(RTVfsFileGetSize)
     2642# define RTVfsFileQuerySize                             RT_MANGLER(RTVfsFileQuerySize)
    26432643# define RTVfsFileGetMaxSize                            RT_MANGLER(RTVfsFileGetMaxSize)
    26442644# define RTVfsFileOpen                                  RT_MANGLER(RTVfsFileOpen)
  • trunk/include/iprt/vfs.h

    r80518 r80585  
    14751475
    14761476
    1477 RTDECL(int)         RTVfsFileGetSize(RTVFSFILE hVfsFile, uint64_t *pcbSize);
     1477RTDECL(int)         RTVfsFileQuerySize(RTVFSFILE hVfsFile, uint64_t *pcbSize);
    14781478RTDECL(RTFOFF)      RTVfsFileGetMaxSize(RTVFSFILE hVfsFile);
    14791479RTDECL(int)         RTVfsFileQueryMaxSize(RTVFSFILE hVfsFile, uint64_t *pcbMax);
  • trunk/include/iprt/vfslowlevel.h

    r77047 r80585  
    10231023     * @param   pvThis      The implementation specific file data.
    10241024     * @param   pcbFile     Where to store the current file size.
    1025      * @sa      RTFileGetSize
     1025     * @sa      RTFileQuerySize
    10261026     */
    10271027    DECLCALLBACKMEMBER(int, pfnQuerySize)(void *pvThis, uint64_t *pcbFile);
     
    10571057     * @param   pcbMax      Where to return the max file size.
    10581058     * @note    Optional.  If NULL, VERR_NOT_IMPLEMENTED will be returned.
    1059      * @sa      RTFileGetMaxSizeEx
     1059     * @sa      RTFileQueryMaxSizeEx
    10601060     */
    10611061    DECLCALLBACKMEMBER(int, pfnQueryMaxSize)(void *pvThis, uint64_t *pcbMax);
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