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

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
struct  VDBACKENDINFO

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 VD_LAST_IMAGE   0xffffffffU
#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 backend capability flags
#define VD_CAP_CREATE_DYNAMIC   RT_BIT(2)
#define VD_CAP_CREATE_FIXED   RT_BIT(1)
#define VD_CAP_CREATE_SPLIT_2G   RT_BIT(3)
#define VD_CAP_DIFF   RT_BIT(4)
#define VD_CAP_UUID   RT_BIT(0)
VBox HDD container image flags
#define VD_IMAGE_FLAGS_DEFAULT   (VD_IMAGE_FLAGS_NONE)
#define VD_IMAGE_FLAGS_MASK   (VD_VMDK_IMAGE_FLAGS_MASK | VD_VDI_IMAGE_FLAGS_MASK)
#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 struct VDBACKENDINFOPVDBACKENDINFO
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) VDBackendInfo(unsigned cEntriesAlloc

Variables

unsigned char unsigned cbComment
unsigned char unsigned cbFilename
uint64_t void size_t cbRead
const char const char
VDIMAGETYPE uint64_t 
cbSize
uint64_t const void size_t cbWrite
const char const char VDIMAGETYPE enmType
bool fDelete
unsigned PVBOXHDD const char
const char bool 
fMoveByRename
unsigned nImage
unsigned nImageFrom
unsigned unsigned nImageTo
PVDBACKENDINFO unsigned * pcEntriesUsed
unsigned PVBOXHDD pDiskTo
unsigned PVDIMAGETYPE penmType
PVDBACKENDINFO pEntries
const char const char
VDIMAGETYPE uint64_t unsigned
const char PCPDMMEDIAGEOMETRY
PCPDMMEDIAGEOMETRY unsigned
PFNVMPROGRESS 
pfnProgress
const char const char
VDIMAGETYPE uint64_t unsigned
const char PCPDMMEDIAGEOMETRY
PCPDMMEDIAGEOMETRY 
pLCHSGeometry
const char const char
VDIMAGETYPE uint64_t unsigned
const char PCPDMMEDIAGEOMETRY 
pPCHSGeometry
void PVBOXHDDppDisk
char ** ppszFormat
const char * pszBackend
const char const char
VDIMAGETYPE uint64_t unsigned
const char * 
pszComment
const char const char * pszFilename
unsigned unsigned * puImageFlags
unsigned unsigned * puOpenFlags
unsigned PRTUUID pUuid
unsigned unsigned * puVersion
uint64_t void * pvBuf
void * pvErrorUser
const char const char
VDIMAGETYPE uint64_t unsigned
const char PCPDMMEDIAGEOMETRY
PCPDMMEDIAGEOMETRY unsigned
PFNVMPROGRESS void * 
pvUser
const char const char
VDIMAGETYPE uint64_t unsigned 
uImageFlags
uint64_t uOffset
const char const char unsigned uOpenFlags


Generated by  Doxygen 1.6.0   Back to index