Changeset 28877 in vbox for trunk/src/VBox/Runtime/include
- Timestamp:
- Apr 28, 2010 7:10:47 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/include/internal/path.h
r28800 r28877 48 48 * Converts a path from IPRT to native representation. 49 49 * 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. 52 51 * 53 52 * @returns IPRT status code. 54 53 * @param ppszNativePath Where to store the pointer to the native path. 55 54 * Free by calling rtPathFreeHost(). NULL on failure. 55 * Can be the same as pszPath. 56 56 * @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). 58 60 */ 59 61 int rtPathToNative(char **ppszNativePath, const char *pszPath); … … 62 64 * Converts a path from IPRT to native representation. 63 65 * 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. 66 67 * 67 68 * @returns IPRT status code. 68 69 * @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. 70 72 * @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). 73 78 */ 74 79 int rtPathToNativeEx(char **ppszNativePath, const char *pszPath, const char *pszBasePath); … … 78 83 * 79 84 * @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). 81 90 */ 82 void rtPathFreeNative(char *pszNativePath );91 void rtPathFreeNative(char *pszNativePath, const char *pszPath); 83 92 84 93 /** … … 89 98 * Free by calling RTStrFree(). NULL on failure. 90 99 * @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). 92 103 */ 93 104 int rtPathFromNative(char **ppszPath, const char *pszNativePath); … … 100 111 * Free by calling RTStrFree(). NULL on failure. 101 112 * @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). 105 119 */ 106 120 int rtPathFromNativeEx(char **ppszPath, const char *pszNativePath, const char *pszBasePath);
Note:
See TracChangeset
for help on using the changeset viewer.