提交 4fab8d3f 编写于 作者: T Taowei 提交者: Michal Privoznik

vbox: Rewrite vboxDomainSnapshotDelete

上级 a9725126
此差异已折叠。
...@@ -265,6 +265,19 @@ enum MediumVariant ...@@ -265,6 +265,19 @@ enum MediumVariant
MediumVariant_Diff = 0x20000 MediumVariant_Diff = 0x20000
}; };
# define VBOX_E_OBJECT_NOT_FOUND 0x80BB0001
# define VBOX_E_INVALID_VM_STATE 0x80BB0002
# define VBOX_E_VM_ERROR 0x80BB0003
# define VBOX_E_FILE_ERROR 0x80BB0004
# define VBOX_E_IPRT_ERROR 0x80BB0005
# define VBOX_E_PDM_ERROR 0x80BB0006
# define VBOX_E_INVALID_OBJECT_STATE 0x80BB0007
# define VBOX_E_HOST_ERROR 0x80BB0008
# define VBOX_E_NOT_SUPPORTED 0x80BB0009
# define VBOX_E_XML_ERROR 0x80BB000A
# define VBOX_E_INVALID_SESSION_STATE 0x80BB000B
# define VBOX_E_OBJECT_IN_USE 0x80BB000C
/* Simplied definitions in vbox_CAPI_*.h */ /* Simplied definitions in vbox_CAPI_*.h */
typedef void const *PCVBOXXPCOM; typedef void const *PCVBOXXPCOM;
......
此差异已折叠。
...@@ -272,6 +272,7 @@ typedef struct { ...@@ -272,6 +272,7 @@ typedef struct {
nsresult (*Reset)(IConsole *console); nsresult (*Reset)(IConsole *console);
nsresult (*TakeSnapshot)(IConsole *console, PRUnichar *name, nsresult (*TakeSnapshot)(IConsole *console, PRUnichar *name,
PRUnichar *description, IProgress **progress); PRUnichar *description, IProgress **progress);
nsresult (*DeleteSnapshot)(IConsole *console, vboxIIDUnion *iidu, IProgress **progress);
} vboxUniformedIConsole; } vboxUniformedIConsole;
/* Functions for IProgress */ /* Functions for IProgress */
...@@ -596,6 +597,9 @@ int vboxDomainSnapshotHasMetadata(virDomainSnapshotPtr snapshot, ...@@ -596,6 +597,9 @@ int vboxDomainSnapshotHasMetadata(virDomainSnapshotPtr snapshot,
unsigned int flags); unsigned int flags);
int vboxDomainRevertToSnapshot(virDomainSnapshotPtr snapshot, int vboxDomainRevertToSnapshot(virDomainSnapshotPtr snapshot,
unsigned int flags); unsigned int flags);
int vboxDomainSnapshotDelete(virDomainSnapshotPtr snapshot,
unsigned int flags);
/* Version specified functions for installing uniformed API */ /* Version specified functions for installing uniformed API */
void vbox22InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); void vbox22InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册