Changeset 7277 in vbox for trunk/include/VBox
- Timestamp:
- Mar 4, 2008 2:12:17 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxHDD-new.h
r6291 r7277 202 202 * 203 203 * @returns VBox status code. 204 * @param pszBackend Name of the image file backend to use.205 204 * @param pfnError Callback for setting extended error information. 206 205 * @param pvErrorUser Opaque parameter for pfnError. 207 206 * @param ppDisk Where to store the reference to HDD container. 208 207 */ 209 VBOXDDU_DECL(int) VDCreate( const char *pszBackend, PFNVDERROR pfnError,210 void *pvErrorUser,PVBOXHDD *ppDisk);208 VBOXDDU_DECL(int) VDCreate(PFNVDERROR pfnError, void *pvErrorUser, 209 PVBOXHDD *ppDisk); 211 210 212 211 /** … … 243 242 * @returns VBox status code. 244 243 * @param pDisk Pointer to HDD container. 244 * @param pszBackend Name of the image file backend to use. 245 245 * @param pszFilename Name of the image file to open. 246 246 * @param uOpenFlags Image file open mode, see VD_OPEN_FLAGS_* constants. 247 247 */ 248 VBOXDDU_DECL(int) VDOpen(PVBOXHDD pDisk, const char *psz Filename,249 unsigned uOpenFlags);248 VBOXDDU_DECL(int) VDOpen(PVBOXHDD pDisk, const char *pszBackend, 249 const char *pszFilename, unsigned uOpenFlags); 250 250 251 251 /** … … 254 254 * @returns VBox status code. 255 255 * @param pDisk Pointer to HDD container. 256 * @param pszBackend Name of the image file backend to use. 256 257 * @param pszFilename Name of the image file to create. 257 258 * @param enmType Image type, only base image types are acceptable. … … 265 266 * @param pvUser User argument for the progress callback. 266 267 */ 267 VBOXDDU_DECL(int) VDCreateBase(PVBOXHDD pDisk, const char *pszFilename, 268 VDIMAGETYPE enmType, uint64_t cbSize, 269 unsigned uImageFlags, const char *pszComment, 268 VBOXDDU_DECL(int) VDCreateBase(PVBOXHDD pDisk, const char *pszBackend, 269 const char *pszFilename, VDIMAGETYPE enmType, 270 uint64_t cbSize, unsigned uImageFlags, 271 const char *pszComment, 270 272 PCPDMMEDIAGEOMETRY pPCHSGeometry, 271 273 PCPDMMEDIAGEOMETRY pLCHSGeometry, … … 279 281 * @returns VBox status code. 280 282 * @param pDisk Pointer to HDD container. 283 * @param pszBackend Name of the image file backend to use. 281 284 * @param pszFilename Name of the differencing image file to create. 282 285 * @param uImageFlags Flags specifying special image features. … … 286 289 * @param pvUser User argument for the progress callback. 287 290 */ 288 VBOXDDU_DECL(int) VDCreateDiff(PVBOXHDD pDisk, const char *psz Filename,289 unsigned uImageFlags, const char *pszComment,290 unsigned uOpenFlags, PFNVMPROGRESS pfnProgress,291 void *pvUser);291 VBOXDDU_DECL(int) VDCreateDiff(PVBOXHDD pDisk, const char *pszBackend, 292 const char *pszFilename, unsigned uImageFlags, 293 const char *pszComment, unsigned uOpenFlags, 294 PFNVMPROGRESS pfnProgress, void *pvUser); 292 295 293 296 /** … … 313 316 * The copy is opened in the target HDD container. 314 317 * It is possible to convert between different image formats, because the 315 * backend for the destination HDD container may be different from the 316 * source container. 318 * backend for the destination may be different from the source. 317 319 * If both the source and destination reference the same HDD container, 318 320 * then the image is moved (by copying/deleting or renaming) to the new location. … … 325 327 * @param nImage Image number, counts from 0. 0 is always base image of container. 326 328 * @param pDiskTo Pointer to destination HDD container. 329 * @param pszBackend Name of the image file backend to use (may be NULL to use the same as the source). 327 330 * @param pszFilename New name of the image (may be NULL if pDiskFrom == pDiskTo). 328 331 * @param fMoveByRename If true, attempt to perform a move by renaming (if successful the new size is ignored). … … 332 335 */ 333 336 VBOXDDU_DECL(int) VDCopy(PVBOXHDD pDiskFrom, unsigned nImage, PVBOXHDD pDiskTo, 334 const char *psz Filename, bool fMoveByRename,335 uint64_t cbSize, PFNVMPROGRESS pfnProgress,336 void *pvUser);337 const char *pszBackend, const char *pszFilename, 338 bool fMoveByRename, uint64_t cbSize, 339 PFNVMPROGRESS pfnProgress, void *pvUser); 337 340 338 341 /**
Note:
See TracChangeset
for help on using the changeset viewer.