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

VBoxHDD-new.h File Reference


Detailed Description

VBox HDD Container API. Will replace VBoxHDD.h.

Definition in file VBoxHDD-new.h.

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

Go to the source code of this file.

Classes

struct  VBOXHDDRAW
struct  VBOXHDDRAWPART

VBox HDD container image types

enum  VDIMAGETYPE {
  VD_IMAGE_TYPE_NORMAL = 1, VD_IMAGE_TYPE_FIXED, VD_IMAGE_TYPE_UNDO, VD_IMAGE_TYPE_DIFF,
  VD_IMAGE_TYPE_FIRST = VD_IMAGE_TYPE_NORMAL, VD_IMAGE_TYPE_LAST = VD_IMAGE_TYPE_DIFF
}
typedef VDIMAGETYPEPVDIMAGETYPE

Defines

#define VDI_GET_VERSION_MAJOR(uVer)   ((uVer) >> 16)
#define VDI_GET_VERSION_MINOR(uVer)   ((uVer) & 0xffff)
#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)
#define VMDK_IMAGE_VERSION   (0x0001)
VBox HDD container image flags
#define VD_IMAGE_FLAGS_DEFAULT   (VD_IMAGE_FLAGS_NONE)
#define VD_IMAGE_FLAGS_NONE   (0)
#define VD_VDI_IMAGE_FLAGS_MASK   (VD_IMAGE_FLAGS_NONE | VD_VDI_IMAGE_FLAGS_ZERO_EXPAND)
#define VD_VDI_IMAGE_FLAGS_ZERO_EXPAND   (0x0100)
#define VD_VMDK_IMAGE_FLAGS_MASK   (VD_IMAGE_FLAGS_NONE | VD_VMDK_IMAGE_FLAGS_SPLIT_2G | VD_VMDK_IMAGE_FLAGS_RAWDISK)
#define VD_VMDK_IMAGE_FLAGS_RAWDISK   (0x0002)
#define VD_VMDK_IMAGE_FLAGS_SPLIT_2G   (0x0001)
VBox HDD container image open mode flags
#define VD_OPEN_FLAGS_HONOR_SAME   RT_BIT(2)
#define VD_OPEN_FLAGS_HONOR_ZEROES   RT_BIT(1)
#define VD_OPEN_FLAGS_INFO   RT_BIT(3)
#define VD_OPEN_FLAGS_MASK   (VD_OPEN_FLAGS_NORMAL | VD_OPEN_FLAGS_READONLY | VD_OPEN_FLAGS_HONOR_ZEROES | VD_OPEN_FLAGS_HONOR_SAME | VD_OPEN_FLAGS_INFO)
#define VD_OPEN_FLAGS_NORMAL   0
#define VD_OPEN_FLAGS_READONLY   RT_BIT(0)

Typedefs

typedef FNVDERROR * PFNVDERROR
typedef int const char * pszFormat
typedef VBOXHDDPVBOXHDD
typedef struct VBOXHDDRAWPVBOXHDDRAW
typedef struct VBOXHDDRAWPARTPVBOXHDDRAWPART
typedef int rc
typedef int RT_SRC_POS_DECL
typedef struct VBOXHDD VBOXHDD
R3 DevHlp
typedef int const char va_list va

Functions

typedef DECLCALLBACK (void) FNVDERROR(void *pvUser
 VBOXDDU_DECL (uint64_t) VDGetSize(PVBOXHDD pDisk)
 VBOXDDU_DECL (bool) VDIsReadOnly(PVBOXHDD pDisk)
 VBOXDDU_DECL (unsigned) VDGetCount(PVBOXHDD pDisk)
 VBOXDDU_DECL (void) VDDestroy(PVBOXHDD pDisk)
 VBOXDDU_DECL (int) VDCreate(const char *pszBackend

Variables

unsigned char unsigned cbComment
unsigned char unsigned cbFilename
uint64_t void size_t cbRead
const char VDIMAGETYPE uint64_t cbSize
uint64_t const void size_t cbWrite
const char VDIMAGETYPE
uint64_t unsigned const char
unsigned 
cCylinders
const char VDIMAGETYPE
uint64_t unsigned const char
unsigned unsigned 
cHeads
const char VDIMAGETYPE
uint64_t unsigned const char
unsigned unsigned unsigned 
cSectors
PDMBIOSTRANSLATION enmTranslation
const char VDIMAGETYPE enmType
unsigned bool fDefragment
bool fDelete
unsigned nImage
unsigned nImageFrom
unsigned unsigned nImageTo
unsigned * pcCylinders
unsigned unsigned * pcHeads
unsigned unsigned unsigned * pcSectors
unsigned PVBOXHDD pDiskTo
PPDMBIOSTRANSLATION penmTranslation
unsigned PVDIMAGETYPE penmType
PFNVDERROR pfnError
const char VDIMAGETYPE
uint64_t unsigned const char
unsigned unsigned unsigned
unsigned PFNVMPROGRESS 
pfnProgress
PFNVDERROR void PVBOXHDDppDisk
const char VDIMAGETYPE
uint64_t unsigned const char * 
pszComment
const char * pszFilename
unsigned unsigned * puImageFlags
unsigned * puOpenFlags
unsigned PRTUUID pUuid
unsigned unsigned * puVersion
uint64_t void * pvBuf
PFNVDERROR void * pvErrorUser
const char VDIMAGETYPE
uint64_t unsigned const char
unsigned unsigned unsigned
unsigned PFNVMPROGRESS void * 
pvUser
const char VDIMAGETYPE
uint64_t unsigned 
uImageFlags
uint64_t uOffset
const char unsigned uOpenFlags


Generated by  Doxygen 1.6.0   Back to index