VirtualBox

Changeset 76589 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jan 1, 2019 8:56:07 AM (6 years ago)
Author:
vboxsync
Message:

IPRT: Attempted to address some the more obvious shortcomings of RTPathCalcRelative. Had to add a parameter that clearifies whether the from path is a file (VHD usage) or directory (rest).

File:
1 edited

Legend:

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

    r76585 r76589  
    10861086 *                          terminator included.
    10871087 * @param   pszPathFrom     The path to start from creating the relative path.
     1088 * @param   fFromFile       Whether @a pszPathFrom is a file and we should work
     1089 *                          relative to it's parent directory (@c true), or if
     1090 *                          we should assume @a pszPathFrom is a directory and
     1091 *                          work relative to it.
    10881092 * @param   pszPathTo       The path to reach with the created relative path.
    10891093 */
    1090 RTDECL(int) RTPathCalcRelative(char *pszPathDst, size_t cbPathDst,
    1091                                const char *pszPathFrom,
    1092                                const char *pszPathTo);
     1094RTDECL(int) RTPathCalcRelative(char *pszPathDst, size_t cbPathDst, const char *pszPathFrom, bool fFromFile, const char *pszPathTo);
    10931095
    10941096#ifdef IN_RING3
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