Changeset 21810 in vbox for trunk/include
- Timestamp:
- Jul 27, 2009 1:01:15 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 50418
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/tar.h
r21784 r21810 44 44 * Check if the specified file exists in the Tar archive. 45 45 * 46 * (The matching is case sensitive.) 47 * 48 * @note Currently only regular files are supported. 49 * 46 50 * @returns iprt status code. 47 * @retval VINF_SUCCESS when the file exists in the Tar archive 48 * @retval VERR_FILE_NOT_FOUND when the file not exists in the Tar archive 49 * 50 * @note Currently only regular files are supported. 51 * @retval VINF_SUCCESS when the file exists in the Tar archive. 52 * @retval VERR_FILE_NOT_FOUND when the file not exists in the Tar archive. 51 53 * 52 54 * @param pszTarFile Tar file to check. 53 55 * @param pszFile Filename to check for. 56 * 57 * @todo r=bird: rename to RTTarQueryFileExists (or bool RTTarFileExist). 54 58 */ 55 59 RTR3DECL(int) RTTarExists(const char *pszTarFile, const char *pszFile); … … 58 62 * Create a file list from a Tar archive. 59 63 * 64 * @note Currently only regular files are supported. 65 * 60 66 * @returns iprt status code. 61 67 * 62 * @note Currently only regular files are supported.63 *64 68 * @param pszTarFile Tar file to list files from. 65 * @param ppapszFiles On success the array with the filenames. 69 * @param ppapszFiles On success an array with array with the filenames is 70 * returned. The names must be freed with RTStrFree and 71 * the array with RTMemFree. 66 72 * @param pcFiles On success the number of entries in ppapszFiles. 67 73 */ … … 71 77 * Extract a set of files from a Tar archive. 72 78 * 73 * The output directory has to exists. Also note that this function is atomic.74 * If an error occurs all previouslyextracted files will be deleted.79 * Also note that this function is atomic. If an error occurs all previously 80 * extracted files will be deleted. 75 81 * 76 * @note Currently only regular files are supported. Also some of the header 77 * fields are not used (uid, gid, uname, gname, mtime). 82 * (The matching is case sensitive.) 83 * 84 * @note Currently only regular files are supported. Also some of the heade 85 * fields are not used (uid, gid, uname, gname, mtime). 78 86 * 79 87 * @returns iprt status code. 80 88 * 81 89 * @param pszTarFile Tar file to extract files from. 82 * @param pszOutputDir Where to store the extracted files. 90 * @param pszOutputDir Where to store the extracted files. Must exist. 83 91 * @param papszFiles Which files should be extracted. 84 92 * @param cFiles The number of files in papszFiles. 93 * 94 * @todo r=bird: Rename to RTTarExtractFiles. 85 95 */ 86 96 RTR3DECL(int) RTTarExtract(const char *pszTarFile, const char *pszOutputDir, const char * const *papszFiles, size_t cFiles); … … 89 99 * Extract a file by index from a Tar archive. 90 100 * 91 * The index is starting by zero. The output directory has to exists. 92 * 93 * @note Currently only regular files are supported. Also some of the header 94 * fields are not used (uid, gid, uname, gname, mtime). 101 * @note Currently only regular files are supported. Also some of the header 102 * fields are not used (uid, gid, uname, gname, mtime). 95 103 * 96 104 * @returns iprt status code. 97 * @retval VERR_FILE_NOT_FOUND when the index isn't valid105 * @retval VERR_FILE_NOT_FOUND when the index isn't valid. 98 106 * 99 107 * @param pszTarFile Tar file to extract the file from. 100 * @param pszOutputDir Where to store the extracted file. 101 * @param iIndex Which file should be extracted. 102 * @param ppszFileName On success the filename of the extracted file. 108 * @param pszOutputDir Where to store the extracted file. Must exist. 109 * @param iIndex Which file should be extracted, 0 based. 110 * @param ppszFileName On success the filename of the extracted file. Must 111 * be freed with RTStrFree. 112 * 113 * @todo r=bird: Rename to RTTarExtractByIndex. 103 114 */ 104 RTR3DECL(int) RTTarExtractIndex(const char *pszTarFile, const char *pszOutputDir, size_t iIndex, char **ppszFileName);115 RTR3DECL(int) RTTarExtractIndex(const char *pszTarFile, const char *pszOutputDir, size_t iIndex, char **ppszFileName); 105 116 106 117 /**
Note:
See TracChangeset
for help on using the changeset viewer.