VirtualBox

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


Ignore:
Timestamp:
Oct 25, 2010 2:32:38 PM (14 years ago)
Author:
vboxsync
Message:

iprt/symlink.h: Initial code (only tested on linux).

File:
1 edited

Legend:

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

    r28915 r33426  
    8585 * @returns IPRT status code.
    8686 * @param   ppszPath        Where to store the pointer to the IPRT path.
    87  *                          Free by calling RTStrFree(). NULL on failure.
     87 *                          Free by calling rtPathFreeIprt(). NULL on failure.
    8888 * @param   pszNativePath   The native path to convert.
    8989 * @param   pszBasePath     What pszNativePath is relative to - in IPRT
     
    117117int rtPathFromNativeCopy(char *pszPath, size_t cbPath, const char *pszNativePath, const char *pszBasePath);
    118118
     119/**
     120 * Convert a path from the native representation to the IPRT one, allocating a
     121 * string buffer for the result.
     122 *
     123 * @returns VINF_SUCCESS, VERR_NO_STR_MEMORY, and recoding errors.
     124 *
     125 * @param   ppszPath        Where to return the pointer to the IPRT path.  Must
     126 *                          be freed by calling RTStrFree.
     127 * @param   pszNativePath   The path to convert.
     128 * @param   pszBasePath     What pszNativePath is relative to - in IPRT
     129 *                          representation.  NULL if current directory.
     130 */
     131int rtPathFromNativeDup(char **ppszPath, const char *pszNativePath, const char *pszBasePath);
     132
    119133
    120134RT_C_DECLS_END
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