mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
vbox: Introduce vboxUniformedPFN::ClearException()
The ClearException() method clears the latest exception inside of VirtualBox. This needed because obtaining an exception via GetException() does not clear it. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
52aefc9d31
commit
ab37a858eb
@ -486,6 +486,11 @@ static HRESULT _pfnGetException(PCVBOXXPCOM pFuncs, IErrorInfo **ppException)
|
||||
return pFuncs->pfnGetException(ppException);
|
||||
}
|
||||
|
||||
static HRESULT _pfnClearException(PCVBOXXPCOM pFuncs)
|
||||
{
|
||||
return pFuncs->pfnClearException();
|
||||
}
|
||||
|
||||
static void _vboxIIDInitialize(vboxIID *iid)
|
||||
{
|
||||
memset(iid, 0, sizeof(vboxIID));
|
||||
@ -2224,6 +2229,7 @@ static vboxUniformedPFN _UPFN = {
|
||||
.Utf16ToUtf8 = _pfnUtf16ToUtf8,
|
||||
.Utf8ToUtf16 = _pfnUtf8ToUtf16,
|
||||
.GetException = _pfnGetException,
|
||||
.ClearException = _pfnClearException,
|
||||
};
|
||||
|
||||
static vboxUniformedIID _UIID = {
|
||||
|
@ -110,6 +110,7 @@ typedef struct {
|
||||
int (*Utf16ToUtf8)(PCVBOXXPCOM pFuncs, const PRUnichar *pwszString, char **ppszString);
|
||||
int (*Utf8ToUtf16)(PCVBOXXPCOM pFuncs, const char *pszString, PRUnichar **ppwszString);
|
||||
HRESULT (*GetException)(PCVBOXXPCOM pFuncs, nsIException **ppException);
|
||||
HRESULT (*ClearException)(PCVBOXXPCOM pFuncs);
|
||||
} vboxUniformedPFN;
|
||||
|
||||
/* Functions for vboxIID */
|
||||
|
Loading…
Reference in New Issue
Block a user