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 <iprt/assert.h>
#include <iprt/string.h>
#include <iprt/mem.h>
#include <VBox/cdefs.h>
#include <VBox/types.h>
#include <VBox/err.h>
#include <VBox/pdmifs.h>
#include <VBox/vmapi.h>

Go to the source code of this file.

Classes

struct  VBOXHDDRAW
struct  VBOXHDDRAWPART
struct  VDBACKENDINFO
struct  VDCONFIGINFO
struct  VDINTERFACE
struct  VDINTERFACEASYNCIO
struct  VDINTERFACECONFIG
struct  VDINTERFACEPROGRESS

VBox HDD container image types

enum  VDIMAGETYPE {
  VD_IMAGE_TYPE_INVALID = 0, VD_IMAGE_TYPE_NORMAL, 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_ASYNC   RT_BIT(5)
#define VD_CAP_CONFIG   RT_BIT(7)
#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_FILE   RT_BIT(6)
#define VD_CAP_TCPNET   RT_BIT(8)
#define VD_CAP_UUID   RT_BIT(0)
Configuration interface key handling flags.
#define VD_CFGKEY_EXPERT   RT_BIT(1)
#define VD_CFGKEY_MANDATORY   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_ASYNC_IO   RT_BIT(4)
#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 | VD_OPEN_FLAGS_ASYNC_IO)
#define VD_OPEN_FLAGS_NORMAL   0
#define VD_OPEN_FLAGS_READONLY   RT_BIT(0)

Typedefs

typedef const VDCONFIGINFOPCVDCONFIGINFO
typedef const PVDINTERFACE PCVDINTERFACE
typedef FNVDCOMPLETED * PFNVDCOMPLETED
typedef VBOXHDDPVBOXHDD
typedef struct VBOXHDDRAWPVBOXHDDRAW
typedef struct VBOXHDDRAWPARTPVBOXHDDRAWPART
typedef struct VDBACKENDINFOPVDBACKENDINFO
typedef VDCONFIGINFOPVDCONFIGINFO
typedef struct VDINTERFACEPVDINTERFACE
typedef struct VDINTERFACEASYNCIOPVDINTERFACEASYNCIO
typedef struct VDINTERFACECONFIGPVDINTERFACECONFIG
typedef struct
VDINTERFACEPROGRESS
PVDINTERFACEPROGRESS
typedef struct VBOXHDD VBOXHDD

Enumerations

enum  VDCFGVALUETYPE { VDCFGVALUETYPE_INTEGER = 1, VDCFGVALUETYPE_STRING, VDCFGVALUETYPE_BYTES }
enum  VDINTERFACETYPE {
  VDINTERFACETYPE_FIRST = 0, VDINTERFACETYPE_ERROR = VDINTERFACETYPE_FIRST, VDINTERFACETYPE_ASYNCIO, VDINTERFACETYPE_PROGRESS,
  VDINTERFACETYPE_CONFIG, VDINTERFACETYPE_TCPNET, VDINTERFACETYPE_INVALID
}

Functions

typedef DECLCALLBACK (int) FNVDCOMPLETED(void *pvUser)
 DECLINLINE (PVDINTERFACETCPNET) VDGetInterfaceTcpNet(PVDINTERFACE pInterface)
 DECLINLINE (bool) VDCFGAreKeysValid(PVDINTERFACECONFIG pCfgIf
 DECLINLINE (PVDINTERFACECONFIG) VDGetInterfaceConfig(PVDINTERFACE pInterface)
 DECLINLINE (PVDINTERFACEPROGRESS) VDGetInterfaceProgress(PVDINTERFACE pInterface)
 DECLINLINE (PVDINTERFACEASYNCIO) VDGetInterfaceAsyncIO(PVDINTERFACE pInterface)
 DECLINLINE (PVDINTERFACEERROR) VDGetInterfaceError(PVDINTERFACE pInterface)
 DECLINLINE (PVDINTERFACE) VDInterfaceGet(PVDINTERFACE pVDIfs
 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) VDInit()

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
uint64_t size_t PPDMDATASEG
unsigned 
cSeg
const char const char VDIMAGETYPE enmType
bool fDelete
unsigned PVBOXHDD const char
const char bool 
fMoveByRename
unsigned nImage
unsigned nImageFrom
unsigned unsigned nImageTo
uint64_t size_t PPDMDATASEG paSeg
unsigned PVDBACKENDINFO pBackendInfo
PVDBACKENDINFO unsigned * pcEntriesUsed
unsigned PVBOXHDD pDiskTo
unsigned PVBOXHDD const char
const char bool uint64_t
PCRTUUID 
pDstUuid
unsigned PVBOXHDD const char
const char bool uint64_t
PCRTUUID PVDINTERFACE
PVDINTERFACE 
pDstVDIfsImage
unsigned PVBOXHDD const char
const char bool uint64_t
PCRTUUID PVDINTERFACE
PVDINTERFACE PVDINTERFACE 
pDstVDIfsOperation
unsigned PVDIMAGETYPE penmType
PVDBACKENDINFO pEntries
PVDBACKENDINFO pEntry
unsigned bool * pfAIOSupported
const char const char
VDIMAGETYPE uint64_t unsigned
const char PCPDMMEDIAGEOMETRY
PCPDMMEDIAGEOMETRY 
pLCHSGeometry
const char const char unsigned
const char PCRTUUID PCRTUUID 
pParentUuid
const char const char
VDIMAGETYPE uint64_t unsigned
const char PCPDMMEDIAGEOMETRY 
pPCHSGeometry
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
const char const char
VDIMAGETYPE uint64_t unsigned
const char PCPDMMEDIAGEOMETRY
PCPDMMEDIAGEOMETRY PCRTUUID 
pUuid
unsigned unsigned * puVersion
uint64_t void * pvBuf
const char const char unsigned
PVDINTERFACE 
pVDIfsImage
const char const char
VDIMAGETYPE uint64_t unsigned
const char PCPDMMEDIAGEOMETRY
PCPDMMEDIAGEOMETRY PCRTUUID
unsigned PVDINTERFACE
PVDINTERFACE 
pVDIfsOperation
PVDINTERFACEERROR
PVDINTERFACETCPNET
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