VirtualBox

Changeset 28877 in vbox for trunk/src/VBox/Runtime/include


Ignore:
Timestamp:
Apr 28, 2010 7:10:47 PM (15 years ago)
Author:
vboxsync
Message:

IPRT: pathhost changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/include/internal/path.h

    r28800 r28877  
    4848 * Converts a path from IPRT to native representation.
    4949 *
    50  * This may involve querying filesystems what codeset they
    51  * speak and so forth.
     50 * This may involve querying filesystems what codeset they speak and so forth.
    5251 *
    5352 * @returns IPRT status code.
    5453 * @param   ppszNativePath  Where to store the pointer to the native path.
    5554 *                          Free by calling rtPathFreeHost(). NULL on failure.
     55 *                          Can be the same as pszPath.
    5656 * @param   pszPath         The path to convert.
    57  * @remark  This function is not available on hosts using something else than byte seqences as names. (eg win32)
     57 *
     58 * @remark  This function is not available on hosts using something else than
     59 *          byte seqences as names (eg win32).
    5860 */
    5961int rtPathToNative(char **ppszNativePath, const char *pszPath);
     
    6264 * Converts a path from IPRT to native representation.
    6365 *
    64  * This may involve querying filesystems what codeset they
    65  * speak and so forth.
     66 * This may involve querying filesystems what codeset they speak and so forth.
    6667 *
    6768 * @returns IPRT status code.
    6869 * @param   ppszNativePath  Where to store the pointer to the native path.
    69  *                          Free by calling rtPathFreeHost(). NULL on failure.
     70 *                          Free by calling rtPathFreeHost().  NULL on failure.
     71 *                          Can be the same as pszPath.
    7072 * @param   pszPath         The path to convert.
    71  * @param   pszBasePath     What pszPath is relative to. If NULL the function behaves like rtPathToNative().
    72  * @remark  This function is not available on hosts using something else than byte seqences as names. (eg win32)
     73 * @param   pszBasePath     What pszPath is relative to. If NULL the function
     74 *                          behaves like rtPathToNative().
     75 *
     76 * @remark  This function is not available on hosts using something else than
     77 *          byte seqences as names (eg win32).
    7378 */
    7479int rtPathToNativeEx(char **ppszNativePath, const char *pszPath, const char *pszBasePath);
     
    7883 *
    7984 * @param   pszNativePath   The host path to free. NULL allowed.
    80  * @remark  This function is not available on hosts using something else than byte seqences as names. (eg win32)
     85 * @param   pszPath         The original path.  This is for checking if
     86 *                          rtPathToNative returned the pointer to the original.
     87 *
     88 * @remark  This function is not available on hosts using something else than
     89 *          byte seqences as names (eg win32).
    8190 */
    82 void rtPathFreeNative(char *pszNativePath);
     91void rtPathFreeNative(char *pszNativePath, const char *pszPath);
    8392
    8493/**
     
    8998 *                          Free by calling RTStrFree(). NULL on failure.
    9099 * @param   pszNativePath   The native path to convert.
    91  * @remark  This function is not available on hosts using something else than byte seqences as names. (eg win32)
     100 *
     101 * @remark  This function is not available on hosts using something else than
     102 *          byte seqences as names (eg win32).
    92103 */
    93104int rtPathFromNative(char **ppszPath, const char *pszNativePath);
     
    100111 *                          Free by calling RTStrFree(). NULL on failure.
    101112 * @param   pszNativePath   The native path to convert.
    102  * @param   pszBasePath     What pszHostPath is relative to - in IPRT representation.
    103  *                          If NULL the function behaves like rtPathFromNative().
    104  * @remark  This function is not available on hosts using something else than byte seqences as names. (eg win32)
     113 * @param   pszBasePath     What pszHostPath is relative to - in IPRT
     114 *                          representation.  If NULL the function behaves like
     115 *                          rtPathFromNative().
     116 *
     117 * @remark  This function is not  available on hosts using something else than
     118 *          byte seqences as names (eg win32).
    105119 */
    106120int rtPathFromNativeEx(char **ppszPath, const char *pszNativePath, const char *pszBasePath);
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