Changeset 58067 in vbox for trunk/include/iprt/uri.h
- Timestamp:
- Oct 6, 2015 8:52:48 PM (9 years ago)
- svn:sync-xref-src-repo-rev:
- 103123
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/uri.h
r57944 r58067 275 275 * The returned pointer must be freed using RTStrFree(). 276 276 * 277 * @see RTUriCreate278 *279 277 * @returns The new URI on success, NULL otherwise. Free With RTStrFree. 280 278 * @param pszPath The path of the URI. 279 * 280 * @sa RTUriFileCreateEx, RTUriCreate 281 281 */ 282 282 RTDECL(char *) RTUriFileCreate(const char *pszPath); 283 284 /** 285 * Creates an file URL for the given path. 286 * 287 * This API works like RTStrToUtf16Ex with regard to result allocation or 288 * buffering (i.e. it's a bit complicated but very flexible). 289 * 290 * @returns iprt status code. 291 * @param pszPath The path to convert to a file:// URL. 292 * @param fPathStyle The input path style, exactly one of 293 * RTPATH_STR_F_STYLE_HOST, RTPATH_STR_F_STYLE_DOS and 294 * RTPATH_STR_F_STYLE_UNIX. Must include iprt/path.h. 295 * @param ppszUri If cbUri is non-zero, this must either be pointing 296 * to pointer to a buffer of the specified size, or 297 * pointer to a NULL pointer. If *ppszUri is NULL or 298 * cbUri is zero a buffer of at least cbUri chars will 299 * be allocated to hold the URL. If a buffer was 300 * requested it must be freed using RTStrFree(). 301 * @param cbUri The buffer size in bytes (includes terminator). 302 * @param pcchUri Where to store the length of the URI string, 303 * excluding the terminator. (Optional) 304 * 305 * This may be set under some error conditions, 306 * however, only for VERR_BUFFER_OVERFLOW and 307 * VERR_NO_STR_MEMORY will it contain a valid string 308 * length that can be used to resize the buffer. 309 * @sa RTUriCreate, RTUriFileCreate 310 */ 311 RTDECL(int) RTUriFileCreateEx(const char *pszPath, uint32_t fPathStyle, char **ppszUri, size_t cbUri, size_t *pcchUri); 283 312 284 313 /**
Note:
See TracChangeset
for help on using the changeset viewer.