Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

VBoxHDD.h File Reference


Detailed Description

VBox HDD Container, Virtual Disk Image (VDI) API.

Definition in file VBoxHDD.h.

#include <VBox/cdefs.h>
#include <VBox/types.h>
#include <VBox/param.h>
#include <VBox/pdm.h>
#include <VBox/vmapi.h>

Go to the source code of this file.

VDI image types

enum  VDIIMAGETYPE {
  VDI_IMAGE_TYPE_NORMAL = 1, VDI_IMAGE_TYPE_FIXED, VDI_IMAGE_TYPE_UNDO, VDI_IMAGE_TYPE_DIFF,
  VDI_IMAGE_TYPE_FIRST = VDI_IMAGE_TYPE_NORMAL, VDI_IMAGE_TYPE_LAST = VDI_IMAGE_TYPE_DIFF
}
typedef VDIIMAGETYPEPVDIIMAGETYPE

Defines

#define VDI_GET_VERSION_MAJOR(uVer)   ((uVer) >> 16)
#define VDI_GET_VERSION_MINOR(uVer)   ((uVer) & 0xffff)
#define VDI_IMAGE_FILE_INFO   "<<< innotek VirtualBox Disk Image >>>\n"
#define VDI_IMAGE_VERSION   ((VDI_IMAGE_VERSION_MAJOR << 16) | VDI_IMAGE_VERSION_MINOR)
#define VDI_IMAGE_VERSION_MAJOR   (0x0001)
#define VDI_IMAGE_VERSION_MINOR   (0x0001)
VDI image flags
#define VDI_IMAGE_FLAGS_DEFAULT   (VDI_IMAGE_FLAGS_NONE)
#define VDI_IMAGE_FLAGS_MASK   (VDI_IMAGE_FLAGS_NONE | VDI_IMAGE_FLAGS_ZERO_EXPAND)
#define VDI_IMAGE_FLAGS_NONE   (0x00)
#define VDI_IMAGE_FLAGS_ZERO_EXPAND   (0x01)
VDI image open mode flags
#define VDI_OPEN_FLAGS_MASK   (VDI_OPEN_FLAGS_NORMAL | VDI_OPEN_FLAGS_READONLY)
#define VDI_OPEN_FLAGS_NORMAL   (0)
#define VDI_OPEN_FLAGS_READONLY   (1)

Typedefs

typedef VDIDISKPVDIDISK
typedef struct VDIDISK VDIDISK

Functions

 VBOXDDU_DECL (unsigned) VDIDiskGetBlockSize(PVDIDISK pDisk)
 VBOXDDU_DECL (uint64_t) VDIDiskGetSize(PVDIDISK pDisk)
 VBOXDDU_DECL (bool) VDIDiskIsReadOnly(PVDIDISK pDisk)
 VBOXDDU_DECL (void) VDIDiskDestroy(PVDIDISK pDisk)
 VBOXDDU_DECL (PVDIDISK) VDIDiskCreate(void)
 VBOXDDU_DECL (int) VDICreateBaseImage(const char *pszFilename

Variables

unsigned PVDIIMAGETYPE
uint64_t PRTUUID PRTUUID char
unsigned 
cbComment
int char unsigned cbFilename
VDIIMAGETYPE uint64_t cbSize
uint64_t void size_t cbToRead
uint64_t const void size_t cbToWrite
unsigned cCylinders
unsigned unsigned cHeads
unsigned unsigned unsigned cSectors
PDMBIOSTRANSLATION enmTranslation
VDIIMAGETYPE enmType
const char unsigned fOpen
int nImage
uint64_t offStart
unsigned PVDIIMAGETYPE uint64_t * pcbSize
unsigned * pcCylinders
unsigned unsigned * pcHeads
unsigned unsigned unsigned * pcSectors
PPDMBIOSTRANSLATION penmTranslation
unsigned PVDIIMAGETYPE penmType
int unsigned * pfFlags
VDIIMAGETYPE uint64_t const
char PFNVMPROGRESS 
pfnProgress
PRTUUID PRTUUID pModificationUuid
PRTUUID PRTUUID PRTUUID PRTUUID pParentModificationUuid
unsigned PVDIIMAGETYPE
uint64_t PRTUUID PRTUUID 
pParentUuid
VDIIMAGETYPE uint64_t const char * pszComment
const char * pszFilename
const char * pszFilenameTo
const char * pszParent
const char * pszSrcFilename
unsigned PVDIIMAGETYPE
uint64_t PRTUUID 
pUuid
unsigned * puVersion
uint64_t void * pvBuf
VDIIMAGETYPE uint64_t const
char PFNVMPROGRESS void * 
pvUser


Generated by  Doxygen 1.6.0   Back to index