From nobody Fri Apr 26 20:41:27 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555074102; cv=none; d=zoho.com; s=zohoarc; b=G9ehvr3INH1WuDix1stA5M6mQCWVf2Jnrr3W7bu4z7fAev80he3KAk+oI6DJJLzwJ8+IlrekzYALMfKJzW15tx3E6bEe4aeYHG3LX+6RuNcN/tKyj8LlZlizXmDZN3E8A5Ub5IAfDPDhlBAPzOebudcIhrpRC/Fxce3IbwtwWNc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555074102; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=JlFciGYCLXAtLNWa2x7kRYBFgI0YSck72upMS1TolfQ=; b=kftnCaHCbetU3VUEYHz0Q63fsrqBCfT6i+DPLdwaz8jChD48Xn2SaQ+S7TvSvR1sW7SPtNGgikrO4JkjPHBLjtSdYQqVu7auKTuPUpIQCy/LS4P/iLnKSZHA9kBoF4qQX8VmUaVwK7c0nVixnt2EDenmowiXrWjzxW6bWn3BQl8= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1555074102851181.100622908108; Fri, 12 Apr 2019 06:01:42 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5488FA0919; Fri, 12 Apr 2019 13:01:38 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2B394619B9; Fri, 12 Apr 2019 13:01:38 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id CE3F3181AC44; Fri, 12 Apr 2019 13:01:37 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3CD0lcF031772 for ; Fri, 12 Apr 2019 09:00:47 -0400 Received: by smtp.corp.redhat.com (Postfix) id 967E419728; Fri, 12 Apr 2019 13:00:47 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-27.ams2.redhat.com [10.36.112.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6990219C65; Fri, 12 Apr 2019 13:00:46 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Fri, 12 Apr 2019 14:00:34 +0100 Message-Id: <20190412130040.21306-2-berrange@redhat.com> In-Reply-To: <20190412130040.21306-1-berrange@redhat.com> References: <20190412130040.21306-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 1/7] vbox: drop support for VirtualBox 4.x releases X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Fri, 12 Apr 2019 13:01:41 +0000 (UTC) Support for all the 4.x releases was ended by VirtualBox maintainers in Dec 2015. Even the "newest" 4.3.40 of those is only supported on old versions of Linux (Ubuntu <=3D 13.03, RHEL <=3D 6, SLES <=3D 11), which are= all discontinued hosts from Libvirt's POV. We can thus reasonably drop all 4.x support from the libvirt VirtualBox driver. Signed-off-by: Daniel P. Berrang=C3=A9 --- src/vbox/Makefile.inc.am | 6 - src/vbox/vbox_V4_0.c | 37 ------ src/vbox/vbox_V4_1.c | 37 ------ src/vbox/vbox_V4_2.c | 13 -- src/vbox/vbox_V4_2_20.c | 13 -- src/vbox/vbox_V4_3.c | 13 -- src/vbox/vbox_V4_3_4.c | 13 -- src/vbox/vbox_XPCOMCGlue.h | 2 +- src/vbox/vbox_common.h | 14 +-- src/vbox/vbox_storage.c | 14 +-- src/vbox/vbox_tmpl.c | 218 +--------------------------------- src/vbox/vbox_uniformed_api.h | 10 +- 12 files changed, 8 insertions(+), 382 deletions(-) delete mode 100644 src/vbox/vbox_V4_0.c delete mode 100644 src/vbox/vbox_V4_1.c delete mode 100644 src/vbox/vbox_V4_2.c delete mode 100644 src/vbox/vbox_V4_2_20.c delete mode 100644 src/vbox/vbox_V4_3.c delete mode 100644 src/vbox/vbox_V4_3_4.c diff --git a/src/vbox/Makefile.inc.am b/src/vbox/Makefile.inc.am index 8c76f84e82..6438998a87 100644 --- a/src/vbox/Makefile.inc.am +++ b/src/vbox/Makefile.inc.am @@ -5,17 +5,11 @@ VBOX_DRIVER_SOURCES =3D \ vbox/vbox_driver.h \ vbox/vbox_snapshot_conf.c \ vbox/vbox_snapshot_conf.h \ - vbox/vbox_V4_0.c \ vbox/vbox_CAPI_v4_0.h \ - vbox/vbox_V4_1.c \ vbox/vbox_CAPI_v4_1.h \ - vbox/vbox_V4_2.c \ vbox/vbox_CAPI_v4_2.h \ - vbox/vbox_V4_2_20.c \ vbox/vbox_CAPI_v4_2_20.h \ - vbox/vbox_V4_3.c \ vbox/vbox_CAPI_v4_3.h \ - vbox/vbox_V4_3_4.c \ vbox/vbox_CAPI_v4_3_4.h \ vbox/vbox_V5_0.c \ vbox/vbox_CAPI_v5_0.h \ diff --git a/src/vbox/vbox_V4_0.c b/src/vbox/vbox_V4_0.c deleted file mode 100644 index e4dc13a92b..0000000000 --- a/src/vbox/vbox_V4_0.c +++ /dev/null @@ -1,37 +0,0 @@ -/** @file vbox_V4_0.c - * C file to include support for multiple versions of VirtualBox - * at runtime. - */ - -/* - * Copyright (C) 2008-2009 Sun Microsystems, Inc. - * - * This file is part of a free software library; you can redistribute - * it and/or modify it under the terms of the GNU Lesser General - * Public License version 2.1 as published by the Free Software - * Foundation and shipped in the "COPYING.LESSER" file with this library. - * The library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY of any kind. - * - * Sun LGPL Disclaimer: For the avoidance of doubt, except that if - * any license choice other than GPL or LGPL is available it will - * apply instead, Sun elects to use only the Lesser General Public - * License version 2.1 (LGPLv2) at this time for any software where - * a choice of LGPL license versions is made available with the - * language indicating that LGPLv2 or any later version may be used, - * or where a choice of which version of the LGPL is applied is - * otherwise unspecified. - * - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa - * Clara, CA 95054 USA or visit http://www.sun.com if you need - * additional information or have any questions. - */ - -#include - -/** The API Version */ -#define VBOX_API_VERSION 4000000 -/** Version specific prefix. */ -#define NAME(name) vbox40##name - -#include "vbox_tmpl.c" diff --git a/src/vbox/vbox_V4_1.c b/src/vbox/vbox_V4_1.c deleted file mode 100644 index b3e8eda209..0000000000 --- a/src/vbox/vbox_V4_1.c +++ /dev/null @@ -1,37 +0,0 @@ -/** @file vbox_V4_0.c - * C file to include support for multiple versions of VirtualBox - * at runtime. - */ - -/* - * Copyright (C) 2008-2009 Sun Microsystems, Inc. - * - * This file is part of a free software library; you can redistribute - * it and/or modify it under the terms of the GNU Lesser General - * Public License version 2.1 as published by the Free Software - * Foundation and shipped in the "COPYING.LESSER" file with this library. - * The library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY of any kind. - * - * Sun LGPL Disclaimer: For the avoidance of doubt, except that if - * any license choice other than GPL or LGPL is available it will - * apply instead, Sun elects to use only the Lesser General Public - * License version 2.1 (LGPLv2) at this time for any software where - * a choice of LGPL license versions is made available with the - * language indicating that LGPLv2 or any later version may be used, - * or where a choice of which version of the LGPL is applied is - * otherwise unspecified. - * - * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa - * Clara, CA 95054 USA or visit http://www.sun.com if you need - * additional information or have any questions. - */ - -#include - -/** The API Version */ -#define VBOX_API_VERSION 4001000 -/** Version specific prefix. */ -#define NAME(name) vbox41##name - -#include "vbox_tmpl.c" diff --git a/src/vbox/vbox_V4_2.c b/src/vbox/vbox_V4_2.c deleted file mode 100644 index 00b1e42d38..0000000000 --- a/src/vbox/vbox_V4_2.c +++ /dev/null @@ -1,13 +0,0 @@ -/** @file vbox_V4_2.c - * C file to include support for multiple versions of VirtualBox - * at runtime. - */ - -#include - -/** The API Version */ -#define VBOX_API_VERSION 4002000 -/** Version specific prefix. */ -#define NAME(name) vbox42##name - -#include "vbox_tmpl.c" diff --git a/src/vbox/vbox_V4_2_20.c b/src/vbox/vbox_V4_2_20.c deleted file mode 100644 index 73a2f644d2..0000000000 --- a/src/vbox/vbox_V4_2_20.c +++ /dev/null @@ -1,13 +0,0 @@ -/** @file vbox_V4_2_20.c - * C file to include support for multiple versions of VirtualBox - * at runtime. - */ - -#include - -/** The API Version */ -#define VBOX_API_VERSION 4002020 -/** Version specific prefix. */ -#define NAME(name) vbox42_20##name - -#include "vbox_tmpl.c" diff --git a/src/vbox/vbox_V4_3.c b/src/vbox/vbox_V4_3.c deleted file mode 100644 index 97810ddfcf..0000000000 --- a/src/vbox/vbox_V4_3.c +++ /dev/null @@ -1,13 +0,0 @@ -/** @file vbox_V4_3.c - * C file to include support for multiple versions of VirtualBox - * at runtime. - */ - -#include - -/** The API Version */ -#define VBOX_API_VERSION 4003000 -/** Version specific prefix. */ -#define NAME(name) vbox43##name - -#include "vbox_tmpl.c" diff --git a/src/vbox/vbox_V4_3_4.c b/src/vbox/vbox_V4_3_4.c deleted file mode 100644 index 19ee5ef2a2..0000000000 --- a/src/vbox/vbox_V4_3_4.c +++ /dev/null @@ -1,13 +0,0 @@ -/** @file vbox_V4_3_4.c - * C file to include support for multiple versions of VirtualBox - * at runtime. - */ - -#include - -/** The API Version */ -#define VBOX_API_VERSION 4003004 -/** Version specific prefix. */ -#define NAME(name) vbox43_4##name - -#include "vbox_tmpl.c" diff --git a/src/vbox/vbox_XPCOMCGlue.h b/src/vbox/vbox_XPCOMCGlue.h index b068bdb8d7..df4c94cbbf 100644 --- a/src/vbox/vbox_XPCOMCGlue.h +++ b/src/vbox/vbox_XPCOMCGlue.h @@ -30,7 +30,7 @@ # define ___VBoxXPCOMC_cglue_h =20 /* This has to be the oldest version we support. */ -# include "vbox_CAPI_v4_0.h" +# include "vbox_CAPI_v5_0.h" =20 /** Pointer to VBoxGetXPCOMCFunctions for the loaded VBoxXPCOMC so/dylib/d= ll. */ extern PFNVBOXGETXPCOMCFUNCTIONS g_pfnGetFunctions; diff --git a/src/vbox/vbox_common.h b/src/vbox/vbox_common.h index c67f6fba42..f3b9afad8f 100644 --- a/src/vbox/vbox_common.h +++ b/src/vbox/vbox_common.h @@ -430,19 +430,7 @@ typedef nsISupports IKeyboard; # define installUniformedAPI(gVBoxAPI, result) \ do { \ result =3D 0; \ - if (uVersion >=3D 3002051 && uVersion < 4000051) { \ - vbox40InstallUniformedAPI(&gVBoxAPI); \ - } else if (uVersion >=3D 4000051 && uVersion < 4001051) { \ - vbox41InstallUniformedAPI(&gVBoxAPI); \ - } else if (uVersion >=3D 4001051 && uVersion < 4002020) { \ - vbox42InstallUniformedAPI(&gVBoxAPI); \ - } else if (uVersion >=3D 4002020 && uVersion < 4002051) { \ - vbox42_20InstallUniformedAPI(&gVBoxAPI); \ - } else if (uVersion >=3D 4002051 && uVersion < 4003004) { \ - vbox43InstallUniformedAPI(&gVBoxAPI); \ - } else if (uVersion >=3D 4003004 && uVersion < 4003051) { \ - vbox43_4InstallUniformedAPI(&gVBoxAPI); \ - } else if (uVersion >=3D 4003051 && uVersion < 5000051) { \ + if (uVersion >=3D 5000000 && uVersion < 5000051) { \ vbox50InstallUniformedAPI(&gVBoxAPI); \ } else if (uVersion >=3D 5000051 && uVersion < 5001051) { \ vbox51InstallUniformedAPI(&gVBoxAPI); \ diff --git a/src/vbox/vbox_storage.c b/src/vbox/vbox_storage.c index ae16094dbe..f879e287cb 100644 --- a/src/vbox/vbox_storage.c +++ b/src/vbox/vbox_storage.c @@ -884,19 +884,7 @@ virStorageDriverPtr vboxGetStorageDriver(uint32_t uVer= sion) /* Install gVBoxAPI according to the vbox API version. * Return -1 for unsupported version. */ - if (uVersion >=3D 3002051 && uVersion < 4000051) { - vbox40InstallUniformedAPI(&gVBoxAPI); - } else if (uVersion >=3D 4000051 && uVersion < 4001051) { - vbox41InstallUniformedAPI(&gVBoxAPI); - } else if (uVersion >=3D 4001051 && uVersion < 4002020) { - vbox42InstallUniformedAPI(&gVBoxAPI); - } else if (uVersion >=3D 4002020 && uVersion < 4002051) { - vbox42_20InstallUniformedAPI(&gVBoxAPI); - } else if (uVersion >=3D 4002051 && uVersion < 4003004) { - vbox43InstallUniformedAPI(&gVBoxAPI); - } else if (uVersion >=3D 4003004 && uVersion < 4003051) { - vbox43_4InstallUniformedAPI(&gVBoxAPI); - } else if (uVersion >=3D 4003051 && uVersion < 5000051) { + if (uVersion >=3D 5000000 && uVersion < 5000051) { vbox50InstallUniformedAPI(&gVBoxAPI); } else if (uVersion >=3D 5000051 && uVersion < 5001051) { vbox51InstallUniformedAPI(&gVBoxAPI); diff --git a/src/vbox/vbox_tmpl.c b/src/vbox/vbox_tmpl.c index 53d4fd7e18..00e00c0491 100644 --- a/src/vbox/vbox_tmpl.c +++ b/src/vbox/vbox_tmpl.c @@ -49,19 +49,7 @@ #include "virutil.h" =20 /* This one changes from version to version. */ -#if VBOX_API_VERSION =3D=3D 4000000 -# include "vbox_CAPI_v4_0.h" -#elif VBOX_API_VERSION =3D=3D 4001000 -# include "vbox_CAPI_v4_1.h" -#elif VBOX_API_VERSION =3D=3D 4002000 -# include "vbox_CAPI_v4_2.h" -#elif VBOX_API_VERSION =3D=3D 4002020 -# include "vbox_CAPI_v4_2_20.h" -#elif VBOX_API_VERSION =3D=3D 4003000 -# include "vbox_CAPI_v4_3.h" -#elif VBOX_API_VERSION =3D=3D 4003004 -# include "vbox_CAPI_v4_3_4.h" -#elif VBOX_API_VERSION =3D=3D 5000000 +#if VBOX_API_VERSION =3D=3D 5000000 # include "vbox_CAPI_v5_0.h" #elif VBOX_API_VERSION =3D=3D 5001000 # include "vbox_CAPI_v5_1.h" @@ -74,11 +62,7 @@ /* Include this *last* or we'll get the wrong vbox_CAPI_*.h. */ #include "vbox_glue.h" =20 -#if VBOX_API_VERSION < 4003000 -typedef IUSBController IUSBCommon; -#else /* VBOX_API_VERSION >=3D 4003000 */ typedef IUSBDeviceFilters IUSBCommon; -#endif /* VBOX_API_VERSION >=3D 4003000 */ =20 =20 #include "vbox_uniformed_api.h" @@ -313,9 +297,6 @@ _vboxDomainSnapshotRestore(virDomainPtr dom, ISnapshot *snapshot) { vboxDriverPtr data =3D dom->conn->privateData; -#if VBOX_API_VERSION < 5000000 - IConsole *console =3D NULL; -#endif /*VBOX_API_VERSION < 5000000*/ IProgress *progress =3D NULL; PRUint32 state; nsresult rc; @@ -348,10 +329,6 @@ _vboxDomainSnapshotRestore(virDomainPtr dom, } =20 rc =3D machine->vtbl->LockMachine(machine, data->vboxSession, LockType= _Write); -#if VBOX_API_VERSION < 5000000 - if (NS_SUCCEEDED(rc)) - rc =3D data->vboxSession->vtbl->GetConsole(data->vboxSession, &con= sole); -#endif /*VBOX_API_VERSION < 5000000*/ if (NS_FAILED(rc)) { virReportError(VIR_ERR_INTERNAL_ERROR, _("could not open VirtualBox session with domain %s= "), @@ -359,11 +336,7 @@ _vboxDomainSnapshotRestore(virDomainPtr dom, goto cleanup; } =20 -#if VBOX_API_VERSION < 5000000 - rc =3D console->vtbl->RestoreSnapshot(console, snapshot, &progress); -#elif VBOX_API_VERSION >=3D 5000000 /*VBOX_API_VERSION < 5000000*/ rc =3D machine->vtbl->RestoreSnapshot(machine, snapshot, &progress); -#endif /*VBOX_API_VERSION >=3D 5000000*/ =20 if (NS_FAILED(rc) || !progress) { if (rc =3D=3D VBOX_E_INVALID_VM_STATE) { @@ -389,9 +362,6 @@ _vboxDomainSnapshotRestore(virDomainPtr dom, =20 cleanup: VBOX_RELEASE(progress); -#if VBOX_API_VERSION < 5000000 - VBOX_RELEASE(console); -#endif /*VBOX_API_VERSION < 5000000*/ data->vboxSession->vtbl->UnlockMachine(data->vboxSession); vboxIIDUnalloc(&domiid); return ret; @@ -449,20 +419,12 @@ _deleteConfig(IMachine *machine) SAFEARRAY **media, IProgress **progress); =20 -# if VBOX_API_VERSION < 4003000 - ((IMachine_Delete)machine->vtbl->Delete)(machine, &safeArray, &progres= s); -# else ((IMachine_Delete)machine->vtbl->DeleteConfig)(machine, &safeArray, &p= rogress); -# endif #else /* XPCOM doesn't like NULL as an array, even when the array size is 0. * Instead pass it a dummy array to avoid passing NULL. */ IMedium *array[] =3D { NULL }; -# if VBOX_API_VERSION < 4003000 - machine->vtbl->Delete(machine, 0, array, &progress); -# else machine->vtbl->DeleteConfig(machine, 0, array, &progress); -# endif #endif if (progress !=3D NULL) { progress->vtbl->WaitForCompletion(progress, -1); @@ -472,10 +434,9 @@ _deleteConfig(IMachine *machine) =20 static int _pfnInitialize(vboxDriverPtr driver) { + nsresult rc; if (!(driver->pFuncs =3D g_pfnGetFunctions(VBOX_XPCOMC_VERSION))) return -1; -#if VBOX_API_VERSION =3D=3D 4002020 || VBOX_API_VERSION >=3D 4004004 - nsresult rc; =20 rc =3D driver->pFuncs->pfnClientInitialize(IVIRTUALBOXCLIENT_IID_STR, &driver->vboxClient); @@ -486,10 +447,6 @@ static int _pfnInitialize(vboxDriverPtr driver) driver->vboxClient->vtbl->GetVirtualBox(driver->vboxClient, &drive= r->vboxObj); driver->vboxClient->vtbl->GetSession(driver->vboxClient, &driver->= vboxSession); } -#else - driver->pFuncs->pfnComInitialize(IVIRTUALBOX_IID_STR, &driver->vboxObj, - ISESSION_IID_STR, &driver->vboxSessio= n); -#endif =20 return 0; } @@ -497,15 +454,11 @@ static int _pfnInitialize(vboxDriverPtr driver) static void _pfnUninitialize(vboxDriverPtr data) { if (data->pFuncs) { -#if VBOX_API_VERSION =3D=3D 4002020 || VBOX_API_VERSION >=3D 4003004 VBOX_RELEASE(data->vboxObj); VBOX_RELEASE(data->vboxSession); VBOX_RELEASE(data->vboxClient); =20 data->pFuncs->pfnClientUninitialize(); -#else - data->pFuncs->pfnComUninitialize(); -#endif } } =20 @@ -664,16 +617,6 @@ _virtualboxCreateMachine(vboxDriverPtr data, virDomain= DefPtr def, IMachine **mac VBOX_UTF8_TO_UTF16(def->name, &machineNameUtf16); vboxIIDFromUUID(&iid, def->uuid); { -#if VBOX_API_VERSION >=3D 4000000 && VBOX_API_VERSION < 4002000 - PRBool override =3D PR_FALSE; - rc =3D data->vboxObj->vtbl->CreateMachine(data->vboxObj, - NULL, - machineNameUtf16, - NULL, - iid.value, - override, - machine); -#else /* VBOX_API_VERSION >=3D 4002000 */ char *createFlags =3D NULL; PRUnichar *createFlagsUtf16 =3D NULL; =20 @@ -691,7 +634,6 @@ _virtualboxCreateMachine(vboxDriverPtr data, virDomainD= efPtr def, IMachine **mac machine); cleanup: VIR_FREE(createFlags); -#endif /* VBOX_API_VERSION >=3D 4002000 */ } VBOX_UTF16_FREE(machineNameUtf16); vboxIIDUnalloc(&iid); @@ -702,16 +644,11 @@ static nsresult _virtualboxCreateHardDisk(IVirtualBox *vboxObj, PRUnichar *format, PRUnichar *location, IMedium **medium) { - /* In vbox 2.2 and 3.0, this function will create a IHardDisk object. - * In vbox 3.1 and later, this function will create a IMedium object. + /* This function will create a IMedium object. */ -#if VBOX_API_VERSION < 5000000 - return vboxObj->vtbl->CreateHardDisk(vboxObj, format, location, medium= ); -#elif VBOX_API_VERSION >=3D 5000000 /*VBOX_API_VERSION >=3D 5000000*/ return vboxObj->vtbl->CreateMedium(vboxObj, format, location, AccessMode_ReadWrite, DeviceType_HardDisk, medium); -#endif /*VBOX_API_VERSION >=3D 5000000*/ } =20 static nsresult @@ -727,12 +664,8 @@ _virtualboxFindHardDisk(IVirtualBox *vboxObj, PRUint32 accessMode ATTRIBUTE_UNUSED, IMedium **medium) { -#if VBOX_API_VERSION < 4002000 - return vboxObj->vtbl->FindMedium(vboxObj, location, deviceType, medium= ); -#else /* VBOX_API_VERSION >=3D 4002000 */ return vboxObj->vtbl->OpenMedium(vboxObj, location, deviceType, access= Mode, PR_FALSE, medium); -#endif /* VBOX_API_VERSION >=3D 4002000 */ } =20 static nsresult @@ -742,25 +675,15 @@ _virtualboxOpenMedium(IVirtualBox *vboxObj, PRUint32 accessMode, IMedium **medium) { -#if VBOX_API_VERSION =3D=3D 4000000 - return vboxObj->vtbl->OpenMedium(vboxObj, location, deviceType, access= Mode, - medium); -#elif VBOX_API_VERSION >=3D 4001000 return vboxObj->vtbl->OpenMedium(vboxObj, location, deviceType, access= Mode, false, medium); -#endif } =20 static nsresult _virtualboxGetHardDiskByIID(IVirtualBox *vboxObj, vboxIID *iid, IMedium **= medium) { -#if VBOX_API_VERSION >=3D 4000000 && VBOX_API_VERSION < 4002000 - return vboxObj->vtbl->FindMedium(vboxObj, iid->value, DeviceType_HardD= isk, - medium); -#else /* VBOX_API_VERSION >=3D 4002000 */ return vboxObj->vtbl->OpenMedium(vboxObj, iid->value, DeviceType_HardD= isk, AccessMode_ReadWrite, PR_FALSE, mediu= m); -#endif /* VBOX_API_VERSION >=3D 4002000 */ } =20 static nsresult @@ -927,11 +850,7 @@ _machineGetVRDEServer(IMachine *machine, IVRDEServer *= *VRDEServer) static nsresult _machineGetUSBCommon(IMachine *machine, IUSBCommon **USBCommon) { -#if VBOX_API_VERSION < 4003000 - return machine->vtbl->GetUSBController(machine, USBCommon); -#else return machine->vtbl->GetUSBDeviceFilters(machine, USBCommon); -#endif } =20 static nsresult @@ -1101,9 +1020,6 @@ _sessionGetMachine(ISession *session, IMachine **mach= ine) static nsresult _consoleSaveState(IConsole *console, IProgress **progress) { -#if VBOX_API_VERSION < 5000000 - return console->vtbl->SaveState(console, progress); -#else /*VBOX_API_VERSION < 5000000*/ IMachine *machine; nsresult rc; =20 @@ -1116,8 +1032,6 @@ _consoleSaveState(IConsole *console, IProgress **prog= ress) _("unable to get machine from console. (error %d)")= , rc); =20 return rc; - -#endif /*VBOX_API_VERSION >=3D 5000000*/ } =20 static nsresult @@ -1162,9 +1076,6 @@ static nsresult _consoleTakeSnapshot(IConsole *console, PRUnichar *name, PRUnichar *description, IProgress **progress) { -#if VBOX_API_VERSION < 5000000 - return console->vtbl->TakeSnapshot(console, name, description, progres= s); -#else IMachine *machine; nsresult rc; PRUnichar *id =3D NULL; @@ -1180,15 +1091,11 @@ _consoleTakeSnapshot(IConsole *console, PRUnichar *= name, =20 VBOX_RELEASE(machine); return rc; -#endif /* VBOX_API_VERSION >=3D 5000000 */ } =20 static nsresult _consoleDeleteSnapshot(IConsole *console, vboxIID *iid, IProgress **progre= ss) { -#if VBOX_API_VERSION < 5000000 /* VBOX_API_VERSION < 5000000 */ - return console->vtbl->DeleteSnapshot(console, iid->value, progress); -#else /* VBOX_API_VERSION >=3D 5000000 */ IMachine *machine; nsresult rc; =20 @@ -1203,7 +1110,6 @@ _consoleDeleteSnapshot(IConsole *console, vboxIID *ii= d, IProgress **progress) VBOX_RELEASE(machine); =20 return rc; -#endif /* VBOX_API_VERSION >=3D 5000000 */ } =20 static nsresult @@ -1252,13 +1158,8 @@ static nsresult _systemPropertiesGetMaxNetworkAdapters(ISystemProperties *systemProperties= , PRUint32 chipset ATTRIBUTE_UNUSED, PRUint32 *maxNetworkAdapters) { -#if VBOX_API_VERSION < 4001000 - return systemProperties->vtbl->GetNetworkAdapterCount(systemProperties, - maxNetworkAdapte= rs); -#else /* VBOX_API_VERSION >=3D 4000000 */ return systemProperties->vtbl->GetMaxNetworkAdapters(systemProperties,= chipset, maxNetworkAdapter= s); -#endif /* VBOX_API_VERSION >=3D 4000000 */ } =20 static nsresult @@ -1396,58 +1297,6 @@ _networkAdapterSetMACAddress(INetworkAdapter *adapte= r, PRUnichar *MACAddress) return adapter->vtbl->SetMACAddress(adapter, MACAddress); } =20 -#if VBOX_API_VERSION < 4001000 - -static nsresult -_networkAdapterGetBridgedInterface(INetworkAdapter *adapter, PRUnichar **h= ostInterface) -{ - return adapter->vtbl->GetHostInterface(adapter, hostInterface); -} - -static nsresult -_networkAdapterSetBridgedInterface(INetworkAdapter *adapter, PRUnichar *ho= stInterface) -{ - return adapter->vtbl->SetHostInterface(adapter, hostInterface); -} - -static nsresult -_networkAdapterGetHostOnlyInterface(INetworkAdapter *adapter, PRUnichar **= hostOnlyInterface) -{ - return adapter->vtbl->GetHostInterface(adapter, hostOnlyInterface); -} - -static nsresult -_networkAdapterSetHostOnlyInterface(INetworkAdapter *adapter, PRUnichar *h= ostOnlyInterface) -{ - return adapter->vtbl->SetHostInterface(adapter, hostOnlyInterface); -} - -static nsresult -_networkAdapterAttachToBridgedInterface(INetworkAdapter *adapter) -{ - return adapter->vtbl->AttachToBridgedInterface(adapter); -} - -static nsresult -_networkAdapterAttachToInternalNetwork(INetworkAdapter *adapter) -{ - return adapter->vtbl->AttachToInternalNetwork(adapter); -} - -static nsresult -_networkAdapterAttachToHostOnlyInterface(INetworkAdapter *adapter) -{ - return adapter->vtbl->AttachToHostOnlyInterface(adapter); -} - -static nsresult -_networkAdapterAttachToNAT(INetworkAdapter *adapter) -{ - return adapter->vtbl->AttachToNAT(adapter); -} - -#else /* VBOX_API_VERSION >=3D 4001000 */ - static nsresult _networkAdapterGetBridgedInterface(INetworkAdapter *adapter, PRUnichar **b= ridgedInterface) { @@ -1496,8 +1345,6 @@ _networkAdapterAttachToNAT(INetworkAdapter *adapter) return adapter->vtbl->SetAttachmentType(adapter, NetworkAttachmentType= _NAT); } =20 -#endif /* VBOX_API_VERSION >=3D 4001000 */ - static nsresult _serialPortGetEnabled(ISerialPort *port, PRBool *enabled) { @@ -1764,14 +1611,6 @@ static nsresult _usbCommonEnable(IUSBCommon *USBCommon ATTRIBUTE_UNUSED) { nsresult rc =3D 0; -#if VBOX_API_VERSION < 4003000 - USBCommon->vtbl->SetEnabled(USBCommon, 1); -# if VBOX_API_VERSION < 4002000 - rc =3D USBCommon->vtbl->SetEnabledEhci(USBCommon, 1); -# else /* VBOX_API_VERSION >=3D 4002000 */ - rc =3D USBCommon->vtbl->SetEnabledEHCI(USBCommon, 1); -# endif /* VBOX_API_VERSION >=3D 4002000 */ -#endif /* VBOX_API_VERSION >=3D 4003000 */ /* We don't need to set usb enabled for vbox 4.3 and later */ return rc; } @@ -1779,12 +1618,8 @@ _usbCommonEnable(IUSBCommon *USBCommon ATTRIBUTE_UNU= SED) static nsresult _usbCommonGetEnabled(IUSBCommon *USBCommon ATTRIBUTE_UNUSED, PRBool *enabl= ed) { -#if VBOX_API_VERSION < 4003000 - return USBCommon->vtbl->GetEnabled(USBCommon, enabled); -#else /* VBOX_API_VERSION >=3D 4003000 */ *enabled =3D true; return 0; -#endif /* VBOX_API_VERSION >=3D 4003000 */ } =20 static nsresult @@ -1921,26 +1756,14 @@ _mediumCreateDiffStorage(IMedium *medium ATTRIBUTE_= UNUSED, PRUint32 *variant ATTRIBUTE_UNUSED, IProgress **progress ATTRIBUTE_UNUSED) { -#if VBOX_API_VERSION < 4003000 - if (variantSize =3D=3D 0) - return 0; - if (variantSize > 1) - VIR_WARN("Only one variant is available in current version"); - return medium->vtbl->CreateDiffStorage(medium, target, variant[0], pro= gress); -#else /* VBOX_API_VERSION >=3D 4003000 */ return medium->vtbl->CreateDiffStorage(medium, target, variantSize, va= riant, progress); -#endif /* VBOX_API_VERSION >=3D 4003000 */ } =20 static nsresult _mediumCreateBaseStorage(IMedium *medium, PRUint64 logicalSize, PRUint32 variant, IProgress **progress) { -#if VBOX_API_VERSION < 4003000 - return medium->vtbl->CreateBaseStorage(medium, logicalSize, variant, p= rogress); -#else return medium->vtbl->CreateBaseStorage(medium, logicalSize, 1, &varian= t, progress); -#endif } =20 static nsresult @@ -2075,20 +1898,11 @@ _displayGetScreenResolution(IDisplay *display ATTRI= BUTE_UNUSED, PRInt32 *xOrigin ATTRIBUTE_UNUSED, PRInt32 *yOrigin ATTRIBUTE_UNUSED) { -#if VBOX_API_VERSION < 4003000 - return display->vtbl->GetScreenResolution(display, screenId, width, - height, bitsPerPixel); -#elif VBOX_API_VERSION < 5000000 /* VBOX_API_VERSION >=3D 4003000 */ - return display->vtbl->GetScreenResolution(display, screenId, width, - height, bitsPerPixel, - xOrigin, yOrigin); -#else /*VBOX_API_VERSION >=3D 5000000 */ PRUint32 gms; =20 return display->vtbl->GetScreenResolution(display, screenId, width, height, bitsPerPixel, xOrigin, yOrigin, &gms); -#endif /* VBOX_API_VERSION >=3D 5000000 */ } =20 static nsresult @@ -2097,15 +1911,9 @@ _displayTakeScreenShotPNGToArray(IDisplay *display, = PRUint32 screenId, PRUint32 *screenDataSize, PRUint8** screenData) { -#if VBOX_API_VERSION >=3D 5000000 return display->vtbl->TakeScreenShotToArray(display, screenId, width, height, BitmapFormat_PNG, screenDataSize, screenData= ); -#else /* VBOX_API_VERSION < 5000000 */ - return display->vtbl->TakeScreenShotPNGToArray(display, screenId, widt= h, - height, screenDataSize, - screenData); -#endif /* VBOX_API_VERSION >=3D 5000000 */ } =20 static nsresult @@ -2197,31 +2005,19 @@ static nsresult _hnInterfaceEnableStaticIPConfig(IHostNetworkInterface *hni, PRUnichar *IP= Address, PRUnichar *networkMask) { -#if VBOX_API_VERSION < 4002000 - return hni->vtbl->EnableStaticIpConfig(hni, IPAddress, networkMask); -#else return hni->vtbl->EnableStaticIPConfig(hni, IPAddress, networkMask); -#endif } =20 static nsresult _hnInterfaceEnableDynamicIPConfig(IHostNetworkInterface *hni) { -#if VBOX_API_VERSION < 4002000 - return hni->vtbl->EnableDynamicIpConfig(hni); -#else return hni->vtbl->EnableDynamicIPConfig(hni); -#endif } =20 static nsresult _hnInterfaceDHCPRediscover(IHostNetworkInterface *hni) { -#if VBOX_API_VERSION < 4002000 - return hni->vtbl->DhcpRediscover(hni); -#else return hni->vtbl->DHCPRediscover(hni); -#endif } =20 static nsresult @@ -2695,15 +2491,7 @@ void NAME(InstallUniformedAPI)(vboxUniformedAPI *pVB= oxAPI) pVBoxAPI->UIKeyboard =3D _UIKeyboard; pVBoxAPI->machineStateChecker =3D _machineStateChecker; =20 -#if VBOX_API_VERSION >=3D 4001000 pVBoxAPI->chipsetType =3D 1; -#else /* VBOX_API_VERSION < 4001000 */ - pVBoxAPI->chipsetType =3D 0; -#endif /* VBOX_API_VERSION < 4001000 */ =20 -#if VBOX_API_VERSION >=3D 4002000 pVBoxAPI->vboxSnapshotRedefine =3D 1; -#else /* VBOX_API_VERSION < 4002000 */ - pVBoxAPI->vboxSnapshotRedefine =3D 0; -#endif /* VBOX_API_VERSION < 4002000 */ } diff --git a/src/vbox/vbox_uniformed_api.h b/src/vbox/vbox_uniformed_api.h index 5f3df5fb87..3a74830752 100644 --- a/src/vbox/vbox_uniformed_api.h +++ b/src/vbox/vbox_uniformed_api.h @@ -85,9 +85,9 @@ struct _vboxDriver { PCVBOXXPCOM pFuncs; IVirtualBox *vboxObj; ISession *vboxSession; -# if VBOX_API_VERSION =3D=3D 4002020 || VBOX_API_VERSION >=3D 4003004 +#ifdef VBOX_API_VERSION IVirtualBoxClient *vboxClient; -# endif +#endif =20 unsigned long version; =20 @@ -556,12 +556,6 @@ virDomainPtr vboxDomainLookupByUUID(virConnectPtr conn, const unsigned char *uuid); =20 /* Version specified functions for installing uniformed API */ -void vbox40InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); -void vbox41InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); -void vbox42InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); -void vbox42_20InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); -void vbox43InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); -void vbox43_4InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); void vbox50InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); void vbox51InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); void vbox52InstallUniformedAPI(vboxUniformedAPI *pVBoxAPI); --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri Apr 26 20:41:27 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555074082; cv=none; d=zoho.com; s=zohoarc; b=UGiDc06g7Yi8W7cf+4oZJnRAKTbBXupI1GkUWy6oOen7RnfV6sF7Hc4dqeNd8AO0sbwheYXoMZFIcttBskG/KeWTWlxh14qqnURMrx3yRmVeYjWswETisQLTrrl23+dQH1Hi38uqdtCM2zznOgsMjV0hvZIQZerNhocoV7GL0Ys= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555074082; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=kb31vWdph4ecsapJhsQXcQQ4U8Efo/QbKg7GdSq6x40=; b=cto3lkqJVseHZvAmL6WK65x+WLojw9ZvbBZDvOM5YhwVjqOE6EWWA1L6xHY7CVz8CYAmWxWAyzlKuRgmB6CJ88ZAnaRPNKzkDM6Fq0jfTLBL8bigcMTnUl9cw/1dsgzfHQEoFdclVUbt+Qg83fkPYWsMxCT/XkG94VWfCClAV78= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1555074082730194.33932057062248; Fri, 12 Apr 2019 06:01:22 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 48629C07662A; Fri, 12 Apr 2019 13:01:19 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 1B65C1001F41; Fri, 12 Apr 2019 13:01:11 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id A5C583FB12; Fri, 12 Apr 2019 13:01:06 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3CD0ne9031784 for ; Fri, 12 Apr 2019 09:00:49 -0400 Received: by smtp.corp.redhat.com (Postfix) id E1BFD19C6F; Fri, 12 Apr 2019 13:00:49 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-27.ams2.redhat.com [10.36.112.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 13CFA19C65; Fri, 12 Apr 2019 13:00:47 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Fri, 12 Apr 2019 14:00:35 +0100 Message-Id: <20190412130040.21306-3-berrange@redhat.com> In-Reply-To: <20190412130040.21306-1-berrange@redhat.com> References: <20190412130040.21306-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 2/7] vbox: drop C API definition for release 4.0 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Fri, 12 Apr 2019 13:01:20 +0000 (UTC) Support for compiling this version was dropped in an earlier commit. Signed-off-by: Daniel P. Berrang=C3=A9 --- src/vbox/Makefile.inc.am | 1 - src/vbox/vbox_CAPI_v4_0.h | 7451 ------------------------------------- 2 files changed, 7452 deletions(-) delete mode 100644 src/vbox/vbox_CAPI_v4_0.h diff --git a/src/vbox/Makefile.inc.am b/src/vbox/Makefile.inc.am index 6438998a87..60929b89ce 100644 --- a/src/vbox/Makefile.inc.am +++ b/src/vbox/Makefile.inc.am @@ -5,7 +5,6 @@ VBOX_DRIVER_SOURCES =3D \ vbox/vbox_driver.h \ vbox/vbox_snapshot_conf.c \ vbox/vbox_snapshot_conf.h \ - vbox/vbox_CAPI_v4_0.h \ vbox/vbox_CAPI_v4_1.h \ vbox/vbox_CAPI_v4_2.h \ vbox/vbox_CAPI_v4_2_20.h \ diff --git a/src/vbox/vbox_CAPI_v4_0.h b/src/vbox/vbox_CAPI_v4_0.h deleted file mode 100644 index bdce91d02f..0000000000 --- a/src/vbox/vbox_CAPI_v4_0.h +++ /dev/null @@ -1,7451 +0,0 @@ -/* - * Libvirt notice: this file is derived from the VirtualBox SDK, with - * libvirt edits; do not regenerate in the context of libvirt. - */ -/* - * DO NOT EDIT! This is a generated file. - * - * XPCOM IDL (XPIDL) definition for VirtualBox Main API (COM interfaces) - * generated from XIDL (XML interface definition). - * - * Source : src/VBox/Main/idl/VirtualBox.xidl - * Generator : src/VBox/Main/idl/xpcidl.xsl - * - * This file contains portions from the following Mozilla XPCOM files: - * xpcom/include/xpcom/nsID.h - * xpcom/include/nsIException.h - * xpcom/include/nsprpub/prtypes.h - * xpcom/include/xpcom/nsISupportsBase.h - * - * These files were originally triple-licensed (MPL/GPL2/LGPL2.1). Sun - * elects to distribute this derived work under the LGPL2.1 only. - */ - -/* - * Copyright (C) 2008-2010 Oracle Corporation - * - * This file is part of a free software library; you can redistribute - * it and/or modify it under the terms of the GNU Lesser General - * Public License version 2.1 as published by the Free Software - * Foundation and shipped in the "COPYING.LESSER" file with this library. - * The library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY of any kind. - * - * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if - * any license choice other than GPL or LGPL is available it will - * apply instead, Oracle elects to use only the Lesser General Public - * License version 2.1 (LGPLv2) at this time for any software where - * a choice of LGPL license versions is made available with the - * language indicating that LGPLv2 or any later version may be used, - * or where a choice of which version of the LGPL is applied is - * otherwise unspecified. - */ - -#ifndef ___VirtualBox_CXPCOM_h -# define ___VirtualBox_CXPCOM_h - -# ifdef __cplusplus -# include "VirtualBox_XPCOM.h" -# else /* !__cplusplus */ - -# include -# include "wchar.h" - -# ifdef WIN32 -# define PR_COM_METHOD __stdcall -# else -# define PR_COM_METHOD -# endif - -# if defined(WIN32) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) __declspec(dllimport) __type -# define PR_IMPORT_DATA(__type) __declspec(dllimport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_BEOS) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) extern __declspec(dllexport) __type -# define PR_IMPORT_DATA(__type) extern __declspec(dllexport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(WIN16) - -# define PR_CALLBACK_DECL __cdecl - -# if defined(_WINDLL) -# define PR_EXPORT(__type) extern __type _cdecl _export _loadds -# define PR_IMPORT(__type) extern __type _cdecl _export _loadds -# define PR_EXPORT_DATA(__type) extern __type _export -# define PR_IMPORT_DATA(__type) extern __type _export - -# define PR_EXTERN(__type) extern __type _cdecl _export _loadds -# define PR_IMPLEMENT(__type) __type _cdecl _export _loadds -# define PR_EXTERN_DATA(__type) extern __type _export -# define PR_IMPLEMENT_DATA(__type) __type _export - -# define PR_CALLBACK __cdecl __loadds -# define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK - -# else /* this must be .EXE */ -# define PR_EXPORT(__type) extern __type _cdecl _export -# define PR_IMPORT(__type) extern __type _cdecl _export -# define PR_EXPORT_DATA(__type) extern __type _export -# define PR_IMPORT_DATA(__type) extern __type _export - -# define PR_EXTERN(__type) extern __type _cdecl _export -# define PR_IMPLEMENT(__type) __type _cdecl _export -# define PR_EXTERN_DATA(__type) extern __type _export -# define PR_IMPLEMENT_DATA(__type) __type _export - -# define PR_CALLBACK __cdecl __loadds -# define PR_STATIC_CALLBACK(__x) __x PR_CALLBACK -# endif /* _WINDLL */ - -# elif defined(XP_MAC) - -# define PR_EXPORT(__type) extern __declspec(export) __type -# define PR_EXPORT_DATA(__type) extern __declspec(export) __type -# define PR_IMPORT(__type) extern __declspec(export) __type -# define PR_IMPORT_DATA(__type) extern __declspec(export) __type - -# define PR_EXTERN(__type) extern __declspec(export) __type -# define PR_IMPLEMENT(__type) __declspec(export) __type -# define PR_EXTERN_DATA(__type) extern __declspec(export) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(export) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_OS2) && defined(__declspec) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) __declspec(dllimport) __type -# define PR_IMPORT_DATA(__type) __declspec(dllimport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_OS2_VACPP) - -# define PR_EXPORT(__type) extern __type -# define PR_EXPORT_DATA(__type) extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type - -# define PR_EXTERN(__type) extern __type -# define PR_IMPLEMENT(__type) __type -# define PR_EXTERN_DATA(__type) extern __type -# define PR_IMPLEMENT_DATA(__type) __type -# define PR_CALLBACK _Optlink -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK - -# else /* Unix */ - -# ifdef VBOX_HAVE_VISIBILITY_HIDDEN -# define PR_EXPORT(__type) __attribute__((visibility("default"))) exter= n __type -# define PR_EXPORT_DATA(__type) __attribute__((visibility("default"))) = extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type -# define PR_EXTERN(__type) __attribute__((visibility("default"))) exter= n __type -# define PR_IMPLEMENT(__type) __attribute__((visibility("default"))) __= type -# define PR_EXTERN_DATA(__type) __attribute__((visibility("default"))) = extern __type -# define PR_IMPLEMENT_DATA(__type) __attribute__((visibility("default")= )) __type -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x -# else -# define PR_EXPORT(__type) extern __type -# define PR_EXPORT_DATA(__type) extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type -# define PR_EXTERN(__type) extern __type -# define PR_IMPLEMENT(__type) __type -# define PR_EXTERN_DATA(__type) extern __type -# define PR_IMPLEMENT_DATA(__type) __type -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x -# endif -# endif - -# if defined(_NSPR_BUILD_) -# define NSPR_API(__type) PR_EXPORT(__type) -# define NSPR_DATA_API(__type) PR_EXPORT_DATA(__type) -# else -# define NSPR_API(__type) PR_IMPORT(__type) -# define NSPR_DATA_API(__type) PR_IMPORT_DATA(__type) -# endif - -typedef unsigned char PRUint8; -# if (defined(HPUX) && defined(__cplusplus) \ - && !defined(__GNUC__) && __cplusplus < 199707L) \ - || (defined(SCO) && defined(__cplusplus) \ - && !defined(__GNUC__) && __cplusplus =3D=3D 1L) -typedef char PRInt8; -# else -typedef signed char PRInt8; -# endif - -# define PR_INT8_MAX 127 -# define PR_INT8_MIN (-128) -# define PR_UINT8_MAX 255U - -typedef unsigned short PRUint16; -typedef short PRInt16; - -# define PR_INT16_MAX 32767 -# define PR_INT16_MIN (-32768) -# define PR_UINT16_MAX 65535U - -typedef unsigned int PRUint32; -typedef int PRInt32; -# define PR_INT32(x) x -# define PR_UINT32(x) x ## U - -# define PR_INT32_MAX PR_INT32(2147483647) -# define PR_INT32_MIN (-PR_INT32_MAX - 1) -# define PR_UINT32_MAX PR_UINT32(4294967295) - -typedef long PRInt64; -typedef unsigned long PRUint64; -typedef int PRIntn; -typedef unsigned int PRUintn; - -typedef double PRFloat64; -typedef size_t PRSize; - -typedef ptrdiff_t PRPtrdiff; - -typedef unsigned long PRUptrdiff; - -typedef PRIntn PRBool; - -# define PR_TRUE 1 -# define PR_FALSE 0 - -typedef PRUint8 PRPackedBool; - -/* -** Status code used by some routines that have a single point of failure or -** special status return. -*/ -typedef enum { PR_FAILURE =3D -1, PR_SUCCESS =3D 0 } PRStatus; - -# ifndef __PRUNICHAR__ -# define __PRUNICHAR__ -# if defined(WIN32) || defined(XP_MAC) -typedef wchar_t PRUnichar; -# else -typedef PRUint16 PRUnichar; -# endif -# endif - -typedef long PRWord; -typedef unsigned long PRUword; - -# define nsnull 0 -typedef PRUint32 nsresult; - -# if defined(__GNUC__) && (__GNUC__ > 2) -# define NS_LIKELY(x) (__builtin_expect((x), 1)) -# define NS_UNLIKELY(x) (__builtin_expect((x), 0)) -# else -# define NS_LIKELY(x) (x) -# define NS_UNLIKELY(x) (x) -# endif - -# define NS_FAILED(_nsresult) (NS_UNLIKELY((_nsresult) & 0x80000000)) -# define NS_SUCCEEDED(_nsresult) (NS_LIKELY(!((_nsresult) & 0x80000000))) - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_IntervalNow VBoxNsprPR_IntervalNow -# define PR_TicksPerSecond VBoxNsprPR_TicksPerSecond -# define PR_SecondsToInterval VBoxNsprPR_SecondsToInterval -# define PR_MillisecondsToInterval VBoxNsprPR_MillisecondsToInterval -# define PR_MicrosecondsToInterval VBoxNsprPR_MicrosecondsToInterval -# define PR_IntervalToSeconds VBoxNsprPR_IntervalToSeconds -# define PR_IntervalToMilliseconds VBoxNsprPR_IntervalToMilliseconds -# define PR_IntervalToMicroseconds VBoxNsprPR_IntervalToMicroseconds -# define PR_EnterMonitor VBoxNsprPR_EnterMonitor -# define PR_ExitMonitor VBoxNsprPR_ExitMonitor -# define PR_Notify VBoxNsprPR_Notify -# define PR_NotifyAll VBoxNsprPR_NotifyAll -# define PR_Wait VBoxNsprPR_Wait -# define PR_NewMonitor VBoxNsprPR_NewMonitor -# define PR_DestroyMonitor VBoxNsprPR_DestroyMonitor -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef PRUint32 PRIntervalTime; - -# define PR_INTERVAL_MIN 1000UL -# define PR_INTERVAL_MAX 100000UL -# define PR_INTERVAL_NO_WAIT 0UL -# define PR_INTERVAL_NO_TIMEOUT 0xffffffffUL - -NSPR_API(PRIntervalTime) PR_IntervalNow(void); -NSPR_API(PRUint32) PR_TicksPerSecond(void); -NSPR_API(PRIntervalTime) PR_SecondsToInterval(PRUint32 seconds); -NSPR_API(PRIntervalTime) PR_MillisecondsToInterval(PRUint32 milli); -NSPR_API(PRIntervalTime) PR_MicrosecondsToInterval(PRUint32 micro); -NSPR_API(PRUint32) PR_IntervalToSeconds(PRIntervalTime ticks); -NSPR_API(PRUint32) PR_IntervalToMilliseconds(PRIntervalTime ticks); -NSPR_API(PRUint32) PR_IntervalToMicroseconds(PRIntervalTime ticks); - -typedef struct PRMonitor PRMonitor; - -NSPR_API(PRMonitor*) PR_NewMonitor(void); -NSPR_API(void) PR_DestroyMonitor(PRMonitor *mon); -NSPR_API(void) PR_EnterMonitor(PRMonitor *mon); -NSPR_API(PRStatus) PR_ExitMonitor(PRMonitor *mon); -NSPR_API(PRStatus) PR_Wait(PRMonitor *mon, PRIntervalTime ticks); -NSPR_API(PRStatus) PR_Notify(PRMonitor *mon); -NSPR_API(PRStatus) PR_NotifyAll(PRMonitor *mon); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_CreateThread VBoxNsprPR_CreateThread -# define PR_JoinThread VBoxNsprPR_JoinThread -# define PR_Sleep VBoxNsprPR_Sleep -# define PR_GetCurrentThread VBoxNsprPR_GetCurrentThread -# define PR_GetThreadState VBoxNsprPR_GetThreadState -# define PR_SetThreadPrivate VBoxNsprPR_SetThreadPrivate -# define PR_GetThreadPrivate VBoxNsprPR_GetThreadPrivate -# define PR_NewThreadPrivateIndex VBoxNsprPR_NewThreadPrivateIndex -# define PR_GetThreadPriority VBoxNsprPR_GetThreadPriority -# define PR_SetThreadPriority VBoxNsprPR_SetThreadPriority -# define PR_Interrupt VBoxNsprPR_Interrupt -# define PR_ClearInterrupt VBoxNsprPR_ClearInterrupt -# define PR_BlockInterrupt VBoxNsprPR_BlockInterrupt -# define PR_UnblockInterrupt VBoxNsprPR_UnblockInterrupt -# define PR_GetThreadScope VBoxNsprPR_GetThreadScope -# define PR_GetThreadType VBoxNsprPR_GetThreadType -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRThread PRThread; -typedef struct PRThreadStack PRThreadStack; - -typedef enum PRThreadType { - PR_USER_THREAD, - PR_SYSTEM_THREAD -} PRThreadType; - -typedef enum PRThreadScope { - PR_LOCAL_THREAD, - PR_GLOBAL_THREAD, - PR_GLOBAL_BOUND_THREAD -} PRThreadScope; - -typedef enum PRThreadState { - PR_JOINABLE_THREAD, - PR_UNJOINABLE_THREAD -} PRThreadState; - -typedef enum PRThreadPriority -{ - PR_PRIORITY_FIRST =3D 0, /* just a placeholder */ - PR_PRIORITY_LOW =3D 0, /* the lowest possible priority */ - PR_PRIORITY_NORMAL =3D 1, /* most common expected priority */ - PR_PRIORITY_HIGH =3D 2, /* slightly more aggressive scheduling */ - PR_PRIORITY_URGENT =3D 3, /* it does little good to have more than= one */ - PR_PRIORITY_LAST =3D 3 /* this is just a placeholder */ -} PRThreadPriority; - -NSPR_API(PRThread*) PR_CreateThread(PRThreadType type, - void (PR_CALLBACK *start)(void *arg), - void *arg, - PRThreadPriority priority, - PRThreadScope scope, - PRThreadState state, - PRUint32 stackSize); -NSPR_API(PRStatus) PR_JoinThread(PRThread *thread); -NSPR_API(PRThread*) PR_GetCurrentThread(void); -# ifndef NO_NSPR_10_SUPPORT -# define PR_CurrentThread() PR_GetCurrentThread() /* for nspr1.0 compat.= */ -# endif /* NO_NSPR_10_SUPPORT */ -NSPR_API(PRThreadPriority) PR_GetThreadPriority(const PRThread *thread); -NSPR_API(void) PR_SetThreadPriority(PRThread *thread, PRThreadPriority pri= ority); - -typedef void (PR_CALLBACK *PRThreadPrivateDTOR)(void *priv); - -NSPR_API(PRStatus) PR_NewThreadPrivateIndex( - PRUintn *newIndex, PRThreadPrivateDTOR destructor); -NSPR_API(PRStatus) PR_SetThreadPrivate(PRUintn tpdIndex, void *priv); -NSPR_API(void*) PR_GetThreadPrivate(PRUintn tpdIndex); -NSPR_API(PRStatus) PR_Interrupt(PRThread *thread); -NSPR_API(void) PR_ClearInterrupt(void); -NSPR_API(void) PR_BlockInterrupt(void); -NSPR_API(void) PR_UnblockInterrupt(void); -NSPR_API(PRStatus) PR_Sleep(PRIntervalTime ticks); -NSPR_API(PRThreadScope) PR_GetThreadScope(const PRThread *thread); -NSPR_API(PRThreadType) PR_GetThreadType(const PRThread *thread); -NSPR_API(PRThreadState) PR_GetThreadState(const PRThread *thread); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_DestroyLock VBoxNsprPR_DestroyLock -# define PR_Lock VBoxNsprPR_Lock -# define PR_NewLock VBoxNsprPR_NewLock -# define PR_Unlock VBoxNsprPR_Unlock -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRLock PRLock; - -NSPR_API(PRLock*) PR_NewLock(void); -NSPR_API(void) PR_DestroyLock(PRLock *lock); -NSPR_API(void) PR_Lock(PRLock *lock); -NSPR_API(PRStatus) PR_Unlock(PRLock *lock); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_NewCondVar VBoxNsprPR_NewCondVar -# define PR_DestroyCondVar VBoxNsprPR_DestroyCondVar -# define PR_WaitCondVar VBoxNsprPR_WaitCondVar -# define PR_NotifyCondVar VBoxNsprPR_NotifyCondVar -# define PR_NotifyAllCondVar VBoxNsprPR_NotifyAllCondVar -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRCondVar PRCondVar; - -NSPR_API(PRCondVar*) PR_NewCondVar(PRLock *lock); -NSPR_API(void) PR_DestroyCondVar(PRCondVar *cvar); -NSPR_API(PRStatus) PR_WaitCondVar(PRCondVar *cvar, PRIntervalTime timeout); -NSPR_API(PRStatus) PR_NotifyCondVar(PRCondVar *cvar); -NSPR_API(PRStatus) PR_NotifyAllCondVar(PRCondVar *cvar); - -typedef struct PRCListStr PRCList; - -struct PRCListStr { - PRCList *next; - PRCList *prev; -}; - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PL_DestroyEvent VBoxNsplPL_DestroyEvent -# define PL_HandleEvent VBoxNsplPL_HandleEvent -# define PL_InitEvent VBoxNsplPL_InitEvent -# define PL_CreateEventQueue VBoxNsplPL_CreateEventQueue -# define PL_CreateMonitoredEventQueue VBoxNsplPL_CreateMonitoredEventQue= ue -# define PL_CreateNativeEventQueue VBoxNsplPL_CreateNativeEventQueue -# define PL_DequeueEvent VBoxNsplPL_DequeueEvent -# define PL_DestroyEventQueue VBoxNsplPL_DestroyEventQueue -# define PL_EventAvailable VBoxNsplPL_EventAvailable -# define PL_EventLoop VBoxNsplPL_EventLoop -# define PL_GetEvent VBoxNsplPL_GetEvent -# define PL_GetEventOwner VBoxNsplPL_GetEventOwner -# define PL_GetEventQueueMonitor VBoxNsplPL_GetEventQueueMonitor -# define PL_GetEventQueueSelectFD VBoxNsplPL_GetEventQueueSelectFD -# define PL_MapEvents VBoxNsplPL_MapEvents -# define PL_PostEvent VBoxNsplPL_PostEvent -# define PL_PostSynchronousEvent VBoxNsplPL_PostSynchronousEvent -# define PL_ProcessEventsBeforeID VBoxNsplPL_ProcessEventsBeforeID -# define PL_ProcessPendingEvents VBoxNsplPL_ProcessPendingEvents -# define PL_RegisterEventIDFunc VBoxNsplPL_RegisterEventIDFunc -# define PL_RevokeEvents VBoxNsplPL_RevokeEvents -# define PL_UnregisterEventIDFunc VBoxNsplPL_UnregisterEventIDFunc -# define PL_WaitForEvent VBoxNsplPL_WaitForEvent -# define PL_IsQueueNative VBoxNsplPL_IsQueueNative -# define PL_IsQueueOnCurrentThread VBoxNsplPL_IsQueueOnCurrentThread -# define PL_FavorPerformanceHint VBoxNsplPL_FavorPerformanceHint -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PLEvent PLEvent; -typedef struct PLEventQueue PLEventQueue; - -PR_EXTERN(PLEventQueue*) -PL_CreateEventQueue(const char* name, PRThread* handlerThread); -PR_EXTERN(PLEventQueue *) - PL_CreateNativeEventQueue( - const char *name, - PRThread *handlerThread - ); -PR_EXTERN(PLEventQueue *) - PL_CreateMonitoredEventQueue( - const char *name, - PRThread *handlerThread - ); -PR_EXTERN(void) -PL_DestroyEventQueue(PLEventQueue* self); -PR_EXTERN(PRMonitor*) -PL_GetEventQueueMonitor(PLEventQueue* self); - -# define PL_ENTER_EVENT_QUEUE_MONITOR(queue) \ - PR_EnterMonitor(PL_GetEventQueueMonitor(queue)) - -# define PL_EXIT_EVENT_QUEUE_MONITOR(queue) \ - PR_ExitMonitor(PL_GetEventQueueMonitor(queue)) - -PR_EXTERN(PRStatus) PL_PostEvent(PLEventQueue* self, PLEvent* event); -PR_EXTERN(void*) PL_PostSynchronousEvent(PLEventQueue* self, PLEvent* even= t); -PR_EXTERN(PLEvent*) PL_GetEvent(PLEventQueue* self); -PR_EXTERN(PRBool) PL_EventAvailable(PLEventQueue* self); - -typedef void (PR_CALLBACK *PLEventFunProc)(PLEvent* event, void* data, PLE= ventQueue* queue); - -PR_EXTERN(void) PL_MapEvents(PLEventQueue* self, PLEventFunProc fun, void*= data); -PR_EXTERN(void) PL_RevokeEvents(PLEventQueue* self, void* owner); -PR_EXTERN(void) PL_ProcessPendingEvents(PLEventQueue* self); -PR_EXTERN(PLEvent*) PL_WaitForEvent(PLEventQueue* self); -PR_EXTERN(void) PL_EventLoop(PLEventQueue* self); -PR_EXTERN(PRInt32) PL_GetEventQueueSelectFD(PLEventQueue* self); -PR_EXTERN(PRBool) PL_IsQueueOnCurrentThread( PLEventQueue *queue ); -PR_EXTERN(PRBool) PL_IsQueueNative(PLEventQueue *queue); - -typedef void* (PR_CALLBACK *PLHandleEventProc)(PLEvent* self); -typedef void (PR_CALLBACK *PLDestroyEventProc)(PLEvent* self); -PR_EXTERN(void) -PL_InitEvent(PLEvent* self, void* owner, - PLHandleEventProc handler, - PLDestroyEventProc destructor); -PR_EXTERN(void*) PL_GetEventOwner(PLEvent* self); -PR_EXTERN(void) PL_HandleEvent(PLEvent* self); -PR_EXTERN(void) PL_DestroyEvent(PLEvent* self); -PR_EXTERN(void) PL_DequeueEvent(PLEvent* self, PLEventQueue* queue); -PR_EXTERN(void) PL_FavorPerformanceHint(PRBool favorPerformanceOverEventSt= arvation, PRUint32 starvationDelay); - -struct PLEvent { - PRCList link; - PLHandleEventProc handler; - PLDestroyEventProc destructor; - void* owner; - void* synchronousResult; - PRLock* lock; - PRCondVar* condVar; - PRBool handled; -# ifdef PL_POST_TIMINGS - PRIntervalTime postTime; -# endif -# ifdef XP_UNIX - unsigned long id; -# endif /* XP_UNIX */ - /* other fields follow... */ -}; - -# if defined(XP_WIN) || defined(XP_OS2) - -PR_EXTERN(HWND) - PL_GetNativeEventReceiverWindow( - PLEventQueue *eqp - ); -# endif /* XP_WIN || XP_OS2 */ - -# ifdef XP_UNIX - -PR_EXTERN(PRInt32) -PL_ProcessEventsBeforeID(PLEventQueue *aSelf, unsigned long aID); - -typedef unsigned long (PR_CALLBACK *PLGetEventIDFunc)(void *aClosure); - -PR_EXTERN(void) -PL_RegisterEventIDFunc(PLEventQueue *aSelf, PLGetEventIDFunc aFunc, - void *aClosure); -PR_EXTERN(void) PL_UnregisterEventIDFunc(PLEventQueue *aSelf); - -# endif /* XP_UNIX */ - -/* Standard "it worked" return value */ -# define NS_OK 0 - -# define NS_ERROR_BASE ((nsresult) 0xC1F30000) - -/* Returned when an instance is not initialized */ -# define NS_ERROR_NOT_INITIALIZED (NS_ERROR_BASE + 1) - -/* Returned when an instance is already initialized */ -# define NS_ERROR_ALREADY_INITIALIZED (NS_ERROR_BASE + 2) - -/* Returned by a not implemented function */ -# define NS_ERROR_NOT_IMPLEMENTED ((nsresult) 0x80004001L) - -/* Returned when a given interface is not supported. */ -# define NS_NOINTERFACE ((nsresult) 0x80004002L) -# define NS_ERROR_NO_INTERFACE NS_NOINTERFACE - -# define NS_ERROR_INVALID_POINTER ((nsresult) 0x80004003L) -# define NS_ERROR_NULL_POINTER NS_ERROR_INVALID_POINTER - -/* Returned when a function aborts */ -# define NS_ERROR_ABORT ((nsresult) 0x80004004L) - -/* Returned when a function fails */ -# define NS_ERROR_FAILURE ((nsresult) 0x80004005L) - -/* Returned when an unexpected error occurs */ -# define NS_ERROR_UNEXPECTED ((nsresult) 0x8000ffffL) - -/* Returned when a memory allocation fails */ -# define NS_ERROR_OUT_OF_MEMORY ((nsresult) 0x8007000eL) - -/* Returned when an illegal value is passed */ -# define NS_ERROR_ILLEGAL_VALUE ((nsresult) 0x80070057L) -# define NS_ERROR_INVALID_ARG NS_ERROR_ILLEGAL_VALUE - -/* Returned when a class doesn't allow aggregation */ -# define NS_ERROR_NO_AGGREGATION ((nsresult) 0x80040110L) - -/* Returned when an operation can't complete due to an unavailable resourc= e */ -# define NS_ERROR_NOT_AVAILABLE ((nsresult) 0x80040111L) - -/* Returned when a class is not registered */ -# define NS_ERROR_FACTORY_NOT_REGISTERED ((nsresult) 0x80040154L) - -/* Returned when a class cannot be registered, but may be tried again late= r */ -# define NS_ERROR_FACTORY_REGISTER_AGAIN ((nsresult) 0x80040155L) - -/* Returned when a dynamically loaded factory couldn't be found */ -# define NS_ERROR_FACTORY_NOT_LOADED ((nsresult) 0x800401f8L) - -/* Returned when a factory doesn't support signatures */ -# define NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT \ - (NS_ERROR_BASE + 0x101) - -/* Returned when a factory already is registered */ -# define NS_ERROR_FACTORY_EXISTS (NS_ERROR_BASE + 0x100) - - -/** - * An "interface id" which can be used to uniquely identify a given - * interface. - * A "unique identifier". This is modeled after OSF DCE UUIDs. - */ - -struct nsID { - PRUint32 m0; - PRUint16 m1; - PRUint16 m2; - PRUint8 m3[8]; -}; - -typedef struct nsID nsID; -typedef nsID nsIID; - -struct nsISupports; /* forward declaration */ -struct nsIStackFrame; /* forward declaration */ -struct nsIException; /* forward declaration */ -typedef struct nsISupports nsISupports; /* forward declaration */ -typedef struct nsIStackFrame nsIStackFrame; /* forward declaration */ -typedef struct nsIException nsIException; /* forward declaration */ - -/** - * IID for the nsISupports interface - * {00000000-0000-0000-c000-000000000046} - * - * To maintain binary compatibility with COM's IUnknown, we define the IID - * of nsISupports to be the same as that of COM's IUnknown. - */ -# define NS_ISUPPORTS_IID \ - { 0x00000000, 0x0000, 0x0000, \ - {0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46} } - -/** - * Reference count values - * - * This is the return type for AddRef() and Release() in nsISupports. - * IUnknown of COM returns an unsigned long from equivalent functions. - * The following ifdef exists to maintain binary compatibility with - * IUnknown. - */ - -/** - * Basic component object model interface. Objects which implement - * this interface support runtime interface discovery (QueryInterface) - * and a reference counted memory model (AddRef/Release). This is - * modelled after the win32 IUnknown API. - */ -struct nsISupports_vtbl { - - /** - * @name Methods - */ - - /** - * A run time mechanism for interface discovery. - * @param aIID [in] A requested interface IID - * @param aInstancePtr [out] A pointer to an interface pointer to - * receive the result. - * @return NS_OK if the interface is supported by the associa= ted - * instance, NS_NOINTERFACE if it is not. - * NS_ERROR_INVALID_POINTER if aInstancePtr is NULL. - */ - nsresult PR_COM_METHOD (*QueryInterface)(nsISupports *pThis, const nsID = *iid, void **resultp); - /** - * Increases the reference count for this interface. - * The associated instance will not be deleted unless - * the reference count is returned to zero. - * - * @return The resulting reference count. - */ - nsresult PR_COM_METHOD (*AddRef)(nsISupports *pThis); - - /** - * Decreases the reference count for this interface. - * Generally, if the reference count returns to zero, - * the associated instance is deleted. - * - * @return The resulting reference count. - */ - nsresult PR_COM_METHOD (*Release)(nsISupports *pThis); - -# ifdef WIN32 - /* The MSCOM implementation has some additional methods here. - * So add them here to get correct binary layout of the object. - * In API version 4.x this affects all types. */ - nsresult PR_COM_METHOD (*GetTypeInfoCount)(nsISupports *pThis); - nsresult PR_COM_METHOD (*GetTypeInfo)(nsISupports *pThis); - nsresult PR_COM_METHOD (*GetIDsOfNames)(nsISupports *pThis); - nsresult PR_COM_METHOD (*Invoke)(nsISupports *pThis); -# endif -}; - -struct nsISupports { - struct nsISupports_vtbl *vtbl; -}; - -/* starting interface: nsIException */ -# define NS_IEXCEPTION_IID_STR "f3a8d3b4-c424-4edc-8bf6-8974c983ba78" - -# define NS_IEXCEPTION_IID \ - {0xf3a8d3b4, 0xc424, 0x4edc, \ - { 0x8b, 0xf6, 0x89, 0x74, 0xc9, 0x83, 0xba, 0x78 }} - -struct nsIException_vtbl { - - /* Methods from the Class nsISupports */ - struct nsISupports_vtbl nsisupports; - - /* readonly attribute string message; */ - nsresult PR_COM_METHOD (*GetMessage)(nsIException *pThis, PRUnichar * *a= Message); - - /* readonly attribute nsresult (*result; */ - nsresult PR_COM_METHOD (*GetResult)(nsIException *pThis, nsresult *aResu= lt); - - /* readonly attribute string name; */ - nsresult PR_COM_METHOD (*GetName)(nsIException *pThis, PRUnichar * *aNam= e); - - /* readonly attribute string filename; */ - nsresult PR_COM_METHOD (*GetFilename)(nsIException *pThis, PRUnichar * *= aFilename); - - /* readonly attribute PRUint32 lineNumber; */ - nsresult PR_COM_METHOD (*GetLineNumber)(nsIException *pThis, PRUint32 *a= LineNumber); - - /* readonly attribute PRUint32 columnNumber; */ - nsresult PR_COM_METHOD (*GetColumnNumber)(nsIException *pThis, PRUint32 = *aColumnNumber); - - /* readonly attribute nsIStackFrame location; */ - nsresult PR_COM_METHOD (*GetLocation)(nsIException *pThis, nsIStackFrame= * *aLocation); - - /* readonly attribute nsIException inner; */ - nsresult PR_COM_METHOD (*GetInner)(nsIException *pThis, nsIException * *= aInner); - - /* readonly attribute nsISupports data; */ - nsresult PR_COM_METHOD (*GetData)(nsIException *pThis, nsISupports * *aD= ata); - - /* string toString (); */ - nsresult PR_COM_METHOD (*ToString)(nsIException *pThis, PRUnichar **_ret= val); -}; - -struct nsIException { - struct nsIException_vtbl *vtbl; -}; - -/* starting interface: nsIStackFrame */ -# define NS_ISTACKFRAME_IID_STR "91d82105-7c62-4f8b-9779-154277c0ee90" - -# define NS_ISTACKFRAME_IID \ - {0x91d82105, 0x7c62, 0x4f8b, \ - { 0x97, 0x79, 0x15, 0x42, 0x77, 0xc0, 0xee, 0x90 }} - -struct nsIStackFrame_vtbl { - - /* Methods from the Class nsISupports */ - struct nsISupports_vtbl nsisupports; - - /* readonly attribute PRUint32 language; */ - nsresult PR_COM_METHOD (*GetLanguage)(nsIStackFrame *pThis, PRUint32 *aL= anguage); - - /* readonly attribute string languageName; */ - nsresult PR_COM_METHOD (*GetLanguageName)(nsIStackFrame *pThis, PRUnicha= r * *aLanguageName); - - /* readonly attribute string filename; */ - nsresult PR_COM_METHOD (*GetFilename)(nsIStackFrame *pThis, PRUnichar * = *aFilename); - - /* readonly attribute string name; */ - nsresult PR_COM_METHOD (*GetName)(nsIStackFrame *pThis, PRUnichar * *aNa= me); - - /* readonly attribute PRInt32 lineNumber; */ - nsresult PR_COM_METHOD (*GetLineNumber)(nsIStackFrame *pThis, PRInt32 *a= LineNumber); - - /* readonly attribute string sourceLine; */ - nsresult PR_COM_METHOD (*GetSourceLine)(nsIStackFrame *pThis, PRUnichar = * *aSourceLine); - - /* readonly attribute nsIStackFrame caller; */ - nsresult PR_COM_METHOD (*GetCaller)(nsIStackFrame *pThis, nsIStackFrame = * *aCaller); - - /* string toString (); */ - nsresult PR_COM_METHOD (*ToString)(nsIStackFrame *pThis, PRUnichar **_re= tval); -}; - -struct nsIStackFrame { - struct nsIStackFrame_vtbl *vtbl; -}; - -/* starting interface: nsIEventTarget */ -# define NS_IEVENTTARGET_IID_STR "ea99ad5b-cc67-4efb-97c9-2ef620a59f2a" - -# define NS_IEVENTTARGET_IID \ - {0xea99ad5b, 0xcc67, 0x4efb, \ - { 0x97, 0xc9, 0x2e, 0xf6, 0x20, 0xa5, 0x9f, 0x2a }} - -struct nsIEventTarget; -typedef struct nsIEventTarget nsIEventTarget; - -struct nsIEventTarget_vtbl { - - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*PostEvent)(nsIEventTarget *pThis, PLEvent * a= Event); - - nsresult PR_COM_METHOD (*IsOnCurrentThread)(nsIEventTarget *pThis, PRB= ool *_retval); - -}; - -struct nsIEventTarget { - struct nsIEventTarget_vtbl *vtbl; -}; - -/* starting interface: nsIEventQueue */ -# define NS_IEVENTQUEUE_IID_STR "176afb41-00a4-11d3-9f2a-00400553eef0" - -# define NS_IEVENTQUEUE_IID \ - {0x176afb41, 0x00a4, 0x11d3, \ - { 0x9f, 0x2a, 0x00, 0x40, 0x05, 0x53, 0xee, 0xf0 }} - -struct nsIEventQueue; -typedef struct nsIEventQueue nsIEventQueue; - -struct nsIEventQueue_vtbl { - - struct nsIEventTarget_vtbl nsieventtarget; - - nsresult PR_COM_METHOD (*InitEvent)(nsIEventQueue *pThis, PLEvent * aE= vent, void * owner, PLHandleEventProc handler, PLDestroyEventProc destructo= r); - - nsresult PR_COM_METHOD (*PostSynchronousEvent)(nsIEventQueue *pThis, P= LEvent * aEvent, void * *aResult); - - nsresult PR_COM_METHOD (*PendingEvents)(nsIEventQueue *pThis, PRBool *= _retval); - - nsresult PR_COM_METHOD (*ProcessPendingEvents)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*EventLoop)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*EventAvailable)(nsIEventQueue *pThis, PRBool = *aResult); - - nsresult PR_COM_METHOD (*GetEvent)(nsIEventQueue *pThis, PLEvent * *_r= etval); - - nsresult PR_COM_METHOD (*HandleEvent)(nsIEventQueue *pThis, PLEvent * = aEvent); - - nsresult PR_COM_METHOD (*WaitForEvent)(nsIEventQueue *pThis, PLEvent *= *_retval); - - PRInt32 PR_COM_METHOD (*GetEventQueueSelectFD)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*Init)(nsIEventQueue *pThis, PRBool aNative); - - nsresult PR_COM_METHOD (*InitFromPRThread)(nsIEventQueue *pThis, PRThr= ead * thread, PRBool aNative); - - nsresult PR_COM_METHOD (*InitFromPLQueue)(nsIEventQueue *pThis, PLEven= tQueue * aQueue); - - nsresult PR_COM_METHOD (*EnterMonitor)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*ExitMonitor)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*RevokeEvents)(nsIEventQueue *pThis, void * ow= ner); - - nsresult PR_COM_METHOD (*GetPLEventQueue)(nsIEventQueue *pThis, PLEven= tQueue * *_retval); - - nsresult PR_COM_METHOD (*IsQueueNative)(nsIEventQueue *pThis, PRBool *= _retval); - - nsresult PR_COM_METHOD (*StopAcceptingEvents)(nsIEventQueue *pThis); - -}; - -struct nsIEventQueue { - struct nsIEventQueue_vtbl *vtbl; -}; - - -# 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 - - -struct IVirtualBoxErrorInfo; -struct IDHCPServer; -struct IVirtualBox; -struct IVFSExplorer; -struct IAppliance; -struct IVirtualSystemDescription; -struct IInternalMachineControl; -struct IBIOSSettings; -struct IEventContext; -struct IPciAddress; -struct IPciDeviceAttachment; -struct IMachine; -struct IVRDEServerInfo; -struct IConsole; -struct IHostNetworkInterface; -struct IHost; -struct ISystemProperties; -struct IGuestOSType; -struct IGuest; -struct IProgress; -struct ISnapshot; -struct IMediumAttachment; -struct IMedium; -struct IMediumFormat; -struct IKeyboard; -struct IMouse; -struct IFramebuffer; -struct IFramebufferOverlay; -struct IDisplay; -struct INetworkAdapter; -struct ISerialPort; -struct IParallelPort; -struct IMachineDebugger; -struct IUSBController; -struct IUSBDevice; -struct IUSBDeviceFilter; -struct IHostUSBDevice; -struct IHostUSBDeviceFilter; -struct IAudioAdapter; -struct IVRDEServer; -struct ISharedFolder; -struct IInternalSessionControl; -struct ISession; -struct IStorageController; -struct IManagedObjectRef; -struct IWebsessionManager; -struct IPerformanceMetric; -struct IPerformanceCollector; -struct INATEngine; -struct IExtPackPlugIn; -struct IExtPackBase; -struct IExtPack; -struct IExtPackFile; -struct IExtPackManager; -struct IBandwidthGroup; -struct IBandwidthControl; -struct IVirtualBoxClient; -struct IEventSource; -struct IEventListener; -struct IEvent; -struct IReusableEvent; -struct IMachineEvent; -struct IMachineStateChangedEvent; -struct IMachineDataChangedEvent; -struct IMediumRegisteredEvent; -struct IMachineRegisteredEvent; -struct ISessionStateChangedEvent; -struct IGuestPropertyChangedEvent; -struct ISnapshotEvent; -struct ISnapshotTakenEvent; -struct ISnapshotDeletedEvent; -struct ISnapshotChangedEvent; -struct IMousePointerShapeChangedEvent; -struct IMouseCapabilityChangedEvent; -struct IKeyboardLedsChangedEvent; -struct IStateChangedEvent; -struct IAdditionsStateChangedEvent; -struct INetworkAdapterChangedEvent; -struct ISerialPortChangedEvent; -struct IParallelPortChangedEvent; -struct IStorageControllerChangedEvent; -struct IMediumChangedEvent; -struct ICPUChangedEvent; -struct ICPUExecutionCapChangedEvent; -struct IGuestKeyboardEvent; -struct IGuestMouseEvent; -struct IVRDEServerChangedEvent; -struct IVRDEServerInfoChangedEvent; -struct IUSBControllerChangedEvent; -struct IUSBDeviceStateChangedEvent; -struct ISharedFolderChangedEvent; -struct IRuntimeErrorEvent; -struct IEventSourceChangedEvent; -struct IExtraDataChangedEvent; -struct IVetoEvent; -struct IExtraDataCanChangeEvent; -struct ICanShowWindowEvent; -struct IShowWindowEvent; -struct INATRedirectEvent; -struct IHostPciDevicePlugEvent; -struct IVBoxSVCAvailabilityChangedEvent; -struct IBandwidthGroupChangedEvent; -struct IGuestMonitorChangedEvent; - -typedef struct IVirtualBoxErrorInfo IVirtualBoxErrorInfo; -typedef struct IDHCPServer IDHCPServer; -typedef struct IVirtualBox IVirtualBox; -typedef struct IVFSExplorer IVFSExplorer; -typedef struct IAppliance IAppliance; -typedef struct IVirtualSystemDescription IVirtualSystemDescription; -typedef struct IInternalMachineControl IInternalMachineControl; -typedef struct IBIOSSettings IBIOSSettings; -typedef struct IEventContext IEventContext; -typedef struct IPciAddress IPciAddress; -typedef struct IPciDeviceAttachment IPciDeviceAttachment; -typedef struct IMachine IMachine; -typedef struct IVRDEServerInfo IVRDEServerInfo; -typedef struct IConsole IConsole; -typedef struct IHostNetworkInterface IHostNetworkInterface; -typedef struct IHost IHost; -typedef struct ISystemProperties ISystemProperties; -typedef struct IGuestOSType IGuestOSType; -typedef struct IGuest IGuest; -typedef struct IProgress IProgress; -typedef struct ISnapshot ISnapshot; -typedef struct IMediumAttachment IMediumAttachment; -typedef struct IMedium IMedium; -typedef struct IMediumFormat IMediumFormat; -typedef struct IKeyboard IKeyboard; -typedef struct IMouse IMouse; -typedef struct IFramebuffer IFramebuffer; -typedef struct IFramebufferOverlay IFramebufferOverlay; -typedef struct IDisplay IDisplay; -typedef struct INetworkAdapter INetworkAdapter; -typedef struct ISerialPort ISerialPort; -typedef struct IParallelPort IParallelPort; -typedef struct IMachineDebugger IMachineDebugger; -typedef struct IUSBController IUSBController; -typedef struct IUSBDevice IUSBDevice; -typedef struct IUSBDeviceFilter IUSBDeviceFilter; -typedef struct IHostUSBDevice IHostUSBDevice; -typedef struct IHostUSBDeviceFilter IHostUSBDeviceFilter; -typedef struct IAudioAdapter IAudioAdapter; -typedef struct IVRDEServer IVRDEServer; -typedef struct ISharedFolder ISharedFolder; -typedef struct IInternalSessionControl IInternalSessionControl; -typedef struct ISession ISession; -typedef struct IStorageController IStorageController; -typedef struct IManagedObjectRef IManagedObjectRef; -typedef struct IWebsessionManager IWebsessionManager; -typedef struct IPerformanceMetric IPerformanceMetric; -typedef struct IPerformanceCollector IPerformanceCollector; -typedef struct INATEngine INATEngine; -typedef struct IExtPackPlugIn IExtPackPlugIn; -typedef struct IExtPackBase IExtPackBase; -typedef struct IExtPack IExtPack; -typedef struct IExtPackFile IExtPackFile; -typedef struct IExtPackManager IExtPackManager; -typedef struct IBandwidthGroup IBandwidthGroup; -typedef struct IBandwidthControl IBandwidthControl; -typedef struct IVirtualBoxClient IVirtualBoxClient; -typedef struct IEventSource IEventSource; -typedef struct IEventListener IEventListener; -typedef struct IEvent IEvent; -typedef struct IReusableEvent IReusableEvent; -typedef struct IMachineEvent IMachineEvent; -typedef struct IMachineStateChangedEvent IMachineStateChangedEvent; -typedef struct IMachineDataChangedEvent IMachineDataChangedEvent; -typedef struct IMediumRegisteredEvent IMediumRegisteredEvent; -typedef struct IMachineRegisteredEvent IMachineRegisteredEvent; -typedef struct ISessionStateChangedEvent ISessionStateChangedEvent; -typedef struct IGuestPropertyChangedEvent IGuestPropertyChangedEvent; -typedef struct ISnapshotEvent ISnapshotEvent; -typedef struct ISnapshotTakenEvent ISnapshotTakenEvent; -typedef struct ISnapshotDeletedEvent ISnapshotDeletedEvent; -typedef struct ISnapshotChangedEvent ISnapshotChangedEvent; -typedef struct IMousePointerShapeChangedEvent IMousePointerShapeChangedEve= nt; -typedef struct IMouseCapabilityChangedEvent IMouseCapabilityChangedEvent; -typedef struct IKeyboardLedsChangedEvent IKeyboardLedsChangedEvent; -typedef struct IStateChangedEvent IStateChangedEvent; -typedef struct IAdditionsStateChangedEvent IAdditionsStateChangedEvent; -typedef struct INetworkAdapterChangedEvent INetworkAdapterChangedEvent; -typedef struct ISerialPortChangedEvent ISerialPortChangedEvent; -typedef struct IParallelPortChangedEvent IParallelPortChangedEvent; -typedef struct IStorageControllerChangedEvent IStorageControllerChangedEve= nt; -typedef struct IMediumChangedEvent IMediumChangedEvent; -typedef struct ICPUChangedEvent ICPUChangedEvent; -typedef struct ICPUExecutionCapChangedEvent ICPUExecutionCapChangedEvent; -typedef struct IGuestKeyboardEvent IGuestKeyboardEvent; -typedef struct IGuestMouseEvent IGuestMouseEvent; -typedef struct IVRDEServerChangedEvent IVRDEServerChangedEvent; -typedef struct IVRDEServerInfoChangedEvent IVRDEServerInfoChangedEvent; -typedef struct IUSBControllerChangedEvent IUSBControllerChangedEvent; -typedef struct IUSBDeviceStateChangedEvent IUSBDeviceStateChangedEvent; -typedef struct ISharedFolderChangedEvent ISharedFolderChangedEvent; -typedef struct IRuntimeErrorEvent IRuntimeErrorEvent; -typedef struct IEventSourceChangedEvent IEventSourceChangedEvent; -typedef struct IExtraDataChangedEvent IExtraDataChangedEvent; -typedef struct IVetoEvent IVetoEvent; -typedef struct IExtraDataCanChangeEvent IExtraDataCanChangeEvent; -typedef struct ICanShowWindowEvent ICanShowWindowEvent; -typedef struct IShowWindowEvent IShowWindowEvent; -typedef struct INATRedirectEvent INATRedirectEvent; -typedef struct IHostPciDevicePlugEvent IHostPciDevicePlugEvent; -typedef struct IVBoxSVCAvailabilityChangedEvent IVBoxSVCAvailabilityChange= dEvent; -typedef struct IBandwidthGroupChangedEvent IBandwidthGroupChangedEvent; -typedef struct IGuestMonitorChangedEvent IGuestMonitorChangedEvent; - -/* Start of enum SettingsVersion Declaration */ -# define SETTINGSVERSION_IID_STR "52bd6f5f-1adb-4493-975d-581a9c4b803f" -# define SETTINGSVERSION_IID { \ - 0x52bd6f5f, 0x1adb, 0x4493, \ - { 0x97, 0x5d, 0x58, 0x1a, 0x9c, 0x4b, 0x80, 0x3f } \ -} -enum SettingsVersion -{ - SettingsVersion_Null =3D 0, - SettingsVersion_v1_0 =3D 1, - SettingsVersion_v1_1 =3D 2, - SettingsVersion_v1_2 =3D 3, - SettingsVersion_v1_3pre =3D 4, - SettingsVersion_v1_3 =3D 5, - SettingsVersion_v1_4 =3D 6, - SettingsVersion_v1_5 =3D 7, - SettingsVersion_v1_6 =3D 8, - SettingsVersion_v1_7 =3D 9, - SettingsVersion_v1_8 =3D 10, - SettingsVersion_v1_9 =3D 11, - SettingsVersion_v1_10 =3D 12, - SettingsVersion_v1_11 =3D 13, - SettingsVersion_Future =3D 99999 -}; -/* End of enum SettingsVersion Declaration */ - - -/* Start of enum AccessMode Declaration */ -# define ACCESSMODE_IID_STR "1da0007c-ddf7-4be8-bcac-d84a1558785f" -# define ACCESSMODE_IID { \ - 0x1da0007c, 0xddf7, 0x4be8, \ - { 0xbc, 0xac, 0xd8, 0x4a, 0x15, 0x58, 0x78, 0x5f } \ -} -enum AccessMode -{ - AccessMode_ReadOnly =3D 1, - AccessMode_ReadWrite =3D 2 -}; -/* End of enum AccessMode Declaration */ - - -/* Start of enum MachineState Declaration */ -# define MACHINESTATE_IID_STR "ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe" -# define MACHINESTATE_IID { \ - 0xec6c6a9e, 0x113d, 0x4ff4, \ - { 0xb4, 0x4f, 0x0b, 0x69, 0xf2, 0x1c, 0x97, 0xfe } \ -} -enum MachineState -{ - MachineState_Null =3D 0, - MachineState_PoweredOff =3D 1, - MachineState_Saved =3D 2, - MachineState_Teleported =3D 3, - MachineState_Aborted =3D 4, - MachineState_Running =3D 5, - MachineState_Paused =3D 6, - MachineState_Stuck =3D 7, - MachineState_Teleporting =3D 8, - MachineState_LiveSnapshotting =3D 9, - MachineState_Starting =3D 10, - MachineState_Stopping =3D 11, - MachineState_Saving =3D 12, - MachineState_Restoring =3D 13, - MachineState_TeleportingPausedVM =3D 14, - MachineState_TeleportingIn =3D 15, - MachineState_FaultTolerantSyncing =3D 16, - MachineState_DeletingSnapshotOnline =3D 17, - MachineState_DeletingSnapshotPaused =3D 18, - MachineState_RestoringSnapshot =3D 19, - MachineState_DeletingSnapshot =3D 20, - MachineState_SettingUp =3D 21, - MachineState_FirstOnline =3D 5, - MachineState_LastOnline =3D 18, - MachineState_FirstTransient =3D 8, - MachineState_LastTransient =3D 21 -}; -/* End of enum MachineState Declaration */ - - -/* Start of enum SessionState Declaration */ -# define SESSIONSTATE_IID_STR "cf2700c0-ea4b-47ae-9725-7810114b94d8" -# define SESSIONSTATE_IID { \ - 0xcf2700c0, 0xea4b, 0x47ae, \ - { 0x97, 0x25, 0x78, 0x10, 0x11, 0x4b, 0x94, 0xd8 } \ -} -enum SessionState -{ - SessionState_Null =3D 0, - SessionState_Unlocked =3D 1, - SessionState_Locked =3D 2, - SessionState_Spawning =3D 3, - SessionState_Unlocking =3D 4 -}; -/* End of enum SessionState Declaration */ - - -/* Start of enum CPUPropertyType Declaration */ -# define CPUPROPERTYTYPE_IID_STR "24d356a6-2f45-4abd-b977-1cbe9c4701f5" -# define CPUPROPERTYTYPE_IID { \ - 0x24d356a6, 0x2f45, 0x4abd, \ - { 0xb9, 0x77, 0x1c, 0xbe, 0x9c, 0x47, 0x01, 0xf5 } \ -} -enum CPUPropertyType -{ - CPUPropertyType_Null =3D 0, - CPUPropertyType_PAE =3D 1, - CPUPropertyType_Synthetic =3D 2 -}; -/* End of enum CPUPropertyType Declaration */ - - -/* Start of enum HWVirtExPropertyType Declaration */ -# define HWVIRTEXPROPERTYTYPE_IID_STR "ce81dfdd-d2b8-4a90-bbea-40ee8b7ffc= ee" -# define HWVIRTEXPROPERTYTYPE_IID { \ - 0xce81dfdd, 0xd2b8, 0x4a90, \ - { 0xbb, 0xea, 0x40, 0xee, 0x8b, 0x7f, 0xfc, 0xee } \ -} -enum HWVirtExPropertyType -{ - HWVirtExPropertyType_Null =3D 0, - HWVirtExPropertyType_Enabled =3D 1, - HWVirtExPropertyType_Exclusive =3D 2, - HWVirtExPropertyType_VPID =3D 3, - HWVirtExPropertyType_NestedPaging =3D 4, - HWVirtExPropertyType_LargePages =3D 5, - HWVirtExPropertyType_Force =3D 6 -}; -/* End of enum HWVirtExPropertyType Declaration */ - - -/* Start of enum FaultToleranceState Declaration */ -# define FAULTTOLERANCESTATE_IID_STR "5124f7ec-6b67-493c-9dee-ee45a44114e= 1" -# define FAULTTOLERANCESTATE_IID { \ - 0x5124f7ec, 0x6b67, 0x493c, \ - { 0x9d, 0xee, 0xee, 0x45, 0xa4, 0x41, 0x14, 0xe1 } \ -} -enum FaultToleranceState -{ - FaultToleranceState_Inactive =3D 1, - FaultToleranceState_Master =3D 2, - FaultToleranceState_Standby =3D 3 -}; -/* End of enum FaultToleranceState Declaration */ - - -/* Start of enum LockType Declaration */ -# define LOCKTYPE_IID_STR "138b53f8-db4b-47c5-b32b-4ef52f769413" -# define LOCKTYPE_IID { \ - 0x138b53f8, 0xdb4b, 0x47c5, \ - { 0xb3, 0x2b, 0x4e, 0xf5, 0x2f, 0x76, 0x94, 0x13 } \ -} -enum LockType -{ - LockType_Write =3D 2, - LockType_Shared =3D 1 -}; -/* End of enum LockType Declaration */ - - -/* Start of enum SessionType Declaration */ -# define SESSIONTYPE_IID_STR "A13C02CB-0C2C-421E-8317-AC0E8AAA153A" -# define SESSIONTYPE_IID { \ - 0xA13C02CB, 0x0C2C, 0x421E, \ - { 0x83, 0x17, 0xAC, 0x0E, 0x8A, 0xAA, 0x15, 0x3A } \ -} -enum SessionType -{ - SessionType_Null =3D 0, - SessionType_WriteLock =3D 1, - SessionType_Remote =3D 2, - SessionType_Shared =3D 3 -}; -/* End of enum SessionType Declaration */ - - -/* Start of enum DeviceType Declaration */ -# define DEVICETYPE_IID_STR "6d9420f7-0b56-4636-99f9-7346f1b01e57" -# define DEVICETYPE_IID { \ - 0x6d9420f7, 0x0b56, 0x4636, \ - { 0x99, 0xf9, 0x73, 0x46, 0xf1, 0xb0, 0x1e, 0x57 } \ -} -enum DeviceType -{ - DeviceType_Null =3D 0, - DeviceType_Floppy =3D 1, - DeviceType_DVD =3D 2, - DeviceType_HardDisk =3D 3, - DeviceType_Network =3D 4, - DeviceType_USB =3D 5, - DeviceType_SharedFolder =3D 6 -}; -/* End of enum DeviceType Declaration */ - - -/* Start of enum DeviceActivity Declaration */ -# define DEVICEACTIVITY_IID_STR "6FC8AEAA-130A-4eb5-8954-3F921422D707" -# define DEVICEACTIVITY_IID { \ - 0x6FC8AEAA, 0x130A, 0x4eb5, \ - { 0x89, 0x54, 0x3F, 0x92, 0x14, 0x22, 0xD7, 0x07 } \ -} -enum DeviceActivity -{ - DeviceActivity_Null =3D 0, - DeviceActivity_Idle =3D 1, - DeviceActivity_Reading =3D 2, - DeviceActivity_Writing =3D 3 -}; -/* End of enum DeviceActivity Declaration */ - - -/* Start of enum ClipboardMode Declaration */ -# define CLIPBOARDMODE_IID_STR "33364716-4008-4701-8f14-be0fa3d62950" -# define CLIPBOARDMODE_IID { \ - 0x33364716, 0x4008, 0x4701, \ - { 0x8f, 0x14, 0xbe, 0x0f, 0xa3, 0xd6, 0x29, 0x50 } \ -} -enum ClipboardMode -{ - ClipboardMode_Disabled =3D 0, - ClipboardMode_HostToGuest =3D 1, - ClipboardMode_GuestToHost =3D 2, - ClipboardMode_Bidirectional =3D 3 -}; -/* End of enum ClipboardMode Declaration */ - - -/* Start of enum Scope Declaration */ -# define SCOPE_IID_STR "7c91096e-499e-4eca-9f9b-9001438d7855" -# define SCOPE_IID { \ - 0x7c91096e, 0x499e, 0x4eca, \ - { 0x9f, 0x9b, 0x90, 0x01, 0x43, 0x8d, 0x78, 0x55 } \ -} -enum Scope -{ - Scope_Global =3D 0, - Scope_Machine =3D 1, - Scope_Session =3D 2 -}; -/* End of enum Scope Declaration */ - - -/* Start of enum BIOSBootMenuMode Declaration */ -# define BIOSBOOTMENUMODE_IID_STR "ae4fb9f7-29d2-45b4-b2c7-d579603135d5" -# define BIOSBOOTMENUMODE_IID { \ - 0xae4fb9f7, 0x29d2, 0x45b4, \ - { 0xb2, 0xc7, 0xd5, 0x79, 0x60, 0x31, 0x35, 0xd5 } \ -} -enum BIOSBootMenuMode -{ - BIOSBootMenuMode_Disabled =3D 0, - BIOSBootMenuMode_MenuOnly =3D 1, - BIOSBootMenuMode_MessageAndMenu =3D 2 -}; -/* End of enum BIOSBootMenuMode Declaration */ - - -/* Start of enum ProcessorFeature Declaration */ -# define PROCESSORFEATURE_IID_STR "64c38e6b-8bcf-45ad-ac03-9b406287c5bf" -# define PROCESSORFEATURE_IID { \ - 0x64c38e6b, 0x8bcf, 0x45ad, \ - { 0xac, 0x03, 0x9b, 0x40, 0x62, 0x87, 0xc5, 0xbf } \ -} -enum ProcessorFeature -{ - ProcessorFeature_HWVirtEx =3D 0, - ProcessorFeature_PAE =3D 1, - ProcessorFeature_LongMode =3D 2, - ProcessorFeature_NestedPaging =3D 3 -}; -/* End of enum ProcessorFeature Declaration */ - - -/* Start of enum FirmwareType Declaration */ -# define FIRMWARETYPE_IID_STR "b903f264-c230-483e-ac74-2b37ce60d371" -# define FIRMWARETYPE_IID { \ - 0xb903f264, 0xc230, 0x483e, \ - { 0xac, 0x74, 0x2b, 0x37, 0xce, 0x60, 0xd3, 0x71 } \ -} -enum FirmwareType -{ - FirmwareType_BIOS =3D 1, - FirmwareType_EFI =3D 2, - FirmwareType_EFI32 =3D 3, - FirmwareType_EFI64 =3D 4, - FirmwareType_EFIDUAL =3D 5 -}; -/* End of enum FirmwareType Declaration */ - - -/* Start of enum PointingHidType Declaration */ -# define POINTINGHIDTYPE_IID_STR "0d3c17a2-821a-4b2e-ae41-890c6c60aa97" -# define POINTINGHIDTYPE_IID { \ - 0x0d3c17a2, 0x821a, 0x4b2e, \ - { 0xae, 0x41, 0x89, 0x0c, 0x6c, 0x60, 0xaa, 0x97 } \ -} -enum PointingHidType -{ - PointingHidType_None =3D 1, - PointingHidType_PS2Mouse =3D 2, - PointingHidType_USBMouse =3D 3, - PointingHidType_USBTablet =3D 4, - PointingHidType_ComboMouse =3D 5 -}; -/* End of enum PointingHidType Declaration */ - - -/* Start of enum KeyboardHidType Declaration */ -# define KEYBOARDHIDTYPE_IID_STR "5a5b0996-3a3e-44bb-9019-56979812cbcc" -# define KEYBOARDHIDTYPE_IID { \ - 0x5a5b0996, 0x3a3e, 0x44bb, \ - { 0x90, 0x19, 0x56, 0x97, 0x98, 0x12, 0xcb, 0xcc } \ -} -enum KeyboardHidType -{ - KeyboardHidType_None =3D 1, - KeyboardHidType_PS2Keyboard =3D 2, - KeyboardHidType_USBKeyboard =3D 3, - KeyboardHidType_ComboKeyboard =3D 4 -}; -/* End of enum KeyboardHidType Declaration */ - - -/* Start of enum VFSType Declaration */ -# define VFSTYPE_IID_STR "813999ba-b949-48a8-9230-aadc6285e2f2" -# define VFSTYPE_IID { \ - 0x813999ba, 0xb949, 0x48a8, \ - { 0x92, 0x30, 0xaa, 0xdc, 0x62, 0x85, 0xe2, 0xf2 } \ -} -enum VFSType -{ - VFSType_File =3D 1, - VFSType_Cloud =3D 2, - VFSType_S3 =3D 3, - VFSType_WebDav =3D 4 -}; -/* End of enum VFSType Declaration */ - - -/* Start of enum VFSFileType Declaration */ -# define VFSFILETYPE_IID_STR "714333cd-44e2-415f-a245-d378fa9b1242" -# define VFSFILETYPE_IID { \ - 0x714333cd, 0x44e2, 0x415f, \ - { 0xa2, 0x45, 0xd3, 0x78, 0xfa, 0x9b, 0x12, 0x42 } \ -} -enum VFSFileType -{ - VFSFileType_Unknown =3D 1, - VFSFileType_Fifo =3D 2, - VFSFileType_DevChar =3D 3, - VFSFileType_Directory =3D 4, - VFSFileType_DevBlock =3D 5, - VFSFileType_File =3D 6, - VFSFileType_SymLink =3D 7, - VFSFileType_Socket =3D 8, - VFSFileType_WhiteOut =3D 9 -}; -/* End of enum VFSFileType Declaration */ - - -/* Start of enum VirtualSystemDescriptionType Declaration */ -# define VIRTUALSYSTEMDESCRIPTIONTYPE_IID_STR "c0f8f135-3a1d-417d-afa6-b3= 8b95a91f90" -# define VIRTUALSYSTEMDESCRIPTIONTYPE_IID { \ - 0xc0f8f135, 0x3a1d, 0x417d, \ - { 0xaf, 0xa6, 0xb3, 0x8b, 0x95, 0xa9, 0x1f, 0x90 } \ -} -enum VirtualSystemDescriptionType -{ - VirtualSystemDescriptionType_Ignore =3D 1, - VirtualSystemDescriptionType_OS =3D 2, - VirtualSystemDescriptionType_Name =3D 3, - VirtualSystemDescriptionType_Product =3D 4, - VirtualSystemDescriptionType_Vendor =3D 5, - VirtualSystemDescriptionType_Version =3D 6, - VirtualSystemDescriptionType_ProductUrl =3D 7, - VirtualSystemDescriptionType_VendorUrl =3D 8, - VirtualSystemDescriptionType_Description =3D 9, - VirtualSystemDescriptionType_License =3D 10, - VirtualSystemDescriptionType_Miscellaneous =3D 11, - VirtualSystemDescriptionType_CPU =3D 12, - VirtualSystemDescriptionType_Memory =3D 13, - VirtualSystemDescriptionType_HardDiskControllerIDE =3D 14, - VirtualSystemDescriptionType_HardDiskControllerSATA =3D 15, - VirtualSystemDescriptionType_HardDiskControllerSCSI =3D 16, - VirtualSystemDescriptionType_HardDiskControllerSAS =3D 17, - VirtualSystemDescriptionType_HardDiskImage =3D 18, - VirtualSystemDescriptionType_Floppy =3D 19, - VirtualSystemDescriptionType_CDROM =3D 20, - VirtualSystemDescriptionType_NetworkAdapter =3D 21, - VirtualSystemDescriptionType_USBController =3D 22, - VirtualSystemDescriptionType_SoundCard =3D 23 -}; -/* End of enum VirtualSystemDescriptionType Declaration */ - - -/* Start of enum VirtualSystemDescriptionValueType Declaration */ -# define VIRTUALSYSTEMDESCRIPTIONVALUETYPE_IID_STR "56d9403f-3425-4118-99= 19-36f2a9b8c77c" -# define VIRTUALSYSTEMDESCRIPTIONVALUETYPE_IID { \ - 0x56d9403f, 0x3425, 0x4118, \ - { 0x99, 0x19, 0x36, 0xf2, 0xa9, 0xb8, 0xc7, 0x7c } \ -} -enum VirtualSystemDescriptionValueType -{ - VirtualSystemDescriptionValueType_Reference =3D 1, - VirtualSystemDescriptionValueType_Original =3D 2, - VirtualSystemDescriptionValueType_Auto =3D 3, - VirtualSystemDescriptionValueType_ExtraConfig =3D 4 -}; -/* End of enum VirtualSystemDescriptionValueType Declaration */ - - -/* Start of enum CleanupMode Declaration */ -# define CLEANUPMODE_IID_STR "67897c50-7cca-47a9-83f6-ce8fd8eb5441" -# define CLEANUPMODE_IID { \ - 0x67897c50, 0x7cca, 0x47a9, \ - { 0x83, 0xf6, 0xce, 0x8f, 0xd8, 0xeb, 0x54, 0x41 } \ -} -enum CleanupMode -{ - CleanupMode_UnregisterOnly =3D 1, - CleanupMode_DetachAllReturnNone =3D 2, - CleanupMode_DetachAllReturnHardDisksOnly =3D 3, - CleanupMode_Full =3D 4 -}; -/* End of enum CleanupMode Declaration */ - - -/* Start of enum HostNetworkInterfaceMediumType Declaration */ -# define HOSTNETWORKINTERFACEMEDIUMTYPE_IID_STR "1aa54aaf-2497-45a2-bfb1-= 8eb225e93d5b" -# define HOSTNETWORKINTERFACEMEDIUMTYPE_IID { \ - 0x1aa54aaf, 0x2497, 0x45a2, \ - { 0xbf, 0xb1, 0x8e, 0xb2, 0x25, 0xe9, 0x3d, 0x5b } \ -} -enum HostNetworkInterfaceMediumType -{ - HostNetworkInterfaceMediumType_Unknown =3D 0, - HostNetworkInterfaceMediumType_Ethernet =3D 1, - HostNetworkInterfaceMediumType_PPP =3D 2, - HostNetworkInterfaceMediumType_SLIP =3D 3 -}; -/* End of enum HostNetworkInterfaceMediumType Declaration */ - - -/* Start of enum HostNetworkInterfaceStatus Declaration */ -# define HOSTNETWORKINTERFACESTATUS_IID_STR "CC474A69-2710-434B-8D99-C38E= 5D5A6F41" -# define HOSTNETWORKINTERFACESTATUS_IID { \ - 0xCC474A69, 0x2710, 0x434B, \ - { 0x8D, 0x99, 0xC3, 0x8E, 0x5D, 0x5A, 0x6F, 0x41 } \ -} -enum HostNetworkInterfaceStatus -{ - HostNetworkInterfaceStatus_Unknown =3D 0, - HostNetworkInterfaceStatus_Up =3D 1, - HostNetworkInterfaceStatus_Down =3D 2 -}; -/* End of enum HostNetworkInterfaceStatus Declaration */ - - -/* Start of enum HostNetworkInterfaceType Declaration */ -# define HOSTNETWORKINTERFACETYPE_IID_STR "67431b00-9946-48a2-bc02-b25c59= 19f4f3" -# define HOSTNETWORKINTERFACETYPE_IID { \ - 0x67431b00, 0x9946, 0x48a2, \ - { 0xbc, 0x02, 0xb2, 0x5c, 0x59, 0x19, 0xf4, 0xf3 } \ -} -enum HostNetworkInterfaceType -{ - HostNetworkInterfaceType_Bridged =3D 1, - HostNetworkInterfaceType_HostOnly =3D 2 -}; -/* End of enum HostNetworkInterfaceType Declaration */ - - -/* Start of enum AdditionsRunLevelType Declaration */ -# define ADDITIONSRUNLEVELTYPE_IID_STR "a25417ee-a9dd-4f5b-b0dc-377860087= 754" -# define ADDITIONSRUNLEVELTYPE_IID { \ - 0xa25417ee, 0xa9dd, 0x4f5b, \ - { 0xb0, 0xdc, 0x37, 0x78, 0x60, 0x08, 0x77, 0x54 } \ -} -enum AdditionsRunLevelType -{ - AdditionsRunLevelType_None =3D 0, - AdditionsRunLevelType_System =3D 1, - AdditionsRunLevelType_Userland =3D 2, - AdditionsRunLevelType_Desktop =3D 3 -}; -/* End of enum AdditionsRunLevelType Declaration */ - - -/* Start of enum AdditionsUpdateFlag Declaration */ -# define ADDITIONSUPDATEFLAG_IID_STR "726a818d-18d6-4389-94e8-3e9e6826171= a" -# define ADDITIONSUPDATEFLAG_IID { \ - 0x726a818d, 0x18d6, 0x4389, \ - { 0x94, 0xe8, 0x3e, 0x9e, 0x68, 0x26, 0x17, 0x1a } \ -} -enum AdditionsUpdateFlag -{ - AdditionsUpdateFlag_None =3D 0, - AdditionsUpdateFlag_WaitForUpdateStartOnly =3D 1 -}; -/* End of enum AdditionsUpdateFlag Declaration */ - - -/* Start of enum ExecuteProcessFlag Declaration */ -# define EXECUTEPROCESSFLAG_IID_STR "3258e8a5-ba0c-43d5-86b5-cf91405fddc0" -# define EXECUTEPROCESSFLAG_IID { \ - 0x3258e8a5, 0xba0c, 0x43d5, \ - { 0x86, 0xb5, 0xcf, 0x91, 0x40, 0x5f, 0xdd, 0xc0 } \ -} -enum ExecuteProcessFlag -{ - ExecuteProcessFlag_None =3D 0, - ExecuteProcessFlag_WaitForProcessStartOnly =3D 1, - ExecuteProcessFlag_IgnoreOrphanedProcesses =3D 2, - ExecuteProcessFlag_Hidden =3D 4 -}; -/* End of enum ExecuteProcessFlag Declaration */ - - -/* Start of enum ProcessInputFlag Declaration */ -# define PROCESSINPUTFLAG_IID_STR "5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5" -# define PROCESSINPUTFLAG_IID { \ - 0x5d38c1dd, 0x2604, 0x4ddf, \ - { 0x92, 0xe5, 0x0c, 0x0c, 0xdd, 0x3b, 0xdb, 0xd5 } \ -} -enum ProcessInputFlag -{ - ProcessInputFlag_None =3D 0, - ProcessInputFlag_EndOfFile =3D 1 -}; -/* End of enum ProcessInputFlag Declaration */ - - -/* Start of enum CopyFileFlag Declaration */ -# define COPYFILEFLAG_IID_STR "23f79fdf-738a-493d-b80b-42d607c9b916" -# define COPYFILEFLAG_IID { \ - 0x23f79fdf, 0x738a, 0x493d, \ - { 0xb8, 0x0b, 0x42, 0xd6, 0x07, 0xc9, 0xb9, 0x16 } \ -} -enum CopyFileFlag -{ - CopyFileFlag_None =3D 0, - CopyFileFlag_Recursive =3D 1, - CopyFileFlag_Update =3D 2, - CopyFileFlag_FollowLinks =3D 4 -}; -/* End of enum CopyFileFlag Declaration */ - - -/* Start of enum CreateDirectoryFlag Declaration */ -# define CREATEDIRECTORYFLAG_IID_STR "26ff5bdd-c81f-4304-857b-b8be5e3f9cd= 6" -# define CREATEDIRECTORYFLAG_IID { \ - 0x26ff5bdd, 0xc81f, 0x4304, \ - { 0x85, 0x7b, 0xb8, 0xbe, 0x5e, 0x3f, 0x9c, 0xd6 } \ -} -enum CreateDirectoryFlag -{ - CreateDirectoryFlag_None =3D 0, - CreateDirectoryFlag_Parents =3D 1 -}; -/* End of enum CreateDirectoryFlag Declaration */ - - -/* Start of enum MediumState Declaration */ -# define MEDIUMSTATE_IID_STR "ef41e980-e012-43cd-9dea-479d4ef14d13" -# define MEDIUMSTATE_IID { \ - 0xef41e980, 0xe012, 0x43cd, \ - { 0x9d, 0xea, 0x47, 0x9d, 0x4e, 0xf1, 0x4d, 0x13 } \ -} -enum MediumState -{ - MediumState_NotCreated =3D 0, - MediumState_Created =3D 1, - MediumState_LockedRead =3D 2, - MediumState_LockedWrite =3D 3, - MediumState_Inaccessible =3D 4, - MediumState_Creating =3D 5, - MediumState_Deleting =3D 6 -}; -/* End of enum MediumState Declaration */ - - -/* Start of enum MediumType Declaration */ -# define MEDIUMTYPE_IID_STR "fe663fb5-c244-4e1b-9d81-c628b417dd04" -# define MEDIUMTYPE_IID { \ - 0xfe663fb5, 0xc244, 0x4e1b, \ - { 0x9d, 0x81, 0xc6, 0x28, 0xb4, 0x17, 0xdd, 0x04 } \ -} -enum MediumType -{ - MediumType_Normal =3D 0, - MediumType_Immutable =3D 1, - MediumType_Writethrough =3D 2, - MediumType_Shareable =3D 3, - MediumType_Readonly =3D 4, - MediumType_MultiAttach =3D 5 -}; -/* End of enum MediumType Declaration */ - - -/* Start of enum MediumVariant Declaration */ -# define MEDIUMVARIANT_IID_STR "584ea502-143b-4ab0-ad14-d1028fdf0316" -# define MEDIUMVARIANT_IID { \ - 0x584ea502, 0x143b, 0x4ab0, \ - { 0xad, 0x14, 0xd1, 0x02, 0x8f, 0xdf, 0x03, 0x16 } \ -} -enum MediumVariant -{ - MediumVariant_Standard =3D 0, - MediumVariant_VmdkSplit2G =3D 0x01, - MediumVariant_VmdkStreamOptimized =3D 0x04, - MediumVariant_VmdkESX =3D 0x08, - MediumVariant_Fixed =3D 0x10000, - MediumVariant_Diff =3D 0x20000 -}; -/* End of enum MediumVariant Declaration */ - - -/* Start of enum DataType Declaration */ -# define DATATYPE_IID_STR "d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7" -# define DATATYPE_IID { \ - 0xd90ea51e, 0xa3f1, 0x4a01, \ - { 0xbe, 0xb1, 0xc1, 0x72, 0x3c, 0x0d, 0x3b, 0xa7 } \ -} -enum DataType -{ - DataType_Int32 =3D 0, - DataType_Int8 =3D 1, - DataType_String =3D 2 -}; -/* End of enum DataType Declaration */ - - -/* Start of enum DataFlags Declaration */ -# define DATAFLAGS_IID_STR "86884dcf-1d6b-4f1b-b4bf-f5aa44959d60" -# define DATAFLAGS_IID { \ - 0x86884dcf, 0x1d6b, 0x4f1b, \ - { 0xb4, 0xbf, 0xf5, 0xaa, 0x44, 0x95, 0x9d, 0x60 } \ -} -enum DataFlags -{ - DataFlags_None =3D 0x00, - DataFlags_Mandatory =3D 0x01, - DataFlags_Expert =3D 0x02, - DataFlags_Array =3D 0x04, - DataFlags_FlagMask =3D 0x07 -}; -/* End of enum DataFlags Declaration */ - - -/* Start of enum MediumFormatCapabilities Declaration */ -# define MEDIUMFORMATCAPABILITIES_IID_STR "7342ba79-7ce0-4d94-8f86-5ed5a1= 85d9bd" -# define MEDIUMFORMATCAPABILITIES_IID { \ - 0x7342ba79, 0x7ce0, 0x4d94, \ - { 0x8f, 0x86, 0x5e, 0xd5, 0xa1, 0x85, 0xd9, 0xbd } \ -} -enum MediumFormatCapabilities -{ - MediumFormatCapabilities_Uuid =3D 0x01, - MediumFormatCapabilities_CreateFixed =3D 0x02, - MediumFormatCapabilities_CreateDynamic =3D 0x04, - MediumFormatCapabilities_CreateSplit2G =3D 0x08, - MediumFormatCapabilities_Differencing =3D 0x10, - MediumFormatCapabilities_Asynchronous =3D 0x20, - MediumFormatCapabilities_File =3D 0x40, - MediumFormatCapabilities_Properties =3D 0x80, - MediumFormatCapabilities_TcpNetworking =3D 0x100, - MediumFormatCapabilities_VFS =3D 0x200, - MediumFormatCapabilities_CapabilityMask =3D 0x3FF -}; -/* End of enum MediumFormatCapabilities Declaration */ - - -/* Start of enum MouseButtonState Declaration */ -# define MOUSEBUTTONSTATE_IID_STR "9ee094b8-b28a-4d56-a166-973cb588d7f8" -# define MOUSEBUTTONSTATE_IID { \ - 0x9ee094b8, 0xb28a, 0x4d56, \ - { 0xa1, 0x66, 0x97, 0x3c, 0xb5, 0x88, 0xd7, 0xf8 } \ -} -enum MouseButtonState -{ - MouseButtonState_LeftButton =3D 0x01, - MouseButtonState_RightButton =3D 0x02, - MouseButtonState_MiddleButton =3D 0x04, - MouseButtonState_WheelUp =3D 0x08, - MouseButtonState_WheelDown =3D 0x10, - MouseButtonState_XButton1 =3D 0x20, - MouseButtonState_XButton2 =3D 0x40, - MouseButtonState_MouseStateMask =3D 0x7F -}; -/* End of enum MouseButtonState Declaration */ - - -/* Start of enum FramebufferPixelFormat Declaration */ -# define FRAMEBUFFERPIXELFORMAT_IID_STR "7acfd5ed-29e3-45e3-8136-73c9224f= 3d2d" -# define FRAMEBUFFERPIXELFORMAT_IID { \ - 0x7acfd5ed, 0x29e3, 0x45e3, \ - { 0x81, 0x36, 0x73, 0xc9, 0x22, 0x4f, 0x3d, 0x2d } \ -} -enum FramebufferPixelFormat -{ - FramebufferPixelFormat_Opaque =3D 0, - FramebufferPixelFormat_FOURCC_RGB =3D 0x32424752 -}; -/* End of enum FramebufferPixelFormat Declaration */ - - -/* Start of enum NetworkAttachmentType Declaration */ -# define NETWORKATTACHMENTTYPE_IID_STR "44bce1ee-99f7-4e8e-89fc-80597fd9e= eaf" -# define NETWORKATTACHMENTTYPE_IID { \ - 0x44bce1ee, 0x99f7, 0x4e8e, \ - { 0x89, 0xfc, 0x80, 0x59, 0x7f, 0xd9, 0xee, 0xaf } \ -} -enum NetworkAttachmentType -{ - NetworkAttachmentType_Null =3D 0, - NetworkAttachmentType_NAT =3D 1, - NetworkAttachmentType_Bridged =3D 2, - NetworkAttachmentType_Internal =3D 3, - NetworkAttachmentType_HostOnly =3D 4, - NetworkAttachmentType_VDE =3D 5 -}; -/* End of enum NetworkAttachmentType Declaration */ - - -/* Start of enum NetworkAdapterType Declaration */ -# define NETWORKADAPTERTYPE_IID_STR "3c2281e4-d952-4e87-8c7d-24379cb6a81c" -# define NETWORKADAPTERTYPE_IID { \ - 0x3c2281e4, 0xd952, 0x4e87, \ - { 0x8c, 0x7d, 0x24, 0x37, 0x9c, 0xb6, 0xa8, 0x1c } \ -} -enum NetworkAdapterType -{ - NetworkAdapterType_Null =3D 0, - NetworkAdapterType_Am79C970A =3D 1, - NetworkAdapterType_Am79C973 =3D 2, - NetworkAdapterType_I82540EM =3D 3, - NetworkAdapterType_I82543GC =3D 4, - NetworkAdapterType_I82545EM =3D 5, - NetworkAdapterType_Virtio =3D 6 -}; -/* End of enum NetworkAdapterType Declaration */ - - -/* Start of enum PortMode Declaration */ -# define PORTMODE_IID_STR "533b5fe3-0185-4197-86a7-17e37dd39d76" -# define PORTMODE_IID { \ - 0x533b5fe3, 0x0185, 0x4197, \ - { 0x86, 0xa7, 0x17, 0xe3, 0x7d, 0xd3, 0x9d, 0x76 } \ -} -enum PortMode -{ - PortMode_Disconnected =3D 0, - PortMode_HostPipe =3D 1, - PortMode_HostDevice =3D 2, - PortMode_RawFile =3D 3 -}; -/* End of enum PortMode Declaration */ - - -/* Start of enum USBDeviceState Declaration */ -# define USBDEVICESTATE_IID_STR "b99a2e65-67fb-4882-82fd-f3e5e8193ab4" -# define USBDEVICESTATE_IID { \ - 0xb99a2e65, 0x67fb, 0x4882, \ - { 0x82, 0xfd, 0xf3, 0xe5, 0xe8, 0x19, 0x3a, 0xb4 } \ -} -enum USBDeviceState -{ - USBDeviceState_NotSupported =3D 0, - USBDeviceState_Unavailable =3D 1, - USBDeviceState_Busy =3D 2, - USBDeviceState_Available =3D 3, - USBDeviceState_Held =3D 4, - USBDeviceState_Captured =3D 5 -}; -/* End of enum USBDeviceState Declaration */ - - -/* Start of enum USBDeviceFilterAction Declaration */ -# define USBDEVICEFILTERACTION_IID_STR "cbc30a49-2f4e-43b5-9da6-121320475= 933" -# define USBDEVICEFILTERACTION_IID { \ - 0xcbc30a49, 0x2f4e, 0x43b5, \ - { 0x9d, 0xa6, 0x12, 0x13, 0x20, 0x47, 0x59, 0x33 } \ -} -enum USBDeviceFilterAction -{ - USBDeviceFilterAction_Null =3D 0, - USBDeviceFilterAction_Ignore =3D 1, - USBDeviceFilterAction_Hold =3D 2 -}; -/* End of enum USBDeviceFilterAction Declaration */ - - -/* Start of enum AudioDriverType Declaration */ -# define AUDIODRIVERTYPE_IID_STR "4bcc3d73-c2fe-40db-b72f-0c2ca9d68496" -# define AUDIODRIVERTYPE_IID { \ - 0x4bcc3d73, 0xc2fe, 0x40db, \ - { 0xb7, 0x2f, 0x0c, 0x2c, 0xa9, 0xd6, 0x84, 0x96 } \ -} -enum AudioDriverType -{ - AudioDriverType_Null =3D 0, - AudioDriverType_WinMM =3D 1, - AudioDriverType_OSS =3D 2, - AudioDriverType_ALSA =3D 3, - AudioDriverType_DirectSound =3D 4, - AudioDriverType_CoreAudio =3D 5, - AudioDriverType_MMPM =3D 6, - AudioDriverType_Pulse =3D 7, - AudioDriverType_SolAudio =3D 8 -}; -/* End of enum AudioDriverType Declaration */ - - -/* Start of enum AudioControllerType Declaration */ -# define AUDIOCONTROLLERTYPE_IID_STR "7afd395c-42c3-444e-8788-3ce80292f36= c" -# define AUDIOCONTROLLERTYPE_IID { \ - 0x7afd395c, 0x42c3, 0x444e, \ - { 0x87, 0x88, 0x3c, 0xe8, 0x02, 0x92, 0xf3, 0x6c } \ -} -enum AudioControllerType -{ - AudioControllerType_AC97 =3D 0, - AudioControllerType_SB16 =3D 1, - AudioControllerType_HDA =3D 2 -}; -/* End of enum AudioControllerType Declaration */ - - -/* Start of enum AuthType Declaration */ -# define AUTHTYPE_IID_STR "7eef6ef6-98c2-4dc2-ab35-10d2b292028d" -# define AUTHTYPE_IID { \ - 0x7eef6ef6, 0x98c2, 0x4dc2, \ - { 0xab, 0x35, 0x10, 0xd2, 0xb2, 0x92, 0x02, 0x8d } \ -} -enum AuthType -{ - AuthType_Null =3D 0, - AuthType_External =3D 1, - AuthType_Guest =3D 2 -}; -/* End of enum AuthType Declaration */ - - -/* Start of enum StorageBus Declaration */ -# define STORAGEBUS_IID_STR "eee67ab3-668d-4ef5-91e0-7025fe4a0d7a" -# define STORAGEBUS_IID { \ - 0xeee67ab3, 0x668d, 0x4ef5, \ - { 0x91, 0xe0, 0x70, 0x25, 0xfe, 0x4a, 0x0d, 0x7a } \ -} -enum StorageBus -{ - StorageBus_Null =3D 0, - StorageBus_IDE =3D 1, - StorageBus_SATA =3D 2, - StorageBus_SCSI =3D 3, - StorageBus_Floppy =3D 4, - StorageBus_SAS =3D 5 -}; -/* End of enum StorageBus Declaration */ - - -/* Start of enum StorageControllerType Declaration */ -# define STORAGECONTROLLERTYPE_IID_STR "8a412b8a-f43e-4456-bd37-b474f0879= a58" -# define STORAGECONTROLLERTYPE_IID { \ - 0x8a412b8a, 0xf43e, 0x4456, \ - { 0xbd, 0x37, 0xb4, 0x74, 0xf0, 0x87, 0x9a, 0x58 } \ -} -enum StorageControllerType -{ - StorageControllerType_Null =3D 0, - StorageControllerType_LsiLogic =3D 1, - StorageControllerType_BusLogic =3D 2, - StorageControllerType_IntelAhci =3D 3, - StorageControllerType_PIIX3 =3D 4, - StorageControllerType_PIIX4 =3D 5, - StorageControllerType_ICH6 =3D 6, - StorageControllerType_I82078 =3D 7, - StorageControllerType_LsiLogicSas =3D 8 -}; -/* End of enum StorageControllerType Declaration */ - - -/* Start of enum ChipsetType Declaration */ -# define CHIPSETTYPE_IID_STR "8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394" -# define CHIPSETTYPE_IID { \ - 0x8b4096a8, 0xa7c3, 0x4d3b, \ - { 0xbb, 0xb1, 0x05, 0xa0, 0xa5, 0x1e, 0xc3, 0x94 } \ -} -enum ChipsetType -{ - ChipsetType_Null =3D 0, - ChipsetType_PIIX3 =3D 1, - ChipsetType_ICH9 =3D 2 -}; -/* End of enum ChipsetType Declaration */ - - -/* Start of enum NATAliasMode Declaration */ -# define NATALIASMODE_IID_STR "67772168-50d9-11df-9669-7fb714ee4fa1" -# define NATALIASMODE_IID { \ - 0x67772168, 0x50d9, 0x11df, \ - { 0x96, 0x69, 0x7f, 0xb7, 0x14, 0xee, 0x4f, 0xa1 } \ -} -enum NATAliasMode -{ - NATAliasMode_AliasLog =3D 0x1, - NATAliasMode_AliasProxyOnly =3D 0x02, - NATAliasMode_AliasUseSamePorts =3D 0x04 -}; -/* End of enum NATAliasMode Declaration */ - - -/* Start of enum NATProtocol Declaration */ -# define NATPROTOCOL_IID_STR "e90164be-eb03-11de-94af-fff9b1c1b19f" -# define NATPROTOCOL_IID { \ - 0xe90164be, 0xeb03, 0x11de, \ - { 0x94, 0xaf, 0xff, 0xf9, 0xb1, 0xc1, 0xb1, 0x9f } \ -} -enum NATProtocol -{ - NATProtocol_UDP =3D 0, - NATProtocol_TCP =3D 1 -}; -/* End of enum NATProtocol Declaration */ - - -/* Start of enum BandwidthGroupType Declaration */ -# define BANDWIDTHGROUPTYPE_IID_STR "1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e" -# define BANDWIDTHGROUPTYPE_IID { \ - 0x1d92b67d, 0xdc69, 0x4be9, \ - { 0xad, 0x4c, 0x93, 0xa0, 0x1e, 0x1e, 0x0c, 0x8e } \ -} -enum BandwidthGroupType -{ - BandwidthGroupType_Null =3D 0, - BandwidthGroupType_Disk =3D 1, - BandwidthGroupType_Network =3D 2 -}; -/* End of enum BandwidthGroupType Declaration */ - - -/* Start of enum VBoxEventType Declaration */ -# define VBOXEVENTTYPE_IID_STR "e71c487f-755e-46e9-a476-dd6a5d134597" -# define VBOXEVENTTYPE_IID { \ - 0xe71c487f, 0x755e, 0x46e9, \ - { 0xa4, 0x76, 0xdd, 0x6a, 0x5d, 0x13, 0x45, 0x97 } \ -} -enum VBoxEventType -{ - VBoxEventType_Invalid =3D 0, - VBoxEventType_Any =3D 1, - VBoxEventType_Vetoable =3D 2, - VBoxEventType_MachineEvent =3D 3, - VBoxEventType_SnapshotEvent =3D 4, - VBoxEventType_InputEvent =3D 5, - VBoxEventType_LastWildcard =3D 31, - VBoxEventType_OnMachineStateChanged =3D 32, - VBoxEventType_OnMachineDataChanged =3D 33, - VBoxEventType_OnExtraDataChanged =3D 34, - VBoxEventType_OnExtraDataCanChange =3D 35, - VBoxEventType_OnMediumRegistered =3D 36, - VBoxEventType_OnMachineRegistered =3D 37, - VBoxEventType_OnSessionStateChanged =3D 38, - VBoxEventType_OnSnapshotTaken =3D 39, - VBoxEventType_OnSnapshotDeleted =3D 40, - VBoxEventType_OnSnapshotChanged =3D 41, - VBoxEventType_OnGuestPropertyChanged =3D 42, - VBoxEventType_OnMousePointerShapeChanged =3D 43, - VBoxEventType_OnMouseCapabilityChanged =3D 44, - VBoxEventType_OnKeyboardLedsChanged =3D 45, - VBoxEventType_OnStateChanged =3D 46, - VBoxEventType_OnAdditionsStateChanged =3D 47, - VBoxEventType_OnNetworkAdapterChanged =3D 48, - VBoxEventType_OnSerialPortChanged =3D 49, - VBoxEventType_OnParallelPortChanged =3D 50, - VBoxEventType_OnStorageControllerChanged =3D 51, - VBoxEventType_OnMediumChanged =3D 52, - VBoxEventType_OnVRDEServerChanged =3D 53, - VBoxEventType_OnUSBControllerChanged =3D 54, - VBoxEventType_OnUSBDeviceStateChanged =3D 55, - VBoxEventType_OnSharedFolderChanged =3D 56, - VBoxEventType_OnRuntimeError =3D 57, - VBoxEventType_OnCanShowWindow =3D 58, - VBoxEventType_OnShowWindow =3D 59, - VBoxEventType_OnCPUChanged =3D 60, - VBoxEventType_OnVRDEServerInfoChanged =3D 61, - VBoxEventType_OnEventSourceChanged =3D 62, - VBoxEventType_OnCPUExecutionCapChanged =3D 63, - VBoxEventType_OnGuestKeyboard =3D 64, - VBoxEventType_OnGuestMouse =3D 65, - VBoxEventType_OnNATRedirect =3D 66, - VBoxEventType_OnHostPciDevicePlug =3D 67, - VBoxEventType_OnVBoxSVCAvailabilityChanged =3D 68, - VBoxEventType_OnBandwidthGroupChanged =3D 69, - VBoxEventType_OnGuestMonitorChanged =3D 70, - VBoxEventType_Last =3D 71 -}; -/* End of enum VBoxEventType Declaration */ - - -/* Start of enum GuestMonitorChangedEventType Declaration */ -# define GUESTMONITORCHANGEDEVENTTYPE_IID_STR "ef172985-7e36-4297-95be-e4= 6396968d66" -# define GUESTMONITORCHANGEDEVENTTYPE_IID { \ - 0xef172985, 0x7e36, 0x4297, \ - { 0x95, 0xbe, 0xe4, 0x63, 0x96, 0x96, 0x8d, 0x66 } \ -} -enum GuestMonitorChangedEventType -{ - GuestMonitorChangedEventType_Enabled =3D 0, - GuestMonitorChangedEventType_Disabled =3D 1, - GuestMonitorChangedEventType_NewOrigin =3D 2 -}; -/* End of enum GuestMonitorChangedEventType Declaration */ - - -/* Start of struct IVirtualBoxErrorInfo Declaration */ -# define IVIRTUALBOXERRORINFO_IID_STR "e053d3c0-f493-491b-a735-3a9f0b1fee= d4" -# define IVIRTUALBOXERRORINFO_IID { \ - 0xe053d3c0, 0xf493, 0x491b, \ - { 0xa7, 0x35, 0x3a, 0x9f, 0x0b, 0x1f, 0xee, 0xd4 } \ -} -struct IVirtualBoxErrorInfo_vtbl -{ - struct nsIException_vtbl nsiexception; - - nsresult PR_COM_METHOD (*GetResultCode)(IVirtualBoxErrorInfo *pThis, P= RInt32 *resultCode); - - nsresult PR_COM_METHOD (*GetInterfaceID)(IVirtualBoxErrorInfo *pThis, = PRUnichar * *interfaceID); - - nsresult PR_COM_METHOD (*GetComponent)(IVirtualBoxErrorInfo *pThis, PR= Unichar * *component); - - nsresult PR_COM_METHOD (*GetText)(IVirtualBoxErrorInfo *pThis, PRUnich= ar * *text); - - nsresult PR_COM_METHOD (*GetNext)(IVirtualBoxErrorInfo *pThis, IVirtua= lBoxErrorInfo * *next); - -}; - -struct IVirtualBoxErrorInfo -{ - struct IVirtualBoxErrorInfo_vtbl *vtbl; -}; -/* End of struct IVirtualBoxErrorInfo Declaration */ - - -/* Start of struct IDHCPServer Declaration */ -# define IDHCPSERVER_IID_STR "6cfe387c-74fb-4ca7-bff6-973bec8af7a3" -# define IDHCPSERVER_IID { \ - 0x6cfe387c, 0x74fb, 0x4ca7, \ - { 0xbf, 0xf6, 0x97, 0x3b, 0xec, 0x8a, 0xf7, 0xa3 } \ -} -struct IDHCPServer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IDHCPServer *pThis, PRBool *enabl= ed); - nsresult PR_COM_METHOD (*SetEnabled)(IDHCPServer *pThis, PRBool enable= d); - - nsresult PR_COM_METHOD (*GetIPAddress)(IDHCPServer *pThis, PRUnichar *= *IPAddress); - - nsresult PR_COM_METHOD (*GetNetworkMask)(IDHCPServer *pThis, PRUnichar= * *networkMask); - - nsresult PR_COM_METHOD (*GetNetworkName)(IDHCPServer *pThis, PRUnichar= * *networkName); - - nsresult PR_COM_METHOD (*GetLowerIP)(IDHCPServer *pThis, PRUnichar * *= lowerIP); - - nsresult PR_COM_METHOD (*GetUpperIP)(IDHCPServer *pThis, PRUnichar * *= upperIP); - - nsresult PR_COM_METHOD (*SetConfiguration)( - IDHCPServer *pThis, - PRUnichar * IPAddress, - PRUnichar * networkMask, - PRUnichar * FromIPAddress, - PRUnichar * ToIPAddress - ); - - nsresult PR_COM_METHOD (*Start)( - IDHCPServer *pThis, - PRUnichar * networkName, - PRUnichar * trunkName, - PRUnichar * trunkType - ); - - nsresult PR_COM_METHOD (*Stop)(IDHCPServer *pThis ); - -}; - -struct IDHCPServer -{ - struct IDHCPServer_vtbl *vtbl; -}; -/* End of struct IDHCPServer Declaration */ - - -/* Start of struct IVirtualBox Declaration */ -# define IVIRTUALBOX_IID_STR "d2de270c-1d4b-4c9e-843f-bbb9b47269ff" -# define IVIRTUALBOX_IID { \ - 0xd2de270c, 0x1d4b, 0x4c9e, \ - { 0x84, 0x3f, 0xbb, 0xb9, 0xb4, 0x72, 0x69, 0xff } \ -} -struct IVirtualBox_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetVersion)(IVirtualBox *pThis, PRUnichar * *= version); - - nsresult PR_COM_METHOD (*GetRevision)(IVirtualBox *pThis, PRUint32 *re= vision); - - nsresult PR_COM_METHOD (*GetPackageType)(IVirtualBox *pThis, PRUnichar= * *packageType); - - nsresult PR_COM_METHOD (*GetHomeFolder)(IVirtualBox *pThis, PRUnichar = * *homeFolder); - - nsresult PR_COM_METHOD (*GetSettingsFilePath)(IVirtualBox *pThis, PRUn= ichar * *settingsFilePath); - - nsresult PR_COM_METHOD (*GetHost)(IVirtualBox *pThis, IHost * *host); - - nsresult PR_COM_METHOD (*GetSystemProperties)(IVirtualBox *pThis, ISys= temProperties * *systemProperties); - - nsresult PR_COM_METHOD (*GetMachines)(IVirtualBox *pThis, PRUint32 *ma= chinesSize, IMachine * **machines); - - nsresult PR_COM_METHOD (*GetHardDisks)(IVirtualBox *pThis, PRUint32 *h= ardDisksSize, IMedium * **hardDisks); - - nsresult PR_COM_METHOD (*GetDVDImages)(IVirtualBox *pThis, PRUint32 *D= VDImagesSize, IMedium * **DVDImages); - - nsresult PR_COM_METHOD (*GetFloppyImages)(IVirtualBox *pThis, PRUint32= *floppyImagesSize, IMedium * **floppyImages); - - nsresult PR_COM_METHOD (*GetProgressOperations)(IVirtualBox *pThis, PR= Uint32 *progressOperationsSize, IProgress * **progressOperations); - - nsresult PR_COM_METHOD (*GetGuestOSTypes)(IVirtualBox *pThis, PRUint32= *guestOSTypesSize, IGuestOSType * **guestOSTypes); - - nsresult PR_COM_METHOD (*GetSharedFolders)(IVirtualBox *pThis, PRUint3= 2 *sharedFoldersSize, ISharedFolder * **sharedFolders); - - nsresult PR_COM_METHOD (*GetPerformanceCollector)(IVirtualBox *pThis, = IPerformanceCollector * *performanceCollector); - - nsresult PR_COM_METHOD (*GetDHCPServers)(IVirtualBox *pThis, PRUint32 = *DHCPServersSize, IDHCPServer * **DHCPServers); - - nsresult PR_COM_METHOD (*GetEventSource)(IVirtualBox *pThis, IEventSou= rce * *eventSource); - - nsresult PR_COM_METHOD (*GetExtensionPackManager)(IVirtualBox *pThis, = IExtPackManager * *extensionPackManager); - - nsresult PR_COM_METHOD (*ComposeMachineFilename)( - IVirtualBox *pThis, - PRUnichar * name, - PRUnichar * baseFolder, - PRUnichar * * file - ); - - nsresult PR_COM_METHOD (*CreateMachine)( - IVirtualBox *pThis, - PRUnichar * settingsFile, - PRUnichar * name, - PRUnichar * osTypeId, - PRUnichar * id, - PRBool forceOverwrite, - IMachine * * machine - ); - - nsresult PR_COM_METHOD (*OpenMachine)( - IVirtualBox *pThis, - PRUnichar * settingsFile, - IMachine * * machine - ); - - nsresult PR_COM_METHOD (*RegisterMachine)( - IVirtualBox *pThis, - IMachine * machine - ); - - nsresult PR_COM_METHOD (*FindMachine)( - IVirtualBox *pThis, - PRUnichar * nameOrId, - IMachine * * machine - ); - - nsresult PR_COM_METHOD (*CreateAppliance)( - IVirtualBox *pThis, - IAppliance * * appliance - ); - - nsresult PR_COM_METHOD (*CreateHardDisk)( - IVirtualBox *pThis, - PRUnichar * format, - PRUnichar * location, - IMedium * * medium - ); - - nsresult PR_COM_METHOD (*OpenMedium)( - IVirtualBox *pThis, - PRUnichar * location, - PRUint32 deviceType, - PRUint32 accessMode, - IMedium * * medium - ); - - nsresult PR_COM_METHOD (*FindMedium)( - IVirtualBox *pThis, - PRUnichar * location, - PRUint32 type, - IMedium * * medium - ); - - nsresult PR_COM_METHOD (*GetGuestOSType)( - IVirtualBox *pThis, - PRUnichar * id, - IGuestOSType * * type - ); - - nsresult PR_COM_METHOD (*CreateSharedFolder)( - IVirtualBox *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult PR_COM_METHOD (*RemoveSharedFolder)( - IVirtualBox *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*GetExtraDataKeys)( - IVirtualBox *pThis, - PRUint32 *valueSize, - PRUnichar *** value - ); - - nsresult PR_COM_METHOD (*GetExtraData)( - IVirtualBox *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetExtraData)( - IVirtualBox *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*CreateDHCPServer)( - IVirtualBox *pThis, - PRUnichar * name, - IDHCPServer * * server - ); - - nsresult PR_COM_METHOD (*FindDHCPServerByNetworkName)( - IVirtualBox *pThis, - PRUnichar * name, - IDHCPServer * * server - ); - - nsresult PR_COM_METHOD (*RemoveDHCPServer)( - IVirtualBox *pThis, - IDHCPServer * server - ); - - nsresult PR_COM_METHOD (*CheckFirmwarePresent)( - IVirtualBox *pThis, - PRUint32 firmwareType, - PRUnichar * version, - PRUnichar * * url, - PRUnichar * * file, - PRBool * result - ); - -}; - -struct IVirtualBox -{ - struct IVirtualBox_vtbl *vtbl; -}; -/* End of struct IVirtualBox Declaration */ - - -/* Start of struct IVFSExplorer Declaration */ -# define IVFSEXPLORER_IID_STR "003d7f92-d38e-487f-b790-8c5e8631cb2f" -# define IVFSEXPLORER_IID { \ - 0x003d7f92, 0xd38e, 0x487f, \ - { 0xb7, 0x90, 0x8c, 0x5e, 0x86, 0x31, 0xcb, 0x2f } \ -} -struct IVFSExplorer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetPath)(IVFSExplorer *pThis, PRUnichar * *pa= th); - - nsresult PR_COM_METHOD (*GetType)(IVFSExplorer *pThis, PRUint32 *type); - - nsresult PR_COM_METHOD (*Update)( - IVFSExplorer *pThis, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*Cd)( - IVFSExplorer *pThis, - PRUnichar * aDir, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*CdUp)( - IVFSExplorer *pThis, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*EntryList)( - IVFSExplorer *pThis, - PRUint32 *aNamesSize, - PRUnichar *** aNames, - PRUint32 *aTypesSize, - PRUint32* aTypes, - PRUint32 *aSizesSize, - PRUint32* aSizes, - PRUint32 *aModesSize, - PRUint32* aModes - ); - - nsresult PR_COM_METHOD (*Exists)( - IVFSExplorer *pThis, - PRUint32 aNamesSize, - PRUnichar ** aNames, - PRUint32 *aExistsSize, - PRUnichar *** aExists - ); - - nsresult PR_COM_METHOD (*Remove)( - IVFSExplorer *pThis, - PRUint32 aNamesSize, - PRUnichar ** aNames, - IProgress * * aProgress - ); - -}; - -struct IVFSExplorer -{ - struct IVFSExplorer_vtbl *vtbl; -}; -/* End of struct IVFSExplorer Declaration */ - - -/* Start of struct IAppliance Declaration */ -# define IAPPLIANCE_IID_STR "7b148032-4124-4f46-b56a-b48ac1273f5a" -# define IAPPLIANCE_IID { \ - 0x7b148032, 0x4124, 0x4f46, \ - { 0xb5, 0x6a, 0xb4, 0x8a, 0xc1, 0x27, 0x3f, 0x5a } \ -} -struct IAppliance_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetPath)(IAppliance *pThis, PRUnichar * *path= ); - - nsresult PR_COM_METHOD (*GetDisks)(IAppliance *pThis, PRUint32 *disksS= ize, PRUnichar * **disks); - - nsresult PR_COM_METHOD (*GetVirtualSystemDescriptions)(IAppliance *pTh= is, PRUint32 *virtualSystemDescriptionsSize, IVirtualSystemDescription * **= virtualSystemDescriptions); - - nsresult PR_COM_METHOD (*GetMachines)(IAppliance *pThis, PRUint32 *mac= hinesSize, PRUnichar * **machines); - - nsresult PR_COM_METHOD (*Read)( - IAppliance *pThis, - PRUnichar * file, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*Interpret)(IAppliance *pThis ); - - nsresult PR_COM_METHOD (*ImportMachines)( - IAppliance *pThis, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*CreateVFSExplorer)( - IAppliance *pThis, - PRUnichar * aUri, - IVFSExplorer * * aExplorer - ); - - nsresult PR_COM_METHOD (*Write)( - IAppliance *pThis, - PRUnichar * format, - PRBool manifest, - PRUnichar * path, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*GetWarnings)( - IAppliance *pThis, - PRUint32 *aWarningsSize, - PRUnichar *** aWarnings - ); - -}; - -struct IAppliance -{ - struct IAppliance_vtbl *vtbl; -}; -/* End of struct IAppliance Declaration */ - - -/* Start of struct IVirtualSystemDescription Declaration */ -# define IVIRTUALSYSTEMDESCRIPTION_IID_STR "d7525e6c-531a-4c51-8e04-41235= 083a3d8" -# define IVIRTUALSYSTEMDESCRIPTION_IID { \ - 0xd7525e6c, 0x531a, 0x4c51, \ - { 0x8e, 0x04, 0x41, 0x23, 0x50, 0x83, 0xa3, 0xd8 } \ -} -struct IVirtualSystemDescription_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetCount)(IVirtualSystemDescription *pThis, P= RUint32 *count); - - nsresult PR_COM_METHOD (*GetDescription)( - IVirtualSystemDescription *pThis, - PRUint32 *aTypesSize, - PRUint32* aTypes, - PRUint32 *aRefsSize, - PRUnichar *** aRefs, - PRUint32 *aOvfValuesSize, - PRUnichar *** aOvfValues, - PRUint32 *aVBoxValuesSize, - PRUnichar *** aVBoxValues, - PRUint32 *aExtraConfigValuesSize, - PRUnichar *** aExtraConfigValues - ); - - nsresult PR_COM_METHOD (*GetDescriptionByType)( - IVirtualSystemDescription *pThis, - PRUint32 aType, - PRUint32 *aTypesSize, - PRUint32* aTypes, - PRUint32 *aRefsSize, - PRUnichar *** aRefs, - PRUint32 *aOvfValuesSize, - PRUnichar *** aOvfValues, - PRUint32 *aVBoxValuesSize, - PRUnichar *** aVBoxValues, - PRUint32 *aExtraConfigValuesSize, - PRUnichar *** aExtraConfigValues - ); - - nsresult PR_COM_METHOD (*GetValuesByType)( - IVirtualSystemDescription *pThis, - PRUint32 aType, - PRUint32 aWhich, - PRUint32 *aValuesSize, - PRUnichar *** aValues - ); - - nsresult PR_COM_METHOD (*SetFinalValues)( - IVirtualSystemDescription *pThis, - PRUint32 aEnabledSize, - PRBool* aEnabled, - PRUint32 aVBoxValuesSize, - PRUnichar ** aVBoxValues, - PRUint32 aExtraConfigValuesSize, - PRUnichar ** aExtraConfigValues - ); - - nsresult PR_COM_METHOD (*AddDescription)( - IVirtualSystemDescription *pThis, - PRUint32 aType, - PRUnichar * aVBoxValue, - PRUnichar * aExtraConfigValue - ); - -}; - -struct IVirtualSystemDescription -{ - struct IVirtualSystemDescription_vtbl *vtbl; -}; -/* End of struct IVirtualSystemDescription Declaration */ - - -/* Start of struct IInternalMachineControl Declaration */ -# define IINTERNALMACHINECONTROL_IID_STR "476126af-e223-4490-a8a0-b1f1575= be013" -# define IINTERNALMACHINECONTROL_IID { \ - 0x476126af, 0xe223, 0x4490, \ - { 0xa8, 0xa0, 0xb1, 0xf1, 0x57, 0x5b, 0xe0, 0x13 } \ -} -struct IInternalMachineControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*SetRemoveSavedStateFile)( - IInternalMachineControl *pThis, - PRBool aRemove - ); - - nsresult PR_COM_METHOD (*UpdateState)( - IInternalMachineControl *pThis, - PRUint32 state - ); - - nsresult PR_COM_METHOD (*GetIPCId)( - IInternalMachineControl *pThis, - PRUnichar * * id - ); - - nsresult PR_COM_METHOD (*BeginPowerUp)( - IInternalMachineControl *pThis, - IProgress * aProgress - ); - - nsresult PR_COM_METHOD (*EndPowerUp)( - IInternalMachineControl *pThis, - PRInt32 result - ); - - nsresult PR_COM_METHOD (*RunUSBDeviceFilters)( - IInternalMachineControl *pThis, - IUSBDevice * device, - PRBool * matched, - PRUint32 * maskedInterfaces - ); - - nsresult PR_COM_METHOD (*CaptureUSBDevice)( - IInternalMachineControl *pThis, - PRUnichar * id - ); - - nsresult PR_COM_METHOD (*DetachUSBDevice)( - IInternalMachineControl *pThis, - PRUnichar * id, - PRBool done - ); - - nsresult PR_COM_METHOD (*AutoCaptureUSBDevices)(IInternalMachineContro= l *pThis ); - - nsresult PR_COM_METHOD (*DetachAllUSBDevices)( - IInternalMachineControl *pThis, - PRBool done - ); - - nsresult PR_COM_METHOD (*OnSessionEnd)( - IInternalMachineControl *pThis, - ISession * session, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*BeginSavingState)( - IInternalMachineControl *pThis, - IProgress * * progress, - PRUnichar * * stateFilePath - ); - - nsresult PR_COM_METHOD (*EndSavingState)( - IInternalMachineControl *pThis, - PRInt32 result, - PRUnichar * errMsg - ); - - nsresult PR_COM_METHOD (*AdoptSavedState)( - IInternalMachineControl *pThis, - PRUnichar * savedStateFile - ); - - nsresult PR_COM_METHOD (*BeginTakingSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - PRUnichar * name, - PRUnichar * description, - IProgress * consoleProgress, - PRBool fTakingSnapshotOnline, - PRUnichar * * stateFilePath - ); - - nsresult PR_COM_METHOD (*EndTakingSnapshot)( - IInternalMachineControl *pThis, - PRBool success - ); - - nsresult PR_COM_METHOD (*DeleteSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - PRUnichar * id, - PRUint32 * machineState, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*FinishOnlineMergeMedium)( - IInternalMachineControl *pThis, - IMediumAttachment * mediumAttachment, - IMedium * source, - IMedium * target, - PRBool mergeForward, - IMedium * parentForTarget, - PRUint32 childrenToReparentSize, - IMedium ** childrenToReparent - ); - - nsresult PR_COM_METHOD (*RestoreSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - ISnapshot * snapshot, - PRUint32 * machineState, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*PullGuestProperties)( - IInternalMachineControl *pThis, - PRUint32 *nameSize, - PRUnichar *** name, - PRUint32 *valueSize, - PRUnichar *** value, - PRUint32 *timestampSize, - PRInt64* timestamp, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult PR_COM_METHOD (*PushGuestProperty)( - IInternalMachineControl *pThis, - PRUnichar * name, - PRUnichar * value, - PRInt64 timestamp, - PRUnichar * flags - ); - - nsresult PR_COM_METHOD (*LockMedia)(IInternalMachineControl *pThis ); - - nsresult PR_COM_METHOD (*UnlockMedia)(IInternalMachineControl *pThis ); - -}; - -struct IInternalMachineControl -{ - struct IInternalMachineControl_vtbl *vtbl; -}; -/* End of struct IInternalMachineControl Declaration */ - - -/* Start of struct IBIOSSettings Declaration */ -# define IBIOSSETTINGS_IID_STR "38b54279-dc35-4f5e-a431-835b867c6b5e" -# define IBIOSSETTINGS_IID { \ - 0x38b54279, 0xdc35, 0x4f5e, \ - { 0xa4, 0x31, 0x83, 0x5b, 0x86, 0x7c, 0x6b, 0x5e } \ -} -struct IBIOSSettings_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetLogoFadeIn)(IBIOSSettings *pThis, PRBool *= logoFadeIn); - nsresult PR_COM_METHOD (*SetLogoFadeIn)(IBIOSSettings *pThis, PRBool l= ogoFadeIn); - - nsresult PR_COM_METHOD (*GetLogoFadeOut)(IBIOSSettings *pThis, PRBool = *logoFadeOut); - nsresult PR_COM_METHOD (*SetLogoFadeOut)(IBIOSSettings *pThis, PRBool = logoFadeOut); - - nsresult PR_COM_METHOD (*GetLogoDisplayTime)(IBIOSSettings *pThis, PRU= int32 *logoDisplayTime); - nsresult PR_COM_METHOD (*SetLogoDisplayTime)(IBIOSSettings *pThis, PRU= int32 logoDisplayTime); - - nsresult PR_COM_METHOD (*GetLogoImagePath)(IBIOSSettings *pThis, PRUni= char * *logoImagePath); - nsresult PR_COM_METHOD (*SetLogoImagePath)(IBIOSSettings *pThis, PRUni= char * logoImagePath); - - nsresult PR_COM_METHOD (*GetBootMenuMode)(IBIOSSettings *pThis, PRUint= 32 *bootMenuMode); - nsresult PR_COM_METHOD (*SetBootMenuMode)(IBIOSSettings *pThis, PRUint= 32 bootMenuMode); - - nsresult PR_COM_METHOD (*GetACPIEnabled)(IBIOSSettings *pThis, PRBool = *ACPIEnabled); - nsresult PR_COM_METHOD (*SetACPIEnabled)(IBIOSSettings *pThis, PRBool = ACPIEnabled); - - nsresult PR_COM_METHOD (*GetIOAPICEnabled)(IBIOSSettings *pThis, PRBoo= l *IOAPICEnabled); - nsresult PR_COM_METHOD (*SetIOAPICEnabled)(IBIOSSettings *pThis, PRBoo= l IOAPICEnabled); - - nsresult PR_COM_METHOD (*GetTimeOffset)(IBIOSSettings *pThis, PRInt64 = *timeOffset); - nsresult PR_COM_METHOD (*SetTimeOffset)(IBIOSSettings *pThis, PRInt64 = timeOffset); - - nsresult PR_COM_METHOD (*GetPXEDebugEnabled)(IBIOSSettings *pThis, PRB= ool *PXEDebugEnabled); - nsresult PR_COM_METHOD (*SetPXEDebugEnabled)(IBIOSSettings *pThis, PRB= ool PXEDebugEnabled); - -}; - -struct IBIOSSettings -{ - struct IBIOSSettings_vtbl *vtbl; -}; -/* End of struct IBIOSSettings Declaration */ - - -/* Start of struct IEventContext Declaration */ -# define IEVENTCONTEXT_IID_STR "7563F4E7-1583-40F7-B4C4-C9BA02CB0AE3" -# define IEVENTCONTEXT_IID { \ - 0x7563F4E7, 0x1583, 0x40F7, \ - { 0xB4, 0xC4, 0xC9, 0xBA, 0x02, 0xCB, 0x0A, 0xE3 } \ -} -struct IEventContext_vtbl -{ - struct nsISupports_vtbl nsisupports; - -}; - -struct IEventContext -{ - struct IEventContext_vtbl *vtbl; -}; -/* End of struct IEventContext Declaration */ - - -/* Start of struct IPciAddress Declaration */ -# define IPCIADDRESS_IID_STR "D88B324F-DB19-4D3B-A1A9-BF5B127199A8" -# define IPCIADDRESS_IID { \ - 0xD88B324F, 0xDB19, 0x4D3B, \ - { 0xA1, 0xA9, 0xBF, 0x5B, 0x12, 0x71, 0x99, 0xA8 } \ -} -struct IPciAddress_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetBus)(IPciAddress *pThis, PRInt16 *bus); - nsresult PR_COM_METHOD (*SetBus)(IPciAddress *pThis, PRInt16 bus); - - nsresult PR_COM_METHOD (*GetDevice)(IPciAddress *pThis, PRInt16 *devic= e); - nsresult PR_COM_METHOD (*SetDevice)(IPciAddress *pThis, PRInt16 device= ); - - nsresult PR_COM_METHOD (*GetDevFunction)(IPciAddress *pThis, PRInt16 *= devFunction); - nsresult PR_COM_METHOD (*SetDevFunction)(IPciAddress *pThis, PRInt16 d= evFunction); - - nsresult PR_COM_METHOD (*AsLong)( - IPciAddress *pThis, - PRInt32 * result - ); - - nsresult PR_COM_METHOD (*FromLong)( - IPciAddress *pThis, - PRInt32 number - ); - -}; - -struct IPciAddress -{ - struct IPciAddress_vtbl *vtbl; -}; -/* End of struct IPciAddress Declaration */ - - -/* Start of struct IPciDeviceAttachment Declaration */ -# define IPCIDEVICEATTACHMENT_IID_STR "91f33d6f-e621-4f70-a77e-15f0e3c714= d5" -# define IPCIDEVICEATTACHMENT_IID { \ - 0x91f33d6f, 0xe621, 0x4f70, \ - { 0xa7, 0x7e, 0x15, 0xf0, 0xe3, 0xc7, 0x14, 0xd5 } \ -} -struct IPciDeviceAttachment_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IPciDeviceAttachment *pThis, PRUnich= ar * *name); - - nsresult PR_COM_METHOD (*GetIsPhysicalDevice)(IPciDeviceAttachment *pT= his, PRBool *isPhysicalDevice); - - nsresult PR_COM_METHOD (*GetHostAddress)(IPciDeviceAttachment *pThis, = PRInt32 *hostAddress); - - nsresult PR_COM_METHOD (*GetGuestAddress)(IPciDeviceAttachment *pThis,= PRInt32 *guestAddress); - -}; - -struct IPciDeviceAttachment -{ - struct IPciDeviceAttachment_vtbl *vtbl; -}; -/* End of struct IPciDeviceAttachment Declaration */ - - -/* Start of struct IMachine Declaration */ -# define IMACHINE_IID_STR "662c175e-a69d-40b8-a77a-1d719d0ab062" -# define IMACHINE_IID { \ - 0x662c175e, 0xa69d, 0x40b8, \ - { 0xa7, 0x7a, 0x1d, 0x71, 0x9d, 0x0a, 0xb0, 0x62 } \ -} -struct IMachine_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetParent)(IMachine *pThis, IVirtualBox * *pa= rent); - - nsresult PR_COM_METHOD (*GetAccessible)(IMachine *pThis, PRBool *acces= sible); - - nsresult PR_COM_METHOD (*GetAccessError)(IMachine *pThis, IVirtualBoxE= rrorInfo * *accessError); - - nsresult PR_COM_METHOD (*GetName)(IMachine *pThis, PRUnichar * *name); - nsresult PR_COM_METHOD (*SetName)(IMachine *pThis, PRUnichar * name); - - nsresult PR_COM_METHOD (*GetDescription)(IMachine *pThis, PRUnichar * = *description); - nsresult PR_COM_METHOD (*SetDescription)(IMachine *pThis, PRUnichar * = description); - - nsresult PR_COM_METHOD (*GetId)(IMachine *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetOSTypeId)(IMachine *pThis, PRUnichar * *OS= TypeId); - nsresult PR_COM_METHOD (*SetOSTypeId)(IMachine *pThis, PRUnichar * OST= ypeId); - - nsresult PR_COM_METHOD (*GetHardwareVersion)(IMachine *pThis, PRUnicha= r * *HardwareVersion); - nsresult PR_COM_METHOD (*SetHardwareVersion)(IMachine *pThis, PRUnicha= r * HardwareVersion); - - nsresult PR_COM_METHOD (*GetHardwareUUID)(IMachine *pThis, PRUnichar *= *hardwareUUID); - nsresult PR_COM_METHOD (*SetHardwareUUID)(IMachine *pThis, PRUnichar *= hardwareUUID); - - nsresult PR_COM_METHOD (*GetCPUCount)(IMachine *pThis, PRUint32 *CPUCo= unt); - nsresult PR_COM_METHOD (*SetCPUCount)(IMachine *pThis, PRUint32 CPUCou= nt); - - nsresult PR_COM_METHOD (*GetCPUHotPlugEnabled)(IMachine *pThis, PRBool= *CPUHotPlugEnabled); - nsresult PR_COM_METHOD (*SetCPUHotPlugEnabled)(IMachine *pThis, PRBool= CPUHotPlugEnabled); - - nsresult PR_COM_METHOD (*GetCPUExecutionCap)(IMachine *pThis, PRUint32= *CPUExecutionCap); - nsresult PR_COM_METHOD (*SetCPUExecutionCap)(IMachine *pThis, PRUint32= CPUExecutionCap); - - nsresult PR_COM_METHOD (*GetMemorySize)(IMachine *pThis, PRUint32 *mem= orySize); - nsresult PR_COM_METHOD (*SetMemorySize)(IMachine *pThis, PRUint32 memo= rySize); - - nsresult PR_COM_METHOD (*GetMemoryBalloonSize)(IMachine *pThis, PRUint= 32 *memoryBalloonSize); - nsresult PR_COM_METHOD (*SetMemoryBalloonSize)(IMachine *pThis, PRUint= 32 memoryBalloonSize); - - nsresult PR_COM_METHOD (*GetPageFusionEnabled)(IMachine *pThis, PRBool= *PageFusionEnabled); - nsresult PR_COM_METHOD (*SetPageFusionEnabled)(IMachine *pThis, PRBool= PageFusionEnabled); - - nsresult PR_COM_METHOD (*GetVRAMSize)(IMachine *pThis, PRUint32 *VRAMS= ize); - nsresult PR_COM_METHOD (*SetVRAMSize)(IMachine *pThis, PRUint32 VRAMSi= ze); - - nsresult PR_COM_METHOD (*GetAccelerate3DEnabled)(IMachine *pThis, PRBo= ol *accelerate3DEnabled); - nsresult PR_COM_METHOD (*SetAccelerate3DEnabled)(IMachine *pThis, PRBo= ol accelerate3DEnabled); - - nsresult PR_COM_METHOD (*GetAccelerate2DVideoEnabled)(IMachine *pThis,= PRBool *accelerate2DVideoEnabled); - nsresult PR_COM_METHOD (*SetAccelerate2DVideoEnabled)(IMachine *pThis,= PRBool accelerate2DVideoEnabled); - - nsresult PR_COM_METHOD (*GetMonitorCount)(IMachine *pThis, PRUint32 *m= onitorCount); - nsresult PR_COM_METHOD (*SetMonitorCount)(IMachine *pThis, PRUint32 mo= nitorCount); - - nsresult PR_COM_METHOD (*GetBIOSSettings)(IMachine *pThis, IBIOSSettin= gs * *BIOSSettings); - - nsresult PR_COM_METHOD (*GetFirmwareType)(IMachine *pThis, PRUint32 *f= irmwareType); - nsresult PR_COM_METHOD (*SetFirmwareType)(IMachine *pThis, PRUint32 fi= rmwareType); - - nsresult PR_COM_METHOD (*GetPointingHidType)(IMachine *pThis, PRUint32= *pointingHidType); - nsresult PR_COM_METHOD (*SetPointingHidType)(IMachine *pThis, PRUint32= pointingHidType); - - nsresult PR_COM_METHOD (*GetKeyboardHidType)(IMachine *pThis, PRUint32= *keyboardHidType); - nsresult PR_COM_METHOD (*SetKeyboardHidType)(IMachine *pThis, PRUint32= keyboardHidType); - - nsresult PR_COM_METHOD (*GetHpetEnabled)(IMachine *pThis, PRBool *hpet= Enabled); - nsresult PR_COM_METHOD (*SetHpetEnabled)(IMachine *pThis, PRBool hpetE= nabled); - - nsresult PR_COM_METHOD (*GetChipsetType)(IMachine *pThis, PRUint32 *ch= ipsetType); - nsresult PR_COM_METHOD (*SetChipsetType)(IMachine *pThis, PRUint32 chi= psetType); - - nsresult PR_COM_METHOD (*GetSnapshotFolder)(IMachine *pThis, PRUnichar= * *snapshotFolder); - nsresult PR_COM_METHOD (*SetSnapshotFolder)(IMachine *pThis, PRUnichar= * snapshotFolder); - - nsresult PR_COM_METHOD (*GetVRDEServer)(IMachine *pThis, IVRDEServer *= *VRDEServer); - - nsresult PR_COM_METHOD (*GetMediumAttachments)(IMachine *pThis, PRUint= 32 *mediumAttachmentsSize, IMediumAttachment * **mediumAttachments); - - nsresult PR_COM_METHOD (*GetUSBController)(IMachine *pThis, IUSBContro= ller * *USBController); - - nsresult PR_COM_METHOD (*GetAudioAdapter)(IMachine *pThis, IAudioAdapt= er * *audioAdapter); - - nsresult PR_COM_METHOD (*GetStorageControllers)(IMachine *pThis, PRUin= t32 *storageControllersSize, IStorageController * **storageControllers); - - nsresult PR_COM_METHOD (*GetSettingsFilePath)(IMachine *pThis, PRUnich= ar * *settingsFilePath); - - nsresult PR_COM_METHOD (*GetSettingsModified)(IMachine *pThis, PRBool = *settingsModified); - - nsresult PR_COM_METHOD (*GetSessionState)(IMachine *pThis, PRUint32 *s= essionState); - - nsresult PR_COM_METHOD (*GetSessionType)(IMachine *pThis, PRUnichar * = *sessionType); - - nsresult PR_COM_METHOD (*GetSessionPid)(IMachine *pThis, PRUint32 *ses= sionPid); - - nsresult PR_COM_METHOD (*GetState)(IMachine *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetLastStateChange)(IMachine *pThis, PRInt64 = *lastStateChange); - - nsresult PR_COM_METHOD (*GetStateFilePath)(IMachine *pThis, PRUnichar = * *stateFilePath); - - nsresult PR_COM_METHOD (*GetLogFolder)(IMachine *pThis, PRUnichar * *l= ogFolder); - - nsresult PR_COM_METHOD (*GetCurrentSnapshot)(IMachine *pThis, ISnapsho= t * *currentSnapshot); - - nsresult PR_COM_METHOD (*GetSnapshotCount)(IMachine *pThis, PRUint32 *= snapshotCount); - - nsresult PR_COM_METHOD (*GetCurrentStateModified)(IMachine *pThis, PRB= ool *currentStateModified); - - nsresult PR_COM_METHOD (*GetSharedFolders)(IMachine *pThis, PRUint32 *= sharedFoldersSize, ISharedFolder * **sharedFolders); - - nsresult PR_COM_METHOD (*GetClipboardMode)(IMachine *pThis, PRUint32 *= clipboardMode); - nsresult PR_COM_METHOD (*SetClipboardMode)(IMachine *pThis, PRUint32 c= lipboardMode); - - nsresult PR_COM_METHOD (*GetGuestPropertyNotificationPatterns)(IMachin= e *pThis, PRUnichar * *guestPropertyNotificationPatterns); - nsresult PR_COM_METHOD (*SetGuestPropertyNotificationPatterns)(IMachin= e *pThis, PRUnichar * guestPropertyNotificationPatterns); - - nsresult PR_COM_METHOD (*GetTeleporterEnabled)(IMachine *pThis, PRBool= *teleporterEnabled); - nsresult PR_COM_METHOD (*SetTeleporterEnabled)(IMachine *pThis, PRBool= teleporterEnabled); - - nsresult PR_COM_METHOD (*GetTeleporterPort)(IMachine *pThis, PRUint32 = *teleporterPort); - nsresult PR_COM_METHOD (*SetTeleporterPort)(IMachine *pThis, PRUint32 = teleporterPort); - - nsresult PR_COM_METHOD (*GetTeleporterAddress)(IMachine *pThis, PRUnic= har * *teleporterAddress); - nsresult PR_COM_METHOD (*SetTeleporterAddress)(IMachine *pThis, PRUnic= har * teleporterAddress); - - nsresult PR_COM_METHOD (*GetTeleporterPassword)(IMachine *pThis, PRUni= char * *teleporterPassword); - nsresult PR_COM_METHOD (*SetTeleporterPassword)(IMachine *pThis, PRUni= char * teleporterPassword); - - nsresult PR_COM_METHOD (*GetFaultToleranceState)(IMachine *pThis, PRUi= nt32 *faultToleranceState); - nsresult PR_COM_METHOD (*SetFaultToleranceState)(IMachine *pThis, PRUi= nt32 faultToleranceState); - - nsresult PR_COM_METHOD (*GetFaultTolerancePort)(IMachine *pThis, PRUin= t32 *faultTolerancePort); - nsresult PR_COM_METHOD (*SetFaultTolerancePort)(IMachine *pThis, PRUin= t32 faultTolerancePort); - - nsresult PR_COM_METHOD (*GetFaultToleranceAddress)(IMachine *pThis, PR= Unichar * *faultToleranceAddress); - nsresult PR_COM_METHOD (*SetFaultToleranceAddress)(IMachine *pThis, PR= Unichar * faultToleranceAddress); - - nsresult PR_COM_METHOD (*GetFaultTolerancePassword)(IMachine *pThis, P= RUnichar * *faultTolerancePassword); - nsresult PR_COM_METHOD (*SetFaultTolerancePassword)(IMachine *pThis, P= RUnichar * faultTolerancePassword); - - nsresult PR_COM_METHOD (*GetFaultToleranceSyncInterval)(IMachine *pThi= s, PRUint32 *faultToleranceSyncInterval); - nsresult PR_COM_METHOD (*SetFaultToleranceSyncInterval)(IMachine *pThi= s, PRUint32 faultToleranceSyncInterval); - - nsresult PR_COM_METHOD (*GetRTCUseUTC)(IMachine *pThis, PRBool *RTCUse= UTC); - nsresult PR_COM_METHOD (*SetRTCUseUTC)(IMachine *pThis, PRBool RTCUseU= TC); - - nsresult PR_COM_METHOD (*GetIoCacheEnabled)(IMachine *pThis, PRBool *i= oCacheEnabled); - nsresult PR_COM_METHOD (*SetIoCacheEnabled)(IMachine *pThis, PRBool io= CacheEnabled); - - nsresult PR_COM_METHOD (*GetIoCacheSize)(IMachine *pThis, PRUint32 *io= CacheSize); - nsresult PR_COM_METHOD (*SetIoCacheSize)(IMachine *pThis, PRUint32 ioC= acheSize); - - nsresult PR_COM_METHOD (*GetBandwidthControl)(IMachine *pThis, IBandwi= dthControl * *bandwidthControl); - - nsresult PR_COM_METHOD (*GetPciDeviceAssignments)(IMachine *pThis, PRU= int32 *pciDeviceAssignmentsSize, IPciDeviceAttachment * **pciDeviceAssignme= nts); - - nsresult PR_COM_METHOD (*LockMachine)( - IMachine *pThis, - ISession * session, - PRUint32 lockType - ); - - nsresult PR_COM_METHOD (*LaunchVMProcess)( - IMachine *pThis, - ISession * session, - PRUnichar * type, - PRUnichar * environment, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*SetBootOrder)( - IMachine *pThis, - PRUint32 position, - PRUint32 device - ); - - nsresult PR_COM_METHOD (*GetBootOrder)( - IMachine *pThis, - PRUint32 position, - PRUint32 * device - ); - - nsresult PR_COM_METHOD (*AttachDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRUint32 type, - IMedium * medium - ); - - nsresult PR_COM_METHOD (*DetachDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device - ); - - nsresult PR_COM_METHOD (*PassthroughDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool passthrough - ); - - nsresult PR_COM_METHOD (*SetBandwidthGroupForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IBandwidthGroup * bandwidthGroup - ); - - nsresult PR_COM_METHOD (*MountMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMedium * medium, - PRBool force - ); - - nsresult PR_COM_METHOD (*GetMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMedium * * medium - ); - - nsresult PR_COM_METHOD (*GetMediumAttachmentsOfController)( - IMachine *pThis, - PRUnichar * name, - PRUint32 *mediumAttachmentsSize, - IMediumAttachment *** mediumAttachments - ); - - nsresult PR_COM_METHOD (*GetMediumAttachment)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMediumAttachment * * attachment - ); - - nsresult PR_COM_METHOD (*AttachHostPciDevice)( - IMachine *pThis, - PRInt32 hostAddress, - PRInt32 desiredGuestAddress, - IEventContext * eventContext, - PRBool tryToUnbind - ); - - nsresult PR_COM_METHOD (*DetachHostPciDevice)( - IMachine *pThis, - PRInt32 hostAddress - ); - - nsresult PR_COM_METHOD (*GetNetworkAdapter)( - IMachine *pThis, - PRUint32 slot, - INetworkAdapter * * adapter - ); - - nsresult PR_COM_METHOD (*AddStorageController)( - IMachine *pThis, - PRUnichar * name, - PRUint32 connectionType, - IStorageController * * controller - ); - - nsresult PR_COM_METHOD (*GetStorageControllerByName)( - IMachine *pThis, - PRUnichar * name, - IStorageController * * storageController - ); - - nsresult PR_COM_METHOD (*GetStorageControllerByInstance)( - IMachine *pThis, - PRUint32 instance, - IStorageController * * storageController - ); - - nsresult PR_COM_METHOD (*RemoveStorageController)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*SetStorageControllerBootable)( - IMachine *pThis, - PRUnichar * name, - PRBool bootable - ); - - nsresult PR_COM_METHOD (*GetSerialPort)( - IMachine *pThis, - PRUint32 slot, - ISerialPort * * port - ); - - nsresult PR_COM_METHOD (*GetParallelPort)( - IMachine *pThis, - PRUint32 slot, - IParallelPort * * port - ); - - nsresult PR_COM_METHOD (*GetExtraDataKeys)( - IMachine *pThis, - PRUint32 *valueSize, - PRUnichar *** value - ); - - nsresult PR_COM_METHOD (*GetExtraData)( - IMachine *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetExtraData)( - IMachine *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetCPUProperty)( - IMachine *pThis, - PRUint32 property, - PRBool * value - ); - - nsresult PR_COM_METHOD (*SetCPUProperty)( - IMachine *pThis, - PRUint32 property, - PRBool value - ); - - nsresult PR_COM_METHOD (*GetCPUIDLeaf)( - IMachine *pThis, - PRUint32 id, - PRUint32 * valEax, - PRUint32 * valEbx, - PRUint32 * valEcx, - PRUint32 * valEdx - ); - - nsresult PR_COM_METHOD (*SetCPUIDLeaf)( - IMachine *pThis, - PRUint32 id, - PRUint32 valEax, - PRUint32 valEbx, - PRUint32 valEcx, - PRUint32 valEdx - ); - - nsresult PR_COM_METHOD (*RemoveCPUIDLeaf)( - IMachine *pThis, - PRUint32 id - ); - - nsresult PR_COM_METHOD (*RemoveAllCPUIDLeaves)(IMachine *pThis ); - - nsresult PR_COM_METHOD (*GetHWVirtExProperty)( - IMachine *pThis, - PRUint32 property, - PRBool * value - ); - - nsresult PR_COM_METHOD (*SetHWVirtExProperty)( - IMachine *pThis, - PRUint32 property, - PRBool value - ); - - nsresult PR_COM_METHOD (*SaveSettings)(IMachine *pThis ); - - nsresult PR_COM_METHOD (*DiscardSettings)(IMachine *pThis ); - - nsresult PR_COM_METHOD (*Unregister)( - IMachine *pThis, - PRUint32 cleanupMode, - PRUint32 *aMediaSize, - IMedium *** aMedia - ); - - nsresult PR_COM_METHOD (*Delete)( - IMachine *pThis, - PRUint32 aMediaSize, - IMedium ** aMedia, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*Export)( - IMachine *pThis, - IAppliance * aAppliance, - PRUnichar * location, - IVirtualSystemDescription * * aDescription - ); - - nsresult PR_COM_METHOD (*FindSnapshot)( - IMachine *pThis, - PRUnichar * nameOrId, - ISnapshot * * snapshot - ); - - nsresult PR_COM_METHOD (*CreateSharedFolder)( - IMachine *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult PR_COM_METHOD (*RemoveSharedFolder)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*CanShowConsoleWindow)( - IMachine *pThis, - PRBool * canShow - ); - - nsresult PR_COM_METHOD (*ShowConsoleWindow)( - IMachine *pThis, - PRInt64 * winId - ); - - nsresult PR_COM_METHOD (*GetGuestProperty)( - IMachine *pThis, - PRUnichar * name, - PRUnichar * * value, - PRInt64 * timestamp, - PRUnichar * * flags - ); - - nsresult PR_COM_METHOD (*GetGuestPropertyValue)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*GetGuestPropertyTimestamp)( - IMachine *pThis, - PRUnichar * property, - PRInt64 * value - ); - - nsresult PR_COM_METHOD (*SetGuestProperty)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * value, - PRUnichar * flags - ); - - nsresult PR_COM_METHOD (*SetGuestPropertyValue)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*EnumerateGuestProperties)( - IMachine *pThis, - PRUnichar * patterns, - PRUint32 *nameSize, - PRUnichar *** name, - PRUint32 *valueSize, - PRUnichar *** value, - PRUint32 *timestampSize, - PRInt64* timestamp, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult PR_COM_METHOD (*QuerySavedGuestSize)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height - ); - - nsresult PR_COM_METHOD (*QuerySavedThumbnailSize)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * size, - PRUint32 * width, - PRUint32 * height - ); - - nsresult PR_COM_METHOD (*ReadSavedThumbnailToArray)( - IMachine *pThis, - PRUint32 screenId, - PRBool BGR, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*ReadSavedThumbnailPNGToArray)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*QuerySavedScreenshotPNGSize)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * size, - PRUint32 * width, - PRUint32 * height - ); - - nsresult PR_COM_METHOD (*ReadSavedScreenshotPNGToArray)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*HotPlugCPU)( - IMachine *pThis, - PRUint32 cpu - ); - - nsresult PR_COM_METHOD (*HotUnplugCPU)( - IMachine *pThis, - PRUint32 cpu - ); - - nsresult PR_COM_METHOD (*GetCPUStatus)( - IMachine *pThis, - PRUint32 cpu, - PRBool * attached - ); - - nsresult PR_COM_METHOD (*QueryLogFilename)( - IMachine *pThis, - PRUint32 idx, - PRUnichar * * filename - ); - - nsresult PR_COM_METHOD (*ReadLog)( - IMachine *pThis, - PRUint32 idx, - PRInt64 offset, - PRInt64 size, - PRUint32 *dataSize, - PRUint8** data - ); - -}; - -struct IMachine -{ - struct IMachine_vtbl *vtbl; -}; -/* End of struct IMachine Declaration */ - - -/* Start of struct IVRDEServerInfo Declaration */ -# define IVRDESERVERINFO_IID_STR "714434a1-58c3-4aab-9049-7652c5df113b" -# define IVRDESERVERINFO_IID { \ - 0x714434a1, 0x58c3, 0x4aab, \ - { 0x90, 0x49, 0x76, 0x52, 0xc5, 0xdf, 0x11, 0x3b } \ -} -struct IVRDEServerInfo_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetActive)(IVRDEServerInfo *pThis, PRBool *ac= tive); - - nsresult PR_COM_METHOD (*GetPort)(IVRDEServerInfo *pThis, PRInt32 *por= t); - - nsresult PR_COM_METHOD (*GetNumberOfClients)(IVRDEServerInfo *pThis, P= RUint32 *numberOfClients); - - nsresult PR_COM_METHOD (*GetBeginTime)(IVRDEServerInfo *pThis, PRInt64= *beginTime); - - nsresult PR_COM_METHOD (*GetEndTime)(IVRDEServerInfo *pThis, PRInt64 *= endTime); - - nsresult PR_COM_METHOD (*GetBytesSent)(IVRDEServerInfo *pThis, PRInt64= *bytesSent); - - nsresult PR_COM_METHOD (*GetBytesSentTotal)(IVRDEServerInfo *pThis, PR= Int64 *bytesSentTotal); - - nsresult PR_COM_METHOD (*GetBytesReceived)(IVRDEServerInfo *pThis, PRI= nt64 *bytesReceived); - - nsresult PR_COM_METHOD (*GetBytesReceivedTotal)(IVRDEServerInfo *pThis= , PRInt64 *bytesReceivedTotal); - - nsresult PR_COM_METHOD (*GetUser)(IVRDEServerInfo *pThis, PRUnichar * = *user); - - nsresult PR_COM_METHOD (*GetDomain)(IVRDEServerInfo *pThis, PRUnichar = * *domain); - - nsresult PR_COM_METHOD (*GetClientName)(IVRDEServerInfo *pThis, PRUnic= har * *clientName); - - nsresult PR_COM_METHOD (*GetClientIP)(IVRDEServerInfo *pThis, PRUnicha= r * *clientIP); - - nsresult PR_COM_METHOD (*GetClientVersion)(IVRDEServerInfo *pThis, PRU= int32 *clientVersion); - - nsresult PR_COM_METHOD (*GetEncryptionStyle)(IVRDEServerInfo *pThis, P= RUint32 *encryptionStyle); - -}; - -struct IVRDEServerInfo -{ - struct IVRDEServerInfo_vtbl *vtbl; -}; -/* End of struct IVRDEServerInfo Declaration */ - - -/* Start of struct IConsole Declaration */ -# define ICONSOLE_IID_STR "515e8e8d-f932-4d8e-9f32-79a52aead882" -# define ICONSOLE_IID { \ - 0x515e8e8d, 0xf932, 0x4d8e, \ - { 0x9f, 0x32, 0x79, 0xa5, 0x2a, 0xea, 0xd8, 0x82 } \ -} -struct IConsole_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMachine)(IConsole *pThis, IMachine * *mach= ine); - - nsresult PR_COM_METHOD (*GetState)(IConsole *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetGuest)(IConsole *pThis, IGuest * *guest); - - nsresult PR_COM_METHOD (*GetKeyboard)(IConsole *pThis, IKeyboard * *ke= yboard); - - nsresult PR_COM_METHOD (*GetMouse)(IConsole *pThis, IMouse * *mouse); - - nsresult PR_COM_METHOD (*GetDisplay)(IConsole *pThis, IDisplay * *disp= lay); - - nsresult PR_COM_METHOD (*GetDebugger)(IConsole *pThis, IMachineDebugge= r * *debugger); - - nsresult PR_COM_METHOD (*GetUSBDevices)(IConsole *pThis, PRUint32 *USB= DevicesSize, IUSBDevice * **USBDevices); - - nsresult PR_COM_METHOD (*GetRemoteUSBDevices)(IConsole *pThis, PRUint3= 2 *remoteUSBDevicesSize, IHostUSBDevice * **remoteUSBDevices); - - nsresult PR_COM_METHOD (*GetSharedFolders)(IConsole *pThis, PRUint32 *= sharedFoldersSize, ISharedFolder * **sharedFolders); - - nsresult PR_COM_METHOD (*GetVRDEServerInfo)(IConsole *pThis, IVRDEServ= erInfo * *VRDEServerInfo); - - nsresult PR_COM_METHOD (*GetEventSource)(IConsole *pThis, IEventSource= * *eventSource); - - nsresult PR_COM_METHOD (*GetAttachedPciDevices)(IConsole *pThis, PRUin= t32 *attachedPciDevicesSize, IPciDeviceAttachment * **attachedPciDevices); - - nsresult PR_COM_METHOD (*PowerUp)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*PowerUpPaused)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*PowerDown)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Reset)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*Pause)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*Resume)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*PowerButton)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*SleepButton)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*GetPowerButtonHandled)( - IConsole *pThis, - PRBool * handled - ); - - nsresult PR_COM_METHOD (*GetGuestEnteredACPIMode)( - IConsole *pThis, - PRBool * entered - ); - - nsresult PR_COM_METHOD (*SaveState)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*AdoptSavedState)( - IConsole *pThis, - PRUnichar * savedStateFile - ); - - nsresult PR_COM_METHOD (*DiscardSavedState)( - IConsole *pThis, - PRBool fRemoveFile - ); - - nsresult PR_COM_METHOD (*GetDeviceActivity)( - IConsole *pThis, - PRUint32 type, - PRUint32 * activity - ); - - nsresult PR_COM_METHOD (*AttachUSBDevice)( - IConsole *pThis, - PRUnichar * id - ); - - nsresult PR_COM_METHOD (*DetachUSBDevice)( - IConsole *pThis, - PRUnichar * id, - IUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceByAddress)( - IConsole *pThis, - PRUnichar * name, - IUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceById)( - IConsole *pThis, - PRUnichar * id, - IUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*CreateSharedFolder)( - IConsole *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult PR_COM_METHOD (*RemoveSharedFolder)( - IConsole *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*TakeSnapshot)( - IConsole *pThis, - PRUnichar * name, - PRUnichar * description, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DeleteSnapshot)( - IConsole *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*RestoreSnapshot)( - IConsole *pThis, - ISnapshot * snapshot, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Teleport)( - IConsole *pThis, - PRUnichar * hostname, - PRUint32 tcpport, - PRUnichar * password, - PRUint32 maxDowntime, - IProgress * * progress - ); - -}; - -struct IConsole -{ - struct IConsole_vtbl *vtbl; -}; -/* End of struct IConsole Declaration */ - - -/* Start of struct IHostNetworkInterface Declaration */ -# define IHOSTNETWORKINTERFACE_IID_STR "ce6fae58-7642-4102-b5db-c9005c232= 0a8" -# define IHOSTNETWORKINTERFACE_IID { \ - 0xce6fae58, 0x7642, 0x4102, \ - { 0xb5, 0xdb, 0xc9, 0x00, 0x5c, 0x23, 0x20, 0xa8 } \ -} -struct IHostNetworkInterface_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IHostNetworkInterface *pThis, PRUnic= har * *name); - - nsresult PR_COM_METHOD (*GetId)(IHostNetworkInterface *pThis, PRUnicha= r * *id); - - nsresult PR_COM_METHOD (*GetNetworkName)(IHostNetworkInterface *pThis,= PRUnichar * *networkName); - - nsresult PR_COM_METHOD (*GetDhcpEnabled)(IHostNetworkInterface *pThis,= PRBool *dhcpEnabled); - - nsresult PR_COM_METHOD (*GetIPAddress)(IHostNetworkInterface *pThis, P= RUnichar * *IPAddress); - - nsresult PR_COM_METHOD (*GetNetworkMask)(IHostNetworkInterface *pThis,= PRUnichar * *networkMask); - - nsresult PR_COM_METHOD (*GetIPV6Supported)(IHostNetworkInterface *pThi= s, PRBool *IPV6Supported); - - nsresult PR_COM_METHOD (*GetIPV6Address)(IHostNetworkInterface *pThis,= PRUnichar * *IPV6Address); - - nsresult PR_COM_METHOD (*GetIPV6NetworkMaskPrefixLength)(IHostNetworkI= nterface *pThis, PRUint32 *IPV6NetworkMaskPrefixLength); - - nsresult PR_COM_METHOD (*GetHardwareAddress)(IHostNetworkInterface *pT= his, PRUnichar * *hardwareAddress); - - nsresult PR_COM_METHOD (*GetMediumType)(IHostNetworkInterface *pThis, = PRUint32 *mediumType); - - nsresult PR_COM_METHOD (*GetStatus)(IHostNetworkInterface *pThis, PRUi= nt32 *status); - - nsresult PR_COM_METHOD (*GetInterfaceType)(IHostNetworkInterface *pThi= s, PRUint32 *interfaceType); - - nsresult PR_COM_METHOD (*EnableStaticIpConfig)( - IHostNetworkInterface *pThis, - PRUnichar * IPAddress, - PRUnichar * networkMask - ); - - nsresult PR_COM_METHOD (*EnableStaticIpConfigV6)( - IHostNetworkInterface *pThis, - PRUnichar * IPV6Address, - PRUint32 IPV6NetworkMaskPrefixLength - ); - - nsresult PR_COM_METHOD (*EnableDynamicIpConfig)(IHostNetworkInterface = *pThis ); - - nsresult PR_COM_METHOD (*DhcpRediscover)(IHostNetworkInterface *pThis = ); - -}; - -struct IHostNetworkInterface -{ - struct IHostNetworkInterface_vtbl *vtbl; -}; -/* End of struct IHostNetworkInterface Declaration */ - - -/* Start of struct IHost Declaration */ -# define IHOST_IID_STR "35b004f4-7806-4009-bfa8-d1308adba7e5" -# define IHOST_IID { \ - 0x35b004f4, 0x7806, 0x4009, \ - { 0xbf, 0xa8, 0xd1, 0x30, 0x8a, 0xdb, 0xa7, 0xe5 } \ -} -struct IHost_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetDVDDrives)(IHost *pThis, PRUint32 *DVDDriv= esSize, IMedium * **DVDDrives); - - nsresult PR_COM_METHOD (*GetFloppyDrives)(IHost *pThis, PRUint32 *flop= pyDrivesSize, IMedium * **floppyDrives); - - nsresult PR_COM_METHOD (*GetUSBDevices)(IHost *pThis, PRUint32 *USBDev= icesSize, IHostUSBDevice * **USBDevices); - - nsresult PR_COM_METHOD (*GetUSBDeviceFilters)(IHost *pThis, PRUint32 *= USBDeviceFiltersSize, IHostUSBDeviceFilter * **USBDeviceFilters); - - nsresult PR_COM_METHOD (*GetNetworkInterfaces)(IHost *pThis, PRUint32 = *networkInterfacesSize, IHostNetworkInterface * **networkInterfaces); - - nsresult PR_COM_METHOD (*GetProcessorCount)(IHost *pThis, PRUint32 *pr= ocessorCount); - - nsresult PR_COM_METHOD (*GetProcessorOnlineCount)(IHost *pThis, PRUint= 32 *processorOnlineCount); - - nsresult PR_COM_METHOD (*GetProcessorCoreCount)(IHost *pThis, PRUint32= *processorCoreCount); - - nsresult PR_COM_METHOD (*GetMemorySize)(IHost *pThis, PRUint32 *memory= Size); - - nsresult PR_COM_METHOD (*GetMemoryAvailable)(IHost *pThis, PRUint32 *m= emoryAvailable); - - nsresult PR_COM_METHOD (*GetOperatingSystem)(IHost *pThis, PRUnichar *= *operatingSystem); - - nsresult PR_COM_METHOD (*GetOSVersion)(IHost *pThis, PRUnichar * *OSVe= rsion); - - nsresult PR_COM_METHOD (*GetUTCTime)(IHost *pThis, PRInt64 *UTCTime); - - nsresult PR_COM_METHOD (*GetAcceleration3DAvailable)(IHost *pThis, PRB= ool *Acceleration3DAvailable); - - nsresult PR_COM_METHOD (*GetProcessorSpeed)( - IHost *pThis, - PRUint32 cpuId, - PRUint32 * speed - ); - - nsresult PR_COM_METHOD (*GetProcessorFeature)( - IHost *pThis, - PRUint32 feature, - PRBool * supported - ); - - nsresult PR_COM_METHOD (*GetProcessorDescription)( - IHost *pThis, - PRUint32 cpuId, - PRUnichar * * description - ); - - nsresult PR_COM_METHOD (*GetProcessorCPUIDLeaf)( - IHost *pThis, - PRUint32 cpuId, - PRUint32 leaf, - PRUint32 subLeaf, - PRUint32 * valEax, - PRUint32 * valEbx, - PRUint32 * valEcx, - PRUint32 * valEdx - ); - - nsresult PR_COM_METHOD (*CreateHostOnlyNetworkInterface)( - IHost *pThis, - IHostNetworkInterface * * hostInterface, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*RemoveHostOnlyNetworkInterface)( - IHost *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CreateUSBDeviceFilter)( - IHost *pThis, - PRUnichar * name, - IHostUSBDeviceFilter * * filter - ); - - nsresult PR_COM_METHOD (*InsertUSBDeviceFilter)( - IHost *pThis, - PRUint32 position, - IHostUSBDeviceFilter * filter - ); - - nsresult PR_COM_METHOD (*RemoveUSBDeviceFilter)( - IHost *pThis, - PRUint32 position - ); - - nsresult PR_COM_METHOD (*FindHostDVDDrive)( - IHost *pThis, - PRUnichar * name, - IMedium * * drive - ); - - nsresult PR_COM_METHOD (*FindHostFloppyDrive)( - IHost *pThis, - PRUnichar * name, - IMedium * * drive - ); - - nsresult PR_COM_METHOD (*FindHostNetworkInterfaceByName)( - IHost *pThis, - PRUnichar * name, - IHostNetworkInterface * * networkInterface - ); - - nsresult PR_COM_METHOD (*FindHostNetworkInterfaceById)( - IHost *pThis, - PRUnichar * id, - IHostNetworkInterface * * networkInterface - ); - - nsresult PR_COM_METHOD (*FindHostNetworkInterfacesOfType)( - IHost *pThis, - PRUint32 type, - PRUint32 *networkInterfacesSize, - IHostNetworkInterface *** networkInterfaces - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceById)( - IHost *pThis, - PRUnichar * id, - IHostUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceByAddress)( - IHost *pThis, - PRUnichar * name, - IHostUSBDevice * * device - ); - -}; - -struct IHost -{ - struct IHost_vtbl *vtbl; -}; -/* End of struct IHost Declaration */ - - -/* Start of struct ISystemProperties Declaration */ -# define ISYSTEMPROPERTIES_IID_STR "51c81048-b261-4fa2-a44e-fd756f0db589" -# define ISYSTEMPROPERTIES_IID { \ - 0x51c81048, 0xb261, 0x4fa2, \ - { 0xa4, 0x4e, 0xfd, 0x75, 0x6f, 0x0d, 0xb5, 0x89 } \ -} -struct ISystemProperties_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMinGuestRAM)(ISystemProperties *pThis, PRU= int32 *minGuestRAM); - - nsresult PR_COM_METHOD (*GetMaxGuestRAM)(ISystemProperties *pThis, PRU= int32 *maxGuestRAM); - - nsresult PR_COM_METHOD (*GetMinGuestVRAM)(ISystemProperties *pThis, PR= Uint32 *minGuestVRAM); - - nsresult PR_COM_METHOD (*GetMaxGuestVRAM)(ISystemProperties *pThis, PR= Uint32 *maxGuestVRAM); - - nsresult PR_COM_METHOD (*GetMinGuestCPUCount)(ISystemProperties *pThis= , PRUint32 *minGuestCPUCount); - - nsresult PR_COM_METHOD (*GetMaxGuestCPUCount)(ISystemProperties *pThis= , PRUint32 *maxGuestCPUCount); - - nsresult PR_COM_METHOD (*GetMaxGuestMonitors)(ISystemProperties *pThis= , PRUint32 *maxGuestMonitors); - - nsresult PR_COM_METHOD (*GetInfoVDSize)(ISystemProperties *pThis, PRIn= t64 *infoVDSize); - - nsresult PR_COM_METHOD (*GetNetworkAdapterCount)(ISystemProperties *pT= his, PRUint32 *networkAdapterCount); - - nsresult PR_COM_METHOD (*GetSerialPortCount)(ISystemProperties *pThis,= PRUint32 *serialPortCount); - - nsresult PR_COM_METHOD (*GetParallelPortCount)(ISystemProperties *pThi= s, PRUint32 *parallelPortCount); - - nsresult PR_COM_METHOD (*GetMaxBootPosition)(ISystemProperties *pThis,= PRUint32 *maxBootPosition); - - nsresult PR_COM_METHOD (*GetDefaultMachineFolder)(ISystemProperties *p= This, PRUnichar * *defaultMachineFolder); - nsresult PR_COM_METHOD (*SetDefaultMachineFolder)(ISystemProperties *p= This, PRUnichar * defaultMachineFolder); - - nsresult PR_COM_METHOD (*GetMediumFormats)(ISystemProperties *pThis, P= RUint32 *mediumFormatsSize, IMediumFormat * **mediumFormats); - - nsresult PR_COM_METHOD (*GetDefaultHardDiskFormat)(ISystemProperties *= pThis, PRUnichar * *defaultHardDiskFormat); - nsresult PR_COM_METHOD (*SetDefaultHardDiskFormat)(ISystemProperties *= pThis, PRUnichar * defaultHardDiskFormat); - - nsresult PR_COM_METHOD (*GetFreeDiskSpaceWarning)(ISystemProperties *p= This, PRInt64 *freeDiskSpaceWarning); - nsresult PR_COM_METHOD (*SetFreeDiskSpaceWarning)(ISystemProperties *p= This, PRInt64 freeDiskSpaceWarning); - - nsresult PR_COM_METHOD (*GetFreeDiskSpacePercentWarning)(ISystemProper= ties *pThis, PRUint32 *freeDiskSpacePercentWarning); - nsresult PR_COM_METHOD (*SetFreeDiskSpacePercentWarning)(ISystemProper= ties *pThis, PRUint32 freeDiskSpacePercentWarning); - - nsresult PR_COM_METHOD (*GetFreeDiskSpaceError)(ISystemProperties *pTh= is, PRInt64 *freeDiskSpaceError); - nsresult PR_COM_METHOD (*SetFreeDiskSpaceError)(ISystemProperties *pTh= is, PRInt64 freeDiskSpaceError); - - nsresult PR_COM_METHOD (*GetFreeDiskSpacePercentError)(ISystemProperti= es *pThis, PRUint32 *freeDiskSpacePercentError); - nsresult PR_COM_METHOD (*SetFreeDiskSpacePercentError)(ISystemProperti= es *pThis, PRUint32 freeDiskSpacePercentError); - - nsresult PR_COM_METHOD (*GetVRDEAuthLibrary)(ISystemProperties *pThis,= PRUnichar * *VRDEAuthLibrary); - nsresult PR_COM_METHOD (*SetVRDEAuthLibrary)(ISystemProperties *pThis,= PRUnichar * VRDEAuthLibrary); - - nsresult PR_COM_METHOD (*GetWebServiceAuthLibrary)(ISystemProperties *= pThis, PRUnichar * *webServiceAuthLibrary); - nsresult PR_COM_METHOD (*SetWebServiceAuthLibrary)(ISystemProperties *= pThis, PRUnichar * webServiceAuthLibrary); - - nsresult PR_COM_METHOD (*GetDefaultVRDEExtPack)(ISystemProperties *pTh= is, PRUnichar * *defaultVRDEExtPack); - nsresult PR_COM_METHOD (*SetDefaultVRDEExtPack)(ISystemProperties *pTh= is, PRUnichar * defaultVRDEExtPack); - - nsresult PR_COM_METHOD (*GetLogHistoryCount)(ISystemProperties *pThis,= PRUint32 *LogHistoryCount); - nsresult PR_COM_METHOD (*SetLogHistoryCount)(ISystemProperties *pThis,= PRUint32 LogHistoryCount); - - nsresult PR_COM_METHOD (*GetDefaultAudioDriver)(ISystemProperties *pTh= is, PRUint32 *defaultAudioDriver); - - nsresult PR_COM_METHOD (*GetMaxDevicesPerPortForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * maxDevicesPerPort - ); - - nsresult PR_COM_METHOD (*GetMinPortCountForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * minPortCount - ); - - nsresult PR_COM_METHOD (*GetMaxPortCountForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * maxPortCount - ); - - nsresult PR_COM_METHOD (*GetMaxInstancesOfStorageBus)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 bus, - PRUint32 * maxInstances - ); - - nsresult PR_COM_METHOD (*GetDeviceTypesForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 *deviceTypesSize, - PRUint32** deviceTypes - ); - - nsresult PR_COM_METHOD (*GetDefaultIoCacheSettingForStorageController)( - ISystemProperties *pThis, - PRUint32 controllerType, - PRBool * enabled - ); - -}; - -struct ISystemProperties -{ - struct ISystemProperties_vtbl *vtbl; -}; -/* End of struct ISystemProperties Declaration */ - - -/* Start of struct IGuestOSType Declaration */ -# define IGUESTOSTYPE_IID_STR "432c1546-1354-4abf-bf08-878a32a373f5" -# define IGUESTOSTYPE_IID { \ - 0x432c1546, 0x1354, 0x4abf, \ - { 0xbf, 0x08, 0x87, 0x8a, 0x32, 0xa3, 0x73, 0xf5 } \ -} -struct IGuestOSType_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetFamilyId)(IGuestOSType *pThis, PRUnichar *= *familyId); - - nsresult PR_COM_METHOD (*GetFamilyDescription)(IGuestOSType *pThis, PR= Unichar * *familyDescription); - - nsresult PR_COM_METHOD (*GetId)(IGuestOSType *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetDescription)(IGuestOSType *pThis, PRUnicha= r * *description); - - nsresult PR_COM_METHOD (*GetIs64Bit)(IGuestOSType *pThis, PRBool *is64= Bit); - - nsresult PR_COM_METHOD (*GetRecommendedIOAPIC)(IGuestOSType *pThis, PR= Bool *recommendedIOAPIC); - - nsresult PR_COM_METHOD (*GetRecommendedVirtEx)(IGuestOSType *pThis, PR= Bool *recommendedVirtEx); - - nsresult PR_COM_METHOD (*GetRecommendedRAM)(IGuestOSType *pThis, PRUin= t32 *recommendedRAM); - - nsresult PR_COM_METHOD (*GetRecommendedVRAM)(IGuestOSType *pThis, PRUi= nt32 *recommendedVRAM); - - nsresult PR_COM_METHOD (*GetRecommendedHDD)(IGuestOSType *pThis, PRInt= 64 *recommendedHDD); - - nsresult PR_COM_METHOD (*GetAdapterType)(IGuestOSType *pThis, PRUint32= *adapterType); - - nsresult PR_COM_METHOD (*GetRecommendedPae)(IGuestOSType *pThis, PRBoo= l *recommendedPae); - - nsresult PR_COM_METHOD (*GetRecommendedDvdStorageController)(IGuestOST= ype *pThis, PRUint32 *recommendedDvdStorageController); - - nsresult PR_COM_METHOD (*GetRecommendedDvdStorageBus)(IGuestOSType *pT= his, PRUint32 *recommendedDvdStorageBus); - - nsresult PR_COM_METHOD (*GetRecommendedHdStorageController)(IGuestOSTy= pe *pThis, PRUint32 *recommendedHdStorageController); - - nsresult PR_COM_METHOD (*GetRecommendedHdStorageBus)(IGuestOSType *pTh= is, PRUint32 *recommendedHdStorageBus); - - nsresult PR_COM_METHOD (*GetRecommendedFirmware)(IGuestOSType *pThis, = PRUint32 *recommendedFirmware); - - nsresult PR_COM_METHOD (*GetRecommendedUsbHid)(IGuestOSType *pThis, PR= Bool *recommendedUsbHid); - - nsresult PR_COM_METHOD (*GetRecommendedHpet)(IGuestOSType *pThis, PRBo= ol *recommendedHpet); - - nsresult PR_COM_METHOD (*GetRecommendedUsbTablet)(IGuestOSType *pThis,= PRBool *recommendedUsbTablet); - - nsresult PR_COM_METHOD (*GetRecommendedRtcUseUtc)(IGuestOSType *pThis,= PRBool *recommendedRtcUseUtc); - - nsresult PR_COM_METHOD (*GetRecommendedChipset)(IGuestOSType *pThis, P= RUint32 *recommendedChipset); - - nsresult PR_COM_METHOD (*GetRecommendedAudioController)(IGuestOSType *= pThis, PRUint32 *recommendedAudioController); - -}; - -struct IGuestOSType -{ - struct IGuestOSType_vtbl *vtbl; -}; -/* End of struct IGuestOSType Declaration */ - - -/* Start of struct IGuest Declaration */ -# define IGUEST_IID_STR "7ce7e4d8-cdaa-4d83-a0f4-510c8ee70aea" -# define IGUEST_IID { \ - 0x7ce7e4d8, 0xcdaa, 0x4d83, \ - { 0xa0, 0xf4, 0x51, 0x0c, 0x8e, 0xe7, 0x0a, 0xea } \ -} -struct IGuest_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetOSTypeId)(IGuest *pThis, PRUnichar * *OSTy= peId); - - nsresult PR_COM_METHOD (*GetAdditionsRunLevel)(IGuest *pThis, PRUint32= *additionsRunLevel); - - nsresult PR_COM_METHOD (*GetAdditionsVersion)(IGuest *pThis, PRUnichar= * *additionsVersion); - - nsresult PR_COM_METHOD (*GetSupportsSeamless)(IGuest *pThis, PRBool *s= upportsSeamless); - - nsresult PR_COM_METHOD (*GetSupportsGraphics)(IGuest *pThis, PRBool *s= upportsGraphics); - - nsresult PR_COM_METHOD (*GetMemoryBalloonSize)(IGuest *pThis, PRUint32= *memoryBalloonSize); - nsresult PR_COM_METHOD (*SetMemoryBalloonSize)(IGuest *pThis, PRUint32= memoryBalloonSize); - - nsresult PR_COM_METHOD (*GetStatisticsUpdateInterval)(IGuest *pThis, P= RUint32 *statisticsUpdateInterval); - nsresult PR_COM_METHOD (*SetStatisticsUpdateInterval)(IGuest *pThis, P= RUint32 statisticsUpdateInterval); - - nsresult PR_COM_METHOD (*InternalGetStatistics)( - IGuest *pThis, - PRUint32 * cpuUser, - PRUint32 * cpuKernel, - PRUint32 * cpuIdle, - PRUint32 * memTotal, - PRUint32 * memFree, - PRUint32 * memBalloon, - PRUint32 * memShared, - PRUint32 * memCache, - PRUint32 * pagedTotal, - PRUint32 * memAllocTotal, - PRUint32 * memFreeTotal, - PRUint32 * memBalloonTotal, - PRUint32 * memSharedTotal - ); - - nsresult PR_COM_METHOD (*GetAdditionsStatus)( - IGuest *pThis, - PRUint32 level, - PRBool * active - ); - - nsresult PR_COM_METHOD (*SetCredentials)( - IGuest *pThis, - PRUnichar * userName, - PRUnichar * password, - PRUnichar * domain, - PRBool allowInteractiveLogon - ); - - nsresult PR_COM_METHOD (*ExecuteProcess)( - IGuest *pThis, - PRUnichar * execName, - PRUint32 flags, - PRUint32 argumentsSize, - PRUnichar ** arguments, - PRUint32 environmentSize, - PRUnichar ** environment, - PRUnichar * userName, - PRUnichar * password, - PRUint32 timeoutMS, - PRUint32 * pid, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*GetProcessOutput)( - IGuest *pThis, - PRUint32 pid, - PRUint32 flags, - PRUint32 timeoutMS, - PRInt64 size, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*GetProcessStatus)( - IGuest *pThis, - PRUint32 pid, - PRUint32 * exitcode, - PRUint32 * flags, - PRUint32 * reason - ); - - nsresult PR_COM_METHOD (*CopyToGuest)( - IGuest *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUnichar * userName, - PRUnichar * password, - PRUint32 flags, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CreateDirectory)( - IGuest *pThis, - PRUnichar * directory, - PRUnichar * userName, - PRUnichar * password, - PRUint32 mode, - PRUint32 flags, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*SetProcessInput)( - IGuest *pThis, - PRUint32 pid, - PRUint32 flags, - PRUint32 timeoutMS, - PRUint32 dataSize, - PRUint8* data, - PRUint32 * written - ); - - nsresult PR_COM_METHOD (*UpdateGuestAdditions)( - IGuest *pThis, - PRUnichar * source, - PRUint32 flags, - IProgress * * progress - ); - -}; - -struct IGuest -{ - struct IGuest_vtbl *vtbl; -}; -/* End of struct IGuest Declaration */ - - -/* Start of struct IProgress Declaration */ -# define IPROGRESS_IID_STR "A163C98F-8635-4AA8-B770-A9941737F3EF" -# define IPROGRESS_IID { \ - 0xA163C98F, 0x8635, 0x4AA8, \ - { 0xB7, 0x70, 0xA9, 0x94, 0x17, 0x37, 0xF3, 0xEF } \ -} -struct IProgress_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IProgress *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetDescription)(IProgress *pThis, PRUnichar *= *description); - - nsresult PR_COM_METHOD (*GetInitiator)(IProgress *pThis, nsISupports *= *initiator); - - nsresult PR_COM_METHOD (*GetCancelable)(IProgress *pThis, PRBool *canc= elable); - - nsresult PR_COM_METHOD (*GetPercent)(IProgress *pThis, PRUint32 *perce= nt); - - nsresult PR_COM_METHOD (*GetTimeRemaining)(IProgress *pThis, PRInt32 *= timeRemaining); - - nsresult PR_COM_METHOD (*GetCompleted)(IProgress *pThis, PRBool *compl= eted); - - nsresult PR_COM_METHOD (*GetCanceled)(IProgress *pThis, PRBool *cancel= ed); - - nsresult PR_COM_METHOD (*GetResultCode)(IProgress *pThis, PRInt32 *res= ultCode); - - nsresult PR_COM_METHOD (*GetErrorInfo)(IProgress *pThis, IVirtualBoxEr= rorInfo * *errorInfo); - - nsresult PR_COM_METHOD (*GetOperationCount)(IProgress *pThis, PRUint32= *operationCount); - - nsresult PR_COM_METHOD (*GetOperation)(IProgress *pThis, PRUint32 *ope= ration); - - nsresult PR_COM_METHOD (*GetOperationDescription)(IProgress *pThis, PR= Unichar * *operationDescription); - - nsresult PR_COM_METHOD (*GetOperationPercent)(IProgress *pThis, PRUint= 32 *operationPercent); - - nsresult PR_COM_METHOD (*GetOperationWeight)(IProgress *pThis, PRUint3= 2 *operationWeight); - - nsresult PR_COM_METHOD (*GetTimeout)(IProgress *pThis, PRUint32 *timeo= ut); - nsresult PR_COM_METHOD (*SetTimeout)(IProgress *pThis, PRUint32 timeou= t); - - nsresult PR_COM_METHOD (*SetCurrentOperationProgress)( - IProgress *pThis, - PRUint32 percent - ); - - nsresult PR_COM_METHOD (*SetNextOperation)( - IProgress *pThis, - PRUnichar * nextOperationDescription, - PRUint32 nextOperationsWeight - ); - - nsresult PR_COM_METHOD (*WaitForCompletion)( - IProgress *pThis, - PRInt32 timeout - ); - - nsresult PR_COM_METHOD (*WaitForOperationCompletion)( - IProgress *pThis, - PRUint32 operation, - PRInt32 timeout - ); - - nsresult PR_COM_METHOD (*Cancel)(IProgress *pThis ); - -}; - -struct IProgress -{ - struct IProgress_vtbl *vtbl; -}; -/* End of struct IProgress Declaration */ - - -/* Start of struct ISnapshot Declaration */ -# define ISNAPSHOT_IID_STR "1a2d0551-58a4-4107-857e-ef414fc42ffc" -# define ISNAPSHOT_IID { \ - 0x1a2d0551, 0x58a4, 0x4107, \ - { 0x85, 0x7e, 0xef, 0x41, 0x4f, 0xc4, 0x2f, 0xfc } \ -} -struct ISnapshot_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(ISnapshot *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetName)(ISnapshot *pThis, PRUnichar * *name); - nsresult PR_COM_METHOD (*SetName)(ISnapshot *pThis, PRUnichar * name); - - nsresult PR_COM_METHOD (*GetDescription)(ISnapshot *pThis, PRUnichar *= *description); - nsresult PR_COM_METHOD (*SetDescription)(ISnapshot *pThis, PRUnichar *= description); - - nsresult PR_COM_METHOD (*GetTimeStamp)(ISnapshot *pThis, PRInt64 *time= Stamp); - - nsresult PR_COM_METHOD (*GetOnline)(ISnapshot *pThis, PRBool *online); - - nsresult PR_COM_METHOD (*GetMachine)(ISnapshot *pThis, IMachine * *mac= hine); - - nsresult PR_COM_METHOD (*GetParent)(ISnapshot *pThis, ISnapshot * *par= ent); - - nsresult PR_COM_METHOD (*GetChildren)(ISnapshot *pThis, PRUint32 *chil= drenSize, ISnapshot * **children); - -}; - -struct ISnapshot -{ - struct ISnapshot_vtbl *vtbl; -}; -/* End of struct ISnapshot Declaration */ - - -/* Start of struct IMediumAttachment Declaration */ -# define IMEDIUMATTACHMENT_IID_STR "aa4b4840-934f-454d-9a28-23e8f4235edf" -# define IMEDIUMATTACHMENT_IID { \ - 0xaa4b4840, 0x934f, 0x454d, \ - { 0x9a, 0x28, 0x23, 0xe8, 0xf4, 0x23, 0x5e, 0xdf } \ -} -struct IMediumAttachment_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMedium)(IMediumAttachment *pThis, IMedium = * *medium); - - nsresult PR_COM_METHOD (*GetController)(IMediumAttachment *pThis, PRUn= ichar * *controller); - - nsresult PR_COM_METHOD (*GetPort)(IMediumAttachment *pThis, PRInt32 *p= ort); - - nsresult PR_COM_METHOD (*GetDevice)(IMediumAttachment *pThis, PRInt32 = *device); - - nsresult PR_COM_METHOD (*GetType)(IMediumAttachment *pThis, PRUint32 *= type); - - nsresult PR_COM_METHOD (*GetPassthrough)(IMediumAttachment *pThis, PRB= ool *passthrough); - - nsresult PR_COM_METHOD (*GetBandwidthGroup)(IMediumAttachment *pThis, = IBandwidthGroup * *bandwidthGroup); - -}; - -struct IMediumAttachment -{ - struct IMediumAttachment_vtbl *vtbl; -}; -/* End of struct IMediumAttachment Declaration */ - - -/* Start of struct IMedium Declaration */ -# define IMEDIUM_IID_STR "9edda847-1279-4b0a-9af7-9d66251ccc18" -# define IMEDIUM_IID { \ - 0x9edda847, 0x1279, 0x4b0a, \ - { 0x9a, 0xf7, 0x9d, 0x66, 0x25, 0x1c, 0xcc, 0x18 } \ -} -struct IMedium_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IMedium *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetDescription)(IMedium *pThis, PRUnichar * *= description); - nsresult PR_COM_METHOD (*SetDescription)(IMedium *pThis, PRUnichar * d= escription); - - nsresult PR_COM_METHOD (*GetState)(IMedium *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetVariant)(IMedium *pThis, PRUint32 *variant= ); - - nsresult PR_COM_METHOD (*GetLocation)(IMedium *pThis, PRUnichar * *loc= ation); - nsresult PR_COM_METHOD (*SetLocation)(IMedium *pThis, PRUnichar * loca= tion); - - nsresult PR_COM_METHOD (*GetName)(IMedium *pThis, PRUnichar * *name); - - nsresult PR_COM_METHOD (*GetDeviceType)(IMedium *pThis, PRUint32 *devi= ceType); - - nsresult PR_COM_METHOD (*GetHostDrive)(IMedium *pThis, PRBool *hostDri= ve); - - nsresult PR_COM_METHOD (*GetSize)(IMedium *pThis, PRInt64 *size); - - nsresult PR_COM_METHOD (*GetFormat)(IMedium *pThis, PRUnichar * *forma= t); - - nsresult PR_COM_METHOD (*GetMediumFormat)(IMedium *pThis, IMediumForma= t * *mediumFormat); - - nsresult PR_COM_METHOD (*GetType)(IMedium *pThis, PRUint32 *type); - nsresult PR_COM_METHOD (*SetType)(IMedium *pThis, PRUint32 type); - - nsresult PR_COM_METHOD (*GetParent)(IMedium *pThis, IMedium * *parent); - - nsresult PR_COM_METHOD (*GetChildren)(IMedium *pThis, PRUint32 *childr= enSize, IMedium * **children); - - nsresult PR_COM_METHOD (*GetBase)(IMedium *pThis, IMedium * *base); - - nsresult PR_COM_METHOD (*GetReadOnly)(IMedium *pThis, PRBool *readOnly= ); - - nsresult PR_COM_METHOD (*GetLogicalSize)(IMedium *pThis, PRInt64 *logi= calSize); - - nsresult PR_COM_METHOD (*GetAutoReset)(IMedium *pThis, PRBool *autoRes= et); - nsresult PR_COM_METHOD (*SetAutoReset)(IMedium *pThis, PRBool autoRese= t); - - nsresult PR_COM_METHOD (*GetLastAccessError)(IMedium *pThis, PRUnichar= * *lastAccessError); - - nsresult PR_COM_METHOD (*GetMachineIds)(IMedium *pThis, PRUint32 *mach= ineIdsSize, PRUnichar * **machineIds); - - nsresult PR_COM_METHOD (*SetIDs)( - IMedium *pThis, - PRBool setImageId, - PRUnichar * imageId, - PRBool setParentId, - PRUnichar * parentId - ); - - nsresult PR_COM_METHOD (*RefreshState)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*GetSnapshotIds)( - IMedium *pThis, - PRUnichar * machineId, - PRUint32 *snapshotIdsSize, - PRUnichar *** snapshotIds - ); - - nsresult PR_COM_METHOD (*LockRead)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*UnlockRead)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*LockWrite)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*UnlockWrite)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*Close)(IMedium *pThis ); - - nsresult PR_COM_METHOD (*GetProperty)( - IMedium *pThis, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetProperty)( - IMedium *pThis, - PRUnichar * name, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetProperties)( - IMedium *pThis, - PRUnichar * names, - PRUint32 *returnNamesSize, - PRUnichar *** returnNames, - PRUint32 *returnValuesSize, - PRUnichar *** returnValues - ); - - nsresult PR_COM_METHOD (*SetProperties)( - IMedium *pThis, - PRUint32 namesSize, - PRUnichar ** names, - PRUint32 valuesSize, - PRUnichar ** values - ); - - nsresult PR_COM_METHOD (*CreateBaseStorage)( - IMedium *pThis, - PRInt64 logicalSize, - PRUint32 variant, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DeleteStorage)( - IMedium *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CreateDiffStorage)( - IMedium *pThis, - IMedium * target, - PRUint32 variant, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*MergeTo)( - IMedium *pThis, - IMedium * target, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CloneTo)( - IMedium *pThis, - IMedium * target, - PRUint32 variant, - IMedium * parent, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Compact)( - IMedium *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Resize)( - IMedium *pThis, - PRInt64 logicalSize, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Reset)( - IMedium *pThis, - IProgress * * progress - ); - -}; - -struct IMedium -{ - struct IMedium_vtbl *vtbl; -}; -/* End of struct IMedium Declaration */ - - -/* Start of struct IMediumFormat Declaration */ -# define IMEDIUMFORMAT_IID_STR "4e9a873f-0599-434a-8345-619ef3fb3111" -# define IMEDIUMFORMAT_IID { \ - 0x4e9a873f, 0x0599, 0x434a, \ - { 0x83, 0x45, 0x61, 0x9e, 0xf3, 0xfb, 0x31, 0x11 } \ -} -struct IMediumFormat_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IMediumFormat *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetName)(IMediumFormat *pThis, PRUnichar * *n= ame); - - nsresult PR_COM_METHOD (*GetCapabilities)(IMediumFormat *pThis, PRUint= 32 *capabilities); - - nsresult PR_COM_METHOD (*DescribeFileExtensions)( - IMediumFormat *pThis, - PRUint32 *extensionsSize, - PRUnichar *** extensions, - PRUint32 *typeSize, - PRUint32* type - ); - - nsresult PR_COM_METHOD (*DescribeProperties)( - IMediumFormat *pThis, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *descriptionSize, - PRUnichar *** description, - PRUint32 *typesSize, - PRUint32* types, - PRUint32 *flagsSize, - PRUint32* flags, - PRUint32 *defaultsSize, - PRUnichar *** defaults - ); - -}; - -struct IMediumFormat -{ - struct IMediumFormat_vtbl *vtbl; -}; -/* End of struct IMediumFormat Declaration */ - - -/* Start of struct IKeyboard Declaration */ -# define IKEYBOARD_IID_STR "f6916ec5-a881-4237-898f-7de58cf88672" -# define IKEYBOARD_IID { \ - 0xf6916ec5, 0xa881, 0x4237, \ - { 0x89, 0x8f, 0x7d, 0xe5, 0x8c, 0xf8, 0x86, 0x72 } \ -} -struct IKeyboard_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEventSource)(IKeyboard *pThis, IEventSourc= e * *eventSource); - - nsresult PR_COM_METHOD (*PutScancode)( - IKeyboard *pThis, - PRInt32 scancode - ); - - nsresult PR_COM_METHOD (*PutScancodes)( - IKeyboard *pThis, - PRUint32 scancodesSize, - PRInt32* scancodes, - PRUint32 * codesStored - ); - - nsresult PR_COM_METHOD (*PutCAD)(IKeyboard *pThis ); - -}; - -struct IKeyboard -{ - struct IKeyboard_vtbl *vtbl; -}; -/* End of struct IKeyboard Declaration */ - - -/* Start of struct IMouse Declaration */ -# define IMOUSE_IID_STR "05044a52-7811-4f00-ae3a-0ab7ff707b10" -# define IMOUSE_IID { \ - 0x05044a52, 0x7811, 0x4f00, \ - { 0xae, 0x3a, 0x0a, 0xb7, 0xff, 0x70, 0x7b, 0x10 } \ -} -struct IMouse_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetAbsoluteSupported)(IMouse *pThis, PRBool *= absoluteSupported); - - nsresult PR_COM_METHOD (*GetRelativeSupported)(IMouse *pThis, PRBool *= relativeSupported); - - nsresult PR_COM_METHOD (*GetNeedsHostCursor)(IMouse *pThis, PRBool *ne= edsHostCursor); - - nsresult PR_COM_METHOD (*GetEventSource)(IMouse *pThis, IEventSource *= *eventSource); - - nsresult PR_COM_METHOD (*PutMouseEvent)( - IMouse *pThis, - PRInt32 dx, - PRInt32 dy, - PRInt32 dz, - PRInt32 dw, - PRInt32 buttonState - ); - - nsresult PR_COM_METHOD (*PutMouseEventAbsolute)( - IMouse *pThis, - PRInt32 x, - PRInt32 y, - PRInt32 dz, - PRInt32 dw, - PRInt32 buttonState - ); - -}; - -struct IMouse -{ - struct IMouse_vtbl *vtbl; -}; -/* End of struct IMouse Declaration */ - - -/* Start of struct IFramebuffer Declaration */ -# define IFRAMEBUFFER_IID_STR "b7ed347a-5765-40a0-ae1c-f543eb4ddeaf" -# define IFRAMEBUFFER_IID { \ - 0xb7ed347a, 0x5765, 0x40a0, \ - { 0xae, 0x1c, 0xf5, 0x43, 0xeb, 0x4d, 0xde, 0xaf } \ -} -struct IFramebuffer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetAddress)(IFramebuffer *pThis, PRUint8 * *a= ddress); - - nsresult PR_COM_METHOD (*GetWidth)(IFramebuffer *pThis, PRUint32 *widt= h); - - nsresult PR_COM_METHOD (*GetHeight)(IFramebuffer *pThis, PRUint32 *hei= ght); - - nsresult PR_COM_METHOD (*GetBitsPerPixel)(IFramebuffer *pThis, PRUint3= 2 *bitsPerPixel); - - nsresult PR_COM_METHOD (*GetBytesPerLine)(IFramebuffer *pThis, PRUint3= 2 *bytesPerLine); - - nsresult PR_COM_METHOD (*GetPixelFormat)(IFramebuffer *pThis, PRUint32= *pixelFormat); - - nsresult PR_COM_METHOD (*GetUsesGuestVRAM)(IFramebuffer *pThis, PRBool= *usesGuestVRAM); - - nsresult PR_COM_METHOD (*GetHeightReduction)(IFramebuffer *pThis, PRUi= nt32 *heightReduction); - - nsresult PR_COM_METHOD (*GetOverlay)(IFramebuffer *pThis, IFramebuffer= Overlay * *overlay); - - nsresult PR_COM_METHOD (*GetWinId)(IFramebuffer *pThis, PRInt64 *winId= ); - - nsresult PR_COM_METHOD (*Lock)(IFramebuffer *pThis ); - - nsresult PR_COM_METHOD (*Unlock)(IFramebuffer *pThis ); - - nsresult PR_COM_METHOD (*NotifyUpdate)( - IFramebuffer *pThis, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - - nsresult PR_COM_METHOD (*RequestResize)( - IFramebuffer *pThis, - PRUint32 screenId, - PRUint32 pixelFormat, - PRUint8 * VRAM, - PRUint32 bitsPerPixel, - PRUint32 bytesPerLine, - PRUint32 width, - PRUint32 height, - PRBool * finished - ); - - nsresult PR_COM_METHOD (*VideoModeSupported)( - IFramebuffer *pThis, - PRUint32 width, - PRUint32 height, - PRUint32 bpp, - PRBool * supported - ); - - nsresult PR_COM_METHOD (*GetVisibleRegion)( - IFramebuffer *pThis, - PRUint8 * rectangles, - PRUint32 count, - PRUint32 * countCopied - ); - - nsresult PR_COM_METHOD (*SetVisibleRegion)( - IFramebuffer *pThis, - PRUint8 * rectangles, - PRUint32 count - ); - - nsresult PR_COM_METHOD (*ProcessVHWACommand)( - IFramebuffer *pThis, - PRUint8 * command - ); - -}; - -struct IFramebuffer -{ - struct IFramebuffer_vtbl *vtbl; -}; -/* End of struct IFramebuffer Declaration */ - - -/* Start of struct IFramebufferOverlay Declaration */ -# define IFRAMEBUFFEROVERLAY_IID_STR "0bcc1c7e-e415-47d2-bfdb-e4c705fb0f4= 7" -# define IFRAMEBUFFEROVERLAY_IID { \ - 0x0bcc1c7e, 0xe415, 0x47d2, \ - { 0xbf, 0xdb, 0xe4, 0xc7, 0x05, 0xfb, 0x0f, 0x47 } \ -} -struct IFramebufferOverlay_vtbl -{ - struct IFramebuffer_vtbl iframebuffer; - - nsresult PR_COM_METHOD (*GetX)(IFramebufferOverlay *pThis, PRUint32 *x= ); - - nsresult PR_COM_METHOD (*GetY)(IFramebufferOverlay *pThis, PRUint32 *y= ); - - nsresult PR_COM_METHOD (*GetVisible)(IFramebufferOverlay *pThis, PRBoo= l *visible); - nsresult PR_COM_METHOD (*SetVisible)(IFramebufferOverlay *pThis, PRBoo= l visible); - - nsresult PR_COM_METHOD (*GetAlpha)(IFramebufferOverlay *pThis, PRUint3= 2 *alpha); - nsresult PR_COM_METHOD (*SetAlpha)(IFramebufferOverlay *pThis, PRUint3= 2 alpha); - - nsresult PR_COM_METHOD (*Move)( - IFramebufferOverlay *pThis, - PRUint32 x, - PRUint32 y - ); - -}; - -struct IFramebufferOverlay -{ - struct IFramebufferOverlay_vtbl *vtbl; -}; -/* End of struct IFramebufferOverlay Declaration */ - - -/* Start of struct IDisplay Declaration */ -# define IDISPLAY_IID_STR "09EED313-CD56-4D06-BD56-FAC0F716B5DD" -# define IDISPLAY_IID { \ - 0x09EED313, 0xCD56, 0x4D06, \ - { 0xBD, 0x56, 0xFA, 0xC0, 0xF7, 0x16, 0xB5, 0xDD } \ -} -struct IDisplay_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetScreenResolution)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 * bitsPerPixel - ); - - nsresult PR_COM_METHOD (*SetFramebuffer)( - IDisplay *pThis, - PRUint32 screenId, - IFramebuffer * framebuffer - ); - - nsresult PR_COM_METHOD (*GetFramebuffer)( - IDisplay *pThis, - PRUint32 screenId, - IFramebuffer * * framebuffer, - PRInt32 * xOrigin, - PRInt32 * yOrigin - ); - - nsresult PR_COM_METHOD (*SetVideoModeHint)( - IDisplay *pThis, - PRUint32 width, - PRUint32 height, - PRUint32 bitsPerPixel, - PRUint32 display - ); - - nsresult PR_COM_METHOD (*SetSeamlessMode)( - IDisplay *pThis, - PRBool enabled - ); - - nsresult PR_COM_METHOD (*TakeScreenShot)( - IDisplay *pThis, - PRUint32 screenId, - PRUint8 * address, - PRUint32 width, - PRUint32 height - ); - - nsresult PR_COM_METHOD (*TakeScreenShotToArray)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 width, - PRUint32 height, - PRUint32 *screenDataSize, - PRUint8** screenData - ); - - nsresult PR_COM_METHOD (*TakeScreenShotPNGToArray)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 width, - PRUint32 height, - PRUint32 *screenDataSize, - PRUint8** screenData - ); - - nsresult PR_COM_METHOD (*DrawToScreen)( - IDisplay *pThis, - PRUint32 screenId, - PRUint8 * address, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - - nsresult PR_COM_METHOD (*InvalidateAndUpdate)(IDisplay *pThis ); - - nsresult PR_COM_METHOD (*ResizeCompleted)( - IDisplay *pThis, - PRUint32 screenId - ); - - nsresult PR_COM_METHOD (*CompleteVHWACommand)( - IDisplay *pThis, - PRUint8 * command - ); - -}; - -struct IDisplay -{ - struct IDisplay_vtbl *vtbl; -}; -/* End of struct IDisplay Declaration */ - - -/* Start of struct INetworkAdapter Declaration */ -# define INETWORKADAPTER_IID_STR "9bf58a46-c3f7-4f31-80fa-dde9a5dc0b7b" -# define INETWORKADAPTER_IID { \ - 0x9bf58a46, 0xc3f7, 0x4f31, \ - { 0x80, 0xfa, 0xdd, 0xe9, 0xa5, 0xdc, 0x0b, 0x7b } \ -} -struct INetworkAdapter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetAdapterType)(INetworkAdapter *pThis, PRUin= t32 *adapterType); - nsresult PR_COM_METHOD (*SetAdapterType)(INetworkAdapter *pThis, PRUin= t32 adapterType); - - nsresult PR_COM_METHOD (*GetSlot)(INetworkAdapter *pThis, PRUint32 *sl= ot); - - nsresult PR_COM_METHOD (*GetEnabled)(INetworkAdapter *pThis, PRBool *e= nabled); - nsresult PR_COM_METHOD (*SetEnabled)(INetworkAdapter *pThis, PRBool en= abled); - - nsresult PR_COM_METHOD (*GetMACAddress)(INetworkAdapter *pThis, PRUnic= har * *MACAddress); - nsresult PR_COM_METHOD (*SetMACAddress)(INetworkAdapter *pThis, PRUnic= har * MACAddress); - - nsresult PR_COM_METHOD (*GetAttachmentType)(INetworkAdapter *pThis, PR= Uint32 *attachmentType); - - nsresult PR_COM_METHOD (*GetHostInterface)(INetworkAdapter *pThis, PRU= nichar * *hostInterface); - nsresult PR_COM_METHOD (*SetHostInterface)(INetworkAdapter *pThis, PRU= nichar * hostInterface); - - nsresult PR_COM_METHOD (*GetInternalNetwork)(INetworkAdapter *pThis, P= RUnichar * *internalNetwork); - nsresult PR_COM_METHOD (*SetInternalNetwork)(INetworkAdapter *pThis, P= RUnichar * internalNetwork); - - nsresult PR_COM_METHOD (*GetNATNetwork)(INetworkAdapter *pThis, PRUnic= har * *NATNetwork); - nsresult PR_COM_METHOD (*SetNATNetwork)(INetworkAdapter *pThis, PRUnic= har * NATNetwork); - - nsresult PR_COM_METHOD (*GetVDENetwork)(INetworkAdapter *pThis, PRUnic= har * *VDENetwork); - nsresult PR_COM_METHOD (*SetVDENetwork)(INetworkAdapter *pThis, PRUnic= har * VDENetwork); - - nsresult PR_COM_METHOD (*GetCableConnected)(INetworkAdapter *pThis, PR= Bool *cableConnected); - nsresult PR_COM_METHOD (*SetCableConnected)(INetworkAdapter *pThis, PR= Bool cableConnected); - - nsresult PR_COM_METHOD (*GetLineSpeed)(INetworkAdapter *pThis, PRUint3= 2 *lineSpeed); - nsresult PR_COM_METHOD (*SetLineSpeed)(INetworkAdapter *pThis, PRUint3= 2 lineSpeed); - - nsresult PR_COM_METHOD (*GetTraceEnabled)(INetworkAdapter *pThis, PRBo= ol *traceEnabled); - nsresult PR_COM_METHOD (*SetTraceEnabled)(INetworkAdapter *pThis, PRBo= ol traceEnabled); - - nsresult PR_COM_METHOD (*GetTraceFile)(INetworkAdapter *pThis, PRUnich= ar * *traceFile); - nsresult PR_COM_METHOD (*SetTraceFile)(INetworkAdapter *pThis, PRUnich= ar * traceFile); - - nsresult PR_COM_METHOD (*GetNatDriver)(INetworkAdapter *pThis, INATEng= ine * *natDriver); - - nsresult PR_COM_METHOD (*GetBootPriority)(INetworkAdapter *pThis, PRUi= nt32 *bootPriority); - nsresult PR_COM_METHOD (*SetBootPriority)(INetworkAdapter *pThis, PRUi= nt32 bootPriority); - - nsresult PR_COM_METHOD (*GetBandwidthLimit)(INetworkAdapter *pThis, PR= Uint32 *bandwidthLimit); - nsresult PR_COM_METHOD (*SetBandwidthLimit)(INetworkAdapter *pThis, PR= Uint32 bandwidthLimit); - - nsresult PR_COM_METHOD (*AttachToNAT)(INetworkAdapter *pThis ); - - nsresult PR_COM_METHOD (*AttachToBridgedInterface)(INetworkAdapter *pT= his ); - - nsresult PR_COM_METHOD (*AttachToInternalNetwork)(INetworkAdapter *pTh= is ); - - nsresult PR_COM_METHOD (*AttachToHostOnlyInterface)(INetworkAdapter *p= This ); - - nsresult PR_COM_METHOD (*AttachToVDE)(INetworkAdapter *pThis ); - - nsresult PR_COM_METHOD (*Detach)(INetworkAdapter *pThis ); - -}; - -struct INetworkAdapter -{ - struct INetworkAdapter_vtbl *vtbl; -}; -/* End of struct INetworkAdapter Declaration */ - - -/* Start of struct ISerialPort Declaration */ -# define ISERIALPORT_IID_STR "937f6970-5103-4745-b78e-d28dcf1479a8" -# define ISERIALPORT_IID { \ - 0x937f6970, 0x5103, 0x4745, \ - { 0xb7, 0x8e, 0xd2, 0x8d, 0xcf, 0x14, 0x79, 0xa8 } \ -} -struct ISerialPort_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetSlot)(ISerialPort *pThis, PRUint32 *slot); - - nsresult PR_COM_METHOD (*GetEnabled)(ISerialPort *pThis, PRBool *enabl= ed); - nsresult PR_COM_METHOD (*SetEnabled)(ISerialPort *pThis, PRBool enable= d); - - nsresult PR_COM_METHOD (*GetIOBase)(ISerialPort *pThis, PRUint32 *IOBa= se); - nsresult PR_COM_METHOD (*SetIOBase)(ISerialPort *pThis, PRUint32 IOBas= e); - - nsresult PR_COM_METHOD (*GetIRQ)(ISerialPort *pThis, PRUint32 *IRQ); - nsresult PR_COM_METHOD (*SetIRQ)(ISerialPort *pThis, PRUint32 IRQ); - - nsresult PR_COM_METHOD (*GetHostMode)(ISerialPort *pThis, PRUint32 *ho= stMode); - nsresult PR_COM_METHOD (*SetHostMode)(ISerialPort *pThis, PRUint32 hos= tMode); - - nsresult PR_COM_METHOD (*GetServer)(ISerialPort *pThis, PRBool *server= ); - nsresult PR_COM_METHOD (*SetServer)(ISerialPort *pThis, PRBool server); - - nsresult PR_COM_METHOD (*GetPath)(ISerialPort *pThis, PRUnichar * *pat= h); - nsresult PR_COM_METHOD (*SetPath)(ISerialPort *pThis, PRUnichar * path= ); - -}; - -struct ISerialPort -{ - struct ISerialPort_vtbl *vtbl; -}; -/* End of struct ISerialPort Declaration */ - - -/* Start of struct IParallelPort Declaration */ -# define IPARALLELPORT_IID_STR "0c925f06-dd10-4b77-8de8-294d738c3214" -# define IPARALLELPORT_IID { \ - 0x0c925f06, 0xdd10, 0x4b77, \ - { 0x8d, 0xe8, 0x29, 0x4d, 0x73, 0x8c, 0x32, 0x14 } \ -} -struct IParallelPort_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetSlot)(IParallelPort *pThis, PRUint32 *slot= ); - - nsresult PR_COM_METHOD (*GetEnabled)(IParallelPort *pThis, PRBool *ena= bled); - nsresult PR_COM_METHOD (*SetEnabled)(IParallelPort *pThis, PRBool enab= led); - - nsresult PR_COM_METHOD (*GetIOBase)(IParallelPort *pThis, PRUint32 *IO= Base); - nsresult PR_COM_METHOD (*SetIOBase)(IParallelPort *pThis, PRUint32 IOB= ase); - - nsresult PR_COM_METHOD (*GetIRQ)(IParallelPort *pThis, PRUint32 *IRQ); - nsresult PR_COM_METHOD (*SetIRQ)(IParallelPort *pThis, PRUint32 IRQ); - - nsresult PR_COM_METHOD (*GetPath)(IParallelPort *pThis, PRUnichar * *p= ath); - nsresult PR_COM_METHOD (*SetPath)(IParallelPort *pThis, PRUnichar * pa= th); - -}; - -struct IParallelPort -{ - struct IParallelPort_vtbl *vtbl; -}; -/* End of struct IParallelPort Declaration */ - - -/* Start of struct IMachineDebugger Declaration */ -# define IMACHINEDEBUGGER_IID_STR "1bfd2fa9-0d91-44d3-9515-368dcbb3eb4d" -# define IMACHINEDEBUGGER_IID { \ - 0x1bfd2fa9, 0x0d91, 0x44d3, \ - { 0x95, 0x15, 0x36, 0x8d, 0xcb, 0xb3, 0xeb, 0x4d } \ -} -struct IMachineDebugger_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetSinglestep)(IMachineDebugger *pThis, PRBoo= l *singlestep); - nsresult PR_COM_METHOD (*SetSinglestep)(IMachineDebugger *pThis, PRBoo= l singlestep); - - nsresult PR_COM_METHOD (*GetRecompileUser)(IMachineDebugger *pThis, PR= Bool *recompileUser); - nsresult PR_COM_METHOD (*SetRecompileUser)(IMachineDebugger *pThis, PR= Bool recompileUser); - - nsresult PR_COM_METHOD (*GetRecompileSupervisor)(IMachineDebugger *pTh= is, PRBool *recompileSupervisor); - nsresult PR_COM_METHOD (*SetRecompileSupervisor)(IMachineDebugger *pTh= is, PRBool recompileSupervisor); - - nsresult PR_COM_METHOD (*GetPATMEnabled)(IMachineDebugger *pThis, PRBo= ol *PATMEnabled); - nsresult PR_COM_METHOD (*SetPATMEnabled)(IMachineDebugger *pThis, PRBo= ol PATMEnabled); - - nsresult PR_COM_METHOD (*GetCSAMEnabled)(IMachineDebugger *pThis, PRBo= ol *CSAMEnabled); - nsresult PR_COM_METHOD (*SetCSAMEnabled)(IMachineDebugger *pThis, PRBo= ol CSAMEnabled); - - nsresult PR_COM_METHOD (*GetLogEnabled)(IMachineDebugger *pThis, PRBoo= l *logEnabled); - nsresult PR_COM_METHOD (*SetLogEnabled)(IMachineDebugger *pThis, PRBoo= l logEnabled); - - nsresult PR_COM_METHOD (*GetLogFlags)(IMachineDebugger *pThis, PRUnich= ar * *logFlags); - - nsresult PR_COM_METHOD (*GetLogGroups)(IMachineDebugger *pThis, PRUnic= har * *logGroups); - - nsresult PR_COM_METHOD (*GetLogDestinations)(IMachineDebugger *pThis, = PRUnichar * *logDestinations); - - nsresult PR_COM_METHOD (*GetHWVirtExEnabled)(IMachineDebugger *pThis, = PRBool *HWVirtExEnabled); - - nsresult PR_COM_METHOD (*GetHWVirtExNestedPagingEnabled)(IMachineDebug= ger *pThis, PRBool *HWVirtExNestedPagingEnabled); - - nsresult PR_COM_METHOD (*GetHWVirtExVPIDEnabled)(IMachineDebugger *pTh= is, PRBool *HWVirtExVPIDEnabled); - - nsresult PR_COM_METHOD (*GetOSName)(IMachineDebugger *pThis, PRUnichar= * *OSName); - - nsresult PR_COM_METHOD (*GetOSVersion)(IMachineDebugger *pThis, PRUnic= har * *OSVersion); - - nsresult PR_COM_METHOD (*GetPAEEnabled)(IMachineDebugger *pThis, PRBoo= l *PAEEnabled); - - nsresult PR_COM_METHOD (*GetVirtualTimeRate)(IMachineDebugger *pThis, = PRUint32 *virtualTimeRate); - nsresult PR_COM_METHOD (*SetVirtualTimeRate)(IMachineDebugger *pThis, = PRUint32 virtualTimeRate); - - nsresult PR_COM_METHOD (*GetVM)(IMachineDebugger *pThis, PRInt64 *VM); - - nsresult PR_COM_METHOD (*DumpGuestCore)( - IMachineDebugger *pThis, - PRUnichar * filename, - PRUnichar * compression - ); - - nsresult PR_COM_METHOD (*DumpHostProcessCore)( - IMachineDebugger *pThis, - PRUnichar * filename, - PRUnichar * compression - ); - - nsresult PR_COM_METHOD (*Info)( - IMachineDebugger *pThis, - PRUnichar * name, - PRUnichar * args, - PRUnichar * * info - ); - - nsresult PR_COM_METHOD (*InjectNMI)(IMachineDebugger *pThis ); - - nsresult PR_COM_METHOD (*ModifyLogGroups)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult PR_COM_METHOD (*ModifyLogFlags)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult PR_COM_METHOD (*ModifyLogDestinations)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult PR_COM_METHOD (*ReadPhysicalMemory)( - IMachineDebugger *pThis, - PRInt64 address, - PRUint32 size, - PRUint32 *bytesSize, - PRUint8** bytes - ); - - nsresult PR_COM_METHOD (*WritePhysicalMemory)( - IMachineDebugger *pThis, - PRInt64 address, - PRUint32 size, - PRUint32 bytesSize, - PRUint8* bytes - ); - - nsresult PR_COM_METHOD (*ReadVirtualMemory)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRInt64 address, - PRUint32 size, - PRUint32 *bytesSize, - PRUint8** bytes - ); - - nsresult PR_COM_METHOD (*WriteVirtualMemory)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRInt64 address, - PRUint32 size, - PRUint32 bytesSize, - PRUint8* bytes - ); - - nsresult PR_COM_METHOD (*DetectOS)( - IMachineDebugger *pThis, - PRUnichar * * os - ); - - nsresult PR_COM_METHOD (*GetRegister)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*GetRegisters)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *valuesSize, - PRUnichar *** values - ); - - nsresult PR_COM_METHOD (*SetRegister)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * name, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*SetRegisters)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUint32 namesSize, - PRUnichar ** names, - PRUint32 valuesSize, - PRUnichar ** values - ); - - nsresult PR_COM_METHOD (*DumpGuestStack)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * * stack - ); - - nsresult PR_COM_METHOD (*ResetStats)( - IMachineDebugger *pThis, - PRUnichar * pattern - ); - - nsresult PR_COM_METHOD (*DumpStats)( - IMachineDebugger *pThis, - PRUnichar * pattern - ); - - nsresult PR_COM_METHOD (*GetStats)( - IMachineDebugger *pThis, - PRUnichar * pattern, - PRBool withDescriptions, - PRUnichar * * stats - ); - -}; - -struct IMachineDebugger -{ - struct IMachineDebugger_vtbl *vtbl; -}; -/* End of struct IMachineDebugger Declaration */ - - -/* Start of struct IUSBController Declaration */ -# define IUSBCONTROLLER_IID_STR "6fdcccc5-abd3-4fec-9387-2ad3914fc4a8" -# define IUSBCONTROLLER_IID { \ - 0x6fdcccc5, 0xabd3, 0x4fec, \ - { 0x93, 0x87, 0x2a, 0xd3, 0x91, 0x4f, 0xc4, 0xa8 } \ -} -struct IUSBController_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IUSBController *pThis, PRBool *en= abled); - nsresult PR_COM_METHOD (*SetEnabled)(IUSBController *pThis, PRBool ena= bled); - - nsresult PR_COM_METHOD (*GetEnabledEhci)(IUSBController *pThis, PRBool= *enabledEhci); - nsresult PR_COM_METHOD (*SetEnabledEhci)(IUSBController *pThis, PRBool= enabledEhci); - - nsresult PR_COM_METHOD (*GetProxyAvailable)(IUSBController *pThis, PRB= ool *proxyAvailable); - - nsresult PR_COM_METHOD (*GetUSBStandard)(IUSBController *pThis, PRUint= 16 *USBStandard); - - nsresult PR_COM_METHOD (*GetDeviceFilters)(IUSBController *pThis, PRUi= nt32 *deviceFiltersSize, IUSBDeviceFilter * **deviceFilters); - - nsresult PR_COM_METHOD (*CreateDeviceFilter)( - IUSBController *pThis, - PRUnichar * name, - IUSBDeviceFilter * * filter - ); - - nsresult PR_COM_METHOD (*InsertDeviceFilter)( - IUSBController *pThis, - PRUint32 position, - IUSBDeviceFilter * filter - ); - - nsresult PR_COM_METHOD (*RemoveDeviceFilter)( - IUSBController *pThis, - PRUint32 position, - IUSBDeviceFilter * * filter - ); - -}; - -struct IUSBController -{ - struct IUSBController_vtbl *vtbl; -}; -/* End of struct IUSBController Declaration */ - - -/* Start of struct IUSBDevice Declaration */ -# define IUSBDEVICE_IID_STR "f8967b0b-4483-400f-92b5-8b675d98a85b" -# define IUSBDEVICE_IID { \ - 0xf8967b0b, 0x4483, 0x400f, \ - { 0x92, 0xb5, 0x8b, 0x67, 0x5d, 0x98, 0xa8, 0x5b } \ -} -struct IUSBDevice_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IUSBDevice *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetVendorId)(IUSBDevice *pThis, PRUint16 *ven= dorId); - - nsresult PR_COM_METHOD (*GetProductId)(IUSBDevice *pThis, PRUint16 *pr= oductId); - - nsresult PR_COM_METHOD (*GetRevision)(IUSBDevice *pThis, PRUint16 *rev= ision); - - nsresult PR_COM_METHOD (*GetManufacturer)(IUSBDevice *pThis, PRUnichar= * *manufacturer); - - nsresult PR_COM_METHOD (*GetProduct)(IUSBDevice *pThis, PRUnichar * *p= roduct); - - nsresult PR_COM_METHOD (*GetSerialNumber)(IUSBDevice *pThis, PRUnichar= * *serialNumber); - - nsresult PR_COM_METHOD (*GetAddress)(IUSBDevice *pThis, PRUnichar * *a= ddress); - - nsresult PR_COM_METHOD (*GetPort)(IUSBDevice *pThis, PRUint16 *port); - - nsresult PR_COM_METHOD (*GetVersion)(IUSBDevice *pThis, PRUint16 *vers= ion); - - nsresult PR_COM_METHOD (*GetPortVersion)(IUSBDevice *pThis, PRUint16 *= portVersion); - - nsresult PR_COM_METHOD (*GetRemote)(IUSBDevice *pThis, PRBool *remote); - -}; - -struct IUSBDevice -{ - struct IUSBDevice_vtbl *vtbl; -}; -/* End of struct IUSBDevice Declaration */ - - -/* Start of struct IUSBDeviceFilter Declaration */ -# define IUSBDEVICEFILTER_IID_STR "d6831fb4-1a94-4c2c-96ef-8d0d6192066d" -# define IUSBDEVICEFILTER_IID { \ - 0xd6831fb4, 0x1a94, 0x4c2c, \ - { 0x96, 0xef, 0x8d, 0x0d, 0x61, 0x92, 0x06, 0x6d } \ -} -struct IUSBDeviceFilter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IUSBDeviceFilter *pThis, PRUnichar *= *name); - nsresult PR_COM_METHOD (*SetName)(IUSBDeviceFilter *pThis, PRUnichar *= name); - - nsresult PR_COM_METHOD (*GetActive)(IUSBDeviceFilter *pThis, PRBool *a= ctive); - nsresult PR_COM_METHOD (*SetActive)(IUSBDeviceFilter *pThis, PRBool ac= tive); - - nsresult PR_COM_METHOD (*GetVendorId)(IUSBDeviceFilter *pThis, PRUnich= ar * *vendorId); - nsresult PR_COM_METHOD (*SetVendorId)(IUSBDeviceFilter *pThis, PRUnich= ar * vendorId); - - nsresult PR_COM_METHOD (*GetProductId)(IUSBDeviceFilter *pThis, PRUnic= har * *productId); - nsresult PR_COM_METHOD (*SetProductId)(IUSBDeviceFilter *pThis, PRUnic= har * productId); - - nsresult PR_COM_METHOD (*GetRevision)(IUSBDeviceFilter *pThis, PRUnich= ar * *revision); - nsresult PR_COM_METHOD (*SetRevision)(IUSBDeviceFilter *pThis, PRUnich= ar * revision); - - nsresult PR_COM_METHOD (*GetManufacturer)(IUSBDeviceFilter *pThis, PRU= nichar * *manufacturer); - nsresult PR_COM_METHOD (*SetManufacturer)(IUSBDeviceFilter *pThis, PRU= nichar * manufacturer); - - nsresult PR_COM_METHOD (*GetProduct)(IUSBDeviceFilter *pThis, PRUnicha= r * *product); - nsresult PR_COM_METHOD (*SetProduct)(IUSBDeviceFilter *pThis, PRUnicha= r * product); - - nsresult PR_COM_METHOD (*GetSerialNumber)(IUSBDeviceFilter *pThis, PRU= nichar * *serialNumber); - nsresult PR_COM_METHOD (*SetSerialNumber)(IUSBDeviceFilter *pThis, PRU= nichar * serialNumber); - - nsresult PR_COM_METHOD (*GetPort)(IUSBDeviceFilter *pThis, PRUnichar *= *port); - nsresult PR_COM_METHOD (*SetPort)(IUSBDeviceFilter *pThis, PRUnichar *= port); - - nsresult PR_COM_METHOD (*GetRemote)(IUSBDeviceFilter *pThis, PRUnichar= * *remote); - nsresult PR_COM_METHOD (*SetRemote)(IUSBDeviceFilter *pThis, PRUnichar= * remote); - - nsresult PR_COM_METHOD (*GetMaskedInterfaces)(IUSBDeviceFilter *pThis,= PRUint32 *maskedInterfaces); - nsresult PR_COM_METHOD (*SetMaskedInterfaces)(IUSBDeviceFilter *pThis,= PRUint32 maskedInterfaces); - -}; - -struct IUSBDeviceFilter -{ - struct IUSBDeviceFilter_vtbl *vtbl; -}; -/* End of struct IUSBDeviceFilter Declaration */ - - -/* Start of struct IHostUSBDevice Declaration */ -# define IHOSTUSBDEVICE_IID_STR "173b4b44-d268-4334-a00d-b6521c9a740a" -# define IHOSTUSBDEVICE_IID { \ - 0x173b4b44, 0xd268, 0x4334, \ - { 0xa0, 0x0d, 0xb6, 0x52, 0x1c, 0x9a, 0x74, 0x0a } \ -} -struct IHostUSBDevice_vtbl -{ - struct IUSBDevice_vtbl iusbdevice; - - nsresult PR_COM_METHOD (*GetState)(IHostUSBDevice *pThis, PRUint32 *st= ate); - -}; - -struct IHostUSBDevice -{ - struct IHostUSBDevice_vtbl *vtbl; -}; -/* End of struct IHostUSBDevice Declaration */ - - -/* Start of struct IHostUSBDeviceFilter Declaration */ -# define IHOSTUSBDEVICEFILTER_IID_STR "4cc70246-d74a-400f-8222-3900489c03= 74" -# define IHOSTUSBDEVICEFILTER_IID { \ - 0x4cc70246, 0xd74a, 0x400f, \ - { 0x82, 0x22, 0x39, 0x00, 0x48, 0x9c, 0x03, 0x74 } \ -} -struct IHostUSBDeviceFilter_vtbl -{ - struct IUSBDeviceFilter_vtbl iusbdevicefilter; - - nsresult PR_COM_METHOD (*GetAction)(IHostUSBDeviceFilter *pThis, PRUin= t32 *action); - nsresult PR_COM_METHOD (*SetAction)(IHostUSBDeviceFilter *pThis, PRUin= t32 action); - -}; - -struct IHostUSBDeviceFilter -{ - struct IHostUSBDeviceFilter_vtbl *vtbl; -}; -/* End of struct IHostUSBDeviceFilter Declaration */ - - -/* Start of struct IAudioAdapter Declaration */ -# define IAUDIOADAPTER_IID_STR "921873db-5f3f-4b69-91f9-7be9e535a2cb" -# define IAUDIOADAPTER_IID { \ - 0x921873db, 0x5f3f, 0x4b69, \ - { 0x91, 0xf9, 0x7b, 0xe9, 0xe5, 0x35, 0xa2, 0xcb } \ -} -struct IAudioAdapter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IAudioAdapter *pThis, PRBool *ena= bled); - nsresult PR_COM_METHOD (*SetEnabled)(IAudioAdapter *pThis, PRBool enab= led); - - nsresult PR_COM_METHOD (*GetAudioController)(IAudioAdapter *pThis, PRU= int32 *audioController); - nsresult PR_COM_METHOD (*SetAudioController)(IAudioAdapter *pThis, PRU= int32 audioController); - - nsresult PR_COM_METHOD (*GetAudioDriver)(IAudioAdapter *pThis, PRUint3= 2 *audioDriver); - nsresult PR_COM_METHOD (*SetAudioDriver)(IAudioAdapter *pThis, PRUint3= 2 audioDriver); - -}; - -struct IAudioAdapter -{ - struct IAudioAdapter_vtbl *vtbl; -}; -/* End of struct IAudioAdapter Declaration */ - - -/* Start of struct IVRDEServer Declaration */ -# define IVRDESERVER_IID_STR "be24e0db-e1d6-4d58-b85b-21053d1511b4" -# define IVRDESERVER_IID { \ - 0xbe24e0db, 0xe1d6, 0x4d58, \ - { 0xb8, 0x5b, 0x21, 0x05, 0x3d, 0x15, 0x11, 0xb4 } \ -} -struct IVRDEServer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IVRDEServer *pThis, PRBool *enabl= ed); - nsresult PR_COM_METHOD (*SetEnabled)(IVRDEServer *pThis, PRBool enable= d); - - nsresult PR_COM_METHOD (*GetAuthType)(IVRDEServer *pThis, PRUint32 *au= thType); - nsresult PR_COM_METHOD (*SetAuthType)(IVRDEServer *pThis, PRUint32 aut= hType); - - nsresult PR_COM_METHOD (*GetAuthTimeout)(IVRDEServer *pThis, PRUint32 = *authTimeout); - nsresult PR_COM_METHOD (*SetAuthTimeout)(IVRDEServer *pThis, PRUint32 = authTimeout); - - nsresult PR_COM_METHOD (*GetAllowMultiConnection)(IVRDEServer *pThis, = PRBool *allowMultiConnection); - nsresult PR_COM_METHOD (*SetAllowMultiConnection)(IVRDEServer *pThis, = PRBool allowMultiConnection); - - nsresult PR_COM_METHOD (*GetReuseSingleConnection)(IVRDEServer *pThis,= PRBool *reuseSingleConnection); - nsresult PR_COM_METHOD (*SetReuseSingleConnection)(IVRDEServer *pThis,= PRBool reuseSingleConnection); - - nsresult PR_COM_METHOD (*GetVRDEExtPack)(IVRDEServer *pThis, PRUnichar= * *VRDEExtPack); - nsresult PR_COM_METHOD (*SetVRDEExtPack)(IVRDEServer *pThis, PRUnichar= * VRDEExtPack); - - nsresult PR_COM_METHOD (*GetAuthLibrary)(IVRDEServer *pThis, PRUnichar= * *AuthLibrary); - nsresult PR_COM_METHOD (*SetAuthLibrary)(IVRDEServer *pThis, PRUnichar= * AuthLibrary); - - nsresult PR_COM_METHOD (*GetVRDEProperties)(IVRDEServer *pThis, PRUint= 32 *VRDEPropertiesSize, PRUnichar * **VRDEProperties); - - nsresult PR_COM_METHOD (*SetVRDEProperty)( - IVRDEServer *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetVRDEProperty)( - IVRDEServer *pThis, - PRUnichar * key, - PRUnichar * * value - ); - -}; - -struct IVRDEServer -{ - struct IVRDEServer_vtbl *vtbl; -}; -/* End of struct IVRDEServer Declaration */ - - -/* Start of struct ISharedFolder Declaration */ -# define ISHAREDFOLDER_IID_STR "8388da11-b559-4574-a5b7-2bd7acd5cef8" -# define ISHAREDFOLDER_IID { \ - 0x8388da11, 0xb559, 0x4574, \ - { 0xa5, 0xb7, 0x2b, 0xd7, 0xac, 0xd5, 0xce, 0xf8 } \ -} -struct ISharedFolder_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(ISharedFolder *pThis, PRUnichar * *n= ame); - - nsresult PR_COM_METHOD (*GetHostPath)(ISharedFolder *pThis, PRUnichar = * *hostPath); - - nsresult PR_COM_METHOD (*GetAccessible)(ISharedFolder *pThis, PRBool *= accessible); - - nsresult PR_COM_METHOD (*GetWritable)(ISharedFolder *pThis, PRBool *wr= itable); - - nsresult PR_COM_METHOD (*GetAutoMount)(ISharedFolder *pThis, PRBool *a= utoMount); - - nsresult PR_COM_METHOD (*GetLastAccessError)(ISharedFolder *pThis, PRU= nichar * *lastAccessError); - -}; - -struct ISharedFolder -{ - struct ISharedFolder_vtbl *vtbl; -}; -/* End of struct ISharedFolder Declaration */ - - -/* Start of struct IInternalSessionControl Declaration */ -# define IINTERNALSESSIONCONTROL_IID_STR "a2fbf834-149d-41da-ae52-0dc3b0f= 032b3" -# define IINTERNALSESSIONCONTROL_IID { \ - 0xa2fbf834, 0x149d, 0x41da, \ - { 0xae, 0x52, 0x0d, 0xc3, 0xb0, 0xf0, 0x32, 0xb3 } \ -} -struct IInternalSessionControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetPID)( - IInternalSessionControl *pThis, - PRUint32 * pid - ); - - nsresult PR_COM_METHOD (*GetRemoteConsole)( - IInternalSessionControl *pThis, - IConsole * * console - ); - - nsresult PR_COM_METHOD (*AssignMachine)( - IInternalSessionControl *pThis, - IMachine * machine - ); - - nsresult PR_COM_METHOD (*AssignRemoteMachine)( - IInternalSessionControl *pThis, - IMachine * machine, - IConsole * console - ); - - nsresult PR_COM_METHOD (*UpdateMachineState)( - IInternalSessionControl *pThis, - PRUint32 aMachineState - ); - - nsresult PR_COM_METHOD (*Uninitialize)(IInternalSessionControl *pThis = ); - - nsresult PR_COM_METHOD (*OnNetworkAdapterChange)( - IInternalSessionControl *pThis, - INetworkAdapter * networkAdapter, - PRBool changeAdapter - ); - - nsresult PR_COM_METHOD (*OnSerialPortChange)( - IInternalSessionControl *pThis, - ISerialPort * serialPort - ); - - nsresult PR_COM_METHOD (*OnParallelPortChange)( - IInternalSessionControl *pThis, - IParallelPort * parallelPort - ); - - nsresult PR_COM_METHOD (*OnStorageControllerChange)(IInternalSessionCo= ntrol *pThis ); - - nsresult PR_COM_METHOD (*OnMediumChange)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRBool force - ); - - nsresult PR_COM_METHOD (*OnCPUChange)( - IInternalSessionControl *pThis, - PRUint32 cpu, - PRBool add - ); - - nsresult PR_COM_METHOD (*OnCPUExecutionCapChange)( - IInternalSessionControl *pThis, - PRUint32 executionCap - ); - - nsresult PR_COM_METHOD (*OnVRDEServerChange)( - IInternalSessionControl *pThis, - PRBool restart - ); - - nsresult PR_COM_METHOD (*OnUSBControllerChange)(IInternalSessionContro= l *pThis ); - - nsresult PR_COM_METHOD (*OnSharedFolderChange)( - IInternalSessionControl *pThis, - PRBool global - ); - - nsresult PR_COM_METHOD (*OnUSBDeviceAttach)( - IInternalSessionControl *pThis, - IUSBDevice * device, - IVirtualBoxErrorInfo * error, - PRUint32 maskedInterfaces - ); - - nsresult PR_COM_METHOD (*OnUSBDeviceDetach)( - IInternalSessionControl *pThis, - PRUnichar * id, - IVirtualBoxErrorInfo * error - ); - - nsresult PR_COM_METHOD (*OnShowWindow)( - IInternalSessionControl *pThis, - PRBool check, - PRBool * canShow, - PRInt64 * winId - ); - - nsresult PR_COM_METHOD (*OnBandwidthGroupChange)( - IInternalSessionControl *pThis, - IBandwidthGroup * bandwidthGroup - ); - - nsresult PR_COM_METHOD (*AccessGuestProperty)( - IInternalSessionControl *pThis, - PRUnichar * name, - PRUnichar * value, - PRUnichar * flags, - PRBool isSetter, - PRUnichar * * retValue, - PRInt64 * retTimestamp, - PRUnichar * * retFlags - ); - - nsresult PR_COM_METHOD (*EnumerateGuestProperties)( - IInternalSessionControl *pThis, - PRUnichar * patterns, - PRUint32 *keySize, - PRUnichar *** key, - PRUint32 *valueSize, - PRUnichar *** value, - PRUint32 *timestampSize, - PRInt64* timestamp, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult PR_COM_METHOD (*OnlineMergeMedium)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRUint32 sourceIdx, - PRUint32 targetIdx, - IMedium * source, - IMedium * target, - PRBool mergeForward, - IMedium * parentForTarget, - PRUint32 childrenToReparentSize, - IMedium ** childrenToReparent, - IProgress * progress - ); - -}; - -struct IInternalSessionControl -{ - struct IInternalSessionControl_vtbl *vtbl; -}; -/* End of struct IInternalSessionControl Declaration */ - - -/* Start of struct ISession Declaration */ -# define ISESSION_IID_STR "12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D" -# define ISESSION_IID { \ - 0x12F4DCDB, 0x12B2, 0x4EC1, \ - { 0xB7, 0xCD, 0xDD, 0xD9, 0xF6, 0xC5, 0xBF, 0x4D } \ -} -struct ISession_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetState)(ISession *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetType)(ISession *pThis, PRUint32 *type); - - nsresult PR_COM_METHOD (*GetMachine)(ISession *pThis, IMachine * *mach= ine); - - nsresult PR_COM_METHOD (*GetConsole)(ISession *pThis, IConsole * *cons= ole); - - nsresult PR_COM_METHOD (*UnlockMachine)(ISession *pThis ); - -}; - -struct ISession -{ - struct ISession_vtbl *vtbl; -}; -/* End of struct ISession Declaration */ - - -/* Start of struct IStorageController Declaration */ -# define ISTORAGECONTROLLER_IID_STR "a1556333-09b6-46d9-bfb7-fc239b7fbe1e" -# define ISTORAGECONTROLLER_IID { \ - 0xa1556333, 0x09b6, 0x46d9, \ - { 0xbf, 0xb7, 0xfc, 0x23, 0x9b, 0x7f, 0xbe, 0x1e } \ -} -struct IStorageController_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IStorageController *pThis, PRUnichar= * *name); - - nsresult PR_COM_METHOD (*GetMaxDevicesPerPortCount)(IStorageController= *pThis, PRUint32 *maxDevicesPerPortCount); - - nsresult PR_COM_METHOD (*GetMinPortCount)(IStorageController *pThis, P= RUint32 *minPortCount); - - nsresult PR_COM_METHOD (*GetMaxPortCount)(IStorageController *pThis, P= RUint32 *maxPortCount); - - nsresult PR_COM_METHOD (*GetInstance)(IStorageController *pThis, PRUin= t32 *instance); - nsresult PR_COM_METHOD (*SetInstance)(IStorageController *pThis, PRUin= t32 instance); - - nsresult PR_COM_METHOD (*GetPortCount)(IStorageController *pThis, PRUi= nt32 *portCount); - nsresult PR_COM_METHOD (*SetPortCount)(IStorageController *pThis, PRUi= nt32 portCount); - - nsresult PR_COM_METHOD (*GetBus)(IStorageController *pThis, PRUint32 *= bus); - - nsresult PR_COM_METHOD (*GetControllerType)(IStorageController *pThis,= PRUint32 *controllerType); - nsresult PR_COM_METHOD (*SetControllerType)(IStorageController *pThis,= PRUint32 controllerType); - - nsresult PR_COM_METHOD (*GetUseHostIOCache)(IStorageController *pThis,= PRBool *useHostIOCache); - nsresult PR_COM_METHOD (*SetUseHostIOCache)(IStorageController *pThis,= PRBool useHostIOCache); - - nsresult PR_COM_METHOD (*GetBootable)(IStorageController *pThis, PRBoo= l *bootable); - - nsresult PR_COM_METHOD (*GetIDEEmulationPort)( - IStorageController *pThis, - PRInt32 devicePosition, - PRInt32 * portNumber - ); - - nsresult PR_COM_METHOD (*SetIDEEmulationPort)( - IStorageController *pThis, - PRInt32 devicePosition, - PRInt32 portNumber - ); - -}; - -struct IStorageController -{ - struct IStorageController_vtbl *vtbl; -}; -/* End of struct IStorageController Declaration */ - - -/* Start of struct IPerformanceMetric Declaration */ -# define IPERFORMANCEMETRIC_IID_STR "2a1a60ae-9345-4019-ad53-d34ba41cbfe9" -# define IPERFORMANCEMETRIC_IID { \ - 0x2a1a60ae, 0x9345, 0x4019, \ - { 0xad, 0x53, 0xd3, 0x4b, 0xa4, 0x1c, 0xbf, 0xe9 } \ -} -struct IPerformanceMetric_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMetricName)(IPerformanceMetric *pThis, PRU= nichar * *metricName); - - nsresult PR_COM_METHOD (*GetObject)(IPerformanceMetric *pThis, nsISupp= orts * *object); - - nsresult PR_COM_METHOD (*GetDescription)(IPerformanceMetric *pThis, PR= Unichar * *description); - - nsresult PR_COM_METHOD (*GetPeriod)(IPerformanceMetric *pThis, PRUint3= 2 *period); - - nsresult PR_COM_METHOD (*GetCount)(IPerformanceMetric *pThis, PRUint32= *count); - - nsresult PR_COM_METHOD (*GetUnit)(IPerformanceMetric *pThis, PRUnichar= * *unit); - - nsresult PR_COM_METHOD (*GetMinimumValue)(IPerformanceMetric *pThis, P= RInt32 *minimumValue); - - nsresult PR_COM_METHOD (*GetMaximumValue)(IPerformanceMetric *pThis, P= RInt32 *maximumValue); - -}; - -struct IPerformanceMetric -{ - struct IPerformanceMetric_vtbl *vtbl; -}; -/* End of struct IPerformanceMetric Declaration */ - - -/* Start of struct IPerformanceCollector Declaration */ -# define IPERFORMANCECOLLECTOR_IID_STR "e22e1acb-ac4a-43bb-a31c-17321659b= 0c6" -# define IPERFORMANCECOLLECTOR_IID { \ - 0xe22e1acb, 0xac4a, 0x43bb, \ - { 0xa3, 0x1c, 0x17, 0x32, 0x16, 0x59, 0xb0, 0xc6 } \ -} -struct IPerformanceCollector_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMetricNames)(IPerformanceCollector *pThis,= PRUint32 *metricNamesSize, PRUnichar * **metricNames); - - nsresult PR_COM_METHOD (*GetMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *metricsSize, - IPerformanceMetric *** metrics - ); - - nsresult PR_COM_METHOD (*SetupMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 period, - PRUint32 count, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult PR_COM_METHOD (*EnableMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult PR_COM_METHOD (*DisableMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult PR_COM_METHOD (*QueryMetricsData)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *returnMetricNamesSize, - PRUnichar *** returnMetricNames, - PRUint32 *returnObjectsSize, - nsISupports ** returnObjects, - PRUint32 *returnUnitsSize, - PRUnichar *** returnUnits, - PRUint32 *returnScalesSize, - PRUint32* returnScales, - PRUint32 *returnSequenceNumbersSize, - PRUint32* returnSequenceNumbers, - PRUint32 *returnDataIndicesSize, - PRUint32* returnDataIndices, - PRUint32 *returnDataLengthsSize, - PRUint32* returnDataLengths, - PRUint32 *returnDataSize, - PRInt32** returnData - ); - -}; - -struct IPerformanceCollector -{ - struct IPerformanceCollector_vtbl *vtbl; -}; -/* End of struct IPerformanceCollector Declaration */ - - -/* Start of struct INATEngine Declaration */ -# define INATENGINE_IID_STR "4b286616-eb03-11de-b0fb-1701eca42246" -# define INATENGINE_IID { \ - 0x4b286616, 0xeb03, 0x11de, \ - { 0xb0, 0xfb, 0x17, 0x01, 0xec, 0xa4, 0x22, 0x46 } \ -} -struct INATEngine_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetNetwork)(INATEngine *pThis, PRUnichar * *n= etwork); - nsresult PR_COM_METHOD (*SetNetwork)(INATEngine *pThis, PRUnichar * ne= twork); - - nsresult PR_COM_METHOD (*GetHostIP)(INATEngine *pThis, PRUnichar * *ho= stIP); - nsresult PR_COM_METHOD (*SetHostIP)(INATEngine *pThis, PRUnichar * hos= tIP); - - nsresult PR_COM_METHOD (*GetTftpPrefix)(INATEngine *pThis, PRUnichar *= *tftpPrefix); - nsresult PR_COM_METHOD (*SetTftpPrefix)(INATEngine *pThis, PRUnichar *= tftpPrefix); - - nsresult PR_COM_METHOD (*GetTftpBootFile)(INATEngine *pThis, PRUnichar= * *tftpBootFile); - nsresult PR_COM_METHOD (*SetTftpBootFile)(INATEngine *pThis, PRUnichar= * tftpBootFile); - - nsresult PR_COM_METHOD (*GetTftpNextServer)(INATEngine *pThis, PRUnich= ar * *tftpNextServer); - nsresult PR_COM_METHOD (*SetTftpNextServer)(INATEngine *pThis, PRUnich= ar * tftpNextServer); - - nsresult PR_COM_METHOD (*GetAliasMode)(INATEngine *pThis, PRUint32 *al= iasMode); - nsresult PR_COM_METHOD (*SetAliasMode)(INATEngine *pThis, PRUint32 ali= asMode); - - nsresult PR_COM_METHOD (*GetDnsPassDomain)(INATEngine *pThis, PRBool *= dnsPassDomain); - nsresult PR_COM_METHOD (*SetDnsPassDomain)(INATEngine *pThis, PRBool d= nsPassDomain); - - nsresult PR_COM_METHOD (*GetDnsProxy)(INATEngine *pThis, PRBool *dnsPr= oxy); - nsresult PR_COM_METHOD (*SetDnsProxy)(INATEngine *pThis, PRBool dnsPro= xy); - - nsresult PR_COM_METHOD (*GetDnsUseHostResolver)(INATEngine *pThis, PRB= ool *dnsUseHostResolver); - nsresult PR_COM_METHOD (*SetDnsUseHostResolver)(INATEngine *pThis, PRB= ool dnsUseHostResolver); - - nsresult PR_COM_METHOD (*GetRedirects)(INATEngine *pThis, PRUint32 *re= directsSize, PRUnichar * **redirects); - - nsresult PR_COM_METHOD (*SetNetworkSettings)( - INATEngine *pThis, - PRUint32 mtu, - PRUint32 sockSnd, - PRUint32 sockRcv, - PRUint32 TcpWndSnd, - PRUint32 TcpWndRcv - ); - - nsresult PR_COM_METHOD (*GetNetworkSettings)( - INATEngine *pThis, - PRUint32 * mtu, - PRUint32 * sockSnd, - PRUint32 * sockRcv, - PRUint32 * TcpWndSnd, - PRUint32 * TcpWndRcv - ); - - nsresult PR_COM_METHOD (*AddRedirect)( - INATEngine *pThis, - PRUnichar * name, - PRUint32 proto, - PRUnichar * hostIp, - PRUint16 hostPort, - PRUnichar * guestIp, - PRUint16 guestPort - ); - - nsresult PR_COM_METHOD (*RemoveRedirect)( - INATEngine *pThis, - PRUnichar * name - ); - -}; - -struct INATEngine -{ - struct INATEngine_vtbl *vtbl; -}; -/* End of struct INATEngine Declaration */ - - -/* Start of struct IExtPackPlugIn Declaration */ -# define IEXTPACKPLUGIN_IID_STR "58000040-e718-4746-bbce-4b86d96da461" -# define IEXTPACKPLUGIN_IID { \ - 0x58000040, 0xe718, 0x4746, \ - { 0xbb, 0xce, 0x4b, 0x86, 0xd9, 0x6d, 0xa4, 0x61 } \ -} -struct IExtPackPlugIn_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IExtPackPlugIn *pThis, PRUnichar * *= name); - - nsresult PR_COM_METHOD (*GetDescription)(IExtPackPlugIn *pThis, PRUnic= har * *description); - - nsresult PR_COM_METHOD (*GetFrontend)(IExtPackPlugIn *pThis, PRUnichar= * *frontend); - - nsresult PR_COM_METHOD (*GetModulePath)(IExtPackPlugIn *pThis, PRUnich= ar * *modulePath); - -}; - -struct IExtPackPlugIn -{ - struct IExtPackPlugIn_vtbl *vtbl; -}; -/* End of struct IExtPackPlugIn Declaration */ - - -/* Start of struct IExtPackBase Declaration */ -# define IEXTPACKBASE_IID_STR "5ffb0b64-0ad6-467d-af62-1157e7dc3c99" -# define IEXTPACKBASE_IID { \ - 0x5ffb0b64, 0x0ad6, 0x467d, \ - { 0xaf, 0x62, 0x11, 0x57, 0xe7, 0xdc, 0x3c, 0x99 } \ -} -struct IExtPackBase_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IExtPackBase *pThis, PRUnichar * *na= me); - - nsresult PR_COM_METHOD (*GetDescription)(IExtPackBase *pThis, PRUnicha= r * *description); - - nsresult PR_COM_METHOD (*GetVersion)(IExtPackBase *pThis, PRUnichar * = *version); - - nsresult PR_COM_METHOD (*GetRevision)(IExtPackBase *pThis, PRUint32 *r= evision); - - nsresult PR_COM_METHOD (*GetVRDEModule)(IExtPackBase *pThis, PRUnichar= * *VRDEModule); - - nsresult PR_COM_METHOD (*GetPlugIns)(IExtPackBase *pThis, PRUint32 *pl= ugInsSize, IExtPackPlugIn * **plugIns); - - nsresult PR_COM_METHOD (*GetUsable)(IExtPackBase *pThis, PRBool *usabl= e); - - nsresult PR_COM_METHOD (*GetWhyUnusable)(IExtPackBase *pThis, PRUnicha= r * *whyUnusable); - - nsresult PR_COM_METHOD (*GetShowLicense)(IExtPackBase *pThis, PRBool *= showLicense); - - nsresult PR_COM_METHOD (*GetLicense)(IExtPackBase *pThis, PRUnichar * = *license); - - nsresult PR_COM_METHOD (*QueryLicense)( - IExtPackBase *pThis, - PRUnichar * preferredLocale, - PRUnichar * preferredLanguage, - PRUnichar * format, - PRUnichar * * licenseText - ); - -}; - -struct IExtPackBase -{ - struct IExtPackBase_vtbl *vtbl; -}; -/* End of struct IExtPackBase Declaration */ - - -/* Start of struct IExtPack Declaration */ -# define IEXTPACK_IID_STR "431685da-3618-4ebc-b038-833ba829b4b2" -# define IEXTPACK_IID { \ - 0x431685da, 0x3618, 0x4ebc, \ - { 0xb0, 0x38, 0x83, 0x3b, 0xa8, 0x29, 0xb4, 0xb2 } \ -} -struct IExtPack_vtbl -{ - struct IExtPackBase_vtbl iextpackbase; - - nsresult PR_COM_METHOD (*QueryObject)( - IExtPack *pThis, - PRUnichar * objUuid, - nsISupports * * returnInterface - ); - -}; - -struct IExtPack -{ - struct IExtPack_vtbl *vtbl; -}; -/* End of struct IExtPack Declaration */ - - -/* Start of struct IExtPackFile Declaration */ -# define IEXTPACKFILE_IID_STR "b6b49f55-efcc-4f08-b486-56e8d8afb10b" -# define IEXTPACKFILE_IID { \ - 0xb6b49f55, 0xefcc, 0x4f08, \ - { 0xb4, 0x86, 0x56, 0xe8, 0xd8, 0xaf, 0xb1, 0x0b } \ -} -struct IExtPackFile_vtbl -{ - struct IExtPackBase_vtbl iextpackbase; - - nsresult PR_COM_METHOD (*GetFilePath)(IExtPackFile *pThis, PRUnichar *= *filePath); - - nsresult PR_COM_METHOD (*Install)( - IExtPackFile *pThis, - PRBool replace, - PRUnichar * displayInfo, - IProgress * * progess - ); - -}; - -struct IExtPackFile -{ - struct IExtPackFile_vtbl *vtbl; -}; -/* End of struct IExtPackFile Declaration */ - - -/* Start of struct IExtPackManager Declaration */ -# define IEXTPACKMANAGER_IID_STR "2451b1ba-ab1c-42fb-b453-c58433bea8c7" -# define IEXTPACKMANAGER_IID { \ - 0x2451b1ba, 0xab1c, 0x42fb, \ - { 0xb4, 0x53, 0xc5, 0x84, 0x33, 0xbe, 0xa8, 0xc7 } \ -} -struct IExtPackManager_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetInstalledExtPacks)(IExtPackManager *pThis,= PRUint32 *installedExtPacksSize, IExtPack * **installedExtPacks); - - nsresult PR_COM_METHOD (*Find)( - IExtPackManager *pThis, - PRUnichar * name, - IExtPack * * returnData - ); - - nsresult PR_COM_METHOD (*OpenExtPackFile)( - IExtPackManager *pThis, - PRUnichar * path, - IExtPackFile * * file - ); - - nsresult PR_COM_METHOD (*Uninstall)( - IExtPackManager *pThis, - PRUnichar * name, - PRBool forcedRemoval, - PRUnichar * displayInfo, - IProgress * * progess - ); - - nsresult PR_COM_METHOD (*Cleanup)(IExtPackManager *pThis ); - - nsresult PR_COM_METHOD (*QueryAllPlugInsForFrontend)( - IExtPackManager *pThis, - PRUnichar * frontendName, - PRUint32 *plugInModulesSize, - PRUnichar *** plugInModules - ); - - nsresult PR_COM_METHOD (*IsExtPackUsable)( - IExtPackManager *pThis, - PRUnichar * name, - PRBool * usable - ); - -}; - -struct IExtPackManager -{ - struct IExtPackManager_vtbl *vtbl; -}; -/* End of struct IExtPackManager Declaration */ - - -/* Start of struct IBandwidthGroup Declaration */ -# define IBANDWIDTHGROUP_IID_STR "badea2d7-0261-4146-89f0-6a57cc34833d" -# define IBANDWIDTHGROUP_IID { \ - 0xbadea2d7, 0x0261, 0x4146, \ - { 0x89, 0xf0, 0x6a, 0x57, 0xcc, 0x34, 0x83, 0x3d } \ -} -struct IBandwidthGroup_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IBandwidthGroup *pThis, PRUnichar * = *name); - - nsresult PR_COM_METHOD (*GetType)(IBandwidthGroup *pThis, PRUint32 *ty= pe); - - nsresult PR_COM_METHOD (*GetReference)(IBandwidthGroup *pThis, PRUint3= 2 *reference); - - nsresult PR_COM_METHOD (*GetMaxMbPerSec)(IBandwidthGroup *pThis, PRUin= t32 *maxMbPerSec); - nsresult PR_COM_METHOD (*SetMaxMbPerSec)(IBandwidthGroup *pThis, PRUin= t32 maxMbPerSec); - -}; - -struct IBandwidthGroup -{ - struct IBandwidthGroup_vtbl *vtbl; -}; -/* End of struct IBandwidthGroup Declaration */ - - -/* Start of struct IBandwidthControl Declaration */ -# define IBANDWIDTHCONTROL_IID_STR "d0a24db0-f756-11df-98cf-0800200c9a66" -# define IBANDWIDTHCONTROL_IID { \ - 0xd0a24db0, 0xf756, 0x11df, \ - { 0x98, 0xcf, 0x08, 0x00, 0x20, 0x0c, 0x9a, 0x66 } \ -} -struct IBandwidthControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetNumGroups)(IBandwidthControl *pThis, PRUin= t32 *numGroups); - - nsresult PR_COM_METHOD (*CreateBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name, - PRUint32 type, - PRUint32 maxBytesPerSec - ); - - nsresult PR_COM_METHOD (*DeleteBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*GetBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name, - IBandwidthGroup * * bandwidthGroup - ); - - nsresult PR_COM_METHOD (*GetAllBandwidthGroups)( - IBandwidthControl *pThis, - PRUint32 *bandwidthGroupsSize, - IBandwidthGroup *** bandwidthGroups - ); - -}; - -struct IBandwidthControl -{ - struct IBandwidthControl_vtbl *vtbl; -}; -/* End of struct IBandwidthControl Declaration */ - - -/* Start of struct IVirtualBoxClient Declaration */ -# define IVIRTUALBOXCLIENT_IID_STR "5fe0bd48-1181-40d1-991f-3b02f269a823" -# define IVIRTUALBOXCLIENT_IID { \ - 0x5fe0bd48, 0x1181, 0x40d1, \ - { 0x99, 0x1f, 0x3b, 0x02, 0xf2, 0x69, 0xa8, 0x23 } \ -} -struct IVirtualBoxClient_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetVirtualBox)(IVirtualBoxClient *pThis, IVir= tualBox * *virtualBox); - - nsresult PR_COM_METHOD (*GetSession)(IVirtualBoxClient *pThis, ISessio= n * *session); - - nsresult PR_COM_METHOD (*GetEventSource)(IVirtualBoxClient *pThis, IEv= entSource * *eventSource); - -}; - -struct IVirtualBoxClient -{ - struct IVirtualBoxClient_vtbl *vtbl; -}; -/* End of struct IVirtualBoxClient Declaration */ - - -/* Start of struct IEventSource Declaration */ -# define IEVENTSOURCE_IID_STR "9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538" -# define IEVENTSOURCE_IID { \ - 0x9b6e1aee, 0x35f3, 0x4f4d, \ - { 0xb5, 0xbb, 0xed, 0x0e, 0xce, 0xfd, 0x85, 0x38 } \ -} -struct IEventSource_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*CreateListener)( - IEventSource *pThis, - IEventListener * * listener - ); - - nsresult PR_COM_METHOD (*CreateAggregator)( - IEventSource *pThis, - PRUint32 subordinatesSize, - IEventSource ** subordinates, - IEventSource * * result - ); - - nsresult PR_COM_METHOD (*RegisterListener)( - IEventSource *pThis, - IEventListener * listener, - PRUint32 interestingSize, - PRUint32* interesting, - PRBool active - ); - - nsresult PR_COM_METHOD (*UnregisterListener)( - IEventSource *pThis, - IEventListener * listener - ); - - nsresult PR_COM_METHOD (*FireEvent)( - IEventSource *pThis, - IEvent * event, - PRInt32 timeout, - PRBool * result - ); - - nsresult PR_COM_METHOD (*GetEvent)( - IEventSource *pThis, - IEventListener * listener, - PRInt32 timeout, - IEvent * * event - ); - - nsresult PR_COM_METHOD (*EventProcessed)( - IEventSource *pThis, - IEventListener * listener, - IEvent * event - ); - -}; - -struct IEventSource -{ - struct IEventSource_vtbl *vtbl; -}; -/* End of struct IEventSource Declaration */ - - -/* Start of struct IEventListener Declaration */ -# define IEVENTLISTENER_IID_STR "67099191-32e7-4f6c-85ee-422304c71b90" -# define IEVENTLISTENER_IID { \ - 0x67099191, 0x32e7, 0x4f6c, \ - { 0x85, 0xee, 0x42, 0x23, 0x04, 0xc7, 0x1b, 0x90 } \ -} -struct IEventListener_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*HandleEvent)( - IEventListener *pThis, - IEvent * event - ); - -}; - -struct IEventListener -{ - struct IEventListener_vtbl *vtbl; -}; -/* End of struct IEventListener Declaration */ - - -/* Start of struct IEvent Declaration */ -# define IEVENT_IID_STR "0ca2adba-8f30-401b-a8cd-fe31dbe839c0" -# define IEVENT_IID { \ - 0x0ca2adba, 0x8f30, 0x401b, \ - { 0xa8, 0xcd, 0xfe, 0x31, 0xdb, 0xe8, 0x39, 0xc0 } \ -} -struct IEvent_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetType)(IEvent *pThis, PRUint32 *type); - - nsresult PR_COM_METHOD (*GetSource)(IEvent *pThis, IEventSource * *sou= rce); - - nsresult PR_COM_METHOD (*GetWaitable)(IEvent *pThis, PRBool *waitable); - - nsresult PR_COM_METHOD (*SetProcessed)(IEvent *pThis ); - - nsresult PR_COM_METHOD (*WaitProcessed)( - IEvent *pThis, - PRInt32 timeout, - PRBool * result - ); - -}; - -struct IEvent -{ - struct IEvent_vtbl *vtbl; -}; -/* End of struct IEvent Declaration */ - - -/* Start of struct IReusableEvent Declaration */ -# define IREUSABLEEVENT_IID_STR "69bfb134-80f6-4266-8e20-16371f68fa25" -# define IREUSABLEEVENT_IID { \ - 0x69bfb134, 0x80f6, 0x4266, \ - { 0x8e, 0x20, 0x16, 0x37, 0x1f, 0x68, 0xfa, 0x25 } \ -} -struct IReusableEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetGeneration)(IReusableEvent *pThis, PRUint3= 2 *generation); - - nsresult PR_COM_METHOD (*Reuse)(IReusableEvent *pThis ); - -}; - -struct IReusableEvent -{ - struct IReusableEvent_vtbl *vtbl; -}; -/* End of struct IReusableEvent Declaration */ - - -/* Start of struct IMachineEvent Declaration */ -# define IMACHINEEVENT_IID_STR "92ed7b1a-0d96-40ed-ae46-a564d484325e" -# define IMACHINEEVENT_IID { \ - 0x92ed7b1a, 0x0d96, 0x40ed, \ - { 0xae, 0x46, 0xa5, 0x64, 0xd4, 0x84, 0x32, 0x5e } \ -} -struct IMachineEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMachineId)(IMachineEvent *pThis, PRUnichar= * *machineId); - -}; - -struct IMachineEvent -{ - struct IMachineEvent_vtbl *vtbl; -}; -/* End of struct IMachineEvent Declaration */ - - -/* Start of struct IMachineStateChangedEvent Declaration */ -# define IMACHINESTATECHANGEDEVENT_IID_STR "5748F794-48DF-438D-85EB-98FFD= 70D18C9" -# define IMACHINESTATECHANGEDEVENT_IID { \ - 0x5748F794, 0x48DF, 0x438D, \ - { 0x85, 0xEB, 0x98, 0xFF, 0xD7, 0x0D, 0x18, 0xC9 } \ -} -struct IMachineStateChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetState)(IMachineStateChangedEvent *pThis, P= RUint32 *state); - -}; - -struct IMachineStateChangedEvent -{ - struct IMachineStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IMachineStateChangedEvent Declaration */ - - -/* Start of struct IMachineDataChangedEvent Declaration */ -# define IMACHINEDATACHANGEDEVENT_IID_STR "6AA70A6C-0DCA-4810-8C5C-457B27= 8E3D49" -# define IMACHINEDATACHANGEDEVENT_IID { \ - 0x6AA70A6C, 0x0DCA, 0x4810, \ - { 0x8C, 0x5C, 0x45, 0x7B, 0x27, 0x8E, 0x3D, 0x49 } \ -} -struct IMachineDataChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - -}; - -struct IMachineDataChangedEvent -{ - struct IMachineDataChangedEvent_vtbl *vtbl; -}; -/* End of struct IMachineDataChangedEvent Declaration */ - - -/* Start of struct IMediumRegisteredEvent Declaration */ -# define IMEDIUMREGISTEREDEVENT_IID_STR "53fac49a-b7f1-4a5a-a4ef-a11dd9c2= a458" -# define IMEDIUMREGISTEREDEVENT_IID { \ - 0x53fac49a, 0xb7f1, 0x4a5a, \ - { 0xa4, 0xef, 0xa1, 0x1d, 0xd9, 0xc2, 0xa4, 0x58 } \ -} -struct IMediumRegisteredEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMediumId)(IMediumRegisteredEvent *pThis, P= RUnichar * *mediumId); - - nsresult PR_COM_METHOD (*GetMediumType)(IMediumRegisteredEvent *pThis,= PRUint32 *mediumType); - - nsresult PR_COM_METHOD (*GetRegistered)(IMediumRegisteredEvent *pThis,= PRBool *registered); - -}; - -struct IMediumRegisteredEvent -{ - struct IMediumRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IMediumRegisteredEvent Declaration */ - - -/* Start of struct IMachineRegisteredEvent Declaration */ -# define IMACHINEREGISTEREDEVENT_IID_STR "c354a762-3ff2-4f2e-8f09-07382ee= 25088" -# define IMACHINEREGISTEREDEVENT_IID { \ - 0xc354a762, 0x3ff2, 0x4f2e, \ - { 0x8f, 0x09, 0x07, 0x38, 0x2e, 0xe2, 0x50, 0x88 } \ -} -struct IMachineRegisteredEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetRegistered)(IMachineRegisteredEvent *pThis= , PRBool *registered); - -}; - -struct IMachineRegisteredEvent -{ - struct IMachineRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IMachineRegisteredEvent Declaration */ - - -/* Start of struct ISessionStateChangedEvent Declaration */ -# define ISESSIONSTATECHANGEDEVENT_IID_STR "714a3eef-799a-4489-86cd-fe8e4= 5b2ff8e" -# define ISESSIONSTATECHANGEDEVENT_IID { \ - 0x714a3eef, 0x799a, 0x4489, \ - { 0x86, 0xcd, 0xfe, 0x8e, 0x45, 0xb2, 0xff, 0x8e } \ -} -struct ISessionStateChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetState)(ISessionStateChangedEvent *pThis, P= RUint32 *state); - -}; - -struct ISessionStateChangedEvent -{ - struct ISessionStateChangedEvent_vtbl *vtbl; -}; -/* End of struct ISessionStateChangedEvent Declaration */ - - -/* Start of struct IGuestPropertyChangedEvent Declaration */ -# define IGUESTPROPERTYCHANGEDEVENT_IID_STR "3f63597a-26f1-4edb-8dd2-6bdd= d0912368" -# define IGUESTPROPERTYCHANGEDEVENT_IID { \ - 0x3f63597a, 0x26f1, 0x4edb, \ - { 0x8d, 0xd2, 0x6b, 0xdd, 0xd0, 0x91, 0x23, 0x68 } \ -} -struct IGuestPropertyChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetName)(IGuestPropertyChangedEvent *pThis, P= RUnichar * *name); - - nsresult PR_COM_METHOD (*GetValue)(IGuestPropertyChangedEvent *pThis, = PRUnichar * *value); - - nsresult PR_COM_METHOD (*GetFlags)(IGuestPropertyChangedEvent *pThis, = PRUnichar * *flags); - -}; - -struct IGuestPropertyChangedEvent -{ - struct IGuestPropertyChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestPropertyChangedEvent Declaration */ - - -/* Start of struct ISnapshotEvent Declaration */ -# define ISNAPSHOTEVENT_IID_STR "21637b0e-34b8-42d3-acfb-7e96daf77c22" -# define ISNAPSHOTEVENT_IID { \ - 0x21637b0e, 0x34b8, 0x42d3, \ - { 0xac, 0xfb, 0x7e, 0x96, 0xda, 0xf7, 0x7c, 0x22 } \ -} -struct ISnapshotEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetSnapshotId)(ISnapshotEvent *pThis, PRUnich= ar * *snapshotId); - -}; - -struct ISnapshotEvent -{ - struct ISnapshotEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotEvent Declaration */ - - -/* Start of struct ISnapshotTakenEvent Declaration */ -# define ISNAPSHOTTAKENEVENT_IID_STR "d27c0b3d-6038-422c-b45e-6d4a0503d9f= 1" -# define ISNAPSHOTTAKENEVENT_IID { \ - 0xd27c0b3d, 0x6038, 0x422c, \ - { 0xb4, 0x5e, 0x6d, 0x4a, 0x05, 0x03, 0xd9, 0xf1 } \ -} -struct ISnapshotTakenEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotTakenEvent -{ - struct ISnapshotTakenEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotTakenEvent Declaration */ - - -/* Start of struct ISnapshotDeletedEvent Declaration */ -# define ISNAPSHOTDELETEDEVENT_IID_STR "c48f3401-4a9e-43f4-b7a7-54bd285e2= 2f4" -# define ISNAPSHOTDELETEDEVENT_IID { \ - 0xc48f3401, 0x4a9e, 0x43f4, \ - { 0xb7, 0xa7, 0x54, 0xbd, 0x28, 0x5e, 0x22, 0xf4 } \ -} -struct ISnapshotDeletedEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotDeletedEvent -{ - struct ISnapshotDeletedEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotDeletedEvent Declaration */ - - -/* Start of struct ISnapshotChangedEvent Declaration */ -# define ISNAPSHOTCHANGEDEVENT_IID_STR "07541941-8079-447a-a33e-47a69c798= 0db" -# define ISNAPSHOTCHANGEDEVENT_IID { \ - 0x07541941, 0x8079, 0x447a, \ - { 0xa3, 0x3e, 0x47, 0xa6, 0x9c, 0x79, 0x80, 0xdb } \ -} -struct ISnapshotChangedEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotChangedEvent -{ - struct ISnapshotChangedEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotChangedEvent Declaration */ - - -/* Start of struct IMousePointerShapeChangedEvent Declaration */ -# define IMOUSEPOINTERSHAPECHANGEDEVENT_IID_STR "a6dcf6e8-416b-4181-8c4a-= 45ec95177aef" -# define IMOUSEPOINTERSHAPECHANGEDEVENT_IID { \ - 0xa6dcf6e8, 0x416b, 0x4181, \ - { 0x8c, 0x4a, 0x45, 0xec, 0x95, 0x17, 0x7a, 0xef } \ -} -struct IMousePointerShapeChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetVisible)(IMousePointerShapeChangedEvent *p= This, PRBool *visible); - - nsresult PR_COM_METHOD (*GetAlpha)(IMousePointerShapeChangedEvent *pTh= is, PRBool *alpha); - - nsresult PR_COM_METHOD (*GetXhot)(IMousePointerShapeChangedEvent *pThi= s, PRUint32 *xhot); - - nsresult PR_COM_METHOD (*GetYhot)(IMousePointerShapeChangedEvent *pThi= s, PRUint32 *yhot); - - nsresult PR_COM_METHOD (*GetWidth)(IMousePointerShapeChangedEvent *pTh= is, PRUint32 *width); - - nsresult PR_COM_METHOD (*GetHeight)(IMousePointerShapeChangedEvent *pT= his, PRUint32 *height); - - nsresult PR_COM_METHOD (*GetShape)(IMousePointerShapeChangedEvent *pTh= is, PRUint32 *shapeSize, PRUint8 **shape); - -}; - -struct IMousePointerShapeChangedEvent -{ - struct IMousePointerShapeChangedEvent_vtbl *vtbl; -}; -/* End of struct IMousePointerShapeChangedEvent Declaration */ - - -/* Start of struct IMouseCapabilityChangedEvent Declaration */ -# define IMOUSECAPABILITYCHANGEDEVENT_IID_STR "d633ad48-820c-4207-b46c-6b= d3596640d5" -# define IMOUSECAPABILITYCHANGEDEVENT_IID { \ - 0xd633ad48, 0x820c, 0x4207, \ - { 0xb4, 0x6c, 0x6b, 0xd3, 0x59, 0x66, 0x40, 0xd5 } \ -} -struct IMouseCapabilityChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetSupportsAbsolute)(IMouseCapabilityChangedE= vent *pThis, PRBool *supportsAbsolute); - - nsresult PR_COM_METHOD (*GetSupportsRelative)(IMouseCapabilityChangedE= vent *pThis, PRBool *supportsRelative); - - nsresult PR_COM_METHOD (*GetNeedsHostCursor)(IMouseCapabilityChangedEv= ent *pThis, PRBool *needsHostCursor); - -}; - -struct IMouseCapabilityChangedEvent -{ - struct IMouseCapabilityChangedEvent_vtbl *vtbl; -}; -/* End of struct IMouseCapabilityChangedEvent Declaration */ - - -/* Start of struct IKeyboardLedsChangedEvent Declaration */ -# define IKEYBOARDLEDSCHANGEDEVENT_IID_STR "6DDEF35E-4737-457B-99FC-BC52C= 851A44F" -# define IKEYBOARDLEDSCHANGEDEVENT_IID { \ - 0x6DDEF35E, 0x4737, 0x457B, \ - { 0x99, 0xFC, 0xBC, 0x52, 0xC8, 0x51, 0xA4, 0x4F } \ -} -struct IKeyboardLedsChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetNumLock)(IKeyboardLedsChangedEvent *pThis,= PRBool *numLock); - - nsresult PR_COM_METHOD (*GetCapsLock)(IKeyboardLedsChangedEvent *pThis= , PRBool *capsLock); - - nsresult PR_COM_METHOD (*GetScrollLock)(IKeyboardLedsChangedEvent *pTh= is, PRBool *scrollLock); - -}; - -struct IKeyboardLedsChangedEvent -{ - struct IKeyboardLedsChangedEvent_vtbl *vtbl; -}; -/* End of struct IKeyboardLedsChangedEvent Declaration */ - - -/* Start of struct IStateChangedEvent Declaration */ -# define ISTATECHANGEDEVENT_IID_STR "4376693C-CF37-453B-9289-3B0F521CAF27" -# define ISTATECHANGEDEVENT_IID { \ - 0x4376693C, 0xCF37, 0x453B, \ - { 0x92, 0x89, 0x3B, 0x0F, 0x52, 0x1C, 0xAF, 0x27 } \ -} -struct IStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetState)(IStateChangedEvent *pThis, PRUint32= *state); - -}; - -struct IStateChangedEvent -{ - struct IStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IStateChangedEvent Declaration */ - - -/* Start of struct IAdditionsStateChangedEvent Declaration */ -# define IADDITIONSSTATECHANGEDEVENT_IID_STR "D70F7915-DA7C-44C8-A7AC-9F1= 73490446A" -# define IADDITIONSSTATECHANGEDEVENT_IID { \ - 0xD70F7915, 0xDA7C, 0x44C8, \ - { 0xA7, 0xAC, 0x9F, 0x17, 0x34, 0x90, 0x44, 0x6A } \ -} -struct IAdditionsStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IAdditionsStateChangedEvent -{ - struct IAdditionsStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IAdditionsStateChangedEvent Declaration */ - - -/* Start of struct INetworkAdapterChangedEvent Declaration */ -# define INETWORKADAPTERCHANGEDEVENT_IID_STR "08889892-1EC6-4883-801D-77F= 56CFD0103" -# define INETWORKADAPTERCHANGEDEVENT_IID { \ - 0x08889892, 0x1EC6, 0x4883, \ - { 0x80, 0x1D, 0x77, 0xF5, 0x6C, 0xFD, 0x01, 0x03 } \ -} -struct INetworkAdapterChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetNetworkAdapter)(INetworkAdapterChangedEven= t *pThis, INetworkAdapter * *networkAdapter); - -}; - -struct INetworkAdapterChangedEvent -{ - struct INetworkAdapterChangedEvent_vtbl *vtbl; -}; -/* End of struct INetworkAdapterChangedEvent Declaration */ - - -/* Start of struct ISerialPortChangedEvent Declaration */ -# define ISERIALPORTCHANGEDEVENT_IID_STR "3BA329DC-659C-488B-835C-4ECA7AE= 71C6C" -# define ISERIALPORTCHANGEDEVENT_IID { \ - 0x3BA329DC, 0x659C, 0x488B, \ - { 0x83, 0x5C, 0x4E, 0xCA, 0x7A, 0xE7, 0x1C, 0x6C } \ -} -struct ISerialPortChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetSerialPort)(ISerialPortChangedEvent *pThis= , ISerialPort * *serialPort); - -}; - -struct ISerialPortChangedEvent -{ - struct ISerialPortChangedEvent_vtbl *vtbl; -}; -/* End of struct ISerialPortChangedEvent Declaration */ - - -/* Start of struct IParallelPortChangedEvent Declaration */ -# define IPARALLELPORTCHANGEDEVENT_IID_STR "813C99FC-9849-4F47-813E-24A75= DC85615" -# define IPARALLELPORTCHANGEDEVENT_IID { \ - 0x813C99FC, 0x9849, 0x4F47, \ - { 0x81, 0x3E, 0x24, 0xA7, 0x5D, 0xC8, 0x56, 0x15 } \ -} -struct IParallelPortChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetParallelPort)(IParallelPortChangedEvent *p= This, IParallelPort * *parallelPort); - -}; - -struct IParallelPortChangedEvent -{ - struct IParallelPortChangedEvent_vtbl *vtbl; -}; -/* End of struct IParallelPortChangedEvent Declaration */ - - -/* Start of struct IStorageControllerChangedEvent Declaration */ -# define ISTORAGECONTROLLERCHANGEDEVENT_IID_STR "715212BF-DA59-426E-8230-= 3831FAA52C56" -# define ISTORAGECONTROLLERCHANGEDEVENT_IID { \ - 0x715212BF, 0xDA59, 0x426E, \ - { 0x82, 0x30, 0x38, 0x31, 0xFA, 0xA5, 0x2C, 0x56 } \ -} -struct IStorageControllerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IStorageControllerChangedEvent -{ - struct IStorageControllerChangedEvent_vtbl *vtbl; -}; -/* End of struct IStorageControllerChangedEvent Declaration */ - - -/* Start of struct IMediumChangedEvent Declaration */ -# define IMEDIUMCHANGEDEVENT_IID_STR "0FE2DA40-5637-472A-9736-72019EABD7D= E" -# define IMEDIUMCHANGEDEVENT_IID { \ - 0x0FE2DA40, 0x5637, 0x472A, \ - { 0x97, 0x36, 0x72, 0x01, 0x9E, 0xAB, 0xD7, 0xDE } \ -} -struct IMediumChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMediumAttachment)(IMediumChangedEvent *pTh= is, IMediumAttachment * *mediumAttachment); - -}; - -struct IMediumChangedEvent -{ - struct IMediumChangedEvent_vtbl *vtbl; -}; -/* End of struct IMediumChangedEvent Declaration */ - - -/* Start of struct ICPUChangedEvent Declaration */ -# define ICPUCHANGEDEVENT_IID_STR "D0F0BECC-EE17-4D17-A8CC-383B0EB55E9D" -# define ICPUCHANGEDEVENT_IID { \ - 0xD0F0BECC, 0xEE17, 0x4D17, \ - { 0xA8, 0xCC, 0x38, 0x3B, 0x0E, 0xB5, 0x5E, 0x9D } \ -} -struct ICPUChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetCpu)(ICPUChangedEvent *pThis, PRUint32 *cp= u); - - nsresult PR_COM_METHOD (*GetAdd)(ICPUChangedEvent *pThis, PRBool *add); - -}; - -struct ICPUChangedEvent -{ - struct ICPUChangedEvent_vtbl *vtbl; -}; -/* End of struct ICPUChangedEvent Declaration */ - - -/* Start of struct ICPUExecutionCapChangedEvent Declaration */ -# define ICPUEXECUTIONCAPCHANGEDEVENT_IID_STR "dfa7e4f5-b4a4-44ce-85a8-12= 7ac5eb59dc" -# define ICPUEXECUTIONCAPCHANGEDEVENT_IID { \ - 0xdfa7e4f5, 0xb4a4, 0x44ce, \ - { 0x85, 0xa8, 0x12, 0x7a, 0xc5, 0xeb, 0x59, 0xdc } \ -} -struct ICPUExecutionCapChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetExecutionCap)(ICPUExecutionCapChangedEvent= *pThis, PRUint32 *executionCap); - -}; - -struct ICPUExecutionCapChangedEvent -{ - struct ICPUExecutionCapChangedEvent_vtbl *vtbl; -}; -/* End of struct ICPUExecutionCapChangedEvent Declaration */ - - -/* Start of struct IGuestKeyboardEvent Declaration */ -# define IGUESTKEYBOARDEVENT_IID_STR "88394258-7006-40d4-b339-472ee380184= 4" -# define IGUESTKEYBOARDEVENT_IID { \ - 0x88394258, 0x7006, 0x40d4, \ - { 0xb3, 0x39, 0x47, 0x2e, 0xe3, 0x80, 0x18, 0x44 } \ -} -struct IGuestKeyboardEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetScancodes)(IGuestKeyboardEvent *pThis, PRU= int32 *scancodesSize, PRInt32 **scancodes); - -}; - -struct IGuestKeyboardEvent -{ - struct IGuestKeyboardEvent_vtbl *vtbl; -}; -/* End of struct IGuestKeyboardEvent Declaration */ - - -/* Start of struct IGuestMouseEvent Declaration */ -# define IGUESTMOUSEEVENT_IID_STR "1f85d35c-c524-40ff-8e98-307000df0992" -# define IGUESTMOUSEEVENT_IID { \ - 0x1f85d35c, 0xc524, 0x40ff, \ - { 0x8e, 0x98, 0x30, 0x70, 0x00, 0xdf, 0x09, 0x92 } \ -} -struct IGuestMouseEvent_vtbl -{ - struct IReusableEvent_vtbl ireusableevent; - - nsresult PR_COM_METHOD (*GetAbsolute)(IGuestMouseEvent *pThis, PRBool = *absolute); - - nsresult PR_COM_METHOD (*GetX)(IGuestMouseEvent *pThis, PRInt32 *x); - - nsresult PR_COM_METHOD (*GetY)(IGuestMouseEvent *pThis, PRInt32 *y); - - nsresult PR_COM_METHOD (*GetZ)(IGuestMouseEvent *pThis, PRInt32 *z); - - nsresult PR_COM_METHOD (*GetW)(IGuestMouseEvent *pThis, PRInt32 *w); - - nsresult PR_COM_METHOD (*GetButtons)(IGuestMouseEvent *pThis, PRInt32 = *buttons); - -}; - -struct IGuestMouseEvent -{ - struct IGuestMouseEvent_vtbl *vtbl; -}; -/* End of struct IGuestMouseEvent Declaration */ - - -/* Start of struct IVRDEServerChangedEvent Declaration */ -# define IVRDESERVERCHANGEDEVENT_IID_STR "a06fd66a-3188-4c8c-8756-1395e8c= b691c" -# define IVRDESERVERCHANGEDEVENT_IID { \ - 0xa06fd66a, 0x3188, 0x4c8c, \ - { 0x87, 0x56, 0x13, 0x95, 0xe8, 0xcb, 0x69, 0x1c } \ -} -struct IVRDEServerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IVRDEServerChangedEvent -{ - struct IVRDEServerChangedEvent_vtbl *vtbl; -}; -/* End of struct IVRDEServerChangedEvent Declaration */ - - -/* Start of struct IVRDEServerInfoChangedEvent Declaration */ -# define IVRDESERVERINFOCHANGEDEVENT_IID_STR "dd6a1080-e1b7-4339-a549-f08= 78115596e" -# define IVRDESERVERINFOCHANGEDEVENT_IID { \ - 0xdd6a1080, 0xe1b7, 0x4339, \ - { 0xa5, 0x49, 0xf0, 0x87, 0x81, 0x15, 0x59, 0x6e } \ -} -struct IVRDEServerInfoChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IVRDEServerInfoChangedEvent -{ - struct IVRDEServerInfoChangedEvent_vtbl *vtbl; -}; -/* End of struct IVRDEServerInfoChangedEvent Declaration */ - - -/* Start of struct IUSBControllerChangedEvent Declaration */ -# define IUSBCONTROLLERCHANGEDEVENT_IID_STR "93BADC0C-61D9-4940-A084-E6BB= 29AF3D83" -# define IUSBCONTROLLERCHANGEDEVENT_IID { \ - 0x93BADC0C, 0x61D9, 0x4940, \ - { 0xA0, 0x84, 0xE6, 0xBB, 0x29, 0xAF, 0x3D, 0x83 } \ -} -struct IUSBControllerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IUSBControllerChangedEvent -{ - struct IUSBControllerChangedEvent_vtbl *vtbl; -}; -/* End of struct IUSBControllerChangedEvent Declaration */ - - -/* Start of struct IUSBDeviceStateChangedEvent Declaration */ -# define IUSBDEVICESTATECHANGEDEVENT_IID_STR "806da61b-6679-422a-b629-51b= 06b0c6d93" -# define IUSBDEVICESTATECHANGEDEVENT_IID { \ - 0x806da61b, 0x6679, 0x422a, \ - { 0xb6, 0x29, 0x51, 0xb0, 0x6b, 0x0c, 0x6d, 0x93 } \ -} -struct IUSBDeviceStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetDevice)(IUSBDeviceStateChangedEvent *pThis= , IUSBDevice * *device); - - nsresult PR_COM_METHOD (*GetAttached)(IUSBDeviceStateChangedEvent *pTh= is, PRBool *attached); - - nsresult PR_COM_METHOD (*GetError)(IUSBDeviceStateChangedEvent *pThis,= IVirtualBoxErrorInfo * *error); - -}; - -struct IUSBDeviceStateChangedEvent -{ - struct IUSBDeviceStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IUSBDeviceStateChangedEvent Declaration */ - - -/* Start of struct ISharedFolderChangedEvent Declaration */ -# define ISHAREDFOLDERCHANGEDEVENT_IID_STR "B66349B5-3534-4239-B2DE-8E153= 5D94C0B" -# define ISHAREDFOLDERCHANGEDEVENT_IID { \ - 0xB66349B5, 0x3534, 0x4239, \ - { 0xB2, 0xDE, 0x8E, 0x15, 0x35, 0xD9, 0x4C, 0x0B } \ -} -struct ISharedFolderChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetScope)(ISharedFolderChangedEvent *pThis, P= RUint32 *scope); - -}; - -struct ISharedFolderChangedEvent -{ - struct ISharedFolderChangedEvent_vtbl *vtbl; -}; -/* End of struct ISharedFolderChangedEvent Declaration */ - - -/* Start of struct IRuntimeErrorEvent Declaration */ -# define IRUNTIMEERROREVENT_IID_STR "883DD18B-0721-4CDE-867C-1A82ABAF914C" -# define IRUNTIMEERROREVENT_IID { \ - 0x883DD18B, 0x0721, 0x4CDE, \ - { 0x86, 0x7C, 0x1A, 0x82, 0xAB, 0xAF, 0x91, 0x4C } \ -} -struct IRuntimeErrorEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetFatal)(IRuntimeErrorEvent *pThis, PRBool *= fatal); - - nsresult PR_COM_METHOD (*GetId)(IRuntimeErrorEvent *pThis, PRUnichar *= *id); - - nsresult PR_COM_METHOD (*GetMessage)(IRuntimeErrorEvent *pThis, PRUnic= har * *message); - -}; - -struct IRuntimeErrorEvent -{ - struct IRuntimeErrorEvent_vtbl *vtbl; -}; -/* End of struct IRuntimeErrorEvent Declaration */ - - -/* Start of struct IEventSourceChangedEvent Declaration */ -# define IEVENTSOURCECHANGEDEVENT_IID_STR "e7932cb8-f6d4-4ab6-9cbf-558eb8= 959a6a" -# define IEVENTSOURCECHANGEDEVENT_IID { \ - 0xe7932cb8, 0xf6d4, 0x4ab6, \ - { 0x9c, 0xbf, 0x55, 0x8e, 0xb8, 0x95, 0x9a, 0x6a } \ -} -struct IEventSourceChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetListener)(IEventSourceChangedEvent *pThis,= IEventListener * *listener); - - nsresult PR_COM_METHOD (*GetAdd)(IEventSourceChangedEvent *pThis, PRBo= ol *add); - -}; - -struct IEventSourceChangedEvent -{ - struct IEventSourceChangedEvent_vtbl *vtbl; -}; -/* End of struct IEventSourceChangedEvent Declaration */ - - -/* Start of struct IExtraDataChangedEvent Declaration */ -# define IEXTRADATACHANGEDEVENT_IID_STR "024F00CE-6E0B-492A-A8D0-968472A9= 4DC7" -# define IEXTRADATACHANGEDEVENT_IID { \ - 0x024F00CE, 0x6E0B, 0x492A, \ - { 0xA8, 0xD0, 0x96, 0x84, 0x72, 0xA9, 0x4D, 0xC7 } \ -} -struct IExtraDataChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMachineId)(IExtraDataChangedEvent *pThis, = PRUnichar * *machineId); - - nsresult PR_COM_METHOD (*GetKey)(IExtraDataChangedEvent *pThis, PRUnic= har * *key); - - nsresult PR_COM_METHOD (*GetValue)(IExtraDataChangedEvent *pThis, PRUn= ichar * *value); - -}; - -struct IExtraDataChangedEvent -{ - struct IExtraDataChangedEvent_vtbl *vtbl; -}; -/* End of struct IExtraDataChangedEvent Declaration */ - - -/* Start of struct IVetoEvent Declaration */ -# define IVETOEVENT_IID_STR "9a1a4130-69fe-472f-ac10-c6fa25d75007" -# define IVETOEVENT_IID { \ - 0x9a1a4130, 0x69fe, 0x472f, \ - { 0xac, 0x10, 0xc6, 0xfa, 0x25, 0xd7, 0x50, 0x07 } \ -} -struct IVetoEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*AddVeto)( - IVetoEvent *pThis, - PRUnichar * reason - ); - - nsresult PR_COM_METHOD (*IsVetoed)( - IVetoEvent *pThis, - PRBool * result - ); - - nsresult PR_COM_METHOD (*GetVetos)( - IVetoEvent *pThis, - PRUint32 *resultSize, - PRUnichar *** result - ); - -}; - -struct IVetoEvent -{ - struct IVetoEvent_vtbl *vtbl; -}; -/* End of struct IVetoEvent Declaration */ - - -/* Start of struct IExtraDataCanChangeEvent Declaration */ -# define IEXTRADATACANCHANGEEVENT_IID_STR "245d88bd-800a-40f8-87a6-170d02= 249a55" -# define IEXTRADATACANCHANGEEVENT_IID { \ - 0x245d88bd, 0x800a, 0x40f8, \ - { 0x87, 0xa6, 0x17, 0x0d, 0x02, 0x24, 0x9a, 0x55 } \ -} -struct IExtraDataCanChangeEvent_vtbl -{ - struct IVetoEvent_vtbl ivetoevent; - - nsresult PR_COM_METHOD (*GetMachineId)(IExtraDataCanChangeEvent *pThis= , PRUnichar * *machineId); - - nsresult PR_COM_METHOD (*GetKey)(IExtraDataCanChangeEvent *pThis, PRUn= ichar * *key); - - nsresult PR_COM_METHOD (*GetValue)(IExtraDataCanChangeEvent *pThis, PR= Unichar * *value); - -}; - -struct IExtraDataCanChangeEvent -{ - struct IExtraDataCanChangeEvent_vtbl *vtbl; -}; -/* End of struct IExtraDataCanChangeEvent Declaration */ - - -/* Start of struct ICanShowWindowEvent Declaration */ -# define ICANSHOWWINDOWEVENT_IID_STR "adf292b0-92c9-4a77-9d35-e058b39fe0b= 9" -# define ICANSHOWWINDOWEVENT_IID { \ - 0xadf292b0, 0x92c9, 0x4a77, \ - { 0x9d, 0x35, 0xe0, 0x58, 0xb3, 0x9f, 0xe0, 0xb9 } \ -} -struct ICanShowWindowEvent_vtbl -{ - struct IVetoEvent_vtbl ivetoevent; - -}; - -struct ICanShowWindowEvent -{ - struct ICanShowWindowEvent_vtbl *vtbl; -}; -/* End of struct ICanShowWindowEvent Declaration */ - - -/* Start of struct IShowWindowEvent Declaration */ -# define ISHOWWINDOWEVENT_IID_STR "B0A0904D-2F05-4D28-855F-488F96BAD2B2" -# define ISHOWWINDOWEVENT_IID { \ - 0xB0A0904D, 0x2F05, 0x4D28, \ - { 0x85, 0x5F, 0x48, 0x8F, 0x96, 0xBA, 0xD2, 0xB2 } \ -} -struct IShowWindowEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetWinId)(IShowWindowEvent *pThis, PRInt64 *w= inId); - nsresult PR_COM_METHOD (*SetWinId)(IShowWindowEvent *pThis, PRInt64 wi= nId); - -}; - -struct IShowWindowEvent -{ - struct IShowWindowEvent_vtbl *vtbl; -}; -/* End of struct IShowWindowEvent Declaration */ - - -/* Start of struct INATRedirectEvent Declaration */ -# define INATREDIRECTEVENT_IID_STR "57DE97D7-3CBB-42A0-888F-610D5832D16B" -# define INATREDIRECTEVENT_IID { \ - 0x57DE97D7, 0x3CBB, 0x42A0, \ - { 0x88, 0x8F, 0x61, 0x0D, 0x58, 0x32, 0xD1, 0x6B } \ -} -struct INATRedirectEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetSlot)(INATRedirectEvent *pThis, PRUint32 *= slot); - - nsresult PR_COM_METHOD (*GetRemove)(INATRedirectEvent *pThis, PRBool *= remove); - - nsresult PR_COM_METHOD (*GetName)(INATRedirectEvent *pThis, PRUnichar = * *name); - - nsresult PR_COM_METHOD (*GetProto)(INATRedirectEvent *pThis, PRUint32 = *proto); - - nsresult PR_COM_METHOD (*GetHostIp)(INATRedirectEvent *pThis, PRUnicha= r * *hostIp); - - nsresult PR_COM_METHOD (*GetHostPort)(INATRedirectEvent *pThis, PRInt3= 2 *hostPort); - - nsresult PR_COM_METHOD (*GetGuestIp)(INATRedirectEvent *pThis, PRUnich= ar * *guestIp); - - nsresult PR_COM_METHOD (*GetGuestPort)(INATRedirectEvent *pThis, PRInt= 32 *guestPort); - -}; - -struct INATRedirectEvent -{ - struct INATRedirectEvent_vtbl *vtbl; -}; -/* End of struct INATRedirectEvent Declaration */ - - -/* Start of struct IHostPciDevicePlugEvent Declaration */ -# define IHOSTPCIDEVICEPLUGEVENT_IID_STR "EDD4782B-DB74-43A0-B724-2BAA36F= 039CC" -# define IHOSTPCIDEVICEPLUGEVENT_IID { \ - 0xEDD4782B, 0xDB74, 0x43A0, \ - { 0xB7, 0x24, 0x2B, 0xAA, 0x36, 0xF0, 0x39, 0xCC } \ -} -struct IHostPciDevicePlugEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetPlugged)(IHostPciDevicePlugEvent *pThis, P= RBool *plugged); - - nsresult PR_COM_METHOD (*GetSuccess)(IHostPciDevicePlugEvent *pThis, P= RBool *success); - - nsresult PR_COM_METHOD (*GetAttachment)(IHostPciDevicePlugEvent *pThis= , IPciDeviceAttachment * *attachment); - - nsresult PR_COM_METHOD (*GetEventContext)(IHostPciDevicePlugEvent *pTh= is, IEventContext * *eventContext); - - nsresult PR_COM_METHOD (*GetMessage)(IHostPciDevicePlugEvent *pThis, P= RUnichar * *message); - -}; - -struct IHostPciDevicePlugEvent -{ - struct IHostPciDevicePlugEvent_vtbl *vtbl; -}; -/* End of struct IHostPciDevicePlugEvent Declaration */ - - -/* Start of struct IVBoxSVCAvailabilityChangedEvent Declaration */ -# define IVBOXSVCAVAILABILITYCHANGEDEVENT_IID_STR "97c78fcd-d4fc-485f-861= 3-5af88bfcfcdc" -# define IVBOXSVCAVAILABILITYCHANGEDEVENT_IID { \ - 0x97c78fcd, 0xd4fc, 0x485f, \ - { 0x86, 0x13, 0x5a, 0xf8, 0x8b, 0xfc, 0xfc, 0xdc } \ -} -struct IVBoxSVCAvailabilityChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetAvailable)(IVBoxSVCAvailabilityChangedEven= t *pThis, PRBool *available); - -}; - -struct IVBoxSVCAvailabilityChangedEvent -{ - struct IVBoxSVCAvailabilityChangedEvent_vtbl *vtbl; -}; -/* End of struct IVBoxSVCAvailabilityChangedEvent Declaration */ - - -/* Start of struct IBandwidthGroupChangedEvent Declaration */ -# define IBANDWIDTHGROUPCHANGEDEVENT_IID_STR "334df94a-7556-4cbc-8c04-043= 096b02d82" -# define IBANDWIDTHGROUPCHANGEDEVENT_IID { \ - 0x334df94a, 0x7556, 0x4cbc, \ - { 0x8c, 0x04, 0x04, 0x30, 0x96, 0xb0, 0x2d, 0x82 } \ -} -struct IBandwidthGroupChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetBandwidthGroup)(IBandwidthGroupChangedEven= t *pThis, IBandwidthGroup * *bandwidthGroup); - -}; - -struct IBandwidthGroupChangedEvent -{ - struct IBandwidthGroupChangedEvent_vtbl *vtbl; -}; -/* End of struct IBandwidthGroupChangedEvent Declaration */ - - -/* Start of struct IGuestMonitorChangedEvent Declaration */ -# define IGUESTMONITORCHANGEDEVENT_IID_STR "0f7b8a22-c71f-4a36-8e5f-a77d0= 1d76090" -# define IGUESTMONITORCHANGEDEVENT_IID { \ - 0x0f7b8a22, 0xc71f, 0x4a36, \ - { 0x8e, 0x5f, 0xa7, 0x7d, 0x01, 0xd7, 0x60, 0x90 } \ -} -struct IGuestMonitorChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetChangeType)(IGuestMonitorChangedEvent *pTh= is, PRUint32 *changeType); - - nsresult PR_COM_METHOD (*GetScreenId)(IGuestMonitorChangedEvent *pThis= , PRUint32 *screenId); - - nsresult PR_COM_METHOD (*GetOriginX)(IGuestMonitorChangedEvent *pThis,= PRUint32 *originX); - - nsresult PR_COM_METHOD (*GetOriginY)(IGuestMonitorChangedEvent *pThis,= PRUint32 *originY); - - nsresult PR_COM_METHOD (*GetWidth)(IGuestMonitorChangedEvent *pThis, P= RUint32 *width); - - nsresult PR_COM_METHOD (*GetHeight)(IGuestMonitorChangedEvent *pThis, = PRUint32 *height); - -}; - -struct IGuestMonitorChangedEvent -{ - struct IGuestMonitorChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestMonitorChangedEvent Declaration */ - - - -# define NS_VIRTUALBOX_CID { \ - 0xB1A7A4F2, 0x47B9, 0x4A1E, \ - { 0x82, 0xB2, 0x07, 0xCC, 0xD5, 0x32, 0x3C, 0x3F } \ -} -# define NS_VIRTUALBOX_CONTRACTID "@virtualbox.org/VirtualBox;1" -/* for compatibility with Win32 */ -# define CLSID_VirtualBox (nsCID) NS_VIRTUALBOX_CID - - - -# define NS_VIRTUALBOXCLIENT_CID { \ - 0xdd3fc71d, 0x26c0, 0x4fe1, \ - { 0xbf, 0x6f, 0x67, 0xf6, 0x33, 0x26, 0x5b, 0xba } \ -} -# define NS_VIRTUALBOXCLIENT_CONTRACTID "@virtualbox.org/VirtualBoxClient= ;1" -/* for compatibility with Win32 */ -# define CLSID_VirtualBoxClient (nsCID) NS_VIRTUALBOXCLIENT_CID - - - -# define NS_SESSION_CID { \ - 0x3C02F46D, 0xC9D2, 0x4F11, \ - { 0xA3, 0x84, 0x53, 0xF0, 0xCF, 0x91, 0x72, 0x14 } \ -} -# define NS_SESSION_CONTRACTID "@virtualbox.org/Session;1" -/* for compatibility with Win32 */ -# define CLSID_Session (nsCID) NS_SESSION_CID - - - -# endif /* !__cplusplus */ - -# ifdef IN_VBOXXPCOMC -# define VBOXXPCOMC_DECL(type) PR_EXPORT(type) -# else -# define VBOXXPCOMC_DECL(type) PR_IMPORT(type) -# endif - -# ifdef __cplusplus -extern "C" { -# endif - - -/** - * Function table for dynamic linking. - * Use VBoxGetFunctions() to obtain the pointer to it. - */ -typedef struct VBOXXPCOMC -{ - /** The size of the structure. */ - unsigned cb; - /** The structure version. */ - unsigned uVersion; - - unsigned int (*pfnGetVersion)(void); - - void (*pfnComInitialize)(const char *pszVirtualBoxIID, - IVirtualBox **ppVirtualBox, - const char *pszSessionIID, - ISession **ppSession); - void (*pfnComUninitialize)(void); - - void (*pfnComUnallocMem)(void *pv); - void (*pfnUtf16Free)(PRUnichar *pwszString); - void (*pfnUtf8Free)(char *pszString); - - int (*pfnUtf16ToUtf8)(const PRUnichar *pwszString, char **ppszString= ); - int (*pfnUtf8ToUtf16)(const char *pszString, PRUnichar **ppwszString= ); - - void (*pfnGetEventQueue)(nsIEventQueue **eventQueue); - - /** Tail version, same as uVersion. */ - unsigned uEndVersion; -} VBOXXPCOMC; -/** Pointer to a const VBoxXPCOMC function table. */ -typedef VBOXXPCOMC const *PCVBOXXPCOM; - -/** The current interface version. - * For use with VBoxGetXPCOMCFunctions and to be found in - * VBOXXPCOMC::uVersion. */ -# define VBOX_XPCOMC_VERSION 0x00020000U - -VBOXXPCOMC_DECL(PCVBOXXPCOM) VBoxGetXPCOMCFunctions(unsigned uVersion); -/** Typedef for VBoxGetXPCOMCFunctions. */ -typedef PCVBOXXPCOM (*PFNVBOXGETXPCOMCFUNCTIONS)(unsigned uVersion); - -/** The symbol name of VBoxGetXPCOMCFunctions. */ -# if defined(__OS2__) -# define VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME "_VBoxGetXPCOMCFunctions" -# else -# define VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME "VBoxGetXPCOMCFunctions" -# endif - - -# ifdef __cplusplus -} -# endif - -#endif /* !___VirtualBox_CXPCOM_h */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri Apr 26 20:41:27 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555074120; cv=none; d=zoho.com; s=zohoarc; b=mjOvf2Q+No9iHMvCYJvcuwrDHWqBcdcS5EJBAX4l4E4JaYZV8Z1NkTL3KaA3jKwB6jScoyyCIobMyyO9QftFERrZiL5jjaSp0CJB2a7BDvLh750tPQqSNMOg9ib2d8v4Ms5cK66BW1qjyeCk9QQdr0+dh5MZ6hH7EBdPzpSui0c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555074120; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=HhhEmE+yTSd5pwUFf5U6/5p5rc59k74iFKEgDZvr9eo=; b=RcD6ZxLFMRrPiHDl717+L9LWjmwFc2UCSaf6UzJHG9yptd5OHurdHgYmE7bv4aWV5NyBRHVZeJtdZ+yxD96UBjfzfKhqBGqZUGDXtE1cr8X1BPlfX+3bNqGE1B1IYTDFSL0d9xUTTuaW1LKd5/bAjw2ZOM4igIJB1ve9MU1AfMA= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1555074120291703.9057778462397; Fri, 12 Apr 2019 06:02:00 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DB7C48AE7D; Fri, 12 Apr 2019 13:01:52 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A73A819C65; Fri, 12 Apr 2019 13:01:51 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 522173FB13; Fri, 12 Apr 2019 13:01:51 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3CD0pZY031793 for ; Fri, 12 Apr 2019 09:00:51 -0400 Received: by smtp.corp.redhat.com (Postfix) id E3FBD19746; Fri, 12 Apr 2019 13:00:51 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-27.ams2.redhat.com [10.36.112.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 69E9819C6F; Fri, 12 Apr 2019 13:00:50 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Fri, 12 Apr 2019 14:00:36 +0100 Message-Id: <20190412130040.21306-4-berrange@redhat.com> In-Reply-To: <20190412130040.21306-1-berrange@redhat.com> References: <20190412130040.21306-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 3/7] vbox: drop C API definition for release 4.1 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Fri, 12 Apr 2019 13:01:53 +0000 (UTC) Support for compiling this version was dropped in an earlier commit. Signed-off-by: Daniel P. Berrang=C3=A9 --- src/vbox/Makefile.inc.am | 1 - src/vbox/vbox_CAPI_v4_1.h | 7882 ------------------------------------- 2 files changed, 7883 deletions(-) delete mode 100644 src/vbox/vbox_CAPI_v4_1.h diff --git a/src/vbox/Makefile.inc.am b/src/vbox/Makefile.inc.am index 60929b89ce..00d3b36044 100644 --- a/src/vbox/Makefile.inc.am +++ b/src/vbox/Makefile.inc.am @@ -5,7 +5,6 @@ VBOX_DRIVER_SOURCES =3D \ vbox/vbox_driver.h \ vbox/vbox_snapshot_conf.c \ vbox/vbox_snapshot_conf.h \ - vbox/vbox_CAPI_v4_1.h \ vbox/vbox_CAPI_v4_2.h \ vbox/vbox_CAPI_v4_2_20.h \ vbox/vbox_CAPI_v4_3.h \ diff --git a/src/vbox/vbox_CAPI_v4_1.h b/src/vbox/vbox_CAPI_v4_1.h deleted file mode 100644 index 8756664ff6..0000000000 --- a/src/vbox/vbox_CAPI_v4_1.h +++ /dev/null @@ -1,7882 +0,0 @@ -/* - * Libvirt notice: this file is derived from the VirtualBox SDK, with - * libvirt edits; do not regenerate in the context of libvirt. - */ -/* - * DO NOT EDIT! This is a generated file. - * - * XPCOM IDL (XPIDL) definition for VirtualBox Main API (COM interfaces) - * generated from XIDL (XML interface definition). - * - * Source : src/VBox/Main/idl/VirtualBox.xidl - * Generator : src/VBox/Main/idl/xpcidl.xsl - * - * This file contains portions from the following Mozilla XPCOM files: - * xpcom/include/xpcom/nsID.h - * xpcom/include/nsIException.h - * xpcom/include/nsprpub/prtypes.h - * xpcom/include/xpcom/nsISupportsBase.h - * - * These files were originally triple-licensed (MPL/GPL2/LGPL2.1). Sun - * elects to distribute this derived work under the LGPL2.1 only. - */ - -/* - * Copyright (C) 2008-2010 Oracle Corporation - * - * This file is part of a free software library; you can redistribute - * it and/or modify it under the terms of the GNU Lesser General - * Public License version 2.1 as published by the Free Software - * Foundation and shipped in the "COPYING.LESSER" file with this library. - * The library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY of any kind. - * - * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if - * any license choice other than GPL or LGPL is available it will - * apply instead, Oracle elects to use only the Lesser General Public - * License version 2.1 (LGPLv2) at this time for any software where - * a choice of LGPL license versions is made available with the - * language indicating that LGPLv2 or any later version may be used, - * or where a choice of which version of the LGPL is applied is - * otherwise unspecified. - */ - -#ifndef ___VirtualBox_CXPCOM_h -# define ___VirtualBox_CXPCOM_h - -# ifdef __cplusplus -# include "VirtualBox_XPCOM.h" -# else /* !__cplusplus */ - -# include -# include "wchar.h" - -# ifdef WIN32 -# define PR_COM_METHOD __stdcall -# else -# define PR_COM_METHOD -# endif - -# if defined(WIN32) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) __declspec(dllimport) __type -# define PR_IMPORT_DATA(__type) __declspec(dllimport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_BEOS) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) extern __declspec(dllexport) __type -# define PR_IMPORT_DATA(__type) extern __declspec(dllexport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(WIN16) - -# define PR_CALLBACK_DECL __cdecl - -# if defined(_WINDLL) -# define PR_EXPORT(__type) extern __type _cdecl _export _loadds -# define PR_IMPORT(__type) extern __type _cdecl _export _loadds -# define PR_EXPORT_DATA(__type) extern __type _export -# define PR_IMPORT_DATA(__type) extern __type _export - -# define PR_EXTERN(__type) extern __type _cdecl _export _loadds -# define PR_IMPLEMENT(__type) __type _cdecl _export _loadds -# define PR_EXTERN_DATA(__type) extern __type _export -# define PR_IMPLEMENT_DATA(__type) __type _export - -# define PR_CALLBACK __cdecl __loadds -# define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK - -# else /* this must be .EXE */ -# define PR_EXPORT(__type) extern __type _cdecl _export -# define PR_IMPORT(__type) extern __type _cdecl _export -# define PR_EXPORT_DATA(__type) extern __type _export -# define PR_IMPORT_DATA(__type) extern __type _export - -# define PR_EXTERN(__type) extern __type _cdecl _export -# define PR_IMPLEMENT(__type) __type _cdecl _export -# define PR_EXTERN_DATA(__type) extern __type _export -# define PR_IMPLEMENT_DATA(__type) __type _export - -# define PR_CALLBACK __cdecl __loadds -# define PR_STATIC_CALLBACK(__x) __x PR_CALLBACK -# endif /* _WINDLL */ - -# elif defined(XP_MAC) - -# define PR_EXPORT(__type) extern __declspec(export) __type -# define PR_EXPORT_DATA(__type) extern __declspec(export) __type -# define PR_IMPORT(__type) extern __declspec(export) __type -# define PR_IMPORT_DATA(__type) extern __declspec(export) __type - -# define PR_EXTERN(__type) extern __declspec(export) __type -# define PR_IMPLEMENT(__type) __declspec(export) __type -# define PR_EXTERN_DATA(__type) extern __declspec(export) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(export) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_OS2) && defined(__declspec) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) __declspec(dllimport) __type -# define PR_IMPORT_DATA(__type) __declspec(dllimport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_OS2_VACPP) - -# define PR_EXPORT(__type) extern __type -# define PR_EXPORT_DATA(__type) extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type - -# define PR_EXTERN(__type) extern __type -# define PR_IMPLEMENT(__type) __type -# define PR_EXTERN_DATA(__type) extern __type -# define PR_IMPLEMENT_DATA(__type) __type -# define PR_CALLBACK _Optlink -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK - -# else /* Unix */ - -# ifdef VBOX_HAVE_VISIBILITY_HIDDEN -# define PR_EXPORT(__type) __attribute__((visibility("default"))) exter= n __type -# define PR_EXPORT_DATA(__type) __attribute__((visibility("default"))) = extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type -# define PR_EXTERN(__type) __attribute__((visibility("default"))) exter= n __type -# define PR_IMPLEMENT(__type) __attribute__((visibility("default"))) __= type -# define PR_EXTERN_DATA(__type) __attribute__((visibility("default"))) = extern __type -# define PR_IMPLEMENT_DATA(__type) __attribute__((visibility("default")= )) __type -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x -# else -# define PR_EXPORT(__type) extern __type -# define PR_EXPORT_DATA(__type) extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type -# define PR_EXTERN(__type) extern __type -# define PR_IMPLEMENT(__type) __type -# define PR_EXTERN_DATA(__type) extern __type -# define PR_IMPLEMENT_DATA(__type) __type -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x -# endif -# endif - -# if defined(_NSPR_BUILD_) -# define NSPR_API(__type) PR_EXPORT(__type) -# define NSPR_DATA_API(__type) PR_EXPORT_DATA(__type) -# else -# define NSPR_API(__type) PR_IMPORT(__type) -# define NSPR_DATA_API(__type) PR_IMPORT_DATA(__type) -# endif - -typedef unsigned char PRUint8; -# if (defined(HPUX) && defined(__cplusplus) \ - && !defined(__GNUC__) && __cplusplus < 199707L) \ - || (defined(SCO) && defined(__cplusplus) \ - && !defined(__GNUC__) && __cplusplus =3D=3D 1L) -typedef char PRInt8; -# else -typedef signed char PRInt8; -# endif - -# define PR_INT8_MAX 127 -# define PR_INT8_MIN (-128) -# define PR_UINT8_MAX 255U - -typedef unsigned short PRUint16; -typedef short PRInt16; - -# define PR_INT16_MAX 32767 -# define PR_INT16_MIN (-32768) -# define PR_UINT16_MAX 65535U - -typedef unsigned int PRUint32; -typedef int PRInt32; -# define PR_INT32(x) x -# define PR_UINT32(x) x ## U - -# define PR_INT32_MAX PR_INT32(2147483647) -# define PR_INT32_MIN (-PR_INT32_MAX - 1) -# define PR_UINT32_MAX PR_UINT32(4294967295) - -typedef long PRInt64; -typedef unsigned long PRUint64; -typedef int PRIntn; -typedef unsigned int PRUintn; - -typedef double PRFloat64; -typedef size_t PRSize; - -typedef ptrdiff_t PRPtrdiff; - -typedef unsigned long PRUptrdiff; - -typedef PRIntn PRBool; - -# define PR_TRUE 1 -# define PR_FALSE 0 - -typedef PRUint8 PRPackedBool; - -/* -** Status code used by some routines that have a single point of failure or -** special status return. -*/ -typedef enum { PR_FAILURE =3D -1, PR_SUCCESS =3D 0 } PRStatus; - -# ifndef __PRUNICHAR__ -# define __PRUNICHAR__ -# if defined(WIN32) || defined(XP_MAC) -typedef wchar_t PRUnichar; -# else -typedef PRUint16 PRUnichar; -# endif -# endif - -typedef long PRWord; -typedef unsigned long PRUword; - -# define nsnull 0 -typedef PRUint32 nsresult; - -# if defined(__GNUC__) && (__GNUC__ > 2) -# define NS_LIKELY(x) (__builtin_expect((x), 1)) -# define NS_UNLIKELY(x) (__builtin_expect((x), 0)) -# else -# define NS_LIKELY(x) (x) -# define NS_UNLIKELY(x) (x) -# endif - -# define NS_FAILED(_nsresult) (NS_UNLIKELY((_nsresult) & 0x80000000)) -# define NS_SUCCEEDED(_nsresult) (NS_LIKELY(!((_nsresult) & 0x80000000))) - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_IntervalNow VBoxNsprPR_IntervalNow -# define PR_TicksPerSecond VBoxNsprPR_TicksPerSecond -# define PR_SecondsToInterval VBoxNsprPR_SecondsToInterval -# define PR_MillisecondsToInterval VBoxNsprPR_MillisecondsToInterval -# define PR_MicrosecondsToInterval VBoxNsprPR_MicrosecondsToInterval -# define PR_IntervalToSeconds VBoxNsprPR_IntervalToSeconds -# define PR_IntervalToMilliseconds VBoxNsprPR_IntervalToMilliseconds -# define PR_IntervalToMicroseconds VBoxNsprPR_IntervalToMicroseconds -# define PR_EnterMonitor VBoxNsprPR_EnterMonitor -# define PR_ExitMonitor VBoxNsprPR_ExitMonitor -# define PR_Notify VBoxNsprPR_Notify -# define PR_NotifyAll VBoxNsprPR_NotifyAll -# define PR_Wait VBoxNsprPR_Wait -# define PR_NewMonitor VBoxNsprPR_NewMonitor -# define PR_DestroyMonitor VBoxNsprPR_DestroyMonitor -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef PRUint32 PRIntervalTime; - -# define PR_INTERVAL_MIN 1000UL -# define PR_INTERVAL_MAX 100000UL -# define PR_INTERVAL_NO_WAIT 0UL -# define PR_INTERVAL_NO_TIMEOUT 0xffffffffUL - -NSPR_API(PRIntervalTime) PR_IntervalNow(void); -NSPR_API(PRUint32) PR_TicksPerSecond(void); -NSPR_API(PRIntervalTime) PR_SecondsToInterval(PRUint32 seconds); -NSPR_API(PRIntervalTime) PR_MillisecondsToInterval(PRUint32 milli); -NSPR_API(PRIntervalTime) PR_MicrosecondsToInterval(PRUint32 micro); -NSPR_API(PRUint32) PR_IntervalToSeconds(PRIntervalTime ticks); -NSPR_API(PRUint32) PR_IntervalToMilliseconds(PRIntervalTime ticks); -NSPR_API(PRUint32) PR_IntervalToMicroseconds(PRIntervalTime ticks); - -typedef struct PRMonitor PRMonitor; - -NSPR_API(PRMonitor*) PR_NewMonitor(void); -NSPR_API(void) PR_DestroyMonitor(PRMonitor *mon); -NSPR_API(void) PR_EnterMonitor(PRMonitor *mon); -NSPR_API(PRStatus) PR_ExitMonitor(PRMonitor *mon); -NSPR_API(PRStatus) PR_Wait(PRMonitor *mon, PRIntervalTime ticks); -NSPR_API(PRStatus) PR_Notify(PRMonitor *mon); -NSPR_API(PRStatus) PR_NotifyAll(PRMonitor *mon); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_CreateThread VBoxNsprPR_CreateThread -# define PR_JoinThread VBoxNsprPR_JoinThread -# define PR_Sleep VBoxNsprPR_Sleep -# define PR_GetCurrentThread VBoxNsprPR_GetCurrentThread -# define PR_GetThreadState VBoxNsprPR_GetThreadState -# define PR_SetThreadPrivate VBoxNsprPR_SetThreadPrivate -# define PR_GetThreadPrivate VBoxNsprPR_GetThreadPrivate -# define PR_NewThreadPrivateIndex VBoxNsprPR_NewThreadPrivateIndex -# define PR_GetThreadPriority VBoxNsprPR_GetThreadPriority -# define PR_SetThreadPriority VBoxNsprPR_SetThreadPriority -# define PR_Interrupt VBoxNsprPR_Interrupt -# define PR_ClearInterrupt VBoxNsprPR_ClearInterrupt -# define PR_BlockInterrupt VBoxNsprPR_BlockInterrupt -# define PR_UnblockInterrupt VBoxNsprPR_UnblockInterrupt -# define PR_GetThreadScope VBoxNsprPR_GetThreadScope -# define PR_GetThreadType VBoxNsprPR_GetThreadType -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRThread PRThread; -typedef struct PRThreadStack PRThreadStack; - -typedef enum PRThreadType { - PR_USER_THREAD, - PR_SYSTEM_THREAD -} PRThreadType; - -typedef enum PRThreadScope { - PR_LOCAL_THREAD, - PR_GLOBAL_THREAD, - PR_GLOBAL_BOUND_THREAD -} PRThreadScope; - -typedef enum PRThreadState { - PR_JOINABLE_THREAD, - PR_UNJOINABLE_THREAD -} PRThreadState; - -typedef enum PRThreadPriority -{ - PR_PRIORITY_FIRST =3D 0, /* just a placeholder */ - PR_PRIORITY_LOW =3D 0, /* the lowest possible priority */ - PR_PRIORITY_NORMAL =3D 1, /* most common expected priority */ - PR_PRIORITY_HIGH =3D 2, /* slightly more aggressive scheduling */ - PR_PRIORITY_URGENT =3D 3, /* it does little good to have more than= one */ - PR_PRIORITY_LAST =3D 3 /* this is just a placeholder */ -} PRThreadPriority; - -NSPR_API(PRThread*) PR_CreateThread(PRThreadType type, - void (PR_CALLBACK *start)(void *arg), - void *arg, - PRThreadPriority priority, - PRThreadScope scope, - PRThreadState state, - PRUint32 stackSize); -NSPR_API(PRStatus) PR_JoinThread(PRThread *thread); -NSPR_API(PRThread*) PR_GetCurrentThread(void); -# ifndef NO_NSPR_10_SUPPORT -# define PR_CurrentThread() PR_GetCurrentThread() /* for nspr1.0 compat.= */ -# endif /* NO_NSPR_10_SUPPORT */ -NSPR_API(PRThreadPriority) PR_GetThreadPriority(const PRThread *thread); -NSPR_API(void) PR_SetThreadPriority(PRThread *thread, PRThreadPriority pri= ority); - -typedef void (PR_CALLBACK *PRThreadPrivateDTOR)(void *priv); - -NSPR_API(PRStatus) PR_NewThreadPrivateIndex( - PRUintn *newIndex, PRThreadPrivateDTOR destructor); -NSPR_API(PRStatus) PR_SetThreadPrivate(PRUintn tpdIndex, void *priv); -NSPR_API(void*) PR_GetThreadPrivate(PRUintn tpdIndex); -NSPR_API(PRStatus) PR_Interrupt(PRThread *thread); -NSPR_API(void) PR_ClearInterrupt(void); -NSPR_API(void) PR_BlockInterrupt(void); -NSPR_API(void) PR_UnblockInterrupt(void); -NSPR_API(PRStatus) PR_Sleep(PRIntervalTime ticks); -NSPR_API(PRThreadScope) PR_GetThreadScope(const PRThread *thread); -NSPR_API(PRThreadType) PR_GetThreadType(const PRThread *thread); -NSPR_API(PRThreadState) PR_GetThreadState(const PRThread *thread); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_DestroyLock VBoxNsprPR_DestroyLock -# define PR_Lock VBoxNsprPR_Lock -# define PR_NewLock VBoxNsprPR_NewLock -# define PR_Unlock VBoxNsprPR_Unlock -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRLock PRLock; - -NSPR_API(PRLock*) PR_NewLock(void); -NSPR_API(void) PR_DestroyLock(PRLock *lock); -NSPR_API(void) PR_Lock(PRLock *lock); -NSPR_API(PRStatus) PR_Unlock(PRLock *lock); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_NewCondVar VBoxNsprPR_NewCondVar -# define PR_DestroyCondVar VBoxNsprPR_DestroyCondVar -# define PR_WaitCondVar VBoxNsprPR_WaitCondVar -# define PR_NotifyCondVar VBoxNsprPR_NotifyCondVar -# define PR_NotifyAllCondVar VBoxNsprPR_NotifyAllCondVar -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRCondVar PRCondVar; - -NSPR_API(PRCondVar*) PR_NewCondVar(PRLock *lock); -NSPR_API(void) PR_DestroyCondVar(PRCondVar *cvar); -NSPR_API(PRStatus) PR_WaitCondVar(PRCondVar *cvar, PRIntervalTime timeout); -NSPR_API(PRStatus) PR_NotifyCondVar(PRCondVar *cvar); -NSPR_API(PRStatus) PR_NotifyAllCondVar(PRCondVar *cvar); - -typedef struct PRCListStr PRCList; - -struct PRCListStr { - PRCList *next; - PRCList *prev; -}; - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PL_DestroyEvent VBoxNsplPL_DestroyEvent -# define PL_HandleEvent VBoxNsplPL_HandleEvent -# define PL_InitEvent VBoxNsplPL_InitEvent -# define PL_CreateEventQueue VBoxNsplPL_CreateEventQueue -# define PL_CreateMonitoredEventQueue VBoxNsplPL_CreateMonitoredEventQue= ue -# define PL_CreateNativeEventQueue VBoxNsplPL_CreateNativeEventQueue -# define PL_DequeueEvent VBoxNsplPL_DequeueEvent -# define PL_DestroyEventQueue VBoxNsplPL_DestroyEventQueue -# define PL_EventAvailable VBoxNsplPL_EventAvailable -# define PL_EventLoop VBoxNsplPL_EventLoop -# define PL_GetEvent VBoxNsplPL_GetEvent -# define PL_GetEventOwner VBoxNsplPL_GetEventOwner -# define PL_GetEventQueueMonitor VBoxNsplPL_GetEventQueueMonitor -# define PL_GetEventQueueSelectFD VBoxNsplPL_GetEventQueueSelectFD -# define PL_MapEvents VBoxNsplPL_MapEvents -# define PL_PostEvent VBoxNsplPL_PostEvent -# define PL_PostSynchronousEvent VBoxNsplPL_PostSynchronousEvent -# define PL_ProcessEventsBeforeID VBoxNsplPL_ProcessEventsBeforeID -# define PL_ProcessPendingEvents VBoxNsplPL_ProcessPendingEvents -# define PL_RegisterEventIDFunc VBoxNsplPL_RegisterEventIDFunc -# define PL_RevokeEvents VBoxNsplPL_RevokeEvents -# define PL_UnregisterEventIDFunc VBoxNsplPL_UnregisterEventIDFunc -# define PL_WaitForEvent VBoxNsplPL_WaitForEvent -# define PL_IsQueueNative VBoxNsplPL_IsQueueNative -# define PL_IsQueueOnCurrentThread VBoxNsplPL_IsQueueOnCurrentThread -# define PL_FavorPerformanceHint VBoxNsplPL_FavorPerformanceHint -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PLEvent PLEvent; -typedef struct PLEventQueue PLEventQueue; - -PR_EXTERN(PLEventQueue*) -PL_CreateEventQueue(const char* name, PRThread* handlerThread); -PR_EXTERN(PLEventQueue *) - PL_CreateNativeEventQueue( - const char *name, - PRThread *handlerThread - ); -PR_EXTERN(PLEventQueue *) - PL_CreateMonitoredEventQueue( - const char *name, - PRThread *handlerThread - ); -PR_EXTERN(void) -PL_DestroyEventQueue(PLEventQueue* self); -PR_EXTERN(PRMonitor*) -PL_GetEventQueueMonitor(PLEventQueue* self); - -# define PL_ENTER_EVENT_QUEUE_MONITOR(queue) \ - PR_EnterMonitor(PL_GetEventQueueMonitor(queue)) - -# define PL_EXIT_EVENT_QUEUE_MONITOR(queue) \ - PR_ExitMonitor(PL_GetEventQueueMonitor(queue)) - -PR_EXTERN(PRStatus) PL_PostEvent(PLEventQueue* self, PLEvent* event); -PR_EXTERN(void*) PL_PostSynchronousEvent(PLEventQueue* self, PLEvent* even= t); -PR_EXTERN(PLEvent*) PL_GetEvent(PLEventQueue* self); -PR_EXTERN(PRBool) PL_EventAvailable(PLEventQueue* self); - -typedef void (PR_CALLBACK *PLEventFunProc)(PLEvent* event, void* data, PLE= ventQueue* queue); - -PR_EXTERN(void) PL_MapEvents(PLEventQueue* self, PLEventFunProc fun, void*= data); -PR_EXTERN(void) PL_RevokeEvents(PLEventQueue* self, void* owner); -PR_EXTERN(void) PL_ProcessPendingEvents(PLEventQueue* self); -PR_EXTERN(PLEvent*) PL_WaitForEvent(PLEventQueue* self); -PR_EXTERN(void) PL_EventLoop(PLEventQueue* self); -PR_EXTERN(PRInt32) PL_GetEventQueueSelectFD(PLEventQueue* self); -PR_EXTERN(PRBool) PL_IsQueueOnCurrentThread( PLEventQueue *queue ); -PR_EXTERN(PRBool) PL_IsQueueNative(PLEventQueue *queue); - -typedef void* (PR_CALLBACK *PLHandleEventProc)(PLEvent* self); -typedef void (PR_CALLBACK *PLDestroyEventProc)(PLEvent* self); -PR_EXTERN(void) -PL_InitEvent(PLEvent* self, void* owner, - PLHandleEventProc handler, - PLDestroyEventProc destructor); -PR_EXTERN(void*) PL_GetEventOwner(PLEvent* self); -PR_EXTERN(void) PL_HandleEvent(PLEvent* self); -PR_EXTERN(void) PL_DestroyEvent(PLEvent* self); -PR_EXTERN(void) PL_DequeueEvent(PLEvent* self, PLEventQueue* queue); -PR_EXTERN(void) PL_FavorPerformanceHint(PRBool favorPerformanceOverEventSt= arvation, PRUint32 starvationDelay); - -struct PLEvent { - PRCList link; - PLHandleEventProc handler; - PLDestroyEventProc destructor; - void* owner; - void* synchronousResult; - PRLock* lock; - PRCondVar* condVar; - PRBool handled; -# ifdef PL_POST_TIMINGS - PRIntervalTime postTime; -# endif -# ifdef XP_UNIX - unsigned long id; -# endif /* XP_UNIX */ - /* other fields follow... */ -}; - -# if defined(XP_WIN) || defined(XP_OS2) - -PR_EXTERN(HWND) - PL_GetNativeEventReceiverWindow( - PLEventQueue *eqp - ); -# endif /* XP_WIN || XP_OS2 */ - -# ifdef XP_UNIX - -PR_EXTERN(PRInt32) -PL_ProcessEventsBeforeID(PLEventQueue *aSelf, unsigned long aID); - -typedef unsigned long (PR_CALLBACK *PLGetEventIDFunc)(void *aClosure); - -PR_EXTERN(void) -PL_RegisterEventIDFunc(PLEventQueue *aSelf, PLGetEventIDFunc aFunc, - void *aClosure); -PR_EXTERN(void) PL_UnregisterEventIDFunc(PLEventQueue *aSelf); - -# endif /* XP_UNIX */ - -/* Standard "it worked" return value */ -# define NS_OK 0 - -# define NS_ERROR_BASE ((nsresult) 0xC1F30000) - -/* Returned when an instance is not initialized */ -# define NS_ERROR_NOT_INITIALIZED (NS_ERROR_BASE + 1) - -/* Returned when an instance is already initialized */ -# define NS_ERROR_ALREADY_INITIALIZED (NS_ERROR_BASE + 2) - -/* Returned by a not implemented function */ -# define NS_ERROR_NOT_IMPLEMENTED ((nsresult) 0x80004001L) - -/* Returned when a given interface is not supported. */ -# define NS_NOINTERFACE ((nsresult) 0x80004002L) -# define NS_ERROR_NO_INTERFACE NS_NOINTERFACE - -# define NS_ERROR_INVALID_POINTER ((nsresult) 0x80004003L) -# define NS_ERROR_NULL_POINTER NS_ERROR_INVALID_POINTER - -/* Returned when a function aborts */ -# define NS_ERROR_ABORT ((nsresult) 0x80004004L) - -/* Returned when a function fails */ -# define NS_ERROR_FAILURE ((nsresult) 0x80004005L) - -/* Returned when an unexpected error occurs */ -# define NS_ERROR_UNEXPECTED ((nsresult) 0x8000ffffL) - -/* Returned when a memory allocation fails */ -# define NS_ERROR_OUT_OF_MEMORY ((nsresult) 0x8007000eL) - -/* Returned when an illegal value is passed */ -# define NS_ERROR_ILLEGAL_VALUE ((nsresult) 0x80070057L) -# define NS_ERROR_INVALID_ARG NS_ERROR_ILLEGAL_VALUE - -/* Returned when a class doesn't allow aggregation */ -# define NS_ERROR_NO_AGGREGATION ((nsresult) 0x80040110L) - -/* Returned when an operation can't complete due to an unavailable resourc= e */ -# define NS_ERROR_NOT_AVAILABLE ((nsresult) 0x80040111L) - -/* Returned when a class is not registered */ -# define NS_ERROR_FACTORY_NOT_REGISTERED ((nsresult) 0x80040154L) - -/* Returned when a class cannot be registered, but may be tried again late= r */ -# define NS_ERROR_FACTORY_REGISTER_AGAIN ((nsresult) 0x80040155L) - -/* Returned when a dynamically loaded factory couldn't be found */ -# define NS_ERROR_FACTORY_NOT_LOADED ((nsresult) 0x800401f8L) - -/* Returned when a factory doesn't support signatures */ -# define NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT \ - (NS_ERROR_BASE + 0x101) - -/* Returned when a factory already is registered */ -# define NS_ERROR_FACTORY_EXISTS (NS_ERROR_BASE + 0x100) - - -/** - * An "interface id" which can be used to uniquely identify a given - * interface. - * A "unique identifier". This is modeled after OSF DCE UUIDs. - */ - -struct nsID { - PRUint32 m0; - PRUint16 m1; - PRUint16 m2; - PRUint8 m3[8]; -}; - -typedef struct nsID nsID; -typedef nsID nsIID; - -struct nsISupports; /* forward declaration */ -struct nsIStackFrame; /* forward declaration */ -struct nsIException; /* forward declaration */ -typedef struct nsISupports nsISupports; /* forward declaration */ -typedef struct nsIStackFrame nsIStackFrame; /* forward declaration */ -typedef struct nsIException nsIException; /* forward declaration */ - -/** - * IID for the nsISupports interface - * {00000000-0000-0000-c000-000000000046} - * - * To maintain binary compatibility with COM's IUnknown, we define the IID - * of nsISupports to be the same as that of COM's IUnknown. - */ -# define NS_ISUPPORTS_IID \ - { 0x00000000, 0x0000, 0x0000, \ - {0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46} } - -/** - * Reference count values - * - * This is the return type for AddRef() and Release() in nsISupports. - * IUnknown of COM returns an unsigned long from equivalent functions. - * The following ifdef exists to maintain binary compatibility with - * IUnknown. - */ - -/** - * Basic component object model interface. Objects which implement - * this interface support runtime interface discovery (QueryInterface) - * and a reference counted memory model (AddRef/Release). This is - * modelled after the win32 IUnknown API. - */ -struct nsISupports_vtbl { - - /** - * @name Methods - */ - - /** - * A run time mechanism for interface discovery. - * @param aIID [in] A requested interface IID - * @param aInstancePtr [out] A pointer to an interface pointer to - * receive the result. - * @return NS_OK if the interface is supported by the associa= ted - * instance, NS_NOINTERFACE if it is not. - * NS_ERROR_INVALID_POINTER if aInstancePtr is NULL. - */ - nsresult PR_COM_METHOD (*QueryInterface)(nsISupports *pThis, const nsID = *iid, void **resultp); - /** - * Increases the reference count for this interface. - * The associated instance will not be deleted unless - * the reference count is returned to zero. - * - * @return The resulting reference count. - */ - nsresult PR_COM_METHOD (*AddRef)(nsISupports *pThis); - - /** - * Decreases the reference count for this interface. - * Generally, if the reference count returns to zero, - * the associated instance is deleted. - * - * @return The resulting reference count. - */ - nsresult PR_COM_METHOD (*Release)(nsISupports *pThis); - -# ifdef WIN32 - /* The MSCOM implementation has some additional methods here. - * So add them here to get correct binary layout of the object. - * In API version 4.x this affects all types. */ - nsresult PR_COM_METHOD (*GetTypeInfoCount)(nsISupports *pThis); - nsresult PR_COM_METHOD (*GetTypeInfo)(nsISupports *pThis); - nsresult PR_COM_METHOD (*GetIDsOfNames)(nsISupports *pThis); - nsresult PR_COM_METHOD (*Invoke)(nsISupports *pThis); -# endif -}; - -struct nsISupports { - struct nsISupports_vtbl *vtbl; -}; - -/* starting interface: nsIException */ -# define NS_IEXCEPTION_IID_STR "f3a8d3b4-c424-4edc-8bf6-8974c983ba78" - -# define NS_IEXCEPTION_IID \ - {0xf3a8d3b4, 0xc424, 0x4edc, \ - { 0x8b, 0xf6, 0x89, 0x74, 0xc9, 0x83, 0xba, 0x78 }} - -struct nsIException_vtbl { - - /* Methods from the Class nsISupports */ - struct nsISupports_vtbl nsisupports; - - /* readonly attribute string message; */ - nsresult PR_COM_METHOD (*GetMessage)(nsIException *pThis, PRUnichar * *a= Message); - - /* readonly attribute nsresult (*result; */ - nsresult PR_COM_METHOD (*GetResult)(nsIException *pThis, nsresult *aResu= lt); - - /* readonly attribute string name; */ - nsresult PR_COM_METHOD (*GetName)(nsIException *pThis, PRUnichar * *aNam= e); - - /* readonly attribute string filename; */ - nsresult PR_COM_METHOD (*GetFilename)(nsIException *pThis, PRUnichar * *= aFilename); - - /* readonly attribute PRUint32 lineNumber; */ - nsresult PR_COM_METHOD (*GetLineNumber)(nsIException *pThis, PRUint32 *a= LineNumber); - - /* readonly attribute PRUint32 columnNumber; */ - nsresult PR_COM_METHOD (*GetColumnNumber)(nsIException *pThis, PRUint32 = *aColumnNumber); - - /* readonly attribute nsIStackFrame location; */ - nsresult PR_COM_METHOD (*GetLocation)(nsIException *pThis, nsIStackFrame= * *aLocation); - - /* readonly attribute nsIException inner; */ - nsresult PR_COM_METHOD (*GetInner)(nsIException *pThis, nsIException * *= aInner); - - /* readonly attribute nsISupports data; */ - nsresult PR_COM_METHOD (*GetData)(nsIException *pThis, nsISupports * *aD= ata); - - /* string toString (); */ - nsresult PR_COM_METHOD (*ToString)(nsIException *pThis, PRUnichar **_ret= val); -}; - -struct nsIException { - struct nsIException_vtbl *vtbl; -}; - -/* starting interface: nsIStackFrame */ -# define NS_ISTACKFRAME_IID_STR "91d82105-7c62-4f8b-9779-154277c0ee90" - -# define NS_ISTACKFRAME_IID \ - {0x91d82105, 0x7c62, 0x4f8b, \ - { 0x97, 0x79, 0x15, 0x42, 0x77, 0xc0, 0xee, 0x90 }} - -struct nsIStackFrame_vtbl { - - /* Methods from the Class nsISupports */ - struct nsISupports_vtbl nsisupports; - - /* readonly attribute PRUint32 language; */ - nsresult PR_COM_METHOD (*GetLanguage)(nsIStackFrame *pThis, PRUint32 *aL= anguage); - - /* readonly attribute string languageName; */ - nsresult PR_COM_METHOD (*GetLanguageName)(nsIStackFrame *pThis, PRUnicha= r * *aLanguageName); - - /* readonly attribute string filename; */ - nsresult PR_COM_METHOD (*GetFilename)(nsIStackFrame *pThis, PRUnichar * = *aFilename); - - /* readonly attribute string name; */ - nsresult PR_COM_METHOD (*GetName)(nsIStackFrame *pThis, PRUnichar * *aNa= me); - - /* readonly attribute PRInt32 lineNumber; */ - nsresult PR_COM_METHOD (*GetLineNumber)(nsIStackFrame *pThis, PRInt32 *a= LineNumber); - - /* readonly attribute string sourceLine; */ - nsresult PR_COM_METHOD (*GetSourceLine)(nsIStackFrame *pThis, PRUnichar = * *aSourceLine); - - /* readonly attribute nsIStackFrame caller; */ - nsresult PR_COM_METHOD (*GetCaller)(nsIStackFrame *pThis, nsIStackFrame = * *aCaller); - - /* string toString (); */ - nsresult PR_COM_METHOD (*ToString)(nsIStackFrame *pThis, PRUnichar **_re= tval); -}; - -struct nsIStackFrame { - struct nsIStackFrame_vtbl *vtbl; -}; - -/* starting interface: nsIEventTarget */ -# define NS_IEVENTTARGET_IID_STR "ea99ad5b-cc67-4efb-97c9-2ef620a59f2a" - -# define NS_IEVENTTARGET_IID \ - {0xea99ad5b, 0xcc67, 0x4efb, \ - { 0x97, 0xc9, 0x2e, 0xf6, 0x20, 0xa5, 0x9f, 0x2a }} - -struct nsIEventTarget; -typedef struct nsIEventTarget nsIEventTarget; - -struct nsIEventTarget_vtbl { - - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*PostEvent)(nsIEventTarget *pThis, PLEvent * a= Event); - - nsresult PR_COM_METHOD (*IsOnCurrentThread)(nsIEventTarget *pThis, PRB= ool *_retval); - -}; - -struct nsIEventTarget { - struct nsIEventTarget_vtbl *vtbl; -}; - -/* starting interface: nsIEventQueue */ -# define NS_IEVENTQUEUE_IID_STR "176afb41-00a4-11d3-9f2a-00400553eef0" - -# define NS_IEVENTQUEUE_IID \ - {0x176afb41, 0x00a4, 0x11d3, \ - { 0x9f, 0x2a, 0x00, 0x40, 0x05, 0x53, 0xee, 0xf0 }} - -struct nsIEventQueue; -typedef struct nsIEventQueue nsIEventQueue; - -struct nsIEventQueue_vtbl { - - struct nsIEventTarget_vtbl nsieventtarget; - - nsresult PR_COM_METHOD (*InitEvent)(nsIEventQueue *pThis, PLEvent * aE= vent, void * owner, PLHandleEventProc handler, PLDestroyEventProc destructo= r); - - nsresult PR_COM_METHOD (*PostSynchronousEvent)(nsIEventQueue *pThis, P= LEvent * aEvent, void * *aResult); - - nsresult PR_COM_METHOD (*PendingEvents)(nsIEventQueue *pThis, PRBool *= _retval); - - nsresult PR_COM_METHOD (*ProcessPendingEvents)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*EventLoop)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*EventAvailable)(nsIEventQueue *pThis, PRBool = *aResult); - - nsresult PR_COM_METHOD (*GetEvent)(nsIEventQueue *pThis, PLEvent * *_r= etval); - - nsresult PR_COM_METHOD (*HandleEvent)(nsIEventQueue *pThis, PLEvent * = aEvent); - - nsresult PR_COM_METHOD (*WaitForEvent)(nsIEventQueue *pThis, PLEvent *= *_retval); - - PRInt32 PR_COM_METHOD (*GetEventQueueSelectFD)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*Init)(nsIEventQueue *pThis, PRBool aNative); - - nsresult PR_COM_METHOD (*InitFromPRThread)(nsIEventQueue *pThis, PRThr= ead * thread, PRBool aNative); - - nsresult PR_COM_METHOD (*InitFromPLQueue)(nsIEventQueue *pThis, PLEven= tQueue * aQueue); - - nsresult PR_COM_METHOD (*EnterMonitor)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*ExitMonitor)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*RevokeEvents)(nsIEventQueue *pThis, void * ow= ner); - - nsresult PR_COM_METHOD (*GetPLEventQueue)(nsIEventQueue *pThis, PLEven= tQueue * *_retval); - - nsresult PR_COM_METHOD (*IsQueueNative)(nsIEventQueue *pThis, PRBool *= _retval); - - nsresult PR_COM_METHOD (*StopAcceptingEvents)(nsIEventQueue *pThis); - -}; - -struct nsIEventQueue { - struct nsIEventQueue_vtbl *vtbl; -}; - - -# 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 - - -struct IVirtualBoxErrorInfo; -struct IDHCPServer; -struct IVirtualBox; -struct IVFSExplorer; -struct IAppliance; -struct IVirtualSystemDescription; -struct IInternalMachineControl; -struct IBIOSSettings; -struct IPciAddress; -struct IPciDeviceAttachment; -struct IMachine; -struct IVRDEServerInfo; -struct IConsole; -struct IHostNetworkInterface; -struct IHost; -struct ISystemProperties; -struct IGuestOSType; -struct IAdditionsFacility; -struct IGuestDirEntry; -struct IGuest; -struct IProgress; -struct ISnapshot; -struct IMediumAttachment; -struct IMedium; -struct IMediumFormat; -struct IKeyboard; -struct IMouse; -struct IFramebuffer; -struct IFramebufferOverlay; -struct IDisplay; -struct INetworkAdapter; -struct ISerialPort; -struct IParallelPort; -struct IMachineDebugger; -struct IUSBController; -struct IUSBDevice; -struct IUSBDeviceFilter; -struct IHostUSBDevice; -struct IHostUSBDeviceFilter; -struct IAudioAdapter; -struct IVRDEServer; -struct ISharedFolder; -struct IInternalSessionControl; -struct ISession; -struct IStorageController; -struct IManagedObjectRef; -struct IWebsessionManager; -struct IPerformanceMetric; -struct IPerformanceCollector; -struct INATEngine; -struct IExtPackPlugIn; -struct IExtPackBase; -struct IExtPack; -struct IExtPackFile; -struct IExtPackManager; -struct IBandwidthGroup; -struct IBandwidthControl; -struct IVirtualBoxClient; -struct IEventSource; -struct IEventListener; -struct IEvent; -struct IReusableEvent; -struct IMachineEvent; -struct IMachineStateChangedEvent; -struct IMachineDataChangedEvent; -struct IMediumRegisteredEvent; -struct IMachineRegisteredEvent; -struct ISessionStateChangedEvent; -struct IGuestPropertyChangedEvent; -struct ISnapshotEvent; -struct ISnapshotTakenEvent; -struct ISnapshotDeletedEvent; -struct ISnapshotChangedEvent; -struct IMousePointerShapeChangedEvent; -struct IMouseCapabilityChangedEvent; -struct IKeyboardLedsChangedEvent; -struct IStateChangedEvent; -struct IAdditionsStateChangedEvent; -struct INetworkAdapterChangedEvent; -struct ISerialPortChangedEvent; -struct IParallelPortChangedEvent; -struct IStorageControllerChangedEvent; -struct IMediumChangedEvent; -struct ICPUChangedEvent; -struct ICPUExecutionCapChangedEvent; -struct IGuestKeyboardEvent; -struct IGuestMouseEvent; -struct IVRDEServerChangedEvent; -struct IVRDEServerInfoChangedEvent; -struct IUSBControllerChangedEvent; -struct IUSBDeviceStateChangedEvent; -struct ISharedFolderChangedEvent; -struct IRuntimeErrorEvent; -struct IEventSourceChangedEvent; -struct IExtraDataChangedEvent; -struct IVetoEvent; -struct IExtraDataCanChangeEvent; -struct ICanShowWindowEvent; -struct IShowWindowEvent; -struct INATRedirectEvent; -struct IHostPciDevicePlugEvent; -struct IVBoxSVCAvailabilityChangedEvent; -struct IBandwidthGroupChangedEvent; -struct IGuestMonitorChangedEvent; -struct IStorageDeviceChangedEvent; - -typedef struct IVirtualBoxErrorInfo IVirtualBoxErrorInfo; -typedef struct IDHCPServer IDHCPServer; -typedef struct IVirtualBox IVirtualBox; -typedef struct IVFSExplorer IVFSExplorer; -typedef struct IAppliance IAppliance; -typedef struct IVirtualSystemDescription IVirtualSystemDescription; -typedef struct IInternalMachineControl IInternalMachineControl; -typedef struct IBIOSSettings IBIOSSettings; -typedef struct IPciAddress IPciAddress; -typedef struct IPciDeviceAttachment IPciDeviceAttachment; -typedef struct IMachine IMachine; -typedef struct IVRDEServerInfo IVRDEServerInfo; -typedef struct IConsole IConsole; -typedef struct IHostNetworkInterface IHostNetworkInterface; -typedef struct IHost IHost; -typedef struct ISystemProperties ISystemProperties; -typedef struct IGuestOSType IGuestOSType; -typedef struct IAdditionsFacility IAdditionsFacility; -typedef struct IGuestDirEntry IGuestDirEntry; -typedef struct IGuest IGuest; -typedef struct IProgress IProgress; -typedef struct ISnapshot ISnapshot; -typedef struct IMediumAttachment IMediumAttachment; -typedef struct IMedium IMedium; -typedef struct IMediumFormat IMediumFormat; -typedef struct IKeyboard IKeyboard; -typedef struct IMouse IMouse; -typedef struct IFramebuffer IFramebuffer; -typedef struct IFramebufferOverlay IFramebufferOverlay; -typedef struct IDisplay IDisplay; -typedef struct INetworkAdapter INetworkAdapter; -typedef struct ISerialPort ISerialPort; -typedef struct IParallelPort IParallelPort; -typedef struct IMachineDebugger IMachineDebugger; -typedef struct IUSBController IUSBController; -typedef struct IUSBDevice IUSBDevice; -typedef struct IUSBDeviceFilter IUSBDeviceFilter; -typedef struct IHostUSBDevice IHostUSBDevice; -typedef struct IHostUSBDeviceFilter IHostUSBDeviceFilter; -typedef struct IAudioAdapter IAudioAdapter; -typedef struct IVRDEServer IVRDEServer; -typedef struct ISharedFolder ISharedFolder; -typedef struct IInternalSessionControl IInternalSessionControl; -typedef struct ISession ISession; -typedef struct IStorageController IStorageController; -typedef struct IManagedObjectRef IManagedObjectRef; -typedef struct IWebsessionManager IWebsessionManager; -typedef struct IPerformanceMetric IPerformanceMetric; -typedef struct IPerformanceCollector IPerformanceCollector; -typedef struct INATEngine INATEngine; -typedef struct IExtPackPlugIn IExtPackPlugIn; -typedef struct IExtPackBase IExtPackBase; -typedef struct IExtPack IExtPack; -typedef struct IExtPackFile IExtPackFile; -typedef struct IExtPackManager IExtPackManager; -typedef struct IBandwidthGroup IBandwidthGroup; -typedef struct IBandwidthControl IBandwidthControl; -typedef struct IVirtualBoxClient IVirtualBoxClient; -typedef struct IEventSource IEventSource; -typedef struct IEventListener IEventListener; -typedef struct IEvent IEvent; -typedef struct IReusableEvent IReusableEvent; -typedef struct IMachineEvent IMachineEvent; -typedef struct IMachineStateChangedEvent IMachineStateChangedEvent; -typedef struct IMachineDataChangedEvent IMachineDataChangedEvent; -typedef struct IMediumRegisteredEvent IMediumRegisteredEvent; -typedef struct IMachineRegisteredEvent IMachineRegisteredEvent; -typedef struct ISessionStateChangedEvent ISessionStateChangedEvent; -typedef struct IGuestPropertyChangedEvent IGuestPropertyChangedEvent; -typedef struct ISnapshotEvent ISnapshotEvent; -typedef struct ISnapshotTakenEvent ISnapshotTakenEvent; -typedef struct ISnapshotDeletedEvent ISnapshotDeletedEvent; -typedef struct ISnapshotChangedEvent ISnapshotChangedEvent; -typedef struct IMousePointerShapeChangedEvent IMousePointerShapeChangedEve= nt; -typedef struct IMouseCapabilityChangedEvent IMouseCapabilityChangedEvent; -typedef struct IKeyboardLedsChangedEvent IKeyboardLedsChangedEvent; -typedef struct IStateChangedEvent IStateChangedEvent; -typedef struct IAdditionsStateChangedEvent IAdditionsStateChangedEvent; -typedef struct INetworkAdapterChangedEvent INetworkAdapterChangedEvent; -typedef struct ISerialPortChangedEvent ISerialPortChangedEvent; -typedef struct IParallelPortChangedEvent IParallelPortChangedEvent; -typedef struct IStorageControllerChangedEvent IStorageControllerChangedEve= nt; -typedef struct IMediumChangedEvent IMediumChangedEvent; -typedef struct ICPUChangedEvent ICPUChangedEvent; -typedef struct ICPUExecutionCapChangedEvent ICPUExecutionCapChangedEvent; -typedef struct IGuestKeyboardEvent IGuestKeyboardEvent; -typedef struct IGuestMouseEvent IGuestMouseEvent; -typedef struct IVRDEServerChangedEvent IVRDEServerChangedEvent; -typedef struct IVRDEServerInfoChangedEvent IVRDEServerInfoChangedEvent; -typedef struct IUSBControllerChangedEvent IUSBControllerChangedEvent; -typedef struct IUSBDeviceStateChangedEvent IUSBDeviceStateChangedEvent; -typedef struct ISharedFolderChangedEvent ISharedFolderChangedEvent; -typedef struct IRuntimeErrorEvent IRuntimeErrorEvent; -typedef struct IEventSourceChangedEvent IEventSourceChangedEvent; -typedef struct IExtraDataChangedEvent IExtraDataChangedEvent; -typedef struct IVetoEvent IVetoEvent; -typedef struct IExtraDataCanChangeEvent IExtraDataCanChangeEvent; -typedef struct ICanShowWindowEvent ICanShowWindowEvent; -typedef struct IShowWindowEvent IShowWindowEvent; -typedef struct INATRedirectEvent INATRedirectEvent; -typedef struct IHostPciDevicePlugEvent IHostPciDevicePlugEvent; -typedef struct IVBoxSVCAvailabilityChangedEvent IVBoxSVCAvailabilityChange= dEvent; -typedef struct IBandwidthGroupChangedEvent IBandwidthGroupChangedEvent; -typedef struct IGuestMonitorChangedEvent IGuestMonitorChangedEvent; -typedef struct IStorageDeviceChangedEvent IStorageDeviceChangedEvent; - -/* Start of enum SettingsVersion Declaration */ -# define SETTINGSVERSION_IID_STR "52bd6f5f-1adb-4493-975d-581a9c4b803f" -# define SETTINGSVERSION_IID { \ - 0x52bd6f5f, 0x1adb, 0x4493, \ - { 0x97, 0x5d, 0x58, 0x1a, 0x9c, 0x4b, 0x80, 0x3f } \ -} -enum SettingsVersion -{ - SettingsVersion_Null =3D 0, - SettingsVersion_v1_0 =3D 1, - SettingsVersion_v1_1 =3D 2, - SettingsVersion_v1_2 =3D 3, - SettingsVersion_v1_3pre =3D 4, - SettingsVersion_v1_3 =3D 5, - SettingsVersion_v1_4 =3D 6, - SettingsVersion_v1_5 =3D 7, - SettingsVersion_v1_6 =3D 8, - SettingsVersion_v1_7 =3D 9, - SettingsVersion_v1_8 =3D 10, - SettingsVersion_v1_9 =3D 11, - SettingsVersion_v1_10 =3D 12, - SettingsVersion_v1_11 =3D 13, - SettingsVersion_v1_12 =3D 14, - SettingsVersion_Future =3D 99999 -}; -/* End of enum SettingsVersion Declaration */ - - -/* Start of enum AccessMode Declaration */ -# define ACCESSMODE_IID_STR "1da0007c-ddf7-4be8-bcac-d84a1558785f" -# define ACCESSMODE_IID { \ - 0x1da0007c, 0xddf7, 0x4be8, \ - { 0xbc, 0xac, 0xd8, 0x4a, 0x15, 0x58, 0x78, 0x5f } \ -} -enum AccessMode -{ - AccessMode_ReadOnly =3D 1, - AccessMode_ReadWrite =3D 2 -}; -/* End of enum AccessMode Declaration */ - - -/* Start of enum MachineState Declaration */ -# define MACHINESTATE_IID_STR "ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe" -# define MACHINESTATE_IID { \ - 0xec6c6a9e, 0x113d, 0x4ff4, \ - { 0xb4, 0x4f, 0x0b, 0x69, 0xf2, 0x1c, 0x97, 0xfe } \ -} -enum MachineState -{ - MachineState_Null =3D 0, - MachineState_PoweredOff =3D 1, - MachineState_Saved =3D 2, - MachineState_Teleported =3D 3, - MachineState_Aborted =3D 4, - MachineState_Running =3D 5, - MachineState_Paused =3D 6, - MachineState_Stuck =3D 7, - MachineState_Teleporting =3D 8, - MachineState_LiveSnapshotting =3D 9, - MachineState_Starting =3D 10, - MachineState_Stopping =3D 11, - MachineState_Saving =3D 12, - MachineState_Restoring =3D 13, - MachineState_TeleportingPausedVM =3D 14, - MachineState_TeleportingIn =3D 15, - MachineState_FaultTolerantSyncing =3D 16, - MachineState_DeletingSnapshotOnline =3D 17, - MachineState_DeletingSnapshotPaused =3D 18, - MachineState_RestoringSnapshot =3D 19, - MachineState_DeletingSnapshot =3D 20, - MachineState_SettingUp =3D 21, - MachineState_FirstOnline =3D 5, - MachineState_LastOnline =3D 18, - MachineState_FirstTransient =3D 8, - MachineState_LastTransient =3D 21 -}; -/* End of enum MachineState Declaration */ - - -/* Start of enum SessionState Declaration */ -# define SESSIONSTATE_IID_STR "cf2700c0-ea4b-47ae-9725-7810114b94d8" -# define SESSIONSTATE_IID { \ - 0xcf2700c0, 0xea4b, 0x47ae, \ - { 0x97, 0x25, 0x78, 0x10, 0x11, 0x4b, 0x94, 0xd8 } \ -} -enum SessionState -{ - SessionState_Null =3D 0, - SessionState_Unlocked =3D 1, - SessionState_Locked =3D 2, - SessionState_Spawning =3D 3, - SessionState_Unlocking =3D 4 -}; -/* End of enum SessionState Declaration */ - - -/* Start of enum CPUPropertyType Declaration */ -# define CPUPROPERTYTYPE_IID_STR "24d356a6-2f45-4abd-b977-1cbe9c4701f5" -# define CPUPROPERTYTYPE_IID { \ - 0x24d356a6, 0x2f45, 0x4abd, \ - { 0xb9, 0x77, 0x1c, 0xbe, 0x9c, 0x47, 0x01, 0xf5 } \ -} -enum CPUPropertyType -{ - CPUPropertyType_Null =3D 0, - CPUPropertyType_PAE =3D 1, - CPUPropertyType_Synthetic =3D 2 -}; -/* End of enum CPUPropertyType Declaration */ - - -/* Start of enum HWVirtExPropertyType Declaration */ -# define HWVIRTEXPROPERTYTYPE_IID_STR "ce81dfdd-d2b8-4a90-bbea-40ee8b7ffc= ee" -# define HWVIRTEXPROPERTYTYPE_IID { \ - 0xce81dfdd, 0xd2b8, 0x4a90, \ - { 0xbb, 0xea, 0x40, 0xee, 0x8b, 0x7f, 0xfc, 0xee } \ -} -enum HWVirtExPropertyType -{ - HWVirtExPropertyType_Null =3D 0, - HWVirtExPropertyType_Enabled =3D 1, - HWVirtExPropertyType_Exclusive =3D 2, - HWVirtExPropertyType_VPID =3D 3, - HWVirtExPropertyType_NestedPaging =3D 4, - HWVirtExPropertyType_LargePages =3D 5, - HWVirtExPropertyType_Force =3D 6 -}; -/* End of enum HWVirtExPropertyType Declaration */ - - -/* Start of enum FaultToleranceState Declaration */ -# define FAULTTOLERANCESTATE_IID_STR "5124f7ec-6b67-493c-9dee-ee45a44114e= 1" -# define FAULTTOLERANCESTATE_IID { \ - 0x5124f7ec, 0x6b67, 0x493c, \ - { 0x9d, 0xee, 0xee, 0x45, 0xa4, 0x41, 0x14, 0xe1 } \ -} -enum FaultToleranceState -{ - FaultToleranceState_Inactive =3D 1, - FaultToleranceState_Master =3D 2, - FaultToleranceState_Standby =3D 3 -}; -/* End of enum FaultToleranceState Declaration */ - - -/* Start of enum LockType Declaration */ -# define LOCKTYPE_IID_STR "138b53f8-db4b-47c5-b32b-4ef52f769413" -# define LOCKTYPE_IID { \ - 0x138b53f8, 0xdb4b, 0x47c5, \ - { 0xb3, 0x2b, 0x4e, 0xf5, 0x2f, 0x76, 0x94, 0x13 } \ -} -enum LockType -{ - LockType_Write =3D 2, - LockType_Shared =3D 1 -}; -/* End of enum LockType Declaration */ - - -/* Start of enum SessionType Declaration */ -# define SESSIONTYPE_IID_STR "A13C02CB-0C2C-421E-8317-AC0E8AAA153A" -# define SESSIONTYPE_IID { \ - 0xA13C02CB, 0x0C2C, 0x421E, \ - { 0x83, 0x17, 0xAC, 0x0E, 0x8A, 0xAA, 0x15, 0x3A } \ -} -enum SessionType -{ - SessionType_Null =3D 0, - SessionType_WriteLock =3D 1, - SessionType_Remote =3D 2, - SessionType_Shared =3D 3 -}; -/* End of enum SessionType Declaration */ - - -/* Start of enum DeviceType Declaration */ -# define DEVICETYPE_IID_STR "6d9420f7-0b56-4636-99f9-7346f1b01e57" -# define DEVICETYPE_IID { \ - 0x6d9420f7, 0x0b56, 0x4636, \ - { 0x99, 0xf9, 0x73, 0x46, 0xf1, 0xb0, 0x1e, 0x57 } \ -} -enum DeviceType -{ - DeviceType_Null =3D 0, - DeviceType_Floppy =3D 1, - DeviceType_DVD =3D 2, - DeviceType_HardDisk =3D 3, - DeviceType_Network =3D 4, - DeviceType_USB =3D 5, - DeviceType_SharedFolder =3D 6 -}; -/* End of enum DeviceType Declaration */ - - -/* Start of enum DeviceActivity Declaration */ -# define DEVICEACTIVITY_IID_STR "6FC8AEAA-130A-4eb5-8954-3F921422D707" -# define DEVICEACTIVITY_IID { \ - 0x6FC8AEAA, 0x130A, 0x4eb5, \ - { 0x89, 0x54, 0x3F, 0x92, 0x14, 0x22, 0xD7, 0x07 } \ -} -enum DeviceActivity -{ - DeviceActivity_Null =3D 0, - DeviceActivity_Idle =3D 1, - DeviceActivity_Reading =3D 2, - DeviceActivity_Writing =3D 3 -}; -/* End of enum DeviceActivity Declaration */ - - -/* Start of enum ClipboardMode Declaration */ -# define CLIPBOARDMODE_IID_STR "33364716-4008-4701-8f14-be0fa3d62950" -# define CLIPBOARDMODE_IID { \ - 0x33364716, 0x4008, 0x4701, \ - { 0x8f, 0x14, 0xbe, 0x0f, 0xa3, 0xd6, 0x29, 0x50 } \ -} -enum ClipboardMode -{ - ClipboardMode_Disabled =3D 0, - ClipboardMode_HostToGuest =3D 1, - ClipboardMode_GuestToHost =3D 2, - ClipboardMode_Bidirectional =3D 3 -}; -/* End of enum ClipboardMode Declaration */ - - -/* Start of enum Scope Declaration */ -# define SCOPE_IID_STR "7c91096e-499e-4eca-9f9b-9001438d7855" -# define SCOPE_IID { \ - 0x7c91096e, 0x499e, 0x4eca, \ - { 0x9f, 0x9b, 0x90, 0x01, 0x43, 0x8d, 0x78, 0x55 } \ -} -enum Scope -{ - Scope_Global =3D 0, - Scope_Machine =3D 1, - Scope_Session =3D 2 -}; -/* End of enum Scope Declaration */ - - -/* Start of enum BIOSBootMenuMode Declaration */ -# define BIOSBOOTMENUMODE_IID_STR "ae4fb9f7-29d2-45b4-b2c7-d579603135d5" -# define BIOSBOOTMENUMODE_IID { \ - 0xae4fb9f7, 0x29d2, 0x45b4, \ - { 0xb2, 0xc7, 0xd5, 0x79, 0x60, 0x31, 0x35, 0xd5 } \ -} -enum BIOSBootMenuMode -{ - BIOSBootMenuMode_Disabled =3D 0, - BIOSBootMenuMode_MenuOnly =3D 1, - BIOSBootMenuMode_MessageAndMenu =3D 2 -}; -/* End of enum BIOSBootMenuMode Declaration */ - - -/* Start of enum ProcessorFeature Declaration */ -# define PROCESSORFEATURE_IID_STR "64c38e6b-8bcf-45ad-ac03-9b406287c5bf" -# define PROCESSORFEATURE_IID { \ - 0x64c38e6b, 0x8bcf, 0x45ad, \ - { 0xac, 0x03, 0x9b, 0x40, 0x62, 0x87, 0xc5, 0xbf } \ -} -enum ProcessorFeature -{ - ProcessorFeature_HWVirtEx =3D 0, - ProcessorFeature_PAE =3D 1, - ProcessorFeature_LongMode =3D 2, - ProcessorFeature_NestedPaging =3D 3 -}; -/* End of enum ProcessorFeature Declaration */ - - -/* Start of enum FirmwareType Declaration */ -# define FIRMWARETYPE_IID_STR "b903f264-c230-483e-ac74-2b37ce60d371" -# define FIRMWARETYPE_IID { \ - 0xb903f264, 0xc230, 0x483e, \ - { 0xac, 0x74, 0x2b, 0x37, 0xce, 0x60, 0xd3, 0x71 } \ -} -enum FirmwareType -{ - FirmwareType_BIOS =3D 1, - FirmwareType_EFI =3D 2, - FirmwareType_EFI32 =3D 3, - FirmwareType_EFI64 =3D 4, - FirmwareType_EFIDUAL =3D 5 -}; -/* End of enum FirmwareType Declaration */ - - -/* Start of enum PointingHidType Declaration */ -# define POINTINGHIDTYPE_IID_STR "0d3c17a2-821a-4b2e-ae41-890c6c60aa97" -# define POINTINGHIDTYPE_IID { \ - 0x0d3c17a2, 0x821a, 0x4b2e, \ - { 0xae, 0x41, 0x89, 0x0c, 0x6c, 0x60, 0xaa, 0x97 } \ -} -enum PointingHidType -{ - PointingHidType_None =3D 1, - PointingHidType_PS2Mouse =3D 2, - PointingHidType_USBMouse =3D 3, - PointingHidType_USBTablet =3D 4, - PointingHidType_ComboMouse =3D 5 -}; -/* End of enum PointingHidType Declaration */ - - -/* Start of enum KeyboardHidType Declaration */ -# define KEYBOARDHIDTYPE_IID_STR "5a5b0996-3a3e-44bb-9019-56979812cbcc" -# define KEYBOARDHIDTYPE_IID { \ - 0x5a5b0996, 0x3a3e, 0x44bb, \ - { 0x90, 0x19, 0x56, 0x97, 0x98, 0x12, 0xcb, 0xcc } \ -} -enum KeyboardHidType -{ - KeyboardHidType_None =3D 1, - KeyboardHidType_PS2Keyboard =3D 2, - KeyboardHidType_USBKeyboard =3D 3, - KeyboardHidType_ComboKeyboard =3D 4 -}; -/* End of enum KeyboardHidType Declaration */ - - -/* Start of enum VFSType Declaration */ -# define VFSTYPE_IID_STR "813999ba-b949-48a8-9230-aadc6285e2f2" -# define VFSTYPE_IID { \ - 0x813999ba, 0xb949, 0x48a8, \ - { 0x92, 0x30, 0xaa, 0xdc, 0x62, 0x85, 0xe2, 0xf2 } \ -} -enum VFSType -{ - VFSType_File =3D 1, - VFSType_Cloud =3D 2, - VFSType_S3 =3D 3, - VFSType_WebDav =3D 4 -}; -/* End of enum VFSType Declaration */ - - -/* Start of enum VFSFileType Declaration */ -# define VFSFILETYPE_IID_STR "714333cd-44e2-415f-a245-d378fa9b1242" -# define VFSFILETYPE_IID { \ - 0x714333cd, 0x44e2, 0x415f, \ - { 0xa2, 0x45, 0xd3, 0x78, 0xfa, 0x9b, 0x12, 0x42 } \ -} -enum VFSFileType -{ - VFSFileType_Unknown =3D 1, - VFSFileType_Fifo =3D 2, - VFSFileType_DevChar =3D 3, - VFSFileType_Directory =3D 4, - VFSFileType_DevBlock =3D 5, - VFSFileType_File =3D 6, - VFSFileType_SymLink =3D 7, - VFSFileType_Socket =3D 8, - VFSFileType_WhiteOut =3D 9 -}; -/* End of enum VFSFileType Declaration */ - - -/* Start of enum ImportOptions Declaration */ -# define IMPORTOPTIONS_IID_STR "0a981523-3b20-4004-8ee3-dfd322202ace" -# define IMPORTOPTIONS_IID { \ - 0x0a981523, 0x3b20, 0x4004, \ - { 0x8e, 0xe3, 0xdf, 0xd3, 0x22, 0x20, 0x2a, 0xce } \ -} -enum ImportOptions -{ - ImportOptions_KeepAllMACs =3D 1, - ImportOptions_KeepNATMACs =3D 2 -}; -/* End of enum ImportOptions Declaration */ - - -/* Start of enum VirtualSystemDescriptionType Declaration */ -# define VIRTUALSYSTEMDESCRIPTIONTYPE_IID_STR "303c0900-a746-4612-8c67-79= 003e91f459" -# define VIRTUALSYSTEMDESCRIPTIONTYPE_IID { \ - 0x303c0900, 0xa746, 0x4612, \ - { 0x8c, 0x67, 0x79, 0x00, 0x3e, 0x91, 0xf4, 0x59 } \ -} -enum VirtualSystemDescriptionType -{ - VirtualSystemDescriptionType_Ignore =3D 1, - VirtualSystemDescriptionType_OS =3D 2, - VirtualSystemDescriptionType_Name =3D 3, - VirtualSystemDescriptionType_Product =3D 4, - VirtualSystemDescriptionType_Vendor =3D 5, - VirtualSystemDescriptionType_Version =3D 6, - VirtualSystemDescriptionType_ProductUrl =3D 7, - VirtualSystemDescriptionType_VendorUrl =3D 8, - VirtualSystemDescriptionType_Description =3D 9, - VirtualSystemDescriptionType_License =3D 10, - VirtualSystemDescriptionType_Miscellaneous =3D 11, - VirtualSystemDescriptionType_CPU =3D 12, - VirtualSystemDescriptionType_Memory =3D 13, - VirtualSystemDescriptionType_HardDiskControllerIDE =3D 14, - VirtualSystemDescriptionType_HardDiskControllerSATA =3D 15, - VirtualSystemDescriptionType_HardDiskControllerSCSI =3D 16, - VirtualSystemDescriptionType_HardDiskControllerSAS =3D 17, - VirtualSystemDescriptionType_HardDiskImage =3D 18, - VirtualSystemDescriptionType_Floppy =3D 19, - VirtualSystemDescriptionType_CDROM =3D 20, - VirtualSystemDescriptionType_NetworkAdapter =3D 21, - VirtualSystemDescriptionType_USBController =3D 22, - VirtualSystemDescriptionType_SoundCard =3D 23, - VirtualSystemDescriptionType_SettingsFile =3D 24 -}; -/* End of enum VirtualSystemDescriptionType Declaration */ - - -/* Start of enum VirtualSystemDescriptionValueType Declaration */ -# define VIRTUALSYSTEMDESCRIPTIONVALUETYPE_IID_STR "56d9403f-3425-4118-99= 19-36f2a9b8c77c" -# define VIRTUALSYSTEMDESCRIPTIONVALUETYPE_IID { \ - 0x56d9403f, 0x3425, 0x4118, \ - { 0x99, 0x19, 0x36, 0xf2, 0xa9, 0xb8, 0xc7, 0x7c } \ -} -enum VirtualSystemDescriptionValueType -{ - VirtualSystemDescriptionValueType_Reference =3D 1, - VirtualSystemDescriptionValueType_Original =3D 2, - VirtualSystemDescriptionValueType_Auto =3D 3, - VirtualSystemDescriptionValueType_ExtraConfig =3D 4 -}; -/* End of enum VirtualSystemDescriptionValueType Declaration */ - - -/* Start of enum CleanupMode Declaration */ -# define CLEANUPMODE_IID_STR "67897c50-7cca-47a9-83f6-ce8fd8eb5441" -# define CLEANUPMODE_IID { \ - 0x67897c50, 0x7cca, 0x47a9, \ - { 0x83, 0xf6, 0xce, 0x8f, 0xd8, 0xeb, 0x54, 0x41 } \ -} -enum CleanupMode -{ - CleanupMode_UnregisterOnly =3D 1, - CleanupMode_DetachAllReturnNone =3D 2, - CleanupMode_DetachAllReturnHardDisksOnly =3D 3, - CleanupMode_Full =3D 4 -}; -/* End of enum CleanupMode Declaration */ - - -/* Start of enum CloneMode Declaration */ -# define CLONEMODE_IID_STR "A7A159FE-5096-4B8D-8C3C-D033CB0B35A8" -# define CLONEMODE_IID { \ - 0xA7A159FE, 0x5096, 0x4B8D, \ - { 0x8C, 0x3C, 0xD0, 0x33, 0xCB, 0x0B, 0x35, 0xA8 } \ -} -enum CloneMode -{ - CloneMode_MachineState =3D 1, - CloneMode_MachineAndChildStates =3D 2, - CloneMode_AllStates =3D 3 -}; -/* End of enum CloneMode Declaration */ - - -/* Start of enum CloneOptions Declaration */ -# define CLONEOPTIONS_IID_STR "22243f8e-96ab-497c-8cf0-f40a566c630b" -# define CLONEOPTIONS_IID { \ - 0x22243f8e, 0x96ab, 0x497c, \ - { 0x8c, 0xf0, 0xf4, 0x0a, 0x56, 0x6c, 0x63, 0x0b } \ -} -enum CloneOptions -{ - CloneOptions_Link =3D 1, - CloneOptions_KeepAllMACs =3D 2, - CloneOptions_KeepNATMACs =3D 3, - CloneOptions_KeepDiskNames =3D 4 -}; -/* End of enum CloneOptions Declaration */ - - -/* Start of enum HostNetworkInterfaceMediumType Declaration */ -# define HOSTNETWORKINTERFACEMEDIUMTYPE_IID_STR "1aa54aaf-2497-45a2-bfb1-= 8eb225e93d5b" -# define HOSTNETWORKINTERFACEMEDIUMTYPE_IID { \ - 0x1aa54aaf, 0x2497, 0x45a2, \ - { 0xbf, 0xb1, 0x8e, 0xb2, 0x25, 0xe9, 0x3d, 0x5b } \ -} -enum HostNetworkInterfaceMediumType -{ - HostNetworkInterfaceMediumType_Unknown =3D 0, - HostNetworkInterfaceMediumType_Ethernet =3D 1, - HostNetworkInterfaceMediumType_PPP =3D 2, - HostNetworkInterfaceMediumType_SLIP =3D 3 -}; -/* End of enum HostNetworkInterfaceMediumType Declaration */ - - -/* Start of enum HostNetworkInterfaceStatus Declaration */ -# define HOSTNETWORKINTERFACESTATUS_IID_STR "CC474A69-2710-434B-8D99-C38E= 5D5A6F41" -# define HOSTNETWORKINTERFACESTATUS_IID { \ - 0xCC474A69, 0x2710, 0x434B, \ - { 0x8D, 0x99, 0xC3, 0x8E, 0x5D, 0x5A, 0x6F, 0x41 } \ -} -enum HostNetworkInterfaceStatus -{ - HostNetworkInterfaceStatus_Unknown =3D 0, - HostNetworkInterfaceStatus_Up =3D 1, - HostNetworkInterfaceStatus_Down =3D 2 -}; -/* End of enum HostNetworkInterfaceStatus Declaration */ - - -/* Start of enum HostNetworkInterfaceType Declaration */ -# define HOSTNETWORKINTERFACETYPE_IID_STR "67431b00-9946-48a2-bc02-b25c59= 19f4f3" -# define HOSTNETWORKINTERFACETYPE_IID { \ - 0x67431b00, 0x9946, 0x48a2, \ - { 0xbc, 0x02, 0xb2, 0x5c, 0x59, 0x19, 0xf4, 0xf3 } \ -} -enum HostNetworkInterfaceType -{ - HostNetworkInterfaceType_Bridged =3D 1, - HostNetworkInterfaceType_HostOnly =3D 2 -}; -/* End of enum HostNetworkInterfaceType Declaration */ - - -/* Start of enum AdditionsFacilityType Declaration */ -# define ADDITIONSFACILITYTYPE_IID_STR "98f7f957-89fb-49b6-a3b1-31e3285eb= 1d8" -# define ADDITIONSFACILITYTYPE_IID { \ - 0x98f7f957, 0x89fb, 0x49b6, \ - { 0xa3, 0xb1, 0x31, 0xe3, 0x28, 0x5e, 0xb1, 0xd8 } \ -} -enum AdditionsFacilityType -{ - AdditionsFacilityType_None =3D 0, - AdditionsFacilityType_VBoxGuestDriver =3D 20, - AdditionsFacilityType_VBoxService =3D 100, - AdditionsFacilityType_VBoxTrayClient =3D 101, - AdditionsFacilityType_Seamless =3D 1000, - AdditionsFacilityType_Graphics =3D 1100, - AdditionsFacilityType_All =3D 2147483646 -}; -/* End of enum AdditionsFacilityType Declaration */ - - -/* Start of enum AdditionsFacilityClass Declaration */ -# define ADDITIONSFACILITYCLASS_IID_STR "446451b2-c88d-4e5d-84c9-91bc7f53= 3f5f" -# define ADDITIONSFACILITYCLASS_IID { \ - 0x446451b2, 0xc88d, 0x4e5d, \ - { 0x84, 0xc9, 0x91, 0xbc, 0x7f, 0x53, 0x3f, 0x5f } \ -} -enum AdditionsFacilityClass -{ - AdditionsFacilityClass_None =3D 0, - AdditionsFacilityClass_Driver =3D 10, - AdditionsFacilityClass_Service =3D 30, - AdditionsFacilityClass_Program =3D 50, - AdditionsFacilityClass_Feature =3D 100, - AdditionsFacilityClass_ThirdParty =3D 999, - AdditionsFacilityClass_All =3D 2147483646 -}; -/* End of enum AdditionsFacilityClass Declaration */ - - -/* Start of enum AdditionsFacilityStatus Declaration */ -# define ADDITIONSFACILITYSTATUS_IID_STR "ce06f9e1-394e-4fe9-9368-5a88c56= 7dbde" -# define ADDITIONSFACILITYSTATUS_IID { \ - 0xce06f9e1, 0x394e, 0x4fe9, \ - { 0x93, 0x68, 0x5a, 0x88, 0xc5, 0x67, 0xdb, 0xde } \ -} -enum AdditionsFacilityStatus -{ - AdditionsFacilityStatus_Inactive =3D 0, - AdditionsFacilityStatus_Paused =3D 1, - AdditionsFacilityStatus_PreInit =3D 20, - AdditionsFacilityStatus_Init =3D 30, - AdditionsFacilityStatus_Active =3D 50, - AdditionsFacilityStatus_Terminating =3D 100, - AdditionsFacilityStatus_Terminated =3D 101, - AdditionsFacilityStatus_Failed =3D 800, - AdditionsFacilityStatus_Unknown =3D 999 -}; -/* End of enum AdditionsFacilityStatus Declaration */ - - -/* Start of enum AdditionsRunLevelType Declaration */ -# define ADDITIONSRUNLEVELTYPE_IID_STR "a25417ee-a9dd-4f5b-b0dc-377860087= 754" -# define ADDITIONSRUNLEVELTYPE_IID { \ - 0xa25417ee, 0xa9dd, 0x4f5b, \ - { 0xb0, 0xdc, 0x37, 0x78, 0x60, 0x08, 0x77, 0x54 } \ -} -enum AdditionsRunLevelType -{ - AdditionsRunLevelType_None =3D 0, - AdditionsRunLevelType_System =3D 1, - AdditionsRunLevelType_Userland =3D 2, - AdditionsRunLevelType_Desktop =3D 3 -}; -/* End of enum AdditionsRunLevelType Declaration */ - - -/* Start of enum AdditionsUpdateFlag Declaration */ -# define ADDITIONSUPDATEFLAG_IID_STR "726a818d-18d6-4389-94e8-3e9e6826171= a" -# define ADDITIONSUPDATEFLAG_IID { \ - 0x726a818d, 0x18d6, 0x4389, \ - { 0x94, 0xe8, 0x3e, 0x9e, 0x68, 0x26, 0x17, 0x1a } \ -} -enum AdditionsUpdateFlag -{ - AdditionsUpdateFlag_None =3D 0, - AdditionsUpdateFlag_WaitForUpdateStartOnly =3D 1 -}; -/* End of enum AdditionsUpdateFlag Declaration */ - - -/* Start of enum ExecuteProcessFlag Declaration */ -# define EXECUTEPROCESSFLAG_IID_STR "286ceb91-5f66-4c96-9845-4483e90e00ae" -# define EXECUTEPROCESSFLAG_IID { \ - 0x286ceb91, 0x5f66, 0x4c96, \ - { 0x98, 0x45, 0x44, 0x83, 0xe9, 0x0e, 0x00, 0xae } \ -} -enum ExecuteProcessFlag -{ - ExecuteProcessFlag_None =3D 0, - ExecuteProcessFlag_WaitForProcessStartOnly =3D 1, - ExecuteProcessFlag_IgnoreOrphanedProcesses =3D 2, - ExecuteProcessFlag_Hidden =3D 4, - ExecuteProcessFlag_NoProfile =3D 8 -}; -/* End of enum ExecuteProcessFlag Declaration */ - - -/* Start of enum ExecuteProcessStatus Declaration */ -# define EXECUTEPROCESSSTATUS_IID_STR "153768d9-d971-4098-8b5a-c5cb1ab9ea= 88" -# define EXECUTEPROCESSSTATUS_IID { \ - 0x153768d9, 0xd971, 0x4098, \ - { 0x8b, 0x5a, 0xc5, 0xcb, 0x1a, 0xb9, 0xea, 0x88 } \ -} -enum ExecuteProcessStatus -{ - ExecuteProcessStatus_Undefined =3D 0, - ExecuteProcessStatus_Started =3D 1, - ExecuteProcessStatus_TerminatedNormally =3D 2, - ExecuteProcessStatus_TerminatedSignal =3D 3, - ExecuteProcessStatus_TerminatedAbnormally =3D 4, - ExecuteProcessStatus_TimedOutKilled =3D 5, - ExecuteProcessStatus_TimedOutAbnormally =3D 6, - ExecuteProcessStatus_Down =3D 7, - ExecuteProcessStatus_Error =3D 8 -}; -/* End of enum ExecuteProcessStatus Declaration */ - - -/* Start of enum ProcessInputFlag Declaration */ -# define PROCESSINPUTFLAG_IID_STR "5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5" -# define PROCESSINPUTFLAG_IID { \ - 0x5d38c1dd, 0x2604, 0x4ddf, \ - { 0x92, 0xe5, 0x0c, 0x0c, 0xdd, 0x3b, 0xdb, 0xd5 } \ -} -enum ProcessInputFlag -{ - ProcessInputFlag_None =3D 0, - ProcessInputFlag_EndOfFile =3D 1 -}; -/* End of enum ProcessInputFlag Declaration */ - - -/* Start of enum ProcessOutputFlag Declaration */ -# define PROCESSOUTPUTFLAG_IID_STR "9979e85a-52bb-40b7-870c-57115e27e0f1" -# define PROCESSOUTPUTFLAG_IID { \ - 0x9979e85a, 0x52bb, 0x40b7, \ - { 0x87, 0x0c, 0x57, 0x11, 0x5e, 0x27, 0xe0, 0xf1 } \ -} -enum ProcessOutputFlag -{ - ProcessOutputFlag_None =3D 0, - ProcessOutputFlag_StdErr =3D 1 -}; -/* End of enum ProcessOutputFlag Declaration */ - - -/* Start of enum CopyFileFlag Declaration */ -# define COPYFILEFLAG_IID_STR "23f79fdf-738a-493d-b80b-42d607c9b916" -# define COPYFILEFLAG_IID { \ - 0x23f79fdf, 0x738a, 0x493d, \ - { 0xb8, 0x0b, 0x42, 0xd6, 0x07, 0xc9, 0xb9, 0x16 } \ -} -enum CopyFileFlag -{ - CopyFileFlag_None =3D 0, - CopyFileFlag_Recursive =3D 1, - CopyFileFlag_Update =3D 2, - CopyFileFlag_FollowLinks =3D 4 -}; -/* End of enum CopyFileFlag Declaration */ - - -/* Start of enum DirectoryCreateFlag Declaration */ -# define DIRECTORYCREATEFLAG_IID_STR "bd721b0e-ced5-4f79-b368-249897c32a3= 6" -# define DIRECTORYCREATEFLAG_IID { \ - 0xbd721b0e, 0xced5, 0x4f79, \ - { 0xb3, 0x68, 0x24, 0x98, 0x97, 0xc3, 0x2a, 0x36 } \ -} -enum DirectoryCreateFlag -{ - DirectoryCreateFlag_None =3D 0, - DirectoryCreateFlag_Parents =3D 1 -}; -/* End of enum DirectoryCreateFlag Declaration */ - - -/* Start of enum DirectoryOpenFlag Declaration */ -# define DIRECTORYOPENFLAG_IID_STR "fc8f6203-0072-4f34-bd08-0b35e50bf071" -# define DIRECTORYOPENFLAG_IID { \ - 0xfc8f6203, 0x0072, 0x4f34, \ - { 0xbd, 0x08, 0x0b, 0x35, 0xe5, 0x0b, 0xf0, 0x71 } \ -} -enum DirectoryOpenFlag -{ - DirectoryOpenFlag_None =3D 0 -}; -/* End of enum DirectoryOpenFlag Declaration */ - - -/* Start of enum GuestDirEntryType Declaration */ -# define GUESTDIRENTRYTYPE_IID_STR "6d19d924-1b77-4fc8-b369-a3b2c85c8241" -# define GUESTDIRENTRYTYPE_IID { \ - 0x6d19d924, 0x1b77, 0x4fc8, \ - { 0xb3, 0x69, 0xa3, 0xb2, 0xc8, 0x5c, 0x82, 0x41 } \ -} -enum GuestDirEntryType -{ - GuestDirEntryType_Unknown =3D 0, - GuestDirEntryType_Directory =3D 4, - GuestDirEntryType_File =3D 10, - GuestDirEntryType_Symlink =3D 12 -}; -/* End of enum GuestDirEntryType Declaration */ - - -/* Start of enum MediumState Declaration */ -# define MEDIUMSTATE_IID_STR "ef41e980-e012-43cd-9dea-479d4ef14d13" -# define MEDIUMSTATE_IID { \ - 0xef41e980, 0xe012, 0x43cd, \ - { 0x9d, 0xea, 0x47, 0x9d, 0x4e, 0xf1, 0x4d, 0x13 } \ -} -enum MediumState -{ - MediumState_NotCreated =3D 0, - MediumState_Created =3D 1, - MediumState_LockedRead =3D 2, - MediumState_LockedWrite =3D 3, - MediumState_Inaccessible =3D 4, - MediumState_Creating =3D 5, - MediumState_Deleting =3D 6 -}; -/* End of enum MediumState Declaration */ - - -/* Start of enum MediumType Declaration */ -# define MEDIUMTYPE_IID_STR "fe663fb5-c244-4e1b-9d81-c628b417dd04" -# define MEDIUMTYPE_IID { \ - 0xfe663fb5, 0xc244, 0x4e1b, \ - { 0x9d, 0x81, 0xc6, 0x28, 0xb4, 0x17, 0xdd, 0x04 } \ -} -enum MediumType -{ - MediumType_Normal =3D 0, - MediumType_Immutable =3D 1, - MediumType_Writethrough =3D 2, - MediumType_Shareable =3D 3, - MediumType_Readonly =3D 4, - MediumType_MultiAttach =3D 5 -}; -/* End of enum MediumType Declaration */ - - -/* Start of enum MediumVariant Declaration */ -# define MEDIUMVARIANT_IID_STR "584ea502-143b-4ab0-ad14-d1028fdf0316" -# define MEDIUMVARIANT_IID { \ - 0x584ea502, 0x143b, 0x4ab0, \ - { 0xad, 0x14, 0xd1, 0x02, 0x8f, 0xdf, 0x03, 0x16 } \ -} -enum MediumVariant -{ - MediumVariant_Standard =3D 0, - MediumVariant_VmdkSplit2G =3D 0x01, - MediumVariant_VmdkStreamOptimized =3D 0x04, - MediumVariant_VmdkESX =3D 0x08, - MediumVariant_Fixed =3D 0x10000, - MediumVariant_Diff =3D 0x20000, - MediumVariant_NoCreateDir =3D 0x40000000 -}; -/* End of enum MediumVariant Declaration */ - - -/* Start of enum DataType Declaration */ -# define DATATYPE_IID_STR "d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7" -# define DATATYPE_IID { \ - 0xd90ea51e, 0xa3f1, 0x4a01, \ - { 0xbe, 0xb1, 0xc1, 0x72, 0x3c, 0x0d, 0x3b, 0xa7 } \ -} -enum DataType -{ - DataType_Int32 =3D 0, - DataType_Int8 =3D 1, - DataType_String =3D 2 -}; -/* End of enum DataType Declaration */ - - -/* Start of enum DataFlags Declaration */ -# define DATAFLAGS_IID_STR "86884dcf-1d6b-4f1b-b4bf-f5aa44959d60" -# define DATAFLAGS_IID { \ - 0x86884dcf, 0x1d6b, 0x4f1b, \ - { 0xb4, 0xbf, 0xf5, 0xaa, 0x44, 0x95, 0x9d, 0x60 } \ -} -enum DataFlags -{ - DataFlags_None =3D 0x00, - DataFlags_Mandatory =3D 0x01, - DataFlags_Expert =3D 0x02, - DataFlags_Array =3D 0x04, - DataFlags_FlagMask =3D 0x07 -}; -/* End of enum DataFlags Declaration */ - - -/* Start of enum MediumFormatCapabilities Declaration */ -# define MEDIUMFORMATCAPABILITIES_IID_STR "7342ba79-7ce0-4d94-8f86-5ed5a1= 85d9bd" -# define MEDIUMFORMATCAPABILITIES_IID { \ - 0x7342ba79, 0x7ce0, 0x4d94, \ - { 0x8f, 0x86, 0x5e, 0xd5, 0xa1, 0x85, 0xd9, 0xbd } \ -} -enum MediumFormatCapabilities -{ - MediumFormatCapabilities_Uuid =3D 0x01, - MediumFormatCapabilities_CreateFixed =3D 0x02, - MediumFormatCapabilities_CreateDynamic =3D 0x04, - MediumFormatCapabilities_CreateSplit2G =3D 0x08, - MediumFormatCapabilities_Differencing =3D 0x10, - MediumFormatCapabilities_Asynchronous =3D 0x20, - MediumFormatCapabilities_File =3D 0x40, - MediumFormatCapabilities_Properties =3D 0x80, - MediumFormatCapabilities_TcpNetworking =3D 0x100, - MediumFormatCapabilities_VFS =3D 0x200, - MediumFormatCapabilities_CapabilityMask =3D 0x3FF -}; -/* End of enum MediumFormatCapabilities Declaration */ - - -/* Start of enum MouseButtonState Declaration */ -# define MOUSEBUTTONSTATE_IID_STR "9ee094b8-b28a-4d56-a166-973cb588d7f8" -# define MOUSEBUTTONSTATE_IID { \ - 0x9ee094b8, 0xb28a, 0x4d56, \ - { 0xa1, 0x66, 0x97, 0x3c, 0xb5, 0x88, 0xd7, 0xf8 } \ -} -enum MouseButtonState -{ - MouseButtonState_LeftButton =3D 0x01, - MouseButtonState_RightButton =3D 0x02, - MouseButtonState_MiddleButton =3D 0x04, - MouseButtonState_WheelUp =3D 0x08, - MouseButtonState_WheelDown =3D 0x10, - MouseButtonState_XButton1 =3D 0x20, - MouseButtonState_XButton2 =3D 0x40, - MouseButtonState_MouseStateMask =3D 0x7F -}; -/* End of enum MouseButtonState Declaration */ - - -/* Start of enum FramebufferPixelFormat Declaration */ -# define FRAMEBUFFERPIXELFORMAT_IID_STR "7acfd5ed-29e3-45e3-8136-73c9224f= 3d2d" -# define FRAMEBUFFERPIXELFORMAT_IID { \ - 0x7acfd5ed, 0x29e3, 0x45e3, \ - { 0x81, 0x36, 0x73, 0xc9, 0x22, 0x4f, 0x3d, 0x2d } \ -} -enum FramebufferPixelFormat -{ - FramebufferPixelFormat_Opaque =3D 0, - FramebufferPixelFormat_FOURCC_RGB =3D 0x32424752 -}; -/* End of enum FramebufferPixelFormat Declaration */ - - -/* Start of enum NetworkAttachmentType Declaration */ -# define NETWORKATTACHMENTTYPE_IID_STR "2ac4bc71-6b82-417a-acd1-f7426d257= 0d6" -# define NETWORKATTACHMENTTYPE_IID { \ - 0x2ac4bc71, 0x6b82, 0x417a, \ - { 0xac, 0xd1, 0xf7, 0x42, 0x6d, 0x25, 0x70, 0xd6 } \ -} -enum NetworkAttachmentType -{ - NetworkAttachmentType_Null =3D 0, - NetworkAttachmentType_NAT =3D 1, - NetworkAttachmentType_Bridged =3D 2, - NetworkAttachmentType_Internal =3D 3, - NetworkAttachmentType_HostOnly =3D 4, - NetworkAttachmentType_Generic =3D 5 -}; -/* End of enum NetworkAttachmentType Declaration */ - - -/* Start of enum NetworkAdapterType Declaration */ -# define NETWORKADAPTERTYPE_IID_STR "3c2281e4-d952-4e87-8c7d-24379cb6a81c" -# define NETWORKADAPTERTYPE_IID { \ - 0x3c2281e4, 0xd952, 0x4e87, \ - { 0x8c, 0x7d, 0x24, 0x37, 0x9c, 0xb6, 0xa8, 0x1c } \ -} -enum NetworkAdapterType -{ - NetworkAdapterType_Null =3D 0, - NetworkAdapterType_Am79C970A =3D 1, - NetworkAdapterType_Am79C973 =3D 2, - NetworkAdapterType_I82540EM =3D 3, - NetworkAdapterType_I82543GC =3D 4, - NetworkAdapterType_I82545EM =3D 5, - NetworkAdapterType_Virtio =3D 6 -}; -/* End of enum NetworkAdapterType Declaration */ - - -/* Start of enum NetworkAdapterPromiscModePolicy Declaration */ -# define NETWORKADAPTERPROMISCMODEPOLICY_IID_STR "c963768a-376f-4c85-8d84= -d8ced4b7269e" -# define NETWORKADAPTERPROMISCMODEPOLICY_IID { \ - 0xc963768a, 0x376f, 0x4c85, \ - { 0x8d, 0x84, 0xd8, 0xce, 0xd4, 0xb7, 0x26, 0x9e } \ -} -enum NetworkAdapterPromiscModePolicy -{ - NetworkAdapterPromiscModePolicy_Deny =3D 1, - NetworkAdapterPromiscModePolicy_AllowNetwork =3D 2, - NetworkAdapterPromiscModePolicy_AllowAll =3D 3 -}; -/* End of enum NetworkAdapterPromiscModePolicy Declaration */ - - -/* Start of enum PortMode Declaration */ -# define PORTMODE_IID_STR "533b5fe3-0185-4197-86a7-17e37dd39d76" -# define PORTMODE_IID { \ - 0x533b5fe3, 0x0185, 0x4197, \ - { 0x86, 0xa7, 0x17, 0xe3, 0x7d, 0xd3, 0x9d, 0x76 } \ -} -enum PortMode -{ - PortMode_Disconnected =3D 0, - PortMode_HostPipe =3D 1, - PortMode_HostDevice =3D 2, - PortMode_RawFile =3D 3 -}; -/* End of enum PortMode Declaration */ - - -/* Start of enum USBDeviceState Declaration */ -# define USBDEVICESTATE_IID_STR "b99a2e65-67fb-4882-82fd-f3e5e8193ab4" -# define USBDEVICESTATE_IID { \ - 0xb99a2e65, 0x67fb, 0x4882, \ - { 0x82, 0xfd, 0xf3, 0xe5, 0xe8, 0x19, 0x3a, 0xb4 } \ -} -enum USBDeviceState -{ - USBDeviceState_NotSupported =3D 0, - USBDeviceState_Unavailable =3D 1, - USBDeviceState_Busy =3D 2, - USBDeviceState_Available =3D 3, - USBDeviceState_Held =3D 4, - USBDeviceState_Captured =3D 5 -}; -/* End of enum USBDeviceState Declaration */ - - -/* Start of enum USBDeviceFilterAction Declaration */ -# define USBDEVICEFILTERACTION_IID_STR "cbc30a49-2f4e-43b5-9da6-121320475= 933" -# define USBDEVICEFILTERACTION_IID { \ - 0xcbc30a49, 0x2f4e, 0x43b5, \ - { 0x9d, 0xa6, 0x12, 0x13, 0x20, 0x47, 0x59, 0x33 } \ -} -enum USBDeviceFilterAction -{ - USBDeviceFilterAction_Null =3D 0, - USBDeviceFilterAction_Ignore =3D 1, - USBDeviceFilterAction_Hold =3D 2 -}; -/* End of enum USBDeviceFilterAction Declaration */ - - -/* Start of enum AudioDriverType Declaration */ -# define AUDIODRIVERTYPE_IID_STR "4bcc3d73-c2fe-40db-b72f-0c2ca9d68496" -# define AUDIODRIVERTYPE_IID { \ - 0x4bcc3d73, 0xc2fe, 0x40db, \ - { 0xb7, 0x2f, 0x0c, 0x2c, 0xa9, 0xd6, 0x84, 0x96 } \ -} -enum AudioDriverType -{ - AudioDriverType_Null =3D 0, - AudioDriverType_WinMM =3D 1, - AudioDriverType_OSS =3D 2, - AudioDriverType_ALSA =3D 3, - AudioDriverType_DirectSound =3D 4, - AudioDriverType_CoreAudio =3D 5, - AudioDriverType_MMPM =3D 6, - AudioDriverType_Pulse =3D 7, - AudioDriverType_SolAudio =3D 8 -}; -/* End of enum AudioDriverType Declaration */ - - -/* Start of enum AudioControllerType Declaration */ -# define AUDIOCONTROLLERTYPE_IID_STR "7afd395c-42c3-444e-8788-3ce80292f36= c" -# define AUDIOCONTROLLERTYPE_IID { \ - 0x7afd395c, 0x42c3, 0x444e, \ - { 0x87, 0x88, 0x3c, 0xe8, 0x02, 0x92, 0xf3, 0x6c } \ -} -enum AudioControllerType -{ - AudioControllerType_AC97 =3D 0, - AudioControllerType_SB16 =3D 1, - AudioControllerType_HDA =3D 2 -}; -/* End of enum AudioControllerType Declaration */ - - -/* Start of enum AuthType Declaration */ -# define AUTHTYPE_IID_STR "7eef6ef6-98c2-4dc2-ab35-10d2b292028d" -# define AUTHTYPE_IID { \ - 0x7eef6ef6, 0x98c2, 0x4dc2, \ - { 0xab, 0x35, 0x10, 0xd2, 0xb2, 0x92, 0x02, 0x8d } \ -} -enum AuthType -{ - AuthType_Null =3D 0, - AuthType_External =3D 1, - AuthType_Guest =3D 2 -}; -/* End of enum AuthType Declaration */ - - -/* Start of enum StorageBus Declaration */ -# define STORAGEBUS_IID_STR "eee67ab3-668d-4ef5-91e0-7025fe4a0d7a" -# define STORAGEBUS_IID { \ - 0xeee67ab3, 0x668d, 0x4ef5, \ - { 0x91, 0xe0, 0x70, 0x25, 0xfe, 0x4a, 0x0d, 0x7a } \ -} -enum StorageBus -{ - StorageBus_Null =3D 0, - StorageBus_IDE =3D 1, - StorageBus_SATA =3D 2, - StorageBus_SCSI =3D 3, - StorageBus_Floppy =3D 4, - StorageBus_SAS =3D 5 -}; -/* End of enum StorageBus Declaration */ - - -/* Start of enum StorageControllerType Declaration */ -# define STORAGECONTROLLERTYPE_IID_STR "8a412b8a-f43e-4456-bd37-b474f0879= a58" -# define STORAGECONTROLLERTYPE_IID { \ - 0x8a412b8a, 0xf43e, 0x4456, \ - { 0xbd, 0x37, 0xb4, 0x74, 0xf0, 0x87, 0x9a, 0x58 } \ -} -enum StorageControllerType -{ - StorageControllerType_Null =3D 0, - StorageControllerType_LsiLogic =3D 1, - StorageControllerType_BusLogic =3D 2, - StorageControllerType_IntelAhci =3D 3, - StorageControllerType_PIIX3 =3D 4, - StorageControllerType_PIIX4 =3D 5, - StorageControllerType_ICH6 =3D 6, - StorageControllerType_I82078 =3D 7, - StorageControllerType_LsiLogicSas =3D 8 -}; -/* End of enum StorageControllerType Declaration */ - - -/* Start of enum ChipsetType Declaration */ -# define CHIPSETTYPE_IID_STR "8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394" -# define CHIPSETTYPE_IID { \ - 0x8b4096a8, 0xa7c3, 0x4d3b, \ - { 0xbb, 0xb1, 0x05, 0xa0, 0xa5, 0x1e, 0xc3, 0x94 } \ -} -enum ChipsetType -{ - ChipsetType_Null =3D 0, - ChipsetType_PIIX3 =3D 1, - ChipsetType_ICH9 =3D 2 -}; -/* End of enum ChipsetType Declaration */ - - -/* Start of enum NATAliasMode Declaration */ -# define NATALIASMODE_IID_STR "67772168-50d9-11df-9669-7fb714ee4fa1" -# define NATALIASMODE_IID { \ - 0x67772168, 0x50d9, 0x11df, \ - { 0x96, 0x69, 0x7f, 0xb7, 0x14, 0xee, 0x4f, 0xa1 } \ -} -enum NATAliasMode -{ - NATAliasMode_AliasLog =3D 0x1, - NATAliasMode_AliasProxyOnly =3D 0x02, - NATAliasMode_AliasUseSamePorts =3D 0x04 -}; -/* End of enum NATAliasMode Declaration */ - - -/* Start of enum NATProtocol Declaration */ -# define NATPROTOCOL_IID_STR "e90164be-eb03-11de-94af-fff9b1c1b19f" -# define NATPROTOCOL_IID { \ - 0xe90164be, 0xeb03, 0x11de, \ - { 0x94, 0xaf, 0xff, 0xf9, 0xb1, 0xc1, 0xb1, 0x9f } \ -} -enum NATProtocol -{ - NATProtocol_UDP =3D 0, - NATProtocol_TCP =3D 1 -}; -/* End of enum NATProtocol Declaration */ - - -/* Start of enum BandwidthGroupType Declaration */ -# define BANDWIDTHGROUPTYPE_IID_STR "1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e" -# define BANDWIDTHGROUPTYPE_IID { \ - 0x1d92b67d, 0xdc69, 0x4be9, \ - { 0xad, 0x4c, 0x93, 0xa0, 0x1e, 0x1e, 0x0c, 0x8e } \ -} -enum BandwidthGroupType -{ - BandwidthGroupType_Null =3D 0, - BandwidthGroupType_Disk =3D 1, - BandwidthGroupType_Network =3D 2 -}; -/* End of enum BandwidthGroupType Declaration */ - - -/* Start of enum VBoxEventType Declaration */ -# define VBOXEVENTTYPE_IID_STR "cce48db6-8561-479d-8d46-1358bab45d4e" -# define VBOXEVENTTYPE_IID { \ - 0xcce48db6, 0x8561, 0x479d, \ - { 0x8d, 0x46, 0x13, 0x58, 0xba, 0xb4, 0x5d, 0x4e } \ -} -enum VBoxEventType -{ - VBoxEventType_Invalid =3D 0, - VBoxEventType_Any =3D 1, - VBoxEventType_Vetoable =3D 2, - VBoxEventType_MachineEvent =3D 3, - VBoxEventType_SnapshotEvent =3D 4, - VBoxEventType_InputEvent =3D 5, - VBoxEventType_LastWildcard =3D 31, - VBoxEventType_OnMachineStateChanged =3D 32, - VBoxEventType_OnMachineDataChanged =3D 33, - VBoxEventType_OnExtraDataChanged =3D 34, - VBoxEventType_OnExtraDataCanChange =3D 35, - VBoxEventType_OnMediumRegistered =3D 36, - VBoxEventType_OnMachineRegistered =3D 37, - VBoxEventType_OnSessionStateChanged =3D 38, - VBoxEventType_OnSnapshotTaken =3D 39, - VBoxEventType_OnSnapshotDeleted =3D 40, - VBoxEventType_OnSnapshotChanged =3D 41, - VBoxEventType_OnGuestPropertyChanged =3D 42, - VBoxEventType_OnMousePointerShapeChanged =3D 43, - VBoxEventType_OnMouseCapabilityChanged =3D 44, - VBoxEventType_OnKeyboardLedsChanged =3D 45, - VBoxEventType_OnStateChanged =3D 46, - VBoxEventType_OnAdditionsStateChanged =3D 47, - VBoxEventType_OnNetworkAdapterChanged =3D 48, - VBoxEventType_OnSerialPortChanged =3D 49, - VBoxEventType_OnParallelPortChanged =3D 50, - VBoxEventType_OnStorageControllerChanged =3D 51, - VBoxEventType_OnMediumChanged =3D 52, - VBoxEventType_OnVRDEServerChanged =3D 53, - VBoxEventType_OnUSBControllerChanged =3D 54, - VBoxEventType_OnUSBDeviceStateChanged =3D 55, - VBoxEventType_OnSharedFolderChanged =3D 56, - VBoxEventType_OnRuntimeError =3D 57, - VBoxEventType_OnCanShowWindow =3D 58, - VBoxEventType_OnShowWindow =3D 59, - VBoxEventType_OnCPUChanged =3D 60, - VBoxEventType_OnVRDEServerInfoChanged =3D 61, - VBoxEventType_OnEventSourceChanged =3D 62, - VBoxEventType_OnCPUExecutionCapChanged =3D 63, - VBoxEventType_OnGuestKeyboard =3D 64, - VBoxEventType_OnGuestMouse =3D 65, - VBoxEventType_OnNATRedirect =3D 66, - VBoxEventType_OnHostPciDevicePlug =3D 67, - VBoxEventType_OnVBoxSVCAvailabilityChanged =3D 68, - VBoxEventType_OnBandwidthGroupChanged =3D 69, - VBoxEventType_OnGuestMonitorChanged =3D 70, - VBoxEventType_OnStorageDeviceChanged =3D 71, - VBoxEventType_Last =3D 72 -}; -/* End of enum VBoxEventType Declaration */ - - -/* Start of enum GuestMonitorChangedEventType Declaration */ -# define GUESTMONITORCHANGEDEVENTTYPE_IID_STR "ef172985-7e36-4297-95be-e4= 6396968d66" -# define GUESTMONITORCHANGEDEVENTTYPE_IID { \ - 0xef172985, 0x7e36, 0x4297, \ - { 0x95, 0xbe, 0xe4, 0x63, 0x96, 0x96, 0x8d, 0x66 } \ -} -enum GuestMonitorChangedEventType -{ - GuestMonitorChangedEventType_Enabled =3D 0, - GuestMonitorChangedEventType_Disabled =3D 1, - GuestMonitorChangedEventType_NewOrigin =3D 2 -}; -/* End of enum GuestMonitorChangedEventType Declaration */ - - -/* Start of struct IVirtualBoxErrorInfo Declaration */ -# define IVIRTUALBOXERRORINFO_IID_STR "e053d3c0-f493-491b-a735-3a9f0b1fee= d4" -# define IVIRTUALBOXERRORINFO_IID { \ - 0xe053d3c0, 0xf493, 0x491b, \ - { 0xa7, 0x35, 0x3a, 0x9f, 0x0b, 0x1f, 0xee, 0xd4 } \ -} -struct IVirtualBoxErrorInfo_vtbl -{ - struct nsIException_vtbl nsiexception; - - nsresult PR_COM_METHOD (*GetResultCode)(IVirtualBoxErrorInfo *pThis, P= RInt32 *resultCode); - - nsresult PR_COM_METHOD (*GetInterfaceID)(IVirtualBoxErrorInfo *pThis, = PRUnichar * *interfaceID); - - nsresult PR_COM_METHOD (*GetComponent)(IVirtualBoxErrorInfo *pThis, PR= Unichar * *component); - - nsresult PR_COM_METHOD (*GetText)(IVirtualBoxErrorInfo *pThis, PRUnich= ar * *text); - - nsresult PR_COM_METHOD (*GetNext)(IVirtualBoxErrorInfo *pThis, IVirtua= lBoxErrorInfo * *next); - -}; - -struct IVirtualBoxErrorInfo -{ - struct IVirtualBoxErrorInfo_vtbl *vtbl; -}; -/* End of struct IVirtualBoxErrorInfo Declaration */ - - -/* Start of struct IDHCPServer Declaration */ -# define IDHCPSERVER_IID_STR "6cfe387c-74fb-4ca7-bff6-973bec8af7a3" -# define IDHCPSERVER_IID { \ - 0x6cfe387c, 0x74fb, 0x4ca7, \ - { 0xbf, 0xf6, 0x97, 0x3b, 0xec, 0x8a, 0xf7, 0xa3 } \ -} -struct IDHCPServer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IDHCPServer *pThis, PRBool *enabl= ed); - nsresult PR_COM_METHOD (*SetEnabled)(IDHCPServer *pThis, PRBool enable= d); - - nsresult PR_COM_METHOD (*GetIPAddress)(IDHCPServer *pThis, PRUnichar *= *IPAddress); - - nsresult PR_COM_METHOD (*GetNetworkMask)(IDHCPServer *pThis, PRUnichar= * *networkMask); - - nsresult PR_COM_METHOD (*GetNetworkName)(IDHCPServer *pThis, PRUnichar= * *networkName); - - nsresult PR_COM_METHOD (*GetLowerIP)(IDHCPServer *pThis, PRUnichar * *= lowerIP); - - nsresult PR_COM_METHOD (*GetUpperIP)(IDHCPServer *pThis, PRUnichar * *= upperIP); - - nsresult PR_COM_METHOD (*SetConfiguration)( - IDHCPServer *pThis, - PRUnichar * IPAddress, - PRUnichar * networkMask, - PRUnichar * FromIPAddress, - PRUnichar * ToIPAddress - ); - - nsresult PR_COM_METHOD (*Start)( - IDHCPServer *pThis, - PRUnichar * networkName, - PRUnichar * trunkName, - PRUnichar * trunkType - ); - - nsresult PR_COM_METHOD (*Stop)(IDHCPServer *pThis ); - -}; - -struct IDHCPServer -{ - struct IDHCPServer_vtbl *vtbl; -}; -/* End of struct IDHCPServer Declaration */ - - -/* Start of struct IVirtualBox Declaration */ -# define IVIRTUALBOX_IID_STR "c28be65f-1a8f-43b4-81f1-eb60cb516e66" -# define IVIRTUALBOX_IID { \ - 0xc28be65f, 0x1a8f, 0x43b4, \ - { 0x81, 0xf1, 0xeb, 0x60, 0xcb, 0x51, 0x6e, 0x66 } \ -} -struct IVirtualBox_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetVersion)(IVirtualBox *pThis, PRUnichar * *= version); - - nsresult PR_COM_METHOD (*GetRevision)(IVirtualBox *pThis, PRUint32 *re= vision); - - nsresult PR_COM_METHOD (*GetPackageType)(IVirtualBox *pThis, PRUnichar= * *packageType); - - nsresult PR_COM_METHOD (*GetAPIVersion)(IVirtualBox *pThis, PRUnichar = * *APIVersion); - - nsresult PR_COM_METHOD (*GetHomeFolder)(IVirtualBox *pThis, PRUnichar = * *homeFolder); - - nsresult PR_COM_METHOD (*GetSettingsFilePath)(IVirtualBox *pThis, PRUn= ichar * *settingsFilePath); - - nsresult PR_COM_METHOD (*GetHost)(IVirtualBox *pThis, IHost * *host); - - nsresult PR_COM_METHOD (*GetSystemProperties)(IVirtualBox *pThis, ISys= temProperties * *systemProperties); - - nsresult PR_COM_METHOD (*GetMachines)(IVirtualBox *pThis, PRUint32 *ma= chinesSize, IMachine * **machines); - - nsresult PR_COM_METHOD (*GetHardDisks)(IVirtualBox *pThis, PRUint32 *h= ardDisksSize, IMedium * **hardDisks); - - nsresult PR_COM_METHOD (*GetDVDImages)(IVirtualBox *pThis, PRUint32 *D= VDImagesSize, IMedium * **DVDImages); - - nsresult PR_COM_METHOD (*GetFloppyImages)(IVirtualBox *pThis, PRUint32= *floppyImagesSize, IMedium * **floppyImages); - - nsresult PR_COM_METHOD (*GetProgressOperations)(IVirtualBox *pThis, PR= Uint32 *progressOperationsSize, IProgress * **progressOperations); - - nsresult PR_COM_METHOD (*GetGuestOSTypes)(IVirtualBox *pThis, PRUint32= *guestOSTypesSize, IGuestOSType * **guestOSTypes); - - nsresult PR_COM_METHOD (*GetSharedFolders)(IVirtualBox *pThis, PRUint3= 2 *sharedFoldersSize, ISharedFolder * **sharedFolders); - - nsresult PR_COM_METHOD (*GetPerformanceCollector)(IVirtualBox *pThis, = IPerformanceCollector * *performanceCollector); - - nsresult PR_COM_METHOD (*GetDHCPServers)(IVirtualBox *pThis, PRUint32 = *DHCPServersSize, IDHCPServer * **DHCPServers); - - nsresult PR_COM_METHOD (*GetEventSource)(IVirtualBox *pThis, IEventSou= rce * *eventSource); - - nsresult PR_COM_METHOD (*GetExtensionPackManager)(IVirtualBox *pThis, = IExtPackManager * *extensionPackManager); - - nsresult PR_COM_METHOD (*GetInternalNetworks)(IVirtualBox *pThis, PRUi= nt32 *internalNetworksSize, PRUnichar * **internalNetworks); - - nsresult PR_COM_METHOD (*GetGenericNetworkDrivers)(IVirtualBox *pThis,= PRUint32 *genericNetworkDriversSize, PRUnichar * **genericNetworkDrivers); - - nsresult PR_COM_METHOD (*ComposeMachineFilename)( - IVirtualBox *pThis, - PRUnichar * name, - PRUnichar * baseFolder, - PRUnichar * * file - ); - - nsresult PR_COM_METHOD (*CreateMachine)( - IVirtualBox *pThis, - PRUnichar * settingsFile, - PRUnichar * name, - PRUnichar * osTypeId, - PRUnichar * id, - PRBool forceOverwrite, - IMachine * * machine - ); - - nsresult PR_COM_METHOD (*OpenMachine)( - IVirtualBox *pThis, - PRUnichar * settingsFile, - IMachine * * machine - ); - - nsresult PR_COM_METHOD (*RegisterMachine)( - IVirtualBox *pThis, - IMachine * machine - ); - - nsresult PR_COM_METHOD (*FindMachine)( - IVirtualBox *pThis, - PRUnichar * nameOrId, - IMachine * * machine - ); - - nsresult PR_COM_METHOD (*CreateAppliance)( - IVirtualBox *pThis, - IAppliance * * appliance - ); - - nsresult PR_COM_METHOD (*CreateHardDisk)( - IVirtualBox *pThis, - PRUnichar * format, - PRUnichar * location, - IMedium * * medium - ); - - nsresult PR_COM_METHOD (*OpenMedium)( - IVirtualBox *pThis, - PRUnichar * location, - PRUint32 deviceType, - PRUint32 accessMode, - PRBool forceNewUuid, - IMedium * * medium - ); - - nsresult PR_COM_METHOD (*FindMedium)( - IVirtualBox *pThis, - PRUnichar * location, - PRUint32 type, - IMedium * * medium - ); - - nsresult PR_COM_METHOD (*GetGuestOSType)( - IVirtualBox *pThis, - PRUnichar * id, - IGuestOSType * * type - ); - - nsresult PR_COM_METHOD (*CreateSharedFolder)( - IVirtualBox *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult PR_COM_METHOD (*RemoveSharedFolder)( - IVirtualBox *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*GetExtraDataKeys)( - IVirtualBox *pThis, - PRUint32 *valueSize, - PRUnichar *** value - ); - - nsresult PR_COM_METHOD (*GetExtraData)( - IVirtualBox *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetExtraData)( - IVirtualBox *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*CreateDHCPServer)( - IVirtualBox *pThis, - PRUnichar * name, - IDHCPServer * * server - ); - - nsresult PR_COM_METHOD (*FindDHCPServerByNetworkName)( - IVirtualBox *pThis, - PRUnichar * name, - IDHCPServer * * server - ); - - nsresult PR_COM_METHOD (*RemoveDHCPServer)( - IVirtualBox *pThis, - IDHCPServer * server - ); - - nsresult PR_COM_METHOD (*CheckFirmwarePresent)( - IVirtualBox *pThis, - PRUint32 firmwareType, - PRUnichar * version, - PRUnichar * * url, - PRUnichar * * file, - PRBool * result - ); - -}; - -struct IVirtualBox -{ - struct IVirtualBox_vtbl *vtbl; -}; -/* End of struct IVirtualBox Declaration */ - - -/* Start of struct IVFSExplorer Declaration */ -# define IVFSEXPLORER_IID_STR "003d7f92-d38e-487f-b790-8c5e8631cb2f" -# define IVFSEXPLORER_IID { \ - 0x003d7f92, 0xd38e, 0x487f, \ - { 0xb7, 0x90, 0x8c, 0x5e, 0x86, 0x31, 0xcb, 0x2f } \ -} -struct IVFSExplorer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetPath)(IVFSExplorer *pThis, PRUnichar * *pa= th); - - nsresult PR_COM_METHOD (*GetType)(IVFSExplorer *pThis, PRUint32 *type); - - nsresult PR_COM_METHOD (*Update)( - IVFSExplorer *pThis, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*Cd)( - IVFSExplorer *pThis, - PRUnichar * aDir, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*CdUp)( - IVFSExplorer *pThis, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*EntryList)( - IVFSExplorer *pThis, - PRUint32 *aNamesSize, - PRUnichar *** aNames, - PRUint32 *aTypesSize, - PRUint32* aTypes, - PRUint32 *aSizesSize, - PRUint32* aSizes, - PRUint32 *aModesSize, - PRUint32* aModes - ); - - nsresult PR_COM_METHOD (*Exists)( - IVFSExplorer *pThis, - PRUint32 aNamesSize, - PRUnichar ** aNames, - PRUint32 *aExistsSize, - PRUnichar *** aExists - ); - - nsresult PR_COM_METHOD (*Remove)( - IVFSExplorer *pThis, - PRUint32 aNamesSize, - PRUnichar ** aNames, - IProgress * * aProgress - ); - -}; - -struct IVFSExplorer -{ - struct IVFSExplorer_vtbl *vtbl; -}; -/* End of struct IVFSExplorer Declaration */ - - -/* Start of struct IAppliance Declaration */ -# define IAPPLIANCE_IID_STR "3059cf9e-25c7-4f0b-9fa5-3c42e441670b" -# define IAPPLIANCE_IID { \ - 0x3059cf9e, 0x25c7, 0x4f0b, \ - { 0x9f, 0xa5, 0x3c, 0x42, 0xe4, 0x41, 0x67, 0x0b } \ -} -struct IAppliance_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetPath)(IAppliance *pThis, PRUnichar * *path= ); - - nsresult PR_COM_METHOD (*GetDisks)(IAppliance *pThis, PRUint32 *disksS= ize, PRUnichar * **disks); - - nsresult PR_COM_METHOD (*GetVirtualSystemDescriptions)(IAppliance *pTh= is, PRUint32 *virtualSystemDescriptionsSize, IVirtualSystemDescription * **= virtualSystemDescriptions); - - nsresult PR_COM_METHOD (*GetMachines)(IAppliance *pThis, PRUint32 *mac= hinesSize, PRUnichar * **machines); - - nsresult PR_COM_METHOD (*Read)( - IAppliance *pThis, - PRUnichar * file, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*Interpret)(IAppliance *pThis ); - - nsresult PR_COM_METHOD (*ImportMachines)( - IAppliance *pThis, - PRUint32 optionsSize, - PRUint32* options, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*CreateVFSExplorer)( - IAppliance *pThis, - PRUnichar * aUri, - IVFSExplorer * * aExplorer - ); - - nsresult PR_COM_METHOD (*Write)( - IAppliance *pThis, - PRUnichar * format, - PRBool manifest, - PRUnichar * path, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*GetWarnings)( - IAppliance *pThis, - PRUint32 *aWarningsSize, - PRUnichar *** aWarnings - ); - -}; - -struct IAppliance -{ - struct IAppliance_vtbl *vtbl; -}; -/* End of struct IAppliance Declaration */ - - -/* Start of struct IVirtualSystemDescription Declaration */ -# define IVIRTUALSYSTEMDESCRIPTION_IID_STR "d7525e6c-531a-4c51-8e04-41235= 083a3d8" -# define IVIRTUALSYSTEMDESCRIPTION_IID { \ - 0xd7525e6c, 0x531a, 0x4c51, \ - { 0x8e, 0x04, 0x41, 0x23, 0x50, 0x83, 0xa3, 0xd8 } \ -} -struct IVirtualSystemDescription_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetCount)(IVirtualSystemDescription *pThis, P= RUint32 *count); - - nsresult PR_COM_METHOD (*GetDescription)( - IVirtualSystemDescription *pThis, - PRUint32 *aTypesSize, - PRUint32* aTypes, - PRUint32 *aRefsSize, - PRUnichar *** aRefs, - PRUint32 *aOvfValuesSize, - PRUnichar *** aOvfValues, - PRUint32 *aVBoxValuesSize, - PRUnichar *** aVBoxValues, - PRUint32 *aExtraConfigValuesSize, - PRUnichar *** aExtraConfigValues - ); - - nsresult PR_COM_METHOD (*GetDescriptionByType)( - IVirtualSystemDescription *pThis, - PRUint32 aType, - PRUint32 *aTypesSize, - PRUint32* aTypes, - PRUint32 *aRefsSize, - PRUnichar *** aRefs, - PRUint32 *aOvfValuesSize, - PRUnichar *** aOvfValues, - PRUint32 *aVBoxValuesSize, - PRUnichar *** aVBoxValues, - PRUint32 *aExtraConfigValuesSize, - PRUnichar *** aExtraConfigValues - ); - - nsresult PR_COM_METHOD (*GetValuesByType)( - IVirtualSystemDescription *pThis, - PRUint32 aType, - PRUint32 aWhich, - PRUint32 *aValuesSize, - PRUnichar *** aValues - ); - - nsresult PR_COM_METHOD (*SetFinalValues)( - IVirtualSystemDescription *pThis, - PRUint32 aEnabledSize, - PRBool* aEnabled, - PRUint32 aVBoxValuesSize, - PRUnichar ** aVBoxValues, - PRUint32 aExtraConfigValuesSize, - PRUnichar ** aExtraConfigValues - ); - - nsresult PR_COM_METHOD (*AddDescription)( - IVirtualSystemDescription *pThis, - PRUint32 aType, - PRUnichar * aVBoxValue, - PRUnichar * aExtraConfigValue - ); - -}; - -struct IVirtualSystemDescription -{ - struct IVirtualSystemDescription_vtbl *vtbl; -}; -/* End of struct IVirtualSystemDescription Declaration */ - - -/* Start of struct IInternalMachineControl Declaration */ -# define IINTERNALMACHINECONTROL_IID_STR "2087906d-bb92-43a0-8014-4cab009= e4888" -# define IINTERNALMACHINECONTROL_IID { \ - 0x2087906d, 0xbb92, 0x43a0, \ - { 0x80, 0x14, 0x4c, 0xab, 0x00, 0x9e, 0x48, 0x88 } \ -} -struct IInternalMachineControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*SetRemoveSavedStateFile)( - IInternalMachineControl *pThis, - PRBool aRemove - ); - - nsresult PR_COM_METHOD (*UpdateState)( - IInternalMachineControl *pThis, - PRUint32 state - ); - - nsresult PR_COM_METHOD (*GetIPCId)( - IInternalMachineControl *pThis, - PRUnichar * * id - ); - - nsresult PR_COM_METHOD (*BeginPowerUp)( - IInternalMachineControl *pThis, - IProgress * aProgress - ); - - nsresult PR_COM_METHOD (*EndPowerUp)( - IInternalMachineControl *pThis, - PRInt32 result - ); - - nsresult PR_COM_METHOD (*BeginPoweringDown)( - IInternalMachineControl *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*EndPoweringDown)( - IInternalMachineControl *pThis, - PRInt32 result, - PRUnichar * errMsg - ); - - nsresult PR_COM_METHOD (*RunUSBDeviceFilters)( - IInternalMachineControl *pThis, - IUSBDevice * device, - PRBool * matched, - PRUint32 * maskedInterfaces - ); - - nsresult PR_COM_METHOD (*CaptureUSBDevice)( - IInternalMachineControl *pThis, - PRUnichar * id - ); - - nsresult PR_COM_METHOD (*DetachUSBDevice)( - IInternalMachineControl *pThis, - PRUnichar * id, - PRBool done - ); - - nsresult PR_COM_METHOD (*AutoCaptureUSBDevices)(IInternalMachineContro= l *pThis ); - - nsresult PR_COM_METHOD (*DetachAllUSBDevices)( - IInternalMachineControl *pThis, - PRBool done - ); - - nsresult PR_COM_METHOD (*OnSessionEnd)( - IInternalMachineControl *pThis, - ISession * session, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*BeginSavingState)( - IInternalMachineControl *pThis, - IProgress * * progress, - PRUnichar * * stateFilePath - ); - - nsresult PR_COM_METHOD (*EndSavingState)( - IInternalMachineControl *pThis, - PRInt32 result, - PRUnichar * errMsg - ); - - nsresult PR_COM_METHOD (*AdoptSavedState)( - IInternalMachineControl *pThis, - PRUnichar * savedStateFile - ); - - nsresult PR_COM_METHOD (*BeginTakingSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - PRUnichar * name, - PRUnichar * description, - IProgress * consoleProgress, - PRBool fTakingSnapshotOnline, - PRUnichar * * stateFilePath - ); - - nsresult PR_COM_METHOD (*EndTakingSnapshot)( - IInternalMachineControl *pThis, - PRBool success - ); - - nsresult PR_COM_METHOD (*DeleteSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - PRUnichar * startId, - PRUnichar * endId, - PRBool deleteAllChildren, - PRUint32 * machineState, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*FinishOnlineMergeMedium)( - IInternalMachineControl *pThis, - IMediumAttachment * mediumAttachment, - IMedium * source, - IMedium * target, - PRBool mergeForward, - IMedium * parentForTarget, - PRUint32 childrenToReparentSize, - IMedium ** childrenToReparent - ); - - nsresult PR_COM_METHOD (*RestoreSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - ISnapshot * snapshot, - PRUint32 * machineState, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*PullGuestProperties)( - IInternalMachineControl *pThis, - PRUint32 *nameSize, - PRUnichar *** name, - PRUint32 *valueSize, - PRUnichar *** value, - PRUint32 *timestampSize, - PRInt64* timestamp, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult PR_COM_METHOD (*PushGuestProperty)( - IInternalMachineControl *pThis, - PRUnichar * name, - PRUnichar * value, - PRInt64 timestamp, - PRUnichar * flags - ); - - nsresult PR_COM_METHOD (*LockMedia)(IInternalMachineControl *pThis ); - - nsresult PR_COM_METHOD (*UnlockMedia)(IInternalMachineControl *pThis ); - - nsresult PR_COM_METHOD (*EjectMedium)( - IInternalMachineControl *pThis, - IMediumAttachment * attachment, - IMediumAttachment * * newAttachment - ); - -}; - -struct IInternalMachineControl -{ - struct IInternalMachineControl_vtbl *vtbl; -}; -/* End of struct IInternalMachineControl Declaration */ - - -/* Start of struct IBIOSSettings Declaration */ -# define IBIOSSETTINGS_IID_STR "38b54279-dc35-4f5e-a431-835b867c6b5e" -# define IBIOSSETTINGS_IID { \ - 0x38b54279, 0xdc35, 0x4f5e, \ - { 0xa4, 0x31, 0x83, 0x5b, 0x86, 0x7c, 0x6b, 0x5e } \ -} -struct IBIOSSettings_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetLogoFadeIn)(IBIOSSettings *pThis, PRBool *= logoFadeIn); - nsresult PR_COM_METHOD (*SetLogoFadeIn)(IBIOSSettings *pThis, PRBool l= ogoFadeIn); - - nsresult PR_COM_METHOD (*GetLogoFadeOut)(IBIOSSettings *pThis, PRBool = *logoFadeOut); - nsresult PR_COM_METHOD (*SetLogoFadeOut)(IBIOSSettings *pThis, PRBool = logoFadeOut); - - nsresult PR_COM_METHOD (*GetLogoDisplayTime)(IBIOSSettings *pThis, PRU= int32 *logoDisplayTime); - nsresult PR_COM_METHOD (*SetLogoDisplayTime)(IBIOSSettings *pThis, PRU= int32 logoDisplayTime); - - nsresult PR_COM_METHOD (*GetLogoImagePath)(IBIOSSettings *pThis, PRUni= char * *logoImagePath); - nsresult PR_COM_METHOD (*SetLogoImagePath)(IBIOSSettings *pThis, PRUni= char * logoImagePath); - - nsresult PR_COM_METHOD (*GetBootMenuMode)(IBIOSSettings *pThis, PRUint= 32 *bootMenuMode); - nsresult PR_COM_METHOD (*SetBootMenuMode)(IBIOSSettings *pThis, PRUint= 32 bootMenuMode); - - nsresult PR_COM_METHOD (*GetACPIEnabled)(IBIOSSettings *pThis, PRBool = *ACPIEnabled); - nsresult PR_COM_METHOD (*SetACPIEnabled)(IBIOSSettings *pThis, PRBool = ACPIEnabled); - - nsresult PR_COM_METHOD (*GetIOAPICEnabled)(IBIOSSettings *pThis, PRBoo= l *IOAPICEnabled); - nsresult PR_COM_METHOD (*SetIOAPICEnabled)(IBIOSSettings *pThis, PRBoo= l IOAPICEnabled); - - nsresult PR_COM_METHOD (*GetTimeOffset)(IBIOSSettings *pThis, PRInt64 = *timeOffset); - nsresult PR_COM_METHOD (*SetTimeOffset)(IBIOSSettings *pThis, PRInt64 = timeOffset); - - nsresult PR_COM_METHOD (*GetPXEDebugEnabled)(IBIOSSettings *pThis, PRB= ool *PXEDebugEnabled); - nsresult PR_COM_METHOD (*SetPXEDebugEnabled)(IBIOSSettings *pThis, PRB= ool PXEDebugEnabled); - -}; - -struct IBIOSSettings -{ - struct IBIOSSettings_vtbl *vtbl; -}; -/* End of struct IBIOSSettings Declaration */ - - -/* Start of struct IPciAddress Declaration */ -# define IPCIADDRESS_IID_STR "D88B324F-DB19-4D3B-A1A9-BF5B127199A8" -# define IPCIADDRESS_IID { \ - 0xD88B324F, 0xDB19, 0x4D3B, \ - { 0xA1, 0xA9, 0xBF, 0x5B, 0x12, 0x71, 0x99, 0xA8 } \ -} -struct IPciAddress_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetBus)(IPciAddress *pThis, PRInt16 *bus); - nsresult PR_COM_METHOD (*SetBus)(IPciAddress *pThis, PRInt16 bus); - - nsresult PR_COM_METHOD (*GetDevice)(IPciAddress *pThis, PRInt16 *devic= e); - nsresult PR_COM_METHOD (*SetDevice)(IPciAddress *pThis, PRInt16 device= ); - - nsresult PR_COM_METHOD (*GetDevFunction)(IPciAddress *pThis, PRInt16 *= devFunction); - nsresult PR_COM_METHOD (*SetDevFunction)(IPciAddress *pThis, PRInt16 d= evFunction); - - nsresult PR_COM_METHOD (*AsLong)( - IPciAddress *pThis, - PRInt32 * result - ); - - nsresult PR_COM_METHOD (*FromLong)( - IPciAddress *pThis, - PRInt32 number - ); - -}; - -struct IPciAddress -{ - struct IPciAddress_vtbl *vtbl; -}; -/* End of struct IPciAddress Declaration */ - - -/* Start of struct IPciDeviceAttachment Declaration */ -# define IPCIDEVICEATTACHMENT_IID_STR "91f33d6f-e621-4f70-a77e-15f0e3c714= d5" -# define IPCIDEVICEATTACHMENT_IID { \ - 0x91f33d6f, 0xe621, 0x4f70, \ - { 0xa7, 0x7e, 0x15, 0xf0, 0xe3, 0xc7, 0x14, 0xd5 } \ -} -struct IPciDeviceAttachment_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IPciDeviceAttachment *pThis, PRUnich= ar * *name); - - nsresult PR_COM_METHOD (*GetIsPhysicalDevice)(IPciDeviceAttachment *pT= his, PRBool *isPhysicalDevice); - - nsresult PR_COM_METHOD (*GetHostAddress)(IPciDeviceAttachment *pThis, = PRInt32 *hostAddress); - - nsresult PR_COM_METHOD (*GetGuestAddress)(IPciDeviceAttachment *pThis,= PRInt32 *guestAddress); - -}; - -struct IPciDeviceAttachment -{ - struct IPciDeviceAttachment_vtbl *vtbl; -}; -/* End of struct IPciDeviceAttachment Declaration */ - - -/* Start of struct IMachine Declaration */ -# define IMACHINE_IID_STR "5eaa9319-62fc-4b0a-843c-0cb1940f8a91" -# define IMACHINE_IID { \ - 0x5eaa9319, 0x62fc, 0x4b0a, \ - { 0x84, 0x3c, 0x0c, 0xb1, 0x94, 0x0f, 0x8a, 0x91 } \ -} -struct IMachine_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetParent)(IMachine *pThis, IVirtualBox * *pa= rent); - - nsresult PR_COM_METHOD (*GetAccessible)(IMachine *pThis, PRBool *acces= sible); - - nsresult PR_COM_METHOD (*GetAccessError)(IMachine *pThis, IVirtualBoxE= rrorInfo * *accessError); - - nsresult PR_COM_METHOD (*GetName)(IMachine *pThis, PRUnichar * *name); - nsresult PR_COM_METHOD (*SetName)(IMachine *pThis, PRUnichar * name); - - nsresult PR_COM_METHOD (*GetDescription)(IMachine *pThis, PRUnichar * = *description); - nsresult PR_COM_METHOD (*SetDescription)(IMachine *pThis, PRUnichar * = description); - - nsresult PR_COM_METHOD (*GetId)(IMachine *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetOSTypeId)(IMachine *pThis, PRUnichar * *OS= TypeId); - nsresult PR_COM_METHOD (*SetOSTypeId)(IMachine *pThis, PRUnichar * OST= ypeId); - - nsresult PR_COM_METHOD (*GetHardwareVersion)(IMachine *pThis, PRUnicha= r * *hardwareVersion); - nsresult PR_COM_METHOD (*SetHardwareVersion)(IMachine *pThis, PRUnicha= r * hardwareVersion); - - nsresult PR_COM_METHOD (*GetHardwareUUID)(IMachine *pThis, PRUnichar *= *hardwareUUID); - nsresult PR_COM_METHOD (*SetHardwareUUID)(IMachine *pThis, PRUnichar *= hardwareUUID); - - nsresult PR_COM_METHOD (*GetCPUCount)(IMachine *pThis, PRUint32 *CPUCo= unt); - nsresult PR_COM_METHOD (*SetCPUCount)(IMachine *pThis, PRUint32 CPUCou= nt); - - nsresult PR_COM_METHOD (*GetCPUHotPlugEnabled)(IMachine *pThis, PRBool= *CPUHotPlugEnabled); - nsresult PR_COM_METHOD (*SetCPUHotPlugEnabled)(IMachine *pThis, PRBool= CPUHotPlugEnabled); - - nsresult PR_COM_METHOD (*GetCPUExecutionCap)(IMachine *pThis, PRUint32= *CPUExecutionCap); - nsresult PR_COM_METHOD (*SetCPUExecutionCap)(IMachine *pThis, PRUint32= CPUExecutionCap); - - nsresult PR_COM_METHOD (*GetMemorySize)(IMachine *pThis, PRUint32 *mem= orySize); - nsresult PR_COM_METHOD (*SetMemorySize)(IMachine *pThis, PRUint32 memo= rySize); - - nsresult PR_COM_METHOD (*GetMemoryBalloonSize)(IMachine *pThis, PRUint= 32 *memoryBalloonSize); - nsresult PR_COM_METHOD (*SetMemoryBalloonSize)(IMachine *pThis, PRUint= 32 memoryBalloonSize); - - nsresult PR_COM_METHOD (*GetPageFusionEnabled)(IMachine *pThis, PRBool= *pageFusionEnabled); - nsresult PR_COM_METHOD (*SetPageFusionEnabled)(IMachine *pThis, PRBool= pageFusionEnabled); - - nsresult PR_COM_METHOD (*GetVRAMSize)(IMachine *pThis, PRUint32 *VRAMS= ize); - nsresult PR_COM_METHOD (*SetVRAMSize)(IMachine *pThis, PRUint32 VRAMSi= ze); - - nsresult PR_COM_METHOD (*GetAccelerate3DEnabled)(IMachine *pThis, PRBo= ol *accelerate3DEnabled); - nsresult PR_COM_METHOD (*SetAccelerate3DEnabled)(IMachine *pThis, PRBo= ol accelerate3DEnabled); - - nsresult PR_COM_METHOD (*GetAccelerate2DVideoEnabled)(IMachine *pThis,= PRBool *accelerate2DVideoEnabled); - nsresult PR_COM_METHOD (*SetAccelerate2DVideoEnabled)(IMachine *pThis,= PRBool accelerate2DVideoEnabled); - - nsresult PR_COM_METHOD (*GetMonitorCount)(IMachine *pThis, PRUint32 *m= onitorCount); - nsresult PR_COM_METHOD (*SetMonitorCount)(IMachine *pThis, PRUint32 mo= nitorCount); - - nsresult PR_COM_METHOD (*GetBIOSSettings)(IMachine *pThis, IBIOSSettin= gs * *BIOSSettings); - - nsresult PR_COM_METHOD (*GetFirmwareType)(IMachine *pThis, PRUint32 *f= irmwareType); - nsresult PR_COM_METHOD (*SetFirmwareType)(IMachine *pThis, PRUint32 fi= rmwareType); - - nsresult PR_COM_METHOD (*GetPointingHidType)(IMachine *pThis, PRUint32= *pointingHidType); - nsresult PR_COM_METHOD (*SetPointingHidType)(IMachine *pThis, PRUint32= pointingHidType); - - nsresult PR_COM_METHOD (*GetKeyboardHidType)(IMachine *pThis, PRUint32= *keyboardHidType); - nsresult PR_COM_METHOD (*SetKeyboardHidType)(IMachine *pThis, PRUint32= keyboardHidType); - - nsresult PR_COM_METHOD (*GetHpetEnabled)(IMachine *pThis, PRBool *hpet= Enabled); - nsresult PR_COM_METHOD (*SetHpetEnabled)(IMachine *pThis, PRBool hpetE= nabled); - - nsresult PR_COM_METHOD (*GetChipsetType)(IMachine *pThis, PRUint32 *ch= ipsetType); - nsresult PR_COM_METHOD (*SetChipsetType)(IMachine *pThis, PRUint32 chi= psetType); - - nsresult PR_COM_METHOD (*GetSnapshotFolder)(IMachine *pThis, PRUnichar= * *snapshotFolder); - nsresult PR_COM_METHOD (*SetSnapshotFolder)(IMachine *pThis, PRUnichar= * snapshotFolder); - - nsresult PR_COM_METHOD (*GetVRDEServer)(IMachine *pThis, IVRDEServer *= *VRDEServer); - - nsresult PR_COM_METHOD (*GetEmulatedUSBWebcameraEnabled)(IMachine *pTh= is, PRBool *emulatedUSBWebcameraEnabled); - nsresult PR_COM_METHOD (*SetEmulatedUSBWebcameraEnabled)(IMachine *pTh= is, PRBool emulatedUSBWebcameraEnabled); - - nsresult PR_COM_METHOD (*GetEmulatedUSBCardReaderEnabled)(IMachine *pT= his, PRBool *emulatedUSBCardReaderEnabled); - nsresult PR_COM_METHOD (*SetEmulatedUSBCardReaderEnabled)(IMachine *pT= his, PRBool emulatedUSBCardReaderEnabled); - - nsresult PR_COM_METHOD (*GetMediumAttachments)(IMachine *pThis, PRUint= 32 *mediumAttachmentsSize, IMediumAttachment * **mediumAttachments); - - nsresult PR_COM_METHOD (*GetUSBController)(IMachine *pThis, IUSBContro= ller * *USBController); - - nsresult PR_COM_METHOD (*GetAudioAdapter)(IMachine *pThis, IAudioAdapt= er * *audioAdapter); - - nsresult PR_COM_METHOD (*GetStorageControllers)(IMachine *pThis, PRUin= t32 *storageControllersSize, IStorageController * **storageControllers); - - nsresult PR_COM_METHOD (*GetSettingsFilePath)(IMachine *pThis, PRUnich= ar * *settingsFilePath); - - nsresult PR_COM_METHOD (*GetSettingsModified)(IMachine *pThis, PRBool = *settingsModified); - - nsresult PR_COM_METHOD (*GetSessionState)(IMachine *pThis, PRUint32 *s= essionState); - - nsresult PR_COM_METHOD (*GetSessionType)(IMachine *pThis, PRUnichar * = *sessionType); - - nsresult PR_COM_METHOD (*GetSessionPid)(IMachine *pThis, PRUint32 *ses= sionPid); - - nsresult PR_COM_METHOD (*GetState)(IMachine *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetLastStateChange)(IMachine *pThis, PRInt64 = *lastStateChange); - - nsresult PR_COM_METHOD (*GetStateFilePath)(IMachine *pThis, PRUnichar = * *stateFilePath); - - nsresult PR_COM_METHOD (*GetLogFolder)(IMachine *pThis, PRUnichar * *l= ogFolder); - - nsresult PR_COM_METHOD (*GetCurrentSnapshot)(IMachine *pThis, ISnapsho= t * *currentSnapshot); - - nsresult PR_COM_METHOD (*GetSnapshotCount)(IMachine *pThis, PRUint32 *= snapshotCount); - - nsresult PR_COM_METHOD (*GetCurrentStateModified)(IMachine *pThis, PRB= ool *currentStateModified); - - nsresult PR_COM_METHOD (*GetSharedFolders)(IMachine *pThis, PRUint32 *= sharedFoldersSize, ISharedFolder * **sharedFolders); - - nsresult PR_COM_METHOD (*GetClipboardMode)(IMachine *pThis, PRUint32 *= clipboardMode); - nsresult PR_COM_METHOD (*SetClipboardMode)(IMachine *pThis, PRUint32 c= lipboardMode); - - nsresult PR_COM_METHOD (*GetGuestPropertyNotificationPatterns)(IMachin= e *pThis, PRUnichar * *guestPropertyNotificationPatterns); - nsresult PR_COM_METHOD (*SetGuestPropertyNotificationPatterns)(IMachin= e *pThis, PRUnichar * guestPropertyNotificationPatterns); - - nsresult PR_COM_METHOD (*GetTeleporterEnabled)(IMachine *pThis, PRBool= *teleporterEnabled); - nsresult PR_COM_METHOD (*SetTeleporterEnabled)(IMachine *pThis, PRBool= teleporterEnabled); - - nsresult PR_COM_METHOD (*GetTeleporterPort)(IMachine *pThis, PRUint32 = *teleporterPort); - nsresult PR_COM_METHOD (*SetTeleporterPort)(IMachine *pThis, PRUint32 = teleporterPort); - - nsresult PR_COM_METHOD (*GetTeleporterAddress)(IMachine *pThis, PRUnic= har * *teleporterAddress); - nsresult PR_COM_METHOD (*SetTeleporterAddress)(IMachine *pThis, PRUnic= har * teleporterAddress); - - nsresult PR_COM_METHOD (*GetTeleporterPassword)(IMachine *pThis, PRUni= char * *teleporterPassword); - nsresult PR_COM_METHOD (*SetTeleporterPassword)(IMachine *pThis, PRUni= char * teleporterPassword); - - nsresult PR_COM_METHOD (*GetFaultToleranceState)(IMachine *pThis, PRUi= nt32 *faultToleranceState); - nsresult PR_COM_METHOD (*SetFaultToleranceState)(IMachine *pThis, PRUi= nt32 faultToleranceState); - - nsresult PR_COM_METHOD (*GetFaultTolerancePort)(IMachine *pThis, PRUin= t32 *faultTolerancePort); - nsresult PR_COM_METHOD (*SetFaultTolerancePort)(IMachine *pThis, PRUin= t32 faultTolerancePort); - - nsresult PR_COM_METHOD (*GetFaultToleranceAddress)(IMachine *pThis, PR= Unichar * *faultToleranceAddress); - nsresult PR_COM_METHOD (*SetFaultToleranceAddress)(IMachine *pThis, PR= Unichar * faultToleranceAddress); - - nsresult PR_COM_METHOD (*GetFaultTolerancePassword)(IMachine *pThis, P= RUnichar * *faultTolerancePassword); - nsresult PR_COM_METHOD (*SetFaultTolerancePassword)(IMachine *pThis, P= RUnichar * faultTolerancePassword); - - nsresult PR_COM_METHOD (*GetFaultToleranceSyncInterval)(IMachine *pThi= s, PRUint32 *faultToleranceSyncInterval); - nsresult PR_COM_METHOD (*SetFaultToleranceSyncInterval)(IMachine *pThi= s, PRUint32 faultToleranceSyncInterval); - - nsresult PR_COM_METHOD (*GetRTCUseUTC)(IMachine *pThis, PRBool *RTCUse= UTC); - nsresult PR_COM_METHOD (*SetRTCUseUTC)(IMachine *pThis, PRBool RTCUseU= TC); - - nsresult PR_COM_METHOD (*GetIoCacheEnabled)(IMachine *pThis, PRBool *i= oCacheEnabled); - nsresult PR_COM_METHOD (*SetIoCacheEnabled)(IMachine *pThis, PRBool io= CacheEnabled); - - nsresult PR_COM_METHOD (*GetIoCacheSize)(IMachine *pThis, PRUint32 *io= CacheSize); - nsresult PR_COM_METHOD (*SetIoCacheSize)(IMachine *pThis, PRUint32 ioC= acheSize); - - nsresult PR_COM_METHOD (*GetBandwidthControl)(IMachine *pThis, IBandwi= dthControl * *bandwidthControl); - - nsresult PR_COM_METHOD (*GetPciDeviceAssignments)(IMachine *pThis, PRU= int32 *pciDeviceAssignmentsSize, IPciDeviceAttachment * **pciDeviceAssignme= nts); - - nsresult PR_COM_METHOD (*LockMachine)( - IMachine *pThis, - ISession * session, - PRUint32 lockType - ); - - nsresult PR_COM_METHOD (*LaunchVMProcess)( - IMachine *pThis, - ISession * session, - PRUnichar * type, - PRUnichar * environment, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*SetBootOrder)( - IMachine *pThis, - PRUint32 position, - PRUint32 device - ); - - nsresult PR_COM_METHOD (*GetBootOrder)( - IMachine *pThis, - PRUint32 position, - PRUint32 * device - ); - - nsresult PR_COM_METHOD (*AttachDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRUint32 type, - IMedium * medium - ); - - nsresult PR_COM_METHOD (*DetachDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device - ); - - nsresult PR_COM_METHOD (*PassthroughDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool passthrough - ); - - nsresult PR_COM_METHOD (*TemporaryEjectDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool temporaryEject - ); - - nsresult PR_COM_METHOD (*NonRotationalDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool nonRotational - ); - - nsresult PR_COM_METHOD (*SetBandwidthGroupForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IBandwidthGroup * bandwidthGroup - ); - - nsresult PR_COM_METHOD (*MountMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMedium * medium, - PRBool force - ); - - nsresult PR_COM_METHOD (*GetMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMedium * * medium - ); - - nsresult PR_COM_METHOD (*GetMediumAttachmentsOfController)( - IMachine *pThis, - PRUnichar * name, - PRUint32 *mediumAttachmentsSize, - IMediumAttachment *** mediumAttachments - ); - - nsresult PR_COM_METHOD (*GetMediumAttachment)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMediumAttachment * * attachment - ); - - nsresult PR_COM_METHOD (*AttachHostPciDevice)( - IMachine *pThis, - PRInt32 hostAddress, - PRInt32 desiredGuestAddress, - PRBool tryToUnbind - ); - - nsresult PR_COM_METHOD (*DetachHostPciDevice)( - IMachine *pThis, - PRInt32 hostAddress - ); - - nsresult PR_COM_METHOD (*GetNetworkAdapter)( - IMachine *pThis, - PRUint32 slot, - INetworkAdapter * * adapter - ); - - nsresult PR_COM_METHOD (*AddStorageController)( - IMachine *pThis, - PRUnichar * name, - PRUint32 connectionType, - IStorageController * * controller - ); - - nsresult PR_COM_METHOD (*GetStorageControllerByName)( - IMachine *pThis, - PRUnichar * name, - IStorageController * * storageController - ); - - nsresult PR_COM_METHOD (*GetStorageControllerByInstance)( - IMachine *pThis, - PRUint32 instance, - IStorageController * * storageController - ); - - nsresult PR_COM_METHOD (*RemoveStorageController)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*SetStorageControllerBootable)( - IMachine *pThis, - PRUnichar * name, - PRBool bootable - ); - - nsresult PR_COM_METHOD (*GetSerialPort)( - IMachine *pThis, - PRUint32 slot, - ISerialPort * * port - ); - - nsresult PR_COM_METHOD (*GetParallelPort)( - IMachine *pThis, - PRUint32 slot, - IParallelPort * * port - ); - - nsresult PR_COM_METHOD (*GetExtraDataKeys)( - IMachine *pThis, - PRUint32 *valueSize, - PRUnichar *** value - ); - - nsresult PR_COM_METHOD (*GetExtraData)( - IMachine *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetExtraData)( - IMachine *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetCPUProperty)( - IMachine *pThis, - PRUint32 property, - PRBool * value - ); - - nsresult PR_COM_METHOD (*SetCPUProperty)( - IMachine *pThis, - PRUint32 property, - PRBool value - ); - - nsresult PR_COM_METHOD (*GetCPUIDLeaf)( - IMachine *pThis, - PRUint32 id, - PRUint32 * valEax, - PRUint32 * valEbx, - PRUint32 * valEcx, - PRUint32 * valEdx - ); - - nsresult PR_COM_METHOD (*SetCPUIDLeaf)( - IMachine *pThis, - PRUint32 id, - PRUint32 valEax, - PRUint32 valEbx, - PRUint32 valEcx, - PRUint32 valEdx - ); - - nsresult PR_COM_METHOD (*RemoveCPUIDLeaf)( - IMachine *pThis, - PRUint32 id - ); - - nsresult PR_COM_METHOD (*RemoveAllCPUIDLeaves)(IMachine *pThis ); - - nsresult PR_COM_METHOD (*GetHWVirtExProperty)( - IMachine *pThis, - PRUint32 property, - PRBool * value - ); - - nsresult PR_COM_METHOD (*SetHWVirtExProperty)( - IMachine *pThis, - PRUint32 property, - PRBool value - ); - - nsresult PR_COM_METHOD (*SaveSettings)(IMachine *pThis ); - - nsresult PR_COM_METHOD (*DiscardSettings)(IMachine *pThis ); - - nsresult PR_COM_METHOD (*Unregister)( - IMachine *pThis, - PRUint32 cleanupMode, - PRUint32 *aMediaSize, - IMedium *** aMedia - ); - - nsresult PR_COM_METHOD (*Delete)( - IMachine *pThis, - PRUint32 aMediaSize, - IMedium ** aMedia, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*Export)( - IMachine *pThis, - IAppliance * aAppliance, - PRUnichar * location, - IVirtualSystemDescription * * aDescription - ); - - nsresult PR_COM_METHOD (*FindSnapshot)( - IMachine *pThis, - PRUnichar * nameOrId, - ISnapshot * * snapshot - ); - - nsresult PR_COM_METHOD (*CreateSharedFolder)( - IMachine *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult PR_COM_METHOD (*RemoveSharedFolder)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*CanShowConsoleWindow)( - IMachine *pThis, - PRBool * canShow - ); - - nsresult PR_COM_METHOD (*ShowConsoleWindow)( - IMachine *pThis, - PRInt64 * winId - ); - - nsresult PR_COM_METHOD (*GetGuestProperty)( - IMachine *pThis, - PRUnichar * name, - PRUnichar * * value, - PRInt64 * timestamp, - PRUnichar * * flags - ); - - nsresult PR_COM_METHOD (*GetGuestPropertyValue)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*GetGuestPropertyTimestamp)( - IMachine *pThis, - PRUnichar * property, - PRInt64 * value - ); - - nsresult PR_COM_METHOD (*SetGuestProperty)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * value, - PRUnichar * flags - ); - - nsresult PR_COM_METHOD (*SetGuestPropertyValue)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*EnumerateGuestProperties)( - IMachine *pThis, - PRUnichar * patterns, - PRUint32 *nameSize, - PRUnichar *** name, - PRUint32 *valueSize, - PRUnichar *** value, - PRUint32 *timestampSize, - PRInt64* timestamp, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult PR_COM_METHOD (*QuerySavedGuestSize)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height - ); - - nsresult PR_COM_METHOD (*QuerySavedThumbnailSize)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * size, - PRUint32 * width, - PRUint32 * height - ); - - nsresult PR_COM_METHOD (*ReadSavedThumbnailToArray)( - IMachine *pThis, - PRUint32 screenId, - PRBool BGR, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*ReadSavedThumbnailPNGToArray)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*QuerySavedScreenshotPNGSize)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * size, - PRUint32 * width, - PRUint32 * height - ); - - nsresult PR_COM_METHOD (*ReadSavedScreenshotPNGToArray)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*HotPlugCPU)( - IMachine *pThis, - PRUint32 cpu - ); - - nsresult PR_COM_METHOD (*HotUnplugCPU)( - IMachine *pThis, - PRUint32 cpu - ); - - nsresult PR_COM_METHOD (*GetCPUStatus)( - IMachine *pThis, - PRUint32 cpu, - PRBool * attached - ); - - nsresult PR_COM_METHOD (*QueryLogFilename)( - IMachine *pThis, - PRUint32 idx, - PRUnichar * * filename - ); - - nsresult PR_COM_METHOD (*ReadLog)( - IMachine *pThis, - PRUint32 idx, - PRInt64 offset, - PRInt64 size, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*CloneTo)( - IMachine *pThis, - IMachine * target, - PRUint32 mode, - PRUint32 optionsSize, - PRUint32* options, - IProgress * * progress - ); - -}; - -struct IMachine -{ - struct IMachine_vtbl *vtbl; -}; -/* End of struct IMachine Declaration */ - - -/* Start of struct IVRDEServerInfo Declaration */ -# define IVRDESERVERINFO_IID_STR "714434a1-58c3-4aab-9049-7652c5df113b" -# define IVRDESERVERINFO_IID { \ - 0x714434a1, 0x58c3, 0x4aab, \ - { 0x90, 0x49, 0x76, 0x52, 0xc5, 0xdf, 0x11, 0x3b } \ -} -struct IVRDEServerInfo_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetActive)(IVRDEServerInfo *pThis, PRBool *ac= tive); - - nsresult PR_COM_METHOD (*GetPort)(IVRDEServerInfo *pThis, PRInt32 *por= t); - - nsresult PR_COM_METHOD (*GetNumberOfClients)(IVRDEServerInfo *pThis, P= RUint32 *numberOfClients); - - nsresult PR_COM_METHOD (*GetBeginTime)(IVRDEServerInfo *pThis, PRInt64= *beginTime); - - nsresult PR_COM_METHOD (*GetEndTime)(IVRDEServerInfo *pThis, PRInt64 *= endTime); - - nsresult PR_COM_METHOD (*GetBytesSent)(IVRDEServerInfo *pThis, PRInt64= *bytesSent); - - nsresult PR_COM_METHOD (*GetBytesSentTotal)(IVRDEServerInfo *pThis, PR= Int64 *bytesSentTotal); - - nsresult PR_COM_METHOD (*GetBytesReceived)(IVRDEServerInfo *pThis, PRI= nt64 *bytesReceived); - - nsresult PR_COM_METHOD (*GetBytesReceivedTotal)(IVRDEServerInfo *pThis= , PRInt64 *bytesReceivedTotal); - - nsresult PR_COM_METHOD (*GetUser)(IVRDEServerInfo *pThis, PRUnichar * = *user); - - nsresult PR_COM_METHOD (*GetDomain)(IVRDEServerInfo *pThis, PRUnichar = * *domain); - - nsresult PR_COM_METHOD (*GetClientName)(IVRDEServerInfo *pThis, PRUnic= har * *clientName); - - nsresult PR_COM_METHOD (*GetClientIP)(IVRDEServerInfo *pThis, PRUnicha= r * *clientIP); - - nsresult PR_COM_METHOD (*GetClientVersion)(IVRDEServerInfo *pThis, PRU= int32 *clientVersion); - - nsresult PR_COM_METHOD (*GetEncryptionStyle)(IVRDEServerInfo *pThis, P= RUint32 *encryptionStyle); - -}; - -struct IVRDEServerInfo -{ - struct IVRDEServerInfo_vtbl *vtbl; -}; -/* End of struct IVRDEServerInfo Declaration */ - - -/* Start of struct IConsole Declaration */ -# define ICONSOLE_IID_STR "1968b7d3-e3bf-4ceb-99e0-cb7c913317bb" -# define ICONSOLE_IID { \ - 0x1968b7d3, 0xe3bf, 0x4ceb, \ - { 0x99, 0xe0, 0xcb, 0x7c, 0x91, 0x33, 0x17, 0xbb } \ -} -struct IConsole_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMachine)(IConsole *pThis, IMachine * *mach= ine); - - nsresult PR_COM_METHOD (*GetState)(IConsole *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetGuest)(IConsole *pThis, IGuest * *guest); - - nsresult PR_COM_METHOD (*GetKeyboard)(IConsole *pThis, IKeyboard * *ke= yboard); - - nsresult PR_COM_METHOD (*GetMouse)(IConsole *pThis, IMouse * *mouse); - - nsresult PR_COM_METHOD (*GetDisplay)(IConsole *pThis, IDisplay * *disp= lay); - - nsresult PR_COM_METHOD (*GetDebugger)(IConsole *pThis, IMachineDebugge= r * *debugger); - - nsresult PR_COM_METHOD (*GetUSBDevices)(IConsole *pThis, PRUint32 *USB= DevicesSize, IUSBDevice * **USBDevices); - - nsresult PR_COM_METHOD (*GetRemoteUSBDevices)(IConsole *pThis, PRUint3= 2 *remoteUSBDevicesSize, IHostUSBDevice * **remoteUSBDevices); - - nsresult PR_COM_METHOD (*GetSharedFolders)(IConsole *pThis, PRUint32 *= sharedFoldersSize, ISharedFolder * **sharedFolders); - - nsresult PR_COM_METHOD (*GetVRDEServerInfo)(IConsole *pThis, IVRDEServ= erInfo * *VRDEServerInfo); - - nsresult PR_COM_METHOD (*GetEventSource)(IConsole *pThis, IEventSource= * *eventSource); - - nsresult PR_COM_METHOD (*GetAttachedPciDevices)(IConsole *pThis, PRUin= t32 *attachedPciDevicesSize, IPciDeviceAttachment * **attachedPciDevices); - - nsresult PR_COM_METHOD (*GetUseHostClipboard)(IConsole *pThis, PRBool = *useHostClipboard); - nsresult PR_COM_METHOD (*SetUseHostClipboard)(IConsole *pThis, PRBool = useHostClipboard); - - nsresult PR_COM_METHOD (*PowerUp)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*PowerUpPaused)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*PowerDown)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Reset)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*Pause)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*Resume)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*PowerButton)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*SleepButton)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*GetPowerButtonHandled)( - IConsole *pThis, - PRBool * handled - ); - - nsresult PR_COM_METHOD (*GetGuestEnteredACPIMode)( - IConsole *pThis, - PRBool * entered - ); - - nsresult PR_COM_METHOD (*SaveState)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*AdoptSavedState)( - IConsole *pThis, - PRUnichar * savedStateFile - ); - - nsresult PR_COM_METHOD (*DiscardSavedState)( - IConsole *pThis, - PRBool fRemoveFile - ); - - nsresult PR_COM_METHOD (*GetDeviceActivity)( - IConsole *pThis, - PRUint32 type, - PRUint32 * activity - ); - - nsresult PR_COM_METHOD (*AttachUSBDevice)( - IConsole *pThis, - PRUnichar * id - ); - - nsresult PR_COM_METHOD (*DetachUSBDevice)( - IConsole *pThis, - PRUnichar * id, - IUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceByAddress)( - IConsole *pThis, - PRUnichar * name, - IUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceById)( - IConsole *pThis, - PRUnichar * id, - IUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*CreateSharedFolder)( - IConsole *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult PR_COM_METHOD (*RemoveSharedFolder)( - IConsole *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*TakeSnapshot)( - IConsole *pThis, - PRUnichar * name, - PRUnichar * description, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DeleteSnapshot)( - IConsole *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DeleteSnapshotAndAllChildren)( - IConsole *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DeleteSnapshotRange)( - IConsole *pThis, - PRUnichar * startId, - PRUnichar * endId, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*RestoreSnapshot)( - IConsole *pThis, - ISnapshot * snapshot, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Teleport)( - IConsole *pThis, - PRUnichar * hostname, - PRUint32 tcpport, - PRUnichar * password, - PRUint32 maxDowntime, - IProgress * * progress - ); - -}; - -struct IConsole -{ - struct IConsole_vtbl *vtbl; -}; -/* End of struct IConsole Declaration */ - - -/* Start of struct IHostNetworkInterface Declaration */ -# define IHOSTNETWORKINTERFACE_IID_STR "ce6fae58-7642-4102-b5db-c9005c232= 0a8" -# define IHOSTNETWORKINTERFACE_IID { \ - 0xce6fae58, 0x7642, 0x4102, \ - { 0xb5, 0xdb, 0xc9, 0x00, 0x5c, 0x23, 0x20, 0xa8 } \ -} -struct IHostNetworkInterface_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IHostNetworkInterface *pThis, PRUnic= har * *name); - - nsresult PR_COM_METHOD (*GetId)(IHostNetworkInterface *pThis, PRUnicha= r * *id); - - nsresult PR_COM_METHOD (*GetNetworkName)(IHostNetworkInterface *pThis,= PRUnichar * *networkName); - - nsresult PR_COM_METHOD (*GetDhcpEnabled)(IHostNetworkInterface *pThis,= PRBool *dhcpEnabled); - - nsresult PR_COM_METHOD (*GetIPAddress)(IHostNetworkInterface *pThis, P= RUnichar * *IPAddress); - - nsresult PR_COM_METHOD (*GetNetworkMask)(IHostNetworkInterface *pThis,= PRUnichar * *networkMask); - - nsresult PR_COM_METHOD (*GetIPV6Supported)(IHostNetworkInterface *pThi= s, PRBool *IPV6Supported); - - nsresult PR_COM_METHOD (*GetIPV6Address)(IHostNetworkInterface *pThis,= PRUnichar * *IPV6Address); - - nsresult PR_COM_METHOD (*GetIPV6NetworkMaskPrefixLength)(IHostNetworkI= nterface *pThis, PRUint32 *IPV6NetworkMaskPrefixLength); - - nsresult PR_COM_METHOD (*GetHardwareAddress)(IHostNetworkInterface *pT= his, PRUnichar * *hardwareAddress); - - nsresult PR_COM_METHOD (*GetMediumType)(IHostNetworkInterface *pThis, = PRUint32 *mediumType); - - nsresult PR_COM_METHOD (*GetStatus)(IHostNetworkInterface *pThis, PRUi= nt32 *status); - - nsresult PR_COM_METHOD (*GetInterfaceType)(IHostNetworkInterface *pThi= s, PRUint32 *interfaceType); - - nsresult PR_COM_METHOD (*EnableStaticIpConfig)( - IHostNetworkInterface *pThis, - PRUnichar * IPAddress, - PRUnichar * networkMask - ); - - nsresult PR_COM_METHOD (*EnableStaticIpConfigV6)( - IHostNetworkInterface *pThis, - PRUnichar * IPV6Address, - PRUint32 IPV6NetworkMaskPrefixLength - ); - - nsresult PR_COM_METHOD (*EnableDynamicIpConfig)(IHostNetworkInterface = *pThis ); - - nsresult PR_COM_METHOD (*DhcpRediscover)(IHostNetworkInterface *pThis = ); - -}; - -struct IHostNetworkInterface -{ - struct IHostNetworkInterface_vtbl *vtbl; -}; -/* End of struct IHostNetworkInterface Declaration */ - - -/* Start of struct IHost Declaration */ -# define IHOST_IID_STR "dab4a2b8-c735-4f08-94fc-9bec84182e2f" -# define IHOST_IID { \ - 0xdab4a2b8, 0xc735, 0x4f08, \ - { 0x94, 0xfc, 0x9b, 0xec, 0x84, 0x18, 0x2e, 0x2f } \ -} -struct IHost_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetDVDDrives)(IHost *pThis, PRUint32 *DVDDriv= esSize, IMedium * **DVDDrives); - - nsresult PR_COM_METHOD (*GetFloppyDrives)(IHost *pThis, PRUint32 *flop= pyDrivesSize, IMedium * **floppyDrives); - - nsresult PR_COM_METHOD (*GetUSBDevices)(IHost *pThis, PRUint32 *USBDev= icesSize, IHostUSBDevice * **USBDevices); - - nsresult PR_COM_METHOD (*GetUSBDeviceFilters)(IHost *pThis, PRUint32 *= USBDeviceFiltersSize, IHostUSBDeviceFilter * **USBDeviceFilters); - - nsresult PR_COM_METHOD (*GetNetworkInterfaces)(IHost *pThis, PRUint32 = *networkInterfacesSize, IHostNetworkInterface * **networkInterfaces); - - nsresult PR_COM_METHOD (*GetProcessorCount)(IHost *pThis, PRUint32 *pr= ocessorCount); - - nsresult PR_COM_METHOD (*GetProcessorOnlineCount)(IHost *pThis, PRUint= 32 *processorOnlineCount); - - nsresult PR_COM_METHOD (*GetProcessorCoreCount)(IHost *pThis, PRUint32= *processorCoreCount); - - nsresult PR_COM_METHOD (*GetMemorySize)(IHost *pThis, PRUint32 *memory= Size); - - nsresult PR_COM_METHOD (*GetMemoryAvailable)(IHost *pThis, PRUint32 *m= emoryAvailable); - - nsresult PR_COM_METHOD (*GetOperatingSystem)(IHost *pThis, PRUnichar *= *operatingSystem); - - nsresult PR_COM_METHOD (*GetOSVersion)(IHost *pThis, PRUnichar * *OSVe= rsion); - - nsresult PR_COM_METHOD (*GetUTCTime)(IHost *pThis, PRInt64 *UTCTime); - - nsresult PR_COM_METHOD (*GetAcceleration3DAvailable)(IHost *pThis, PRB= ool *Acceleration3DAvailable); - - nsresult PR_COM_METHOD (*GetProcessorSpeed)( - IHost *pThis, - PRUint32 cpuId, - PRUint32 * speed - ); - - nsresult PR_COM_METHOD (*GetProcessorFeature)( - IHost *pThis, - PRUint32 feature, - PRBool * supported - ); - - nsresult PR_COM_METHOD (*GetProcessorDescription)( - IHost *pThis, - PRUint32 cpuId, - PRUnichar * * description - ); - - nsresult PR_COM_METHOD (*GetProcessorCPUIDLeaf)( - IHost *pThis, - PRUint32 cpuId, - PRUint32 leaf, - PRUint32 subLeaf, - PRUint32 * valEax, - PRUint32 * valEbx, - PRUint32 * valEcx, - PRUint32 * valEdx - ); - - nsresult PR_COM_METHOD (*CreateHostOnlyNetworkInterface)( - IHost *pThis, - IHostNetworkInterface * * hostInterface, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*RemoveHostOnlyNetworkInterface)( - IHost *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CreateUSBDeviceFilter)( - IHost *pThis, - PRUnichar * name, - IHostUSBDeviceFilter * * filter - ); - - nsresult PR_COM_METHOD (*InsertUSBDeviceFilter)( - IHost *pThis, - PRUint32 position, - IHostUSBDeviceFilter * filter - ); - - nsresult PR_COM_METHOD (*RemoveUSBDeviceFilter)( - IHost *pThis, - PRUint32 position - ); - - nsresult PR_COM_METHOD (*FindHostDVDDrive)( - IHost *pThis, - PRUnichar * name, - IMedium * * drive - ); - - nsresult PR_COM_METHOD (*FindHostFloppyDrive)( - IHost *pThis, - PRUnichar * name, - IMedium * * drive - ); - - nsresult PR_COM_METHOD (*FindHostNetworkInterfaceByName)( - IHost *pThis, - PRUnichar * name, - IHostNetworkInterface * * networkInterface - ); - - nsresult PR_COM_METHOD (*FindHostNetworkInterfaceById)( - IHost *pThis, - PRUnichar * id, - IHostNetworkInterface * * networkInterface - ); - - nsresult PR_COM_METHOD (*FindHostNetworkInterfacesOfType)( - IHost *pThis, - PRUint32 type, - PRUint32 *networkInterfacesSize, - IHostNetworkInterface *** networkInterfaces - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceById)( - IHost *pThis, - PRUnichar * id, - IHostUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceByAddress)( - IHost *pThis, - PRUnichar * name, - IHostUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*GenerateMACAddress)( - IHost *pThis, - PRUnichar * * address - ); - -}; - -struct IHost -{ - struct IHost_vtbl *vtbl; -}; -/* End of struct IHost Declaration */ - - -/* Start of struct ISystemProperties Declaration */ -# define ISYSTEMPROPERTIES_IID_STR "8a0ab9ab-48c1-4d04-954b-4a751413d084" -# define ISYSTEMPROPERTIES_IID { \ - 0x8a0ab9ab, 0x48c1, 0x4d04, \ - { 0x95, 0x4b, 0x4a, 0x75, 0x14, 0x13, 0xd0, 0x84 } \ -} -struct ISystemProperties_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMinGuestRAM)(ISystemProperties *pThis, PRU= int32 *minGuestRAM); - - nsresult PR_COM_METHOD (*GetMaxGuestRAM)(ISystemProperties *pThis, PRU= int32 *maxGuestRAM); - - nsresult PR_COM_METHOD (*GetMinGuestVRAM)(ISystemProperties *pThis, PR= Uint32 *minGuestVRAM); - - nsresult PR_COM_METHOD (*GetMaxGuestVRAM)(ISystemProperties *pThis, PR= Uint32 *maxGuestVRAM); - - nsresult PR_COM_METHOD (*GetMinGuestCPUCount)(ISystemProperties *pThis= , PRUint32 *minGuestCPUCount); - - nsresult PR_COM_METHOD (*GetMaxGuestCPUCount)(ISystemProperties *pThis= , PRUint32 *maxGuestCPUCount); - - nsresult PR_COM_METHOD (*GetMaxGuestMonitors)(ISystemProperties *pThis= , PRUint32 *maxGuestMonitors); - - nsresult PR_COM_METHOD (*GetInfoVDSize)(ISystemProperties *pThis, PRIn= t64 *infoVDSize); - - nsresult PR_COM_METHOD (*GetSerialPortCount)(ISystemProperties *pThis,= PRUint32 *serialPortCount); - - nsresult PR_COM_METHOD (*GetParallelPortCount)(ISystemProperties *pThi= s, PRUint32 *parallelPortCount); - - nsresult PR_COM_METHOD (*GetMaxBootPosition)(ISystemProperties *pThis,= PRUint32 *maxBootPosition); - - nsresult PR_COM_METHOD (*GetDefaultMachineFolder)(ISystemProperties *p= This, PRUnichar * *defaultMachineFolder); - nsresult PR_COM_METHOD (*SetDefaultMachineFolder)(ISystemProperties *p= This, PRUnichar * defaultMachineFolder); - - nsresult PR_COM_METHOD (*GetMediumFormats)(ISystemProperties *pThis, P= RUint32 *mediumFormatsSize, IMediumFormat * **mediumFormats); - - nsresult PR_COM_METHOD (*GetDefaultHardDiskFormat)(ISystemProperties *= pThis, PRUnichar * *defaultHardDiskFormat); - nsresult PR_COM_METHOD (*SetDefaultHardDiskFormat)(ISystemProperties *= pThis, PRUnichar * defaultHardDiskFormat); - - nsresult PR_COM_METHOD (*GetFreeDiskSpaceWarning)(ISystemProperties *p= This, PRInt64 *freeDiskSpaceWarning); - nsresult PR_COM_METHOD (*SetFreeDiskSpaceWarning)(ISystemProperties *p= This, PRInt64 freeDiskSpaceWarning); - - nsresult PR_COM_METHOD (*GetFreeDiskSpacePercentWarning)(ISystemProper= ties *pThis, PRUint32 *freeDiskSpacePercentWarning); - nsresult PR_COM_METHOD (*SetFreeDiskSpacePercentWarning)(ISystemProper= ties *pThis, PRUint32 freeDiskSpacePercentWarning); - - nsresult PR_COM_METHOD (*GetFreeDiskSpaceError)(ISystemProperties *pTh= is, PRInt64 *freeDiskSpaceError); - nsresult PR_COM_METHOD (*SetFreeDiskSpaceError)(ISystemProperties *pTh= is, PRInt64 freeDiskSpaceError); - - nsresult PR_COM_METHOD (*GetFreeDiskSpacePercentError)(ISystemProperti= es *pThis, PRUint32 *freeDiskSpacePercentError); - nsresult PR_COM_METHOD (*SetFreeDiskSpacePercentError)(ISystemProperti= es *pThis, PRUint32 freeDiskSpacePercentError); - - nsresult PR_COM_METHOD (*GetVRDEAuthLibrary)(ISystemProperties *pThis,= PRUnichar * *VRDEAuthLibrary); - nsresult PR_COM_METHOD (*SetVRDEAuthLibrary)(ISystemProperties *pThis,= PRUnichar * VRDEAuthLibrary); - - nsresult PR_COM_METHOD (*GetWebServiceAuthLibrary)(ISystemProperties *= pThis, PRUnichar * *webServiceAuthLibrary); - nsresult PR_COM_METHOD (*SetWebServiceAuthLibrary)(ISystemProperties *= pThis, PRUnichar * webServiceAuthLibrary); - - nsresult PR_COM_METHOD (*GetDefaultVRDEExtPack)(ISystemProperties *pTh= is, PRUnichar * *defaultVRDEExtPack); - nsresult PR_COM_METHOD (*SetDefaultVRDEExtPack)(ISystemProperties *pTh= is, PRUnichar * defaultVRDEExtPack); - - nsresult PR_COM_METHOD (*GetLogHistoryCount)(ISystemProperties *pThis,= PRUint32 *logHistoryCount); - nsresult PR_COM_METHOD (*SetLogHistoryCount)(ISystemProperties *pThis,= PRUint32 logHistoryCount); - - nsresult PR_COM_METHOD (*GetDefaultAudioDriver)(ISystemProperties *pTh= is, PRUint32 *defaultAudioDriver); - - nsresult PR_COM_METHOD (*GetMaxNetworkAdapters)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 * maxNetworkAdapters - ); - - nsresult PR_COM_METHOD (*GetMaxNetworkAdaptersOfType)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 type, - PRUint32 * maxNetworkAdapters - ); - - nsresult PR_COM_METHOD (*GetMaxDevicesPerPortForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * maxDevicesPerPort - ); - - nsresult PR_COM_METHOD (*GetMinPortCountForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * minPortCount - ); - - nsresult PR_COM_METHOD (*GetMaxPortCountForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * maxPortCount - ); - - nsresult PR_COM_METHOD (*GetMaxInstancesOfStorageBus)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 bus, - PRUint32 * maxInstances - ); - - nsresult PR_COM_METHOD (*GetDeviceTypesForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 *deviceTypesSize, - PRUint32** deviceTypes - ); - - nsresult PR_COM_METHOD (*GetDefaultIoCacheSettingForStorageController)( - ISystemProperties *pThis, - PRUint32 controllerType, - PRBool * enabled - ); - -}; - -struct ISystemProperties -{ - struct ISystemProperties_vtbl *vtbl; -}; -/* End of struct ISystemProperties Declaration */ - - -/* Start of struct IGuestOSType Declaration */ -# define IGUESTOSTYPE_IID_STR "432c1546-1354-4abf-bf08-878a32a373f5" -# define IGUESTOSTYPE_IID { \ - 0x432c1546, 0x1354, 0x4abf, \ - { 0xbf, 0x08, 0x87, 0x8a, 0x32, 0xa3, 0x73, 0xf5 } \ -} -struct IGuestOSType_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetFamilyId)(IGuestOSType *pThis, PRUnichar *= *familyId); - - nsresult PR_COM_METHOD (*GetFamilyDescription)(IGuestOSType *pThis, PR= Unichar * *familyDescription); - - nsresult PR_COM_METHOD (*GetId)(IGuestOSType *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetDescription)(IGuestOSType *pThis, PRUnicha= r * *description); - - nsresult PR_COM_METHOD (*GetIs64Bit)(IGuestOSType *pThis, PRBool *is64= Bit); - - nsresult PR_COM_METHOD (*GetRecommendedIOAPIC)(IGuestOSType *pThis, PR= Bool *recommendedIOAPIC); - - nsresult PR_COM_METHOD (*GetRecommendedVirtEx)(IGuestOSType *pThis, PR= Bool *recommendedVirtEx); - - nsresult PR_COM_METHOD (*GetRecommendedRAM)(IGuestOSType *pThis, PRUin= t32 *recommendedRAM); - - nsresult PR_COM_METHOD (*GetRecommendedVRAM)(IGuestOSType *pThis, PRUi= nt32 *recommendedVRAM); - - nsresult PR_COM_METHOD (*GetRecommendedHDD)(IGuestOSType *pThis, PRInt= 64 *recommendedHDD); - - nsresult PR_COM_METHOD (*GetAdapterType)(IGuestOSType *pThis, PRUint32= *adapterType); - - nsresult PR_COM_METHOD (*GetRecommendedPae)(IGuestOSType *pThis, PRBoo= l *recommendedPae); - - nsresult PR_COM_METHOD (*GetRecommendedDvdStorageController)(IGuestOST= ype *pThis, PRUint32 *recommendedDvdStorageController); - - nsresult PR_COM_METHOD (*GetRecommendedDvdStorageBus)(IGuestOSType *pT= his, PRUint32 *recommendedDvdStorageBus); - - nsresult PR_COM_METHOD (*GetRecommendedHdStorageController)(IGuestOSTy= pe *pThis, PRUint32 *recommendedHdStorageController); - - nsresult PR_COM_METHOD (*GetRecommendedHdStorageBus)(IGuestOSType *pTh= is, PRUint32 *recommendedHdStorageBus); - - nsresult PR_COM_METHOD (*GetRecommendedFirmware)(IGuestOSType *pThis, = PRUint32 *recommendedFirmware); - - nsresult PR_COM_METHOD (*GetRecommendedUsbHid)(IGuestOSType *pThis, PR= Bool *recommendedUsbHid); - - nsresult PR_COM_METHOD (*GetRecommendedHpet)(IGuestOSType *pThis, PRBo= ol *recommendedHpet); - - nsresult PR_COM_METHOD (*GetRecommendedUsbTablet)(IGuestOSType *pThis,= PRBool *recommendedUsbTablet); - - nsresult PR_COM_METHOD (*GetRecommendedRtcUseUtc)(IGuestOSType *pThis,= PRBool *recommendedRtcUseUtc); - - nsresult PR_COM_METHOD (*GetRecommendedChipset)(IGuestOSType *pThis, P= RUint32 *recommendedChipset); - - nsresult PR_COM_METHOD (*GetRecommendedAudioController)(IGuestOSType *= pThis, PRUint32 *recommendedAudioController); - -}; - -struct IGuestOSType -{ - struct IGuestOSType_vtbl *vtbl; -}; -/* End of struct IGuestOSType Declaration */ - - -/* Start of struct IAdditionsFacility Declaration */ -# define IADDITIONSFACILITY_IID_STR "54992946-6af1-4e49-98ec-58b558b7291e" -# define IADDITIONSFACILITY_IID { \ - 0x54992946, 0x6af1, 0x4e49, \ - { 0x98, 0xec, 0x58, 0xb5, 0x58, 0xb7, 0x29, 0x1e } \ -} -struct IAdditionsFacility_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetClassType)(IAdditionsFacility *pThis, PRUi= nt32 *classType); - - nsresult PR_COM_METHOD (*GetLastUpdated)(IAdditionsFacility *pThis, PR= Int64 *lastUpdated); - - nsresult PR_COM_METHOD (*GetName)(IAdditionsFacility *pThis, PRUnichar= * *name); - - nsresult PR_COM_METHOD (*GetStatus)(IAdditionsFacility *pThis, PRUint3= 2 *status); - - nsresult PR_COM_METHOD (*GetType)(IAdditionsFacility *pThis, PRUint32 = *type); - -}; - -struct IAdditionsFacility -{ - struct IAdditionsFacility_vtbl *vtbl; -}; -/* End of struct IAdditionsFacility Declaration */ - - -/* Start of struct IGuestDirEntry Declaration */ -# define IGUESTDIRENTRY_IID_STR "20a66efc-c2f6-4438-826f-38454c04369e" -# define IGUESTDIRENTRY_IID { \ - 0x20a66efc, 0xc2f6, 0x4438, \ - { 0x82, 0x6f, 0x38, 0x45, 0x4c, 0x04, 0x36, 0x9e } \ -} -struct IGuestDirEntry_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetNodeId)(IGuestDirEntry *pThis, PRInt64 *no= deId); - - nsresult PR_COM_METHOD (*GetName)(IGuestDirEntry *pThis, PRUnichar * *= name); - - nsresult PR_COM_METHOD (*GetType)(IGuestDirEntry *pThis, PRUint32 *typ= e); - -}; - -struct IGuestDirEntry -{ - struct IGuestDirEntry_vtbl *vtbl; -}; -/* End of struct IGuestDirEntry Declaration */ - - -/* Start of struct IGuest Declaration */ -# define IGUEST_IID_STR "ed109b6e-0578-4b17-8ace-52646789f1a0" -# define IGUEST_IID { \ - 0xed109b6e, 0x0578, 0x4b17, \ - { 0x8a, 0xce, 0x52, 0x64, 0x67, 0x89, 0xf1, 0xa0 } \ -} -struct IGuest_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetOSTypeId)(IGuest *pThis, PRUnichar * *OSTy= peId); - - nsresult PR_COM_METHOD (*GetAdditionsRunLevel)(IGuest *pThis, PRUint32= *additionsRunLevel); - - nsresult PR_COM_METHOD (*GetAdditionsVersion)(IGuest *pThis, PRUnichar= * *additionsVersion); - - nsresult PR_COM_METHOD (*GetFacilities)(IGuest *pThis, PRUint32 *facil= itiesSize, IAdditionsFacility * **facilities); - - nsresult PR_COM_METHOD (*GetMemoryBalloonSize)(IGuest *pThis, PRUint32= *memoryBalloonSize); - nsresult PR_COM_METHOD (*SetMemoryBalloonSize)(IGuest *pThis, PRUint32= memoryBalloonSize); - - nsresult PR_COM_METHOD (*GetStatisticsUpdateInterval)(IGuest *pThis, P= RUint32 *statisticsUpdateInterval); - nsresult PR_COM_METHOD (*SetStatisticsUpdateInterval)(IGuest *pThis, P= RUint32 statisticsUpdateInterval); - - nsresult PR_COM_METHOD (*InternalGetStatistics)( - IGuest *pThis, - PRUint32 * cpuUser, - PRUint32 * cpuKernel, - PRUint32 * cpuIdle, - PRUint32 * memTotal, - PRUint32 * memFree, - PRUint32 * memBalloon, - PRUint32 * memShared, - PRUint32 * memCache, - PRUint32 * pagedTotal, - PRUint32 * memAllocTotal, - PRUint32 * memFreeTotal, - PRUint32 * memBalloonTotal, - PRUint32 * memSharedTotal - ); - - nsresult PR_COM_METHOD (*GetFacilityStatus)( - IGuest *pThis, - PRUint32 facility, - PRInt64 * timestamp, - PRUint32 * status - ); - - nsresult PR_COM_METHOD (*GetAdditionsStatus)( - IGuest *pThis, - PRUint32 level, - PRBool * active - ); - - nsresult PR_COM_METHOD (*SetCredentials)( - IGuest *pThis, - PRUnichar * userName, - PRUnichar * password, - PRUnichar * domain, - PRBool allowInteractiveLogon - ); - - nsresult PR_COM_METHOD (*ExecuteProcess)( - IGuest *pThis, - PRUnichar * execName, - PRUint32 flags, - PRUint32 argumentsSize, - PRUnichar ** arguments, - PRUint32 environmentSize, - PRUnichar ** environment, - PRUnichar * userName, - PRUnichar * password, - PRUint32 timeoutMS, - PRUint32 * pid, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*GetProcessOutput)( - IGuest *pThis, - PRUint32 pid, - PRUint32 flags, - PRUint32 timeoutMS, - PRInt64 size, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*GetProcessStatus)( - IGuest *pThis, - PRUint32 pid, - PRUint32 * exitcode, - PRUint32 * flags, - PRUint32 * reason - ); - - nsresult PR_COM_METHOD (*CopyFromGuest)( - IGuest *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUnichar * userName, - PRUnichar * password, - PRUint32 flags, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CopyToGuest)( - IGuest *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUnichar * userName, - PRUnichar * password, - PRUint32 flags, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DirectoryClose)( - IGuest *pThis, - PRUint32 handle - ); - - nsresult PR_COM_METHOD (*DirectoryCreate)( - IGuest *pThis, - PRUnichar * directory, - PRUnichar * userName, - PRUnichar * password, - PRUint32 mode, - PRUint32 flags - ); - - nsresult PR_COM_METHOD (*DirectoryOpen)( - IGuest *pThis, - PRUnichar * directory, - PRUnichar * filter, - PRUint32 flags, - PRUnichar * userName, - PRUnichar * password, - PRUint32 * handle - ); - - nsresult PR_COM_METHOD (*DirectoryRead)( - IGuest *pThis, - PRUint32 handle, - IGuestDirEntry * * entry - ); - - nsresult PR_COM_METHOD (*FileExists)( - IGuest *pThis, - PRUnichar * file, - PRUnichar * userName, - PRUnichar * password, - PRBool * exists - ); - - nsresult PR_COM_METHOD (*FileQuerySize)( - IGuest *pThis, - PRUnichar * file, - PRUnichar * userName, - PRUnichar * password, - PRInt64 * size - ); - - nsresult PR_COM_METHOD (*SetProcessInput)( - IGuest *pThis, - PRUint32 pid, - PRUint32 flags, - PRUint32 timeoutMS, - PRUint32 dataSize, - PRUint8* data, - PRUint32 * written - ); - - nsresult PR_COM_METHOD (*UpdateGuestAdditions)( - IGuest *pThis, - PRUnichar * source, - PRUint32 flags, - IProgress * * progress - ); - -}; - -struct IGuest -{ - struct IGuest_vtbl *vtbl; -}; -/* End of struct IGuest Declaration */ - - -/* Start of struct IProgress Declaration */ -# define IPROGRESS_IID_STR "c20238e4-3221-4d3f-8891-81ce92d9f913" -# define IPROGRESS_IID { \ - 0xc20238e4, 0x3221, 0x4d3f, \ - { 0x88, 0x91, 0x81, 0xce, 0x92, 0xd9, 0xf9, 0x13 } \ -} -struct IProgress_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IProgress *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetDescription)(IProgress *pThis, PRUnichar *= *description); - - nsresult PR_COM_METHOD (*GetInitiator)(IProgress *pThis, nsISupports *= *initiator); - - nsresult PR_COM_METHOD (*GetCancelable)(IProgress *pThis, PRBool *canc= elable); - - nsresult PR_COM_METHOD (*GetPercent)(IProgress *pThis, PRUint32 *perce= nt); - - nsresult PR_COM_METHOD (*GetTimeRemaining)(IProgress *pThis, PRInt32 *= timeRemaining); - - nsresult PR_COM_METHOD (*GetCompleted)(IProgress *pThis, PRBool *compl= eted); - - nsresult PR_COM_METHOD (*GetCanceled)(IProgress *pThis, PRBool *cancel= ed); - - nsresult PR_COM_METHOD (*GetResultCode)(IProgress *pThis, PRInt32 *res= ultCode); - - nsresult PR_COM_METHOD (*GetErrorInfo)(IProgress *pThis, IVirtualBoxEr= rorInfo * *errorInfo); - - nsresult PR_COM_METHOD (*GetOperationCount)(IProgress *pThis, PRUint32= *operationCount); - - nsresult PR_COM_METHOD (*GetOperation)(IProgress *pThis, PRUint32 *ope= ration); - - nsresult PR_COM_METHOD (*GetOperationDescription)(IProgress *pThis, PR= Unichar * *operationDescription); - - nsresult PR_COM_METHOD (*GetOperationPercent)(IProgress *pThis, PRUint= 32 *operationPercent); - - nsresult PR_COM_METHOD (*GetOperationWeight)(IProgress *pThis, PRUint3= 2 *operationWeight); - - nsresult PR_COM_METHOD (*GetTimeout)(IProgress *pThis, PRUint32 *timeo= ut); - nsresult PR_COM_METHOD (*SetTimeout)(IProgress *pThis, PRUint32 timeou= t); - - nsresult PR_COM_METHOD (*SetCurrentOperationProgress)( - IProgress *pThis, - PRUint32 percent - ); - - nsresult PR_COM_METHOD (*SetNextOperation)( - IProgress *pThis, - PRUnichar * nextOperationDescription, - PRUint32 nextOperationsWeight - ); - - nsresult PR_COM_METHOD (*WaitForCompletion)( - IProgress *pThis, - PRInt32 timeout - ); - - nsresult PR_COM_METHOD (*WaitForOperationCompletion)( - IProgress *pThis, - PRUint32 operation, - PRInt32 timeout - ); - - nsresult PR_COM_METHOD (*WaitForAsyncProgressCompletion)( - IProgress *pThis, - IProgress * pProgressAsync - ); - - nsresult PR_COM_METHOD (*Cancel)(IProgress *pThis ); - -}; - -struct IProgress -{ - struct IProgress_vtbl *vtbl; -}; -/* End of struct IProgress Declaration */ - - -/* Start of struct ISnapshot Declaration */ -# define ISNAPSHOT_IID_STR "0472823b-c6e7-472a-8e9f-d732e86b8463" -# define ISNAPSHOT_IID { \ - 0x0472823b, 0xc6e7, 0x472a, \ - { 0x8e, 0x9f, 0xd7, 0x32, 0xe8, 0x6b, 0x84, 0x63 } \ -} -struct ISnapshot_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(ISnapshot *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetName)(ISnapshot *pThis, PRUnichar * *name); - nsresult PR_COM_METHOD (*SetName)(ISnapshot *pThis, PRUnichar * name); - - nsresult PR_COM_METHOD (*GetDescription)(ISnapshot *pThis, PRUnichar *= *description); - nsresult PR_COM_METHOD (*SetDescription)(ISnapshot *pThis, PRUnichar *= description); - - nsresult PR_COM_METHOD (*GetTimeStamp)(ISnapshot *pThis, PRInt64 *time= Stamp); - - nsresult PR_COM_METHOD (*GetOnline)(ISnapshot *pThis, PRBool *online); - - nsresult PR_COM_METHOD (*GetMachine)(ISnapshot *pThis, IMachine * *mac= hine); - - nsresult PR_COM_METHOD (*GetParent)(ISnapshot *pThis, ISnapshot * *par= ent); - - nsresult PR_COM_METHOD (*GetChildren)(ISnapshot *pThis, PRUint32 *chil= drenSize, ISnapshot * **children); - - nsresult PR_COM_METHOD (*GetChildrenCount)( - ISnapshot *pThis, - PRUint32 * childrenCount - ); - -}; - -struct ISnapshot -{ - struct ISnapshot_vtbl *vtbl; -}; -/* End of struct ISnapshot Declaration */ - - -/* Start of struct IMediumAttachment Declaration */ -# define IMEDIUMATTACHMENT_IID_STR "b5dfbb8c-7498-48c3-bf10-78fc60f064e1" -# define IMEDIUMATTACHMENT_IID { \ - 0xb5dfbb8c, 0x7498, 0x48c3, \ - { 0xbf, 0x10, 0x78, 0xfc, 0x60, 0xf0, 0x64, 0xe1 } \ -} -struct IMediumAttachment_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMedium)(IMediumAttachment *pThis, IMedium = * *medium); - - nsresult PR_COM_METHOD (*GetController)(IMediumAttachment *pThis, PRUn= ichar * *controller); - - nsresult PR_COM_METHOD (*GetPort)(IMediumAttachment *pThis, PRInt32 *p= ort); - - nsresult PR_COM_METHOD (*GetDevice)(IMediumAttachment *pThis, PRInt32 = *device); - - nsresult PR_COM_METHOD (*GetType)(IMediumAttachment *pThis, PRUint32 *= type); - - nsresult PR_COM_METHOD (*GetPassthrough)(IMediumAttachment *pThis, PRB= ool *passthrough); - - nsresult PR_COM_METHOD (*GetTemporaryEject)(IMediumAttachment *pThis, = PRBool *temporaryEject); - - nsresult PR_COM_METHOD (*GetIsEjected)(IMediumAttachment *pThis, PRBoo= l *isEjected); - - nsresult PR_COM_METHOD (*GetNonRotational)(IMediumAttachment *pThis, P= RBool *nonRotational); - - nsresult PR_COM_METHOD (*GetBandwidthGroup)(IMediumAttachment *pThis, = IBandwidthGroup * *bandwidthGroup); - -}; - -struct IMediumAttachment -{ - struct IMediumAttachment_vtbl *vtbl; -}; -/* End of struct IMediumAttachment Declaration */ - - -/* Start of struct IMedium Declaration */ -# define IMEDIUM_IID_STR "53f9cc0c-e0fd-40a5-a404-a7a5272082cd" -# define IMEDIUM_IID { \ - 0x53f9cc0c, 0xe0fd, 0x40a5, \ - { 0xa4, 0x04, 0xa7, 0xa5, 0x27, 0x20, 0x82, 0xcd } \ -} -struct IMedium_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IMedium *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetDescription)(IMedium *pThis, PRUnichar * *= description); - nsresult PR_COM_METHOD (*SetDescription)(IMedium *pThis, PRUnichar * d= escription); - - nsresult PR_COM_METHOD (*GetState)(IMedium *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetVariant)(IMedium *pThis, PRUint32 *variant= ); - - nsresult PR_COM_METHOD (*GetLocation)(IMedium *pThis, PRUnichar * *loc= ation); - nsresult PR_COM_METHOD (*SetLocation)(IMedium *pThis, PRUnichar * loca= tion); - - nsresult PR_COM_METHOD (*GetName)(IMedium *pThis, PRUnichar * *name); - - nsresult PR_COM_METHOD (*GetDeviceType)(IMedium *pThis, PRUint32 *devi= ceType); - - nsresult PR_COM_METHOD (*GetHostDrive)(IMedium *pThis, PRBool *hostDri= ve); - - nsresult PR_COM_METHOD (*GetSize)(IMedium *pThis, PRInt64 *size); - - nsresult PR_COM_METHOD (*GetFormat)(IMedium *pThis, PRUnichar * *forma= t); - - nsresult PR_COM_METHOD (*GetMediumFormat)(IMedium *pThis, IMediumForma= t * *mediumFormat); - - nsresult PR_COM_METHOD (*GetType)(IMedium *pThis, PRUint32 *type); - nsresult PR_COM_METHOD (*SetType)(IMedium *pThis, PRUint32 type); - - nsresult PR_COM_METHOD (*GetAllowedTypes)(IMedium *pThis, PRUint32 *al= lowedTypesSize, PRUint32 **allowedTypes); - - nsresult PR_COM_METHOD (*GetParent)(IMedium *pThis, IMedium * *parent); - - nsresult PR_COM_METHOD (*GetChildren)(IMedium *pThis, PRUint32 *childr= enSize, IMedium * **children); - - nsresult PR_COM_METHOD (*GetBase)(IMedium *pThis, IMedium * *base); - - nsresult PR_COM_METHOD (*GetReadOnly)(IMedium *pThis, PRBool *readOnly= ); - - nsresult PR_COM_METHOD (*GetLogicalSize)(IMedium *pThis, PRInt64 *logi= calSize); - - nsresult PR_COM_METHOD (*GetAutoReset)(IMedium *pThis, PRBool *autoRes= et); - nsresult PR_COM_METHOD (*SetAutoReset)(IMedium *pThis, PRBool autoRese= t); - - nsresult PR_COM_METHOD (*GetLastAccessError)(IMedium *pThis, PRUnichar= * *lastAccessError); - - nsresult PR_COM_METHOD (*GetMachineIds)(IMedium *pThis, PRUint32 *mach= ineIdsSize, PRUnichar * **machineIds); - - nsresult PR_COM_METHOD (*SetIDs)( - IMedium *pThis, - PRBool setImageId, - PRUnichar * imageId, - PRBool setParentId, - PRUnichar * parentId - ); - - nsresult PR_COM_METHOD (*RefreshState)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*GetSnapshotIds)( - IMedium *pThis, - PRUnichar * machineId, - PRUint32 *snapshotIdsSize, - PRUnichar *** snapshotIds - ); - - nsresult PR_COM_METHOD (*LockRead)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*UnlockRead)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*LockWrite)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*UnlockWrite)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*Close)(IMedium *pThis ); - - nsresult PR_COM_METHOD (*GetProperty)( - IMedium *pThis, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetProperty)( - IMedium *pThis, - PRUnichar * name, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetProperties)( - IMedium *pThis, - PRUnichar * names, - PRUint32 *returnNamesSize, - PRUnichar *** returnNames, - PRUint32 *returnValuesSize, - PRUnichar *** returnValues - ); - - nsresult PR_COM_METHOD (*SetProperties)( - IMedium *pThis, - PRUint32 namesSize, - PRUnichar ** names, - PRUint32 valuesSize, - PRUnichar ** values - ); - - nsresult PR_COM_METHOD (*CreateBaseStorage)( - IMedium *pThis, - PRInt64 logicalSize, - PRUint32 variant, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DeleteStorage)( - IMedium *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CreateDiffStorage)( - IMedium *pThis, - IMedium * target, - PRUint32 variant, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*MergeTo)( - IMedium *pThis, - IMedium * target, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CloneTo)( - IMedium *pThis, - IMedium * target, - PRUint32 variant, - IMedium * parent, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Compact)( - IMedium *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Resize)( - IMedium *pThis, - PRInt64 logicalSize, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Reset)( - IMedium *pThis, - IProgress * * progress - ); - -}; - -struct IMedium -{ - struct IMedium_vtbl *vtbl; -}; -/* End of struct IMedium Declaration */ - - -/* Start of struct IMediumFormat Declaration */ -# define IMEDIUMFORMAT_IID_STR "9bd5b655-ea47-4637-99f3-aad0948be35b" -# define IMEDIUMFORMAT_IID { \ - 0x9bd5b655, 0xea47, 0x4637, \ - { 0x99, 0xf3, 0xaa, 0xd0, 0x94, 0x8b, 0xe3, 0x5b } \ -} -struct IMediumFormat_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IMediumFormat *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetName)(IMediumFormat *pThis, PRUnichar * *n= ame); - - nsresult PR_COM_METHOD (*GetCapabilities)(IMediumFormat *pThis, PRUint= 32 *capabilities); - - nsresult PR_COM_METHOD (*DescribeFileExtensions)( - IMediumFormat *pThis, - PRUint32 *extensionsSize, - PRUnichar *** extensions, - PRUint32 *typeSize, - PRUint32* type - ); - - nsresult PR_COM_METHOD (*DescribeProperties)( - IMediumFormat *pThis, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *descriptionSize, - PRUnichar *** description, - PRUint32 *typesSize, - PRUint32* types, - PRUint32 *flagsSize, - PRUint32* flags, - PRUint32 *defaultsSize, - PRUnichar *** defaults - ); - -}; - -struct IMediumFormat -{ - struct IMediumFormat_vtbl *vtbl; -}; -/* End of struct IMediumFormat Declaration */ - - -/* Start of struct IKeyboard Declaration */ -# define IKEYBOARD_IID_STR "f6916ec5-a881-4237-898f-7de58cf88672" -# define IKEYBOARD_IID { \ - 0xf6916ec5, 0xa881, 0x4237, \ - { 0x89, 0x8f, 0x7d, 0xe5, 0x8c, 0xf8, 0x86, 0x72 } \ -} -struct IKeyboard_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEventSource)(IKeyboard *pThis, IEventSourc= e * *eventSource); - - nsresult PR_COM_METHOD (*PutScancode)( - IKeyboard *pThis, - PRInt32 scancode - ); - - nsresult PR_COM_METHOD (*PutScancodes)( - IKeyboard *pThis, - PRUint32 scancodesSize, - PRInt32* scancodes, - PRUint32 * codesStored - ); - - nsresult PR_COM_METHOD (*PutCAD)(IKeyboard *pThis ); - -}; - -struct IKeyboard -{ - struct IKeyboard_vtbl *vtbl; -}; -/* End of struct IKeyboard Declaration */ - - -/* Start of struct IMouse Declaration */ -# define IMOUSE_IID_STR "05044a52-7811-4f00-ae3a-0ab7ff707b10" -# define IMOUSE_IID { \ - 0x05044a52, 0x7811, 0x4f00, \ - { 0xae, 0x3a, 0x0a, 0xb7, 0xff, 0x70, 0x7b, 0x10 } \ -} -struct IMouse_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetAbsoluteSupported)(IMouse *pThis, PRBool *= absoluteSupported); - - nsresult PR_COM_METHOD (*GetRelativeSupported)(IMouse *pThis, PRBool *= relativeSupported); - - nsresult PR_COM_METHOD (*GetNeedsHostCursor)(IMouse *pThis, PRBool *ne= edsHostCursor); - - nsresult PR_COM_METHOD (*GetEventSource)(IMouse *pThis, IEventSource *= *eventSource); - - nsresult PR_COM_METHOD (*PutMouseEvent)( - IMouse *pThis, - PRInt32 dx, - PRInt32 dy, - PRInt32 dz, - PRInt32 dw, - PRInt32 buttonState - ); - - nsresult PR_COM_METHOD (*PutMouseEventAbsolute)( - IMouse *pThis, - PRInt32 x, - PRInt32 y, - PRInt32 dz, - PRInt32 dw, - PRInt32 buttonState - ); - -}; - -struct IMouse -{ - struct IMouse_vtbl *vtbl; -}; -/* End of struct IMouse Declaration */ - - -/* Start of struct IFramebuffer Declaration */ -# define IFRAMEBUFFER_IID_STR "b7ed347a-5765-40a0-ae1c-f543eb4ddeaf" -# define IFRAMEBUFFER_IID { \ - 0xb7ed347a, 0x5765, 0x40a0, \ - { 0xae, 0x1c, 0xf5, 0x43, 0xeb, 0x4d, 0xde, 0xaf } \ -} -struct IFramebuffer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetAddress)(IFramebuffer *pThis, PRUint8 * *a= ddress); - - nsresult PR_COM_METHOD (*GetWidth)(IFramebuffer *pThis, PRUint32 *widt= h); - - nsresult PR_COM_METHOD (*GetHeight)(IFramebuffer *pThis, PRUint32 *hei= ght); - - nsresult PR_COM_METHOD (*GetBitsPerPixel)(IFramebuffer *pThis, PRUint3= 2 *bitsPerPixel); - - nsresult PR_COM_METHOD (*GetBytesPerLine)(IFramebuffer *pThis, PRUint3= 2 *bytesPerLine); - - nsresult PR_COM_METHOD (*GetPixelFormat)(IFramebuffer *pThis, PRUint32= *pixelFormat); - - nsresult PR_COM_METHOD (*GetUsesGuestVRAM)(IFramebuffer *pThis, PRBool= *usesGuestVRAM); - - nsresult PR_COM_METHOD (*GetHeightReduction)(IFramebuffer *pThis, PRUi= nt32 *heightReduction); - - nsresult PR_COM_METHOD (*GetOverlay)(IFramebuffer *pThis, IFramebuffer= Overlay * *overlay); - - nsresult PR_COM_METHOD (*GetWinId)(IFramebuffer *pThis, PRInt64 *winId= ); - - nsresult PR_COM_METHOD (*Lock)(IFramebuffer *pThis ); - - nsresult PR_COM_METHOD (*Unlock)(IFramebuffer *pThis ); - - nsresult PR_COM_METHOD (*NotifyUpdate)( - IFramebuffer *pThis, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - - nsresult PR_COM_METHOD (*RequestResize)( - IFramebuffer *pThis, - PRUint32 screenId, - PRUint32 pixelFormat, - PRUint8 * VRAM, - PRUint32 bitsPerPixel, - PRUint32 bytesPerLine, - PRUint32 width, - PRUint32 height, - PRBool * finished - ); - - nsresult PR_COM_METHOD (*VideoModeSupported)( - IFramebuffer *pThis, - PRUint32 width, - PRUint32 height, - PRUint32 bpp, - PRBool * supported - ); - - nsresult PR_COM_METHOD (*GetVisibleRegion)( - IFramebuffer *pThis, - PRUint8 * rectangles, - PRUint32 count, - PRUint32 * countCopied - ); - - nsresult PR_COM_METHOD (*SetVisibleRegion)( - IFramebuffer *pThis, - PRUint8 * rectangles, - PRUint32 count - ); - - nsresult PR_COM_METHOD (*ProcessVHWACommand)( - IFramebuffer *pThis, - PRUint8 * command - ); - -}; - -struct IFramebuffer -{ - struct IFramebuffer_vtbl *vtbl; -}; -/* End of struct IFramebuffer Declaration */ - - -/* Start of struct IFramebufferOverlay Declaration */ -# define IFRAMEBUFFEROVERLAY_IID_STR "0bcc1c7e-e415-47d2-bfdb-e4c705fb0f4= 7" -# define IFRAMEBUFFEROVERLAY_IID { \ - 0x0bcc1c7e, 0xe415, 0x47d2, \ - { 0xbf, 0xdb, 0xe4, 0xc7, 0x05, 0xfb, 0x0f, 0x47 } \ -} -struct IFramebufferOverlay_vtbl -{ - struct IFramebuffer_vtbl iframebuffer; - - nsresult PR_COM_METHOD (*GetX)(IFramebufferOverlay *pThis, PRUint32 *x= ); - - nsresult PR_COM_METHOD (*GetY)(IFramebufferOverlay *pThis, PRUint32 *y= ); - - nsresult PR_COM_METHOD (*GetVisible)(IFramebufferOverlay *pThis, PRBoo= l *visible); - nsresult PR_COM_METHOD (*SetVisible)(IFramebufferOverlay *pThis, PRBoo= l visible); - - nsresult PR_COM_METHOD (*GetAlpha)(IFramebufferOverlay *pThis, PRUint3= 2 *alpha); - nsresult PR_COM_METHOD (*SetAlpha)(IFramebufferOverlay *pThis, PRUint3= 2 alpha); - - nsresult PR_COM_METHOD (*Move)( - IFramebufferOverlay *pThis, - PRUint32 x, - PRUint32 y - ); - -}; - -struct IFramebufferOverlay -{ - struct IFramebufferOverlay_vtbl *vtbl; -}; -/* End of struct IFramebufferOverlay Declaration */ - - -/* Start of struct IDisplay Declaration */ -# define IDISPLAY_IID_STR "09EED313-CD56-4D06-BD56-FAC0F716B5DD" -# define IDISPLAY_IID { \ - 0x09EED313, 0xCD56, 0x4D06, \ - { 0xBD, 0x56, 0xFA, 0xC0, 0xF7, 0x16, 0xB5, 0xDD } \ -} -struct IDisplay_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetScreenResolution)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 * bitsPerPixel - ); - - nsresult PR_COM_METHOD (*SetFramebuffer)( - IDisplay *pThis, - PRUint32 screenId, - IFramebuffer * framebuffer - ); - - nsresult PR_COM_METHOD (*GetFramebuffer)( - IDisplay *pThis, - PRUint32 screenId, - IFramebuffer * * framebuffer, - PRInt32 * xOrigin, - PRInt32 * yOrigin - ); - - nsresult PR_COM_METHOD (*SetVideoModeHint)( - IDisplay *pThis, - PRUint32 width, - PRUint32 height, - PRUint32 bitsPerPixel, - PRUint32 display - ); - - nsresult PR_COM_METHOD (*SetSeamlessMode)( - IDisplay *pThis, - PRBool enabled - ); - - nsresult PR_COM_METHOD (*TakeScreenShot)( - IDisplay *pThis, - PRUint32 screenId, - PRUint8 * address, - PRUint32 width, - PRUint32 height - ); - - nsresult PR_COM_METHOD (*TakeScreenShotToArray)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 width, - PRUint32 height, - PRUint32 *screenDataSize, - PRUint8** screenData - ); - - nsresult PR_COM_METHOD (*TakeScreenShotPNGToArray)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 width, - PRUint32 height, - PRUint32 *screenDataSize, - PRUint8** screenData - ); - - nsresult PR_COM_METHOD (*DrawToScreen)( - IDisplay *pThis, - PRUint32 screenId, - PRUint8 * address, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - - nsresult PR_COM_METHOD (*InvalidateAndUpdate)(IDisplay *pThis ); - - nsresult PR_COM_METHOD (*ResizeCompleted)( - IDisplay *pThis, - PRUint32 screenId - ); - - nsresult PR_COM_METHOD (*CompleteVHWACommand)( - IDisplay *pThis, - PRUint8 * command - ); - -}; - -struct IDisplay -{ - struct IDisplay_vtbl *vtbl; -}; -/* End of struct IDisplay Declaration */ - - -/* Start of struct INetworkAdapter Declaration */ -# define INETWORKADAPTER_IID_STR "8b2e705c-0547-4008-b7bc-788757346092" -# define INETWORKADAPTER_IID { \ - 0x8b2e705c, 0x0547, 0x4008, \ - { 0xb7, 0xbc, 0x78, 0x87, 0x57, 0x34, 0x60, 0x92 } \ -} -struct INetworkAdapter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetAdapterType)(INetworkAdapter *pThis, PRUin= t32 *adapterType); - nsresult PR_COM_METHOD (*SetAdapterType)(INetworkAdapter *pThis, PRUin= t32 adapterType); - - nsresult PR_COM_METHOD (*GetSlot)(INetworkAdapter *pThis, PRUint32 *sl= ot); - - nsresult PR_COM_METHOD (*GetEnabled)(INetworkAdapter *pThis, PRBool *e= nabled); - nsresult PR_COM_METHOD (*SetEnabled)(INetworkAdapter *pThis, PRBool en= abled); - - nsresult PR_COM_METHOD (*GetMACAddress)(INetworkAdapter *pThis, PRUnic= har * *MACAddress); - nsresult PR_COM_METHOD (*SetMACAddress)(INetworkAdapter *pThis, PRUnic= har * MACAddress); - - nsresult PR_COM_METHOD (*GetAttachmentType)(INetworkAdapter *pThis, PR= Uint32 *attachmentType); - nsresult PR_COM_METHOD (*SetAttachmentType)(INetworkAdapter *pThis, PR= Uint32 attachmentType); - - nsresult PR_COM_METHOD (*GetBridgedInterface)(INetworkAdapter *pThis, = PRUnichar * *bridgedInterface); - nsresult PR_COM_METHOD (*SetBridgedInterface)(INetworkAdapter *pThis, = PRUnichar * bridgedInterface); - - nsresult PR_COM_METHOD (*GetHostOnlyInterface)(INetworkAdapter *pThis,= PRUnichar * *hostOnlyInterface); - nsresult PR_COM_METHOD (*SetHostOnlyInterface)(INetworkAdapter *pThis,= PRUnichar * hostOnlyInterface); - - nsresult PR_COM_METHOD (*GetInternalNetwork)(INetworkAdapter *pThis, P= RUnichar * *internalNetwork); - nsresult PR_COM_METHOD (*SetInternalNetwork)(INetworkAdapter *pThis, P= RUnichar * internalNetwork); - - nsresult PR_COM_METHOD (*GetNATNetwork)(INetworkAdapter *pThis, PRUnic= har * *NATNetwork); - nsresult PR_COM_METHOD (*SetNATNetwork)(INetworkAdapter *pThis, PRUnic= har * NATNetwork); - - nsresult PR_COM_METHOD (*GetGenericDriver)(INetworkAdapter *pThis, PRU= nichar * *genericDriver); - nsresult PR_COM_METHOD (*SetGenericDriver)(INetworkAdapter *pThis, PRU= nichar * genericDriver); - - nsresult PR_COM_METHOD (*GetCableConnected)(INetworkAdapter *pThis, PR= Bool *cableConnected); - nsresult PR_COM_METHOD (*SetCableConnected)(INetworkAdapter *pThis, PR= Bool cableConnected); - - nsresult PR_COM_METHOD (*GetLineSpeed)(INetworkAdapter *pThis, PRUint3= 2 *lineSpeed); - nsresult PR_COM_METHOD (*SetLineSpeed)(INetworkAdapter *pThis, PRUint3= 2 lineSpeed); - - nsresult PR_COM_METHOD (*GetPromiscModePolicy)(INetworkAdapter *pThis,= PRUint32 *promiscModePolicy); - nsresult PR_COM_METHOD (*SetPromiscModePolicy)(INetworkAdapter *pThis,= PRUint32 promiscModePolicy); - - nsresult PR_COM_METHOD (*GetTraceEnabled)(INetworkAdapter *pThis, PRBo= ol *traceEnabled); - nsresult PR_COM_METHOD (*SetTraceEnabled)(INetworkAdapter *pThis, PRBo= ol traceEnabled); - - nsresult PR_COM_METHOD (*GetTraceFile)(INetworkAdapter *pThis, PRUnich= ar * *traceFile); - nsresult PR_COM_METHOD (*SetTraceFile)(INetworkAdapter *pThis, PRUnich= ar * traceFile); - - nsresult PR_COM_METHOD (*GetNatDriver)(INetworkAdapter *pThis, INATEng= ine * *natDriver); - - nsresult PR_COM_METHOD (*GetBootPriority)(INetworkAdapter *pThis, PRUi= nt32 *bootPriority); - nsresult PR_COM_METHOD (*SetBootPriority)(INetworkAdapter *pThis, PRUi= nt32 bootPriority); - - nsresult PR_COM_METHOD (*GetBandwidthGroup)(INetworkAdapter *pThis, IB= andwidthGroup * *bandwidthGroup); - nsresult PR_COM_METHOD (*SetBandwidthGroup)(INetworkAdapter *pThis, IB= andwidthGroup * bandwidthGroup); - - nsresult PR_COM_METHOD (*GetProperty)( - INetworkAdapter *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetProperty)( - INetworkAdapter *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetProperties)( - INetworkAdapter *pThis, - PRUnichar * names, - PRUint32 *returnNamesSize, - PRUnichar *** returnNames, - PRUint32 *returnValuesSize, - PRUnichar *** returnValues - ); - -}; - -struct INetworkAdapter -{ - struct INetworkAdapter_vtbl *vtbl; -}; -/* End of struct INetworkAdapter Declaration */ - - -/* Start of struct ISerialPort Declaration */ -# define ISERIALPORT_IID_STR "937f6970-5103-4745-b78e-d28dcf1479a8" -# define ISERIALPORT_IID { \ - 0x937f6970, 0x5103, 0x4745, \ - { 0xb7, 0x8e, 0xd2, 0x8d, 0xcf, 0x14, 0x79, 0xa8 } \ -} -struct ISerialPort_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetSlot)(ISerialPort *pThis, PRUint32 *slot); - - nsresult PR_COM_METHOD (*GetEnabled)(ISerialPort *pThis, PRBool *enabl= ed); - nsresult PR_COM_METHOD (*SetEnabled)(ISerialPort *pThis, PRBool enable= d); - - nsresult PR_COM_METHOD (*GetIOBase)(ISerialPort *pThis, PRUint32 *IOBa= se); - nsresult PR_COM_METHOD (*SetIOBase)(ISerialPort *pThis, PRUint32 IOBas= e); - - nsresult PR_COM_METHOD (*GetIRQ)(ISerialPort *pThis, PRUint32 *IRQ); - nsresult PR_COM_METHOD (*SetIRQ)(ISerialPort *pThis, PRUint32 IRQ); - - nsresult PR_COM_METHOD (*GetHostMode)(ISerialPort *pThis, PRUint32 *ho= stMode); - nsresult PR_COM_METHOD (*SetHostMode)(ISerialPort *pThis, PRUint32 hos= tMode); - - nsresult PR_COM_METHOD (*GetServer)(ISerialPort *pThis, PRBool *server= ); - nsresult PR_COM_METHOD (*SetServer)(ISerialPort *pThis, PRBool server); - - nsresult PR_COM_METHOD (*GetPath)(ISerialPort *pThis, PRUnichar * *pat= h); - nsresult PR_COM_METHOD (*SetPath)(ISerialPort *pThis, PRUnichar * path= ); - -}; - -struct ISerialPort -{ - struct ISerialPort_vtbl *vtbl; -}; -/* End of struct ISerialPort Declaration */ - - -/* Start of struct IParallelPort Declaration */ -# define IPARALLELPORT_IID_STR "0c925f06-dd10-4b77-8de8-294d738c3214" -# define IPARALLELPORT_IID { \ - 0x0c925f06, 0xdd10, 0x4b77, \ - { 0x8d, 0xe8, 0x29, 0x4d, 0x73, 0x8c, 0x32, 0x14 } \ -} -struct IParallelPort_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetSlot)(IParallelPort *pThis, PRUint32 *slot= ); - - nsresult PR_COM_METHOD (*GetEnabled)(IParallelPort *pThis, PRBool *ena= bled); - nsresult PR_COM_METHOD (*SetEnabled)(IParallelPort *pThis, PRBool enab= led); - - nsresult PR_COM_METHOD (*GetIOBase)(IParallelPort *pThis, PRUint32 *IO= Base); - nsresult PR_COM_METHOD (*SetIOBase)(IParallelPort *pThis, PRUint32 IOB= ase); - - nsresult PR_COM_METHOD (*GetIRQ)(IParallelPort *pThis, PRUint32 *IRQ); - nsresult PR_COM_METHOD (*SetIRQ)(IParallelPort *pThis, PRUint32 IRQ); - - nsresult PR_COM_METHOD (*GetPath)(IParallelPort *pThis, PRUnichar * *p= ath); - nsresult PR_COM_METHOD (*SetPath)(IParallelPort *pThis, PRUnichar * pa= th); - -}; - -struct IParallelPort -{ - struct IParallelPort_vtbl *vtbl; -}; -/* End of struct IParallelPort Declaration */ - - -/* Start of struct IMachineDebugger Declaration */ -# define IMACHINEDEBUGGER_IID_STR "1bfd2fa9-0d91-44d3-9515-368dcbb3eb4d" -# define IMACHINEDEBUGGER_IID { \ - 0x1bfd2fa9, 0x0d91, 0x44d3, \ - { 0x95, 0x15, 0x36, 0x8d, 0xcb, 0xb3, 0xeb, 0x4d } \ -} -struct IMachineDebugger_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetSinglestep)(IMachineDebugger *pThis, PRBoo= l *singlestep); - nsresult PR_COM_METHOD (*SetSinglestep)(IMachineDebugger *pThis, PRBoo= l singlestep); - - nsresult PR_COM_METHOD (*GetRecompileUser)(IMachineDebugger *pThis, PR= Bool *recompileUser); - nsresult PR_COM_METHOD (*SetRecompileUser)(IMachineDebugger *pThis, PR= Bool recompileUser); - - nsresult PR_COM_METHOD (*GetRecompileSupervisor)(IMachineDebugger *pTh= is, PRBool *recompileSupervisor); - nsresult PR_COM_METHOD (*SetRecompileSupervisor)(IMachineDebugger *pTh= is, PRBool recompileSupervisor); - - nsresult PR_COM_METHOD (*GetPATMEnabled)(IMachineDebugger *pThis, PRBo= ol *PATMEnabled); - nsresult PR_COM_METHOD (*SetPATMEnabled)(IMachineDebugger *pThis, PRBo= ol PATMEnabled); - - nsresult PR_COM_METHOD (*GetCSAMEnabled)(IMachineDebugger *pThis, PRBo= ol *CSAMEnabled); - nsresult PR_COM_METHOD (*SetCSAMEnabled)(IMachineDebugger *pThis, PRBo= ol CSAMEnabled); - - nsresult PR_COM_METHOD (*GetLogEnabled)(IMachineDebugger *pThis, PRBoo= l *logEnabled); - nsresult PR_COM_METHOD (*SetLogEnabled)(IMachineDebugger *pThis, PRBoo= l logEnabled); - - nsresult PR_COM_METHOD (*GetLogFlags)(IMachineDebugger *pThis, PRUnich= ar * *logFlags); - - nsresult PR_COM_METHOD (*GetLogGroups)(IMachineDebugger *pThis, PRUnic= har * *logGroups); - - nsresult PR_COM_METHOD (*GetLogDestinations)(IMachineDebugger *pThis, = PRUnichar * *logDestinations); - - nsresult PR_COM_METHOD (*GetHWVirtExEnabled)(IMachineDebugger *pThis, = PRBool *HWVirtExEnabled); - - nsresult PR_COM_METHOD (*GetHWVirtExNestedPagingEnabled)(IMachineDebug= ger *pThis, PRBool *HWVirtExNestedPagingEnabled); - - nsresult PR_COM_METHOD (*GetHWVirtExVPIDEnabled)(IMachineDebugger *pTh= is, PRBool *HWVirtExVPIDEnabled); - - nsresult PR_COM_METHOD (*GetOSName)(IMachineDebugger *pThis, PRUnichar= * *OSName); - - nsresult PR_COM_METHOD (*GetOSVersion)(IMachineDebugger *pThis, PRUnic= har * *OSVersion); - - nsresult PR_COM_METHOD (*GetPAEEnabled)(IMachineDebugger *pThis, PRBoo= l *PAEEnabled); - - nsresult PR_COM_METHOD (*GetVirtualTimeRate)(IMachineDebugger *pThis, = PRUint32 *virtualTimeRate); - nsresult PR_COM_METHOD (*SetVirtualTimeRate)(IMachineDebugger *pThis, = PRUint32 virtualTimeRate); - - nsresult PR_COM_METHOD (*GetVM)(IMachineDebugger *pThis, PRInt64 *VM); - - nsresult PR_COM_METHOD (*DumpGuestCore)( - IMachineDebugger *pThis, - PRUnichar * filename, - PRUnichar * compression - ); - - nsresult PR_COM_METHOD (*DumpHostProcessCore)( - IMachineDebugger *pThis, - PRUnichar * filename, - PRUnichar * compression - ); - - nsresult PR_COM_METHOD (*Info)( - IMachineDebugger *pThis, - PRUnichar * name, - PRUnichar * args, - PRUnichar * * info - ); - - nsresult PR_COM_METHOD (*InjectNMI)(IMachineDebugger *pThis ); - - nsresult PR_COM_METHOD (*ModifyLogGroups)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult PR_COM_METHOD (*ModifyLogFlags)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult PR_COM_METHOD (*ModifyLogDestinations)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult PR_COM_METHOD (*ReadPhysicalMemory)( - IMachineDebugger *pThis, - PRInt64 address, - PRUint32 size, - PRUint32 *bytesSize, - PRUint8** bytes - ); - - nsresult PR_COM_METHOD (*WritePhysicalMemory)( - IMachineDebugger *pThis, - PRInt64 address, - PRUint32 size, - PRUint32 bytesSize, - PRUint8* bytes - ); - - nsresult PR_COM_METHOD (*ReadVirtualMemory)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRInt64 address, - PRUint32 size, - PRUint32 *bytesSize, - PRUint8** bytes - ); - - nsresult PR_COM_METHOD (*WriteVirtualMemory)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRInt64 address, - PRUint32 size, - PRUint32 bytesSize, - PRUint8* bytes - ); - - nsresult PR_COM_METHOD (*DetectOS)( - IMachineDebugger *pThis, - PRUnichar * * os - ); - - nsresult PR_COM_METHOD (*GetRegister)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*GetRegisters)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *valuesSize, - PRUnichar *** values - ); - - nsresult PR_COM_METHOD (*SetRegister)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * name, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*SetRegisters)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUint32 namesSize, - PRUnichar ** names, - PRUint32 valuesSize, - PRUnichar ** values - ); - - nsresult PR_COM_METHOD (*DumpGuestStack)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * * stack - ); - - nsresult PR_COM_METHOD (*ResetStats)( - IMachineDebugger *pThis, - PRUnichar * pattern - ); - - nsresult PR_COM_METHOD (*DumpStats)( - IMachineDebugger *pThis, - PRUnichar * pattern - ); - - nsresult PR_COM_METHOD (*GetStats)( - IMachineDebugger *pThis, - PRUnichar * pattern, - PRBool withDescriptions, - PRUnichar * * stats - ); - -}; - -struct IMachineDebugger -{ - struct IMachineDebugger_vtbl *vtbl; -}; -/* End of struct IMachineDebugger Declaration */ - - -/* Start of struct IUSBController Declaration */ -# define IUSBCONTROLLER_IID_STR "6fdcccc5-abd3-4fec-9387-2ad3914fc4a8" -# define IUSBCONTROLLER_IID { \ - 0x6fdcccc5, 0xabd3, 0x4fec, \ - { 0x93, 0x87, 0x2a, 0xd3, 0x91, 0x4f, 0xc4, 0xa8 } \ -} -struct IUSBController_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IUSBController *pThis, PRBool *en= abled); - nsresult PR_COM_METHOD (*SetEnabled)(IUSBController *pThis, PRBool ena= bled); - - nsresult PR_COM_METHOD (*GetEnabledEhci)(IUSBController *pThis, PRBool= *enabledEhci); - nsresult PR_COM_METHOD (*SetEnabledEhci)(IUSBController *pThis, PRBool= enabledEhci); - - nsresult PR_COM_METHOD (*GetProxyAvailable)(IUSBController *pThis, PRB= ool *proxyAvailable); - - nsresult PR_COM_METHOD (*GetUSBStandard)(IUSBController *pThis, PRUint= 16 *USBStandard); - - nsresult PR_COM_METHOD (*GetDeviceFilters)(IUSBController *pThis, PRUi= nt32 *deviceFiltersSize, IUSBDeviceFilter * **deviceFilters); - - nsresult PR_COM_METHOD (*CreateDeviceFilter)( - IUSBController *pThis, - PRUnichar * name, - IUSBDeviceFilter * * filter - ); - - nsresult PR_COM_METHOD (*InsertDeviceFilter)( - IUSBController *pThis, - PRUint32 position, - IUSBDeviceFilter * filter - ); - - nsresult PR_COM_METHOD (*RemoveDeviceFilter)( - IUSBController *pThis, - PRUint32 position, - IUSBDeviceFilter * * filter - ); - -}; - -struct IUSBController -{ - struct IUSBController_vtbl *vtbl; -}; -/* End of struct IUSBController Declaration */ - - -/* Start of struct IUSBDevice Declaration */ -# define IUSBDEVICE_IID_STR "f8967b0b-4483-400f-92b5-8b675d98a85b" -# define IUSBDEVICE_IID { \ - 0xf8967b0b, 0x4483, 0x400f, \ - { 0x92, 0xb5, 0x8b, 0x67, 0x5d, 0x98, 0xa8, 0x5b } \ -} -struct IUSBDevice_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IUSBDevice *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetVendorId)(IUSBDevice *pThis, PRUint16 *ven= dorId); - - nsresult PR_COM_METHOD (*GetProductId)(IUSBDevice *pThis, PRUint16 *pr= oductId); - - nsresult PR_COM_METHOD (*GetRevision)(IUSBDevice *pThis, PRUint16 *rev= ision); - - nsresult PR_COM_METHOD (*GetManufacturer)(IUSBDevice *pThis, PRUnichar= * *manufacturer); - - nsresult PR_COM_METHOD (*GetProduct)(IUSBDevice *pThis, PRUnichar * *p= roduct); - - nsresult PR_COM_METHOD (*GetSerialNumber)(IUSBDevice *pThis, PRUnichar= * *serialNumber); - - nsresult PR_COM_METHOD (*GetAddress)(IUSBDevice *pThis, PRUnichar * *a= ddress); - - nsresult PR_COM_METHOD (*GetPort)(IUSBDevice *pThis, PRUint16 *port); - - nsresult PR_COM_METHOD (*GetVersion)(IUSBDevice *pThis, PRUint16 *vers= ion); - - nsresult PR_COM_METHOD (*GetPortVersion)(IUSBDevice *pThis, PRUint16 *= portVersion); - - nsresult PR_COM_METHOD (*GetRemote)(IUSBDevice *pThis, PRBool *remote); - -}; - -struct IUSBDevice -{ - struct IUSBDevice_vtbl *vtbl; -}; -/* End of struct IUSBDevice Declaration */ - - -/* Start of struct IUSBDeviceFilter Declaration */ -# define IUSBDEVICEFILTER_IID_STR "d6831fb4-1a94-4c2c-96ef-8d0d6192066d" -# define IUSBDEVICEFILTER_IID { \ - 0xd6831fb4, 0x1a94, 0x4c2c, \ - { 0x96, 0xef, 0x8d, 0x0d, 0x61, 0x92, 0x06, 0x6d } \ -} -struct IUSBDeviceFilter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IUSBDeviceFilter *pThis, PRUnichar *= *name); - nsresult PR_COM_METHOD (*SetName)(IUSBDeviceFilter *pThis, PRUnichar *= name); - - nsresult PR_COM_METHOD (*GetActive)(IUSBDeviceFilter *pThis, PRBool *a= ctive); - nsresult PR_COM_METHOD (*SetActive)(IUSBDeviceFilter *pThis, PRBool ac= tive); - - nsresult PR_COM_METHOD (*GetVendorId)(IUSBDeviceFilter *pThis, PRUnich= ar * *vendorId); - nsresult PR_COM_METHOD (*SetVendorId)(IUSBDeviceFilter *pThis, PRUnich= ar * vendorId); - - nsresult PR_COM_METHOD (*GetProductId)(IUSBDeviceFilter *pThis, PRUnic= har * *productId); - nsresult PR_COM_METHOD (*SetProductId)(IUSBDeviceFilter *pThis, PRUnic= har * productId); - - nsresult PR_COM_METHOD (*GetRevision)(IUSBDeviceFilter *pThis, PRUnich= ar * *revision); - nsresult PR_COM_METHOD (*SetRevision)(IUSBDeviceFilter *pThis, PRUnich= ar * revision); - - nsresult PR_COM_METHOD (*GetManufacturer)(IUSBDeviceFilter *pThis, PRU= nichar * *manufacturer); - nsresult PR_COM_METHOD (*SetManufacturer)(IUSBDeviceFilter *pThis, PRU= nichar * manufacturer); - - nsresult PR_COM_METHOD (*GetProduct)(IUSBDeviceFilter *pThis, PRUnicha= r * *product); - nsresult PR_COM_METHOD (*SetProduct)(IUSBDeviceFilter *pThis, PRUnicha= r * product); - - nsresult PR_COM_METHOD (*GetSerialNumber)(IUSBDeviceFilter *pThis, PRU= nichar * *serialNumber); - nsresult PR_COM_METHOD (*SetSerialNumber)(IUSBDeviceFilter *pThis, PRU= nichar * serialNumber); - - nsresult PR_COM_METHOD (*GetPort)(IUSBDeviceFilter *pThis, PRUnichar *= *port); - nsresult PR_COM_METHOD (*SetPort)(IUSBDeviceFilter *pThis, PRUnichar *= port); - - nsresult PR_COM_METHOD (*GetRemote)(IUSBDeviceFilter *pThis, PRUnichar= * *remote); - nsresult PR_COM_METHOD (*SetRemote)(IUSBDeviceFilter *pThis, PRUnichar= * remote); - - nsresult PR_COM_METHOD (*GetMaskedInterfaces)(IUSBDeviceFilter *pThis,= PRUint32 *maskedInterfaces); - nsresult PR_COM_METHOD (*SetMaskedInterfaces)(IUSBDeviceFilter *pThis,= PRUint32 maskedInterfaces); - -}; - -struct IUSBDeviceFilter -{ - struct IUSBDeviceFilter_vtbl *vtbl; -}; -/* End of struct IUSBDeviceFilter Declaration */ - - -/* Start of struct IHostUSBDevice Declaration */ -# define IHOSTUSBDEVICE_IID_STR "173b4b44-d268-4334-a00d-b6521c9a740a" -# define IHOSTUSBDEVICE_IID { \ - 0x173b4b44, 0xd268, 0x4334, \ - { 0xa0, 0x0d, 0xb6, 0x52, 0x1c, 0x9a, 0x74, 0x0a } \ -} -struct IHostUSBDevice_vtbl -{ - struct IUSBDevice_vtbl iusbdevice; - - nsresult PR_COM_METHOD (*GetState)(IHostUSBDevice *pThis, PRUint32 *st= ate); - -}; - -struct IHostUSBDevice -{ - struct IHostUSBDevice_vtbl *vtbl; -}; -/* End of struct IHostUSBDevice Declaration */ - - -/* Start of struct IHostUSBDeviceFilter Declaration */ -# define IHOSTUSBDEVICEFILTER_IID_STR "4cc70246-d74a-400f-8222-3900489c03= 74" -# define IHOSTUSBDEVICEFILTER_IID { \ - 0x4cc70246, 0xd74a, 0x400f, \ - { 0x82, 0x22, 0x39, 0x00, 0x48, 0x9c, 0x03, 0x74 } \ -} -struct IHostUSBDeviceFilter_vtbl -{ - struct IUSBDeviceFilter_vtbl iusbdevicefilter; - - nsresult PR_COM_METHOD (*GetAction)(IHostUSBDeviceFilter *pThis, PRUin= t32 *action); - nsresult PR_COM_METHOD (*SetAction)(IHostUSBDeviceFilter *pThis, PRUin= t32 action); - -}; - -struct IHostUSBDeviceFilter -{ - struct IHostUSBDeviceFilter_vtbl *vtbl; -}; -/* End of struct IHostUSBDeviceFilter Declaration */ - - -/* Start of struct IAudioAdapter Declaration */ -# define IAUDIOADAPTER_IID_STR "921873db-5f3f-4b69-91f9-7be9e535a2cb" -# define IAUDIOADAPTER_IID { \ - 0x921873db, 0x5f3f, 0x4b69, \ - { 0x91, 0xf9, 0x7b, 0xe9, 0xe5, 0x35, 0xa2, 0xcb } \ -} -struct IAudioAdapter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IAudioAdapter *pThis, PRBool *ena= bled); - nsresult PR_COM_METHOD (*SetEnabled)(IAudioAdapter *pThis, PRBool enab= led); - - nsresult PR_COM_METHOD (*GetAudioController)(IAudioAdapter *pThis, PRU= int32 *audioController); - nsresult PR_COM_METHOD (*SetAudioController)(IAudioAdapter *pThis, PRU= int32 audioController); - - nsresult PR_COM_METHOD (*GetAudioDriver)(IAudioAdapter *pThis, PRUint3= 2 *audioDriver); - nsresult PR_COM_METHOD (*SetAudioDriver)(IAudioAdapter *pThis, PRUint3= 2 audioDriver); - -}; - -struct IAudioAdapter -{ - struct IAudioAdapter_vtbl *vtbl; -}; -/* End of struct IAudioAdapter Declaration */ - - -/* Start of struct IVRDEServer Declaration */ -# define IVRDESERVER_IID_STR "d38de40a-c2c1-4e95-b5a4-167b05f5694c" -# define IVRDESERVER_IID { \ - 0xd38de40a, 0xc2c1, 0x4e95, \ - { 0xb5, 0xa4, 0x16, 0x7b, 0x05, 0xf5, 0x69, 0x4c } \ -} -struct IVRDEServer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IVRDEServer *pThis, PRBool *enabl= ed); - nsresult PR_COM_METHOD (*SetEnabled)(IVRDEServer *pThis, PRBool enable= d); - - nsresult PR_COM_METHOD (*GetAuthType)(IVRDEServer *pThis, PRUint32 *au= thType); - nsresult PR_COM_METHOD (*SetAuthType)(IVRDEServer *pThis, PRUint32 aut= hType); - - nsresult PR_COM_METHOD (*GetAuthTimeout)(IVRDEServer *pThis, PRUint32 = *authTimeout); - nsresult PR_COM_METHOD (*SetAuthTimeout)(IVRDEServer *pThis, PRUint32 = authTimeout); - - nsresult PR_COM_METHOD (*GetAllowMultiConnection)(IVRDEServer *pThis, = PRBool *allowMultiConnection); - nsresult PR_COM_METHOD (*SetAllowMultiConnection)(IVRDEServer *pThis, = PRBool allowMultiConnection); - - nsresult PR_COM_METHOD (*GetReuseSingleConnection)(IVRDEServer *pThis,= PRBool *reuseSingleConnection); - nsresult PR_COM_METHOD (*SetReuseSingleConnection)(IVRDEServer *pThis,= PRBool reuseSingleConnection); - - nsresult PR_COM_METHOD (*GetVRDEExtPack)(IVRDEServer *pThis, PRUnichar= * *VRDEExtPack); - nsresult PR_COM_METHOD (*SetVRDEExtPack)(IVRDEServer *pThis, PRUnichar= * VRDEExtPack); - - nsresult PR_COM_METHOD (*GetAuthLibrary)(IVRDEServer *pThis, PRUnichar= * *authLibrary); - nsresult PR_COM_METHOD (*SetAuthLibrary)(IVRDEServer *pThis, PRUnichar= * authLibrary); - - nsresult PR_COM_METHOD (*GetVRDEProperties)(IVRDEServer *pThis, PRUint= 32 *VRDEPropertiesSize, PRUnichar * **VRDEProperties); - - nsresult PR_COM_METHOD (*SetVRDEProperty)( - IVRDEServer *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetVRDEProperty)( - IVRDEServer *pThis, - PRUnichar * key, - PRUnichar * * value - ); - -}; - -struct IVRDEServer -{ - struct IVRDEServer_vtbl *vtbl; -}; -/* End of struct IVRDEServer Declaration */ - - -/* Start of struct ISharedFolder Declaration */ -# define ISHAREDFOLDER_IID_STR "8388da11-b559-4574-a5b7-2bd7acd5cef8" -# define ISHAREDFOLDER_IID { \ - 0x8388da11, 0xb559, 0x4574, \ - { 0xa5, 0xb7, 0x2b, 0xd7, 0xac, 0xd5, 0xce, 0xf8 } \ -} -struct ISharedFolder_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(ISharedFolder *pThis, PRUnichar * *n= ame); - - nsresult PR_COM_METHOD (*GetHostPath)(ISharedFolder *pThis, PRUnichar = * *hostPath); - - nsresult PR_COM_METHOD (*GetAccessible)(ISharedFolder *pThis, PRBool *= accessible); - - nsresult PR_COM_METHOD (*GetWritable)(ISharedFolder *pThis, PRBool *wr= itable); - - nsresult PR_COM_METHOD (*GetAutoMount)(ISharedFolder *pThis, PRBool *a= utoMount); - - nsresult PR_COM_METHOD (*GetLastAccessError)(ISharedFolder *pThis, PRU= nichar * *lastAccessError); - -}; - -struct ISharedFolder -{ - struct ISharedFolder_vtbl *vtbl; -}; -/* End of struct ISharedFolder Declaration */ - - -/* Start of struct IInternalSessionControl Declaration */ -# define IINTERNALSESSIONCONTROL_IID_STR "0bdda5da-67c8-47be-a610-b83a7fa= 3e8b6" -# define IINTERNALSESSIONCONTROL_IID { \ - 0x0bdda5da, 0x67c8, 0x47be, \ - { 0xa6, 0x10, 0xb8, 0x3a, 0x7f, 0xa3, 0xe8, 0xb6 } \ -} -struct IInternalSessionControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetPID)( - IInternalSessionControl *pThis, - PRUint32 * pid - ); - - nsresult PR_COM_METHOD (*GetRemoteConsole)( - IInternalSessionControl *pThis, - IConsole * * console - ); - - nsresult PR_COM_METHOD (*AssignMachine)( - IInternalSessionControl *pThis, - IMachine * machine - ); - - nsresult PR_COM_METHOD (*AssignRemoteMachine)( - IInternalSessionControl *pThis, - IMachine * machine, - IConsole * console - ); - - nsresult PR_COM_METHOD (*UpdateMachineState)( - IInternalSessionControl *pThis, - PRUint32 aMachineState - ); - - nsresult PR_COM_METHOD (*Uninitialize)(IInternalSessionControl *pThis = ); - - nsresult PR_COM_METHOD (*OnNetworkAdapterChange)( - IInternalSessionControl *pThis, - INetworkAdapter * networkAdapter, - PRBool changeAdapter - ); - - nsresult PR_COM_METHOD (*OnSerialPortChange)( - IInternalSessionControl *pThis, - ISerialPort * serialPort - ); - - nsresult PR_COM_METHOD (*OnParallelPortChange)( - IInternalSessionControl *pThis, - IParallelPort * parallelPort - ); - - nsresult PR_COM_METHOD (*OnStorageControllerChange)(IInternalSessionCo= ntrol *pThis ); - - nsresult PR_COM_METHOD (*OnMediumChange)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRBool force - ); - - nsresult PR_COM_METHOD (*OnStorageDeviceChange)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRBool remove - ); - - nsresult PR_COM_METHOD (*OnCPUChange)( - IInternalSessionControl *pThis, - PRUint32 cpu, - PRBool add - ); - - nsresult PR_COM_METHOD (*OnCPUExecutionCapChange)( - IInternalSessionControl *pThis, - PRUint32 executionCap - ); - - nsresult PR_COM_METHOD (*OnVRDEServerChange)( - IInternalSessionControl *pThis, - PRBool restart - ); - - nsresult PR_COM_METHOD (*OnUSBControllerChange)(IInternalSessionContro= l *pThis ); - - nsresult PR_COM_METHOD (*OnSharedFolderChange)( - IInternalSessionControl *pThis, - PRBool global - ); - - nsresult PR_COM_METHOD (*OnUSBDeviceAttach)( - IInternalSessionControl *pThis, - IUSBDevice * device, - IVirtualBoxErrorInfo * error, - PRUint32 maskedInterfaces - ); - - nsresult PR_COM_METHOD (*OnUSBDeviceDetach)( - IInternalSessionControl *pThis, - PRUnichar * id, - IVirtualBoxErrorInfo * error - ); - - nsresult PR_COM_METHOD (*OnShowWindow)( - IInternalSessionControl *pThis, - PRBool check, - PRBool * canShow, - PRInt64 * winId - ); - - nsresult PR_COM_METHOD (*OnBandwidthGroupChange)( - IInternalSessionControl *pThis, - IBandwidthGroup * bandwidthGroup - ); - - nsresult PR_COM_METHOD (*AccessGuestProperty)( - IInternalSessionControl *pThis, - PRUnichar * name, - PRUnichar * value, - PRUnichar * flags, - PRBool isSetter, - PRUnichar * * retValue, - PRInt64 * retTimestamp, - PRUnichar * * retFlags - ); - - nsresult PR_COM_METHOD (*EnumerateGuestProperties)( - IInternalSessionControl *pThis, - PRUnichar * patterns, - PRUint32 *keySize, - PRUnichar *** key, - PRUint32 *valueSize, - PRUnichar *** value, - PRUint32 *timestampSize, - PRInt64* timestamp, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult PR_COM_METHOD (*OnlineMergeMedium)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRUint32 sourceIdx, - PRUint32 targetIdx, - IMedium * source, - IMedium * target, - PRBool mergeForward, - IMedium * parentForTarget, - PRUint32 childrenToReparentSize, - IMedium ** childrenToReparent, - IProgress * progress - ); - -}; - -struct IInternalSessionControl -{ - struct IInternalSessionControl_vtbl *vtbl; -}; -/* End of struct IInternalSessionControl Declaration */ - - -/* Start of struct ISession Declaration */ -# define ISESSION_IID_STR "12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D" -# define ISESSION_IID { \ - 0x12F4DCDB, 0x12B2, 0x4EC1, \ - { 0xB7, 0xCD, 0xDD, 0xD9, 0xF6, 0xC5, 0xBF, 0x4D } \ -} -struct ISession_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetState)(ISession *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetType)(ISession *pThis, PRUint32 *type); - - nsresult PR_COM_METHOD (*GetMachine)(ISession *pThis, IMachine * *mach= ine); - - nsresult PR_COM_METHOD (*GetConsole)(ISession *pThis, IConsole * *cons= ole); - - nsresult PR_COM_METHOD (*UnlockMachine)(ISession *pThis ); - -}; - -struct ISession -{ - struct ISession_vtbl *vtbl; -}; -/* End of struct ISession Declaration */ - - -/* Start of struct IStorageController Declaration */ -# define ISTORAGECONTROLLER_IID_STR "a1556333-09b6-46d9-bfb7-fc239b7fbe1e" -# define ISTORAGECONTROLLER_IID { \ - 0xa1556333, 0x09b6, 0x46d9, \ - { 0xbf, 0xb7, 0xfc, 0x23, 0x9b, 0x7f, 0xbe, 0x1e } \ -} -struct IStorageController_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IStorageController *pThis, PRUnichar= * *name); - - nsresult PR_COM_METHOD (*GetMaxDevicesPerPortCount)(IStorageController= *pThis, PRUint32 *maxDevicesPerPortCount); - - nsresult PR_COM_METHOD (*GetMinPortCount)(IStorageController *pThis, P= RUint32 *minPortCount); - - nsresult PR_COM_METHOD (*GetMaxPortCount)(IStorageController *pThis, P= RUint32 *maxPortCount); - - nsresult PR_COM_METHOD (*GetInstance)(IStorageController *pThis, PRUin= t32 *instance); - nsresult PR_COM_METHOD (*SetInstance)(IStorageController *pThis, PRUin= t32 instance); - - nsresult PR_COM_METHOD (*GetPortCount)(IStorageController *pThis, PRUi= nt32 *portCount); - nsresult PR_COM_METHOD (*SetPortCount)(IStorageController *pThis, PRUi= nt32 portCount); - - nsresult PR_COM_METHOD (*GetBus)(IStorageController *pThis, PRUint32 *= bus); - - nsresult PR_COM_METHOD (*GetControllerType)(IStorageController *pThis,= PRUint32 *controllerType); - nsresult PR_COM_METHOD (*SetControllerType)(IStorageController *pThis,= PRUint32 controllerType); - - nsresult PR_COM_METHOD (*GetUseHostIOCache)(IStorageController *pThis,= PRBool *useHostIOCache); - nsresult PR_COM_METHOD (*SetUseHostIOCache)(IStorageController *pThis,= PRBool useHostIOCache); - - nsresult PR_COM_METHOD (*GetBootable)(IStorageController *pThis, PRBoo= l *bootable); - - nsresult PR_COM_METHOD (*GetIDEEmulationPort)( - IStorageController *pThis, - PRInt32 devicePosition, - PRInt32 * portNumber - ); - - nsresult PR_COM_METHOD (*SetIDEEmulationPort)( - IStorageController *pThis, - PRInt32 devicePosition, - PRInt32 portNumber - ); - -}; - -struct IStorageController -{ - struct IStorageController_vtbl *vtbl; -}; -/* End of struct IStorageController Declaration */ - - -/* Start of struct IPerformanceMetric Declaration */ -# define IPERFORMANCEMETRIC_IID_STR "2a1a60ae-9345-4019-ad53-d34ba41cbfe9" -# define IPERFORMANCEMETRIC_IID { \ - 0x2a1a60ae, 0x9345, 0x4019, \ - { 0xad, 0x53, 0xd3, 0x4b, 0xa4, 0x1c, 0xbf, 0xe9 } \ -} -struct IPerformanceMetric_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMetricName)(IPerformanceMetric *pThis, PRU= nichar * *metricName); - - nsresult PR_COM_METHOD (*GetObject)(IPerformanceMetric *pThis, nsISupp= orts * *object); - - nsresult PR_COM_METHOD (*GetDescription)(IPerformanceMetric *pThis, PR= Unichar * *description); - - nsresult PR_COM_METHOD (*GetPeriod)(IPerformanceMetric *pThis, PRUint3= 2 *period); - - nsresult PR_COM_METHOD (*GetCount)(IPerformanceMetric *pThis, PRUint32= *count); - - nsresult PR_COM_METHOD (*GetUnit)(IPerformanceMetric *pThis, PRUnichar= * *unit); - - nsresult PR_COM_METHOD (*GetMinimumValue)(IPerformanceMetric *pThis, P= RInt32 *minimumValue); - - nsresult PR_COM_METHOD (*GetMaximumValue)(IPerformanceMetric *pThis, P= RInt32 *maximumValue); - -}; - -struct IPerformanceMetric -{ - struct IPerformanceMetric_vtbl *vtbl; -}; -/* End of struct IPerformanceMetric Declaration */ - - -/* Start of struct IPerformanceCollector Declaration */ -# define IPERFORMANCECOLLECTOR_IID_STR "e22e1acb-ac4a-43bb-a31c-17321659b= 0c6" -# define IPERFORMANCECOLLECTOR_IID { \ - 0xe22e1acb, 0xac4a, 0x43bb, \ - { 0xa3, 0x1c, 0x17, 0x32, 0x16, 0x59, 0xb0, 0xc6 } \ -} -struct IPerformanceCollector_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMetricNames)(IPerformanceCollector *pThis,= PRUint32 *metricNamesSize, PRUnichar * **metricNames); - - nsresult PR_COM_METHOD (*GetMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *metricsSize, - IPerformanceMetric *** metrics - ); - - nsresult PR_COM_METHOD (*SetupMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 period, - PRUint32 count, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult PR_COM_METHOD (*EnableMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult PR_COM_METHOD (*DisableMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult PR_COM_METHOD (*QueryMetricsData)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *returnMetricNamesSize, - PRUnichar *** returnMetricNames, - PRUint32 *returnObjectsSize, - nsISupports ** returnObjects, - PRUint32 *returnUnitsSize, - PRUnichar *** returnUnits, - PRUint32 *returnScalesSize, - PRUint32* returnScales, - PRUint32 *returnSequenceNumbersSize, - PRUint32* returnSequenceNumbers, - PRUint32 *returnDataIndicesSize, - PRUint32* returnDataIndices, - PRUint32 *returnDataLengthsSize, - PRUint32* returnDataLengths, - PRUint32 *returnDataSize, - PRInt32** returnData - ); - -}; - -struct IPerformanceCollector -{ - struct IPerformanceCollector_vtbl *vtbl; -}; -/* End of struct IPerformanceCollector Declaration */ - - -/* Start of struct INATEngine Declaration */ -# define INATENGINE_IID_STR "4b286616-eb03-11de-b0fb-1701eca42246" -# define INATENGINE_IID { \ - 0x4b286616, 0xeb03, 0x11de, \ - { 0xb0, 0xfb, 0x17, 0x01, 0xec, 0xa4, 0x22, 0x46 } \ -} -struct INATEngine_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetNetwork)(INATEngine *pThis, PRUnichar * *n= etwork); - nsresult PR_COM_METHOD (*SetNetwork)(INATEngine *pThis, PRUnichar * ne= twork); - - nsresult PR_COM_METHOD (*GetHostIP)(INATEngine *pThis, PRUnichar * *ho= stIP); - nsresult PR_COM_METHOD (*SetHostIP)(INATEngine *pThis, PRUnichar * hos= tIP); - - nsresult PR_COM_METHOD (*GetTftpPrefix)(INATEngine *pThis, PRUnichar *= *tftpPrefix); - nsresult PR_COM_METHOD (*SetTftpPrefix)(INATEngine *pThis, PRUnichar *= tftpPrefix); - - nsresult PR_COM_METHOD (*GetTftpBootFile)(INATEngine *pThis, PRUnichar= * *tftpBootFile); - nsresult PR_COM_METHOD (*SetTftpBootFile)(INATEngine *pThis, PRUnichar= * tftpBootFile); - - nsresult PR_COM_METHOD (*GetTftpNextServer)(INATEngine *pThis, PRUnich= ar * *tftpNextServer); - nsresult PR_COM_METHOD (*SetTftpNextServer)(INATEngine *pThis, PRUnich= ar * tftpNextServer); - - nsresult PR_COM_METHOD (*GetAliasMode)(INATEngine *pThis, PRUint32 *al= iasMode); - nsresult PR_COM_METHOD (*SetAliasMode)(INATEngine *pThis, PRUint32 ali= asMode); - - nsresult PR_COM_METHOD (*GetDnsPassDomain)(INATEngine *pThis, PRBool *= dnsPassDomain); - nsresult PR_COM_METHOD (*SetDnsPassDomain)(INATEngine *pThis, PRBool d= nsPassDomain); - - nsresult PR_COM_METHOD (*GetDnsProxy)(INATEngine *pThis, PRBool *dnsPr= oxy); - nsresult PR_COM_METHOD (*SetDnsProxy)(INATEngine *pThis, PRBool dnsPro= xy); - - nsresult PR_COM_METHOD (*GetDnsUseHostResolver)(INATEngine *pThis, PRB= ool *dnsUseHostResolver); - nsresult PR_COM_METHOD (*SetDnsUseHostResolver)(INATEngine *pThis, PRB= ool dnsUseHostResolver); - - nsresult PR_COM_METHOD (*GetRedirects)(INATEngine *pThis, PRUint32 *re= directsSize, PRUnichar * **redirects); - - nsresult PR_COM_METHOD (*SetNetworkSettings)( - INATEngine *pThis, - PRUint32 mtu, - PRUint32 sockSnd, - PRUint32 sockRcv, - PRUint32 TcpWndSnd, - PRUint32 TcpWndRcv - ); - - nsresult PR_COM_METHOD (*GetNetworkSettings)( - INATEngine *pThis, - PRUint32 * mtu, - PRUint32 * sockSnd, - PRUint32 * sockRcv, - PRUint32 * TcpWndSnd, - PRUint32 * TcpWndRcv - ); - - nsresult PR_COM_METHOD (*AddRedirect)( - INATEngine *pThis, - PRUnichar * name, - PRUint32 proto, - PRUnichar * hostIp, - PRUint16 hostPort, - PRUnichar * guestIp, - PRUint16 guestPort - ); - - nsresult PR_COM_METHOD (*RemoveRedirect)( - INATEngine *pThis, - PRUnichar * name - ); - -}; - -struct INATEngine -{ - struct INATEngine_vtbl *vtbl; -}; -/* End of struct INATEngine Declaration */ - - -/* Start of struct IExtPackPlugIn Declaration */ -# define IEXTPACKPLUGIN_IID_STR "58000040-e718-4746-bbce-4b86d96da461" -# define IEXTPACKPLUGIN_IID { \ - 0x58000040, 0xe718, 0x4746, \ - { 0xbb, 0xce, 0x4b, 0x86, 0xd9, 0x6d, 0xa4, 0x61 } \ -} -struct IExtPackPlugIn_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IExtPackPlugIn *pThis, PRUnichar * *= name); - - nsresult PR_COM_METHOD (*GetDescription)(IExtPackPlugIn *pThis, PRUnic= har * *description); - - nsresult PR_COM_METHOD (*GetFrontend)(IExtPackPlugIn *pThis, PRUnichar= * *frontend); - - nsresult PR_COM_METHOD (*GetModulePath)(IExtPackPlugIn *pThis, PRUnich= ar * *modulePath); - -}; - -struct IExtPackPlugIn -{ - struct IExtPackPlugIn_vtbl *vtbl; -}; -/* End of struct IExtPackPlugIn Declaration */ - - -/* Start of struct IExtPackBase Declaration */ -# define IEXTPACKBASE_IID_STR "5ffb0b64-0ad6-467d-af62-1157e7dc3c99" -# define IEXTPACKBASE_IID { \ - 0x5ffb0b64, 0x0ad6, 0x467d, \ - { 0xaf, 0x62, 0x11, 0x57, 0xe7, 0xdc, 0x3c, 0x99 } \ -} -struct IExtPackBase_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IExtPackBase *pThis, PRUnichar * *na= me); - - nsresult PR_COM_METHOD (*GetDescription)(IExtPackBase *pThis, PRUnicha= r * *description); - - nsresult PR_COM_METHOD (*GetVersion)(IExtPackBase *pThis, PRUnichar * = *version); - - nsresult PR_COM_METHOD (*GetRevision)(IExtPackBase *pThis, PRUint32 *r= evision); - - nsresult PR_COM_METHOD (*GetVRDEModule)(IExtPackBase *pThis, PRUnichar= * *VRDEModule); - - nsresult PR_COM_METHOD (*GetPlugIns)(IExtPackBase *pThis, PRUint32 *pl= ugInsSize, IExtPackPlugIn * **plugIns); - - nsresult PR_COM_METHOD (*GetUsable)(IExtPackBase *pThis, PRBool *usabl= e); - - nsresult PR_COM_METHOD (*GetWhyUnusable)(IExtPackBase *pThis, PRUnicha= r * *whyUnusable); - - nsresult PR_COM_METHOD (*GetShowLicense)(IExtPackBase *pThis, PRBool *= showLicense); - - nsresult PR_COM_METHOD (*GetLicense)(IExtPackBase *pThis, PRUnichar * = *license); - - nsresult PR_COM_METHOD (*QueryLicense)( - IExtPackBase *pThis, - PRUnichar * preferredLocale, - PRUnichar * preferredLanguage, - PRUnichar * format, - PRUnichar * * licenseText - ); - -}; - -struct IExtPackBase -{ - struct IExtPackBase_vtbl *vtbl; -}; -/* End of struct IExtPackBase Declaration */ - - -/* Start of struct IExtPack Declaration */ -# define IEXTPACK_IID_STR "431685da-3618-4ebc-b038-833ba829b4b2" -# define IEXTPACK_IID { \ - 0x431685da, 0x3618, 0x4ebc, \ - { 0xb0, 0x38, 0x83, 0x3b, 0xa8, 0x29, 0xb4, 0xb2 } \ -} -struct IExtPack_vtbl -{ - struct IExtPackBase_vtbl iextpackbase; - - nsresult PR_COM_METHOD (*QueryObject)( - IExtPack *pThis, - PRUnichar * objUuid, - nsISupports * * returnInterface - ); - -}; - -struct IExtPack -{ - struct IExtPack_vtbl *vtbl; -}; -/* End of struct IExtPack Declaration */ - - -/* Start of struct IExtPackFile Declaration */ -# define IEXTPACKFILE_IID_STR "b6b49f55-efcc-4f08-b486-56e8d8afb10b" -# define IEXTPACKFILE_IID { \ - 0xb6b49f55, 0xefcc, 0x4f08, \ - { 0xb4, 0x86, 0x56, 0xe8, 0xd8, 0xaf, 0xb1, 0x0b } \ -} -struct IExtPackFile_vtbl -{ - struct IExtPackBase_vtbl iextpackbase; - - nsresult PR_COM_METHOD (*GetFilePath)(IExtPackFile *pThis, PRUnichar *= *filePath); - - nsresult PR_COM_METHOD (*Install)( - IExtPackFile *pThis, - PRBool replace, - PRUnichar * displayInfo, - IProgress * * progess - ); - -}; - -struct IExtPackFile -{ - struct IExtPackFile_vtbl *vtbl; -}; -/* End of struct IExtPackFile Declaration */ - - -/* Start of struct IExtPackManager Declaration */ -# define IEXTPACKMANAGER_IID_STR "3295e6ce-b051-47b2-9514-2c588bfe7554" -# define IEXTPACKMANAGER_IID { \ - 0x3295e6ce, 0xb051, 0x47b2, \ - { 0x95, 0x14, 0x2c, 0x58, 0x8b, 0xfe, 0x75, 0x54 } \ -} -struct IExtPackManager_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetInstalledExtPacks)(IExtPackManager *pThis,= PRUint32 *installedExtPacksSize, IExtPack * **installedExtPacks); - - nsresult PR_COM_METHOD (*Find)( - IExtPackManager *pThis, - PRUnichar * name, - IExtPack * * returnData - ); - - nsresult PR_COM_METHOD (*OpenExtPackFile)( - IExtPackManager *pThis, - PRUnichar * path, - IExtPackFile * * file - ); - - nsresult PR_COM_METHOD (*Uninstall)( - IExtPackManager *pThis, - PRUnichar * name, - PRBool forcedRemoval, - PRUnichar * displayInfo, - IProgress * * progess - ); - - nsresult PR_COM_METHOD (*Cleanup)(IExtPackManager *pThis ); - - nsresult PR_COM_METHOD (*QueryAllPlugInsForFrontend)( - IExtPackManager *pThis, - PRUnichar * frontendName, - PRUint32 *plugInModulesSize, - PRUnichar *** plugInModules - ); - - nsresult PR_COM_METHOD (*IsExtPackUsable)( - IExtPackManager *pThis, - PRUnichar * name, - PRBool * usable - ); - -}; - -struct IExtPackManager -{ - struct IExtPackManager_vtbl *vtbl; -}; -/* End of struct IExtPackManager Declaration */ - - -/* Start of struct IBandwidthGroup Declaration */ -# define IBANDWIDTHGROUP_IID_STR "badea2d7-0261-4146-89f0-6a57cc34833d" -# define IBANDWIDTHGROUP_IID { \ - 0xbadea2d7, 0x0261, 0x4146, \ - { 0x89, 0xf0, 0x6a, 0x57, 0xcc, 0x34, 0x83, 0x3d } \ -} -struct IBandwidthGroup_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IBandwidthGroup *pThis, PRUnichar * = *name); - - nsresult PR_COM_METHOD (*GetType)(IBandwidthGroup *pThis, PRUint32 *ty= pe); - - nsresult PR_COM_METHOD (*GetReference)(IBandwidthGroup *pThis, PRUint3= 2 *reference); - - nsresult PR_COM_METHOD (*GetMaxMbPerSec)(IBandwidthGroup *pThis, PRUin= t32 *maxMbPerSec); - nsresult PR_COM_METHOD (*SetMaxMbPerSec)(IBandwidthGroup *pThis, PRUin= t32 maxMbPerSec); - -}; - -struct IBandwidthGroup -{ - struct IBandwidthGroup_vtbl *vtbl; -}; -/* End of struct IBandwidthGroup Declaration */ - - -/* Start of struct IBandwidthControl Declaration */ -# define IBANDWIDTHCONTROL_IID_STR "e2eb3930-d2f4-4f87-be17-0707e30f019f" -# define IBANDWIDTHCONTROL_IID { \ - 0xe2eb3930, 0xd2f4, 0x4f87, \ - { 0xbe, 0x17, 0x07, 0x07, 0xe3, 0x0f, 0x01, 0x9f } \ -} -struct IBandwidthControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetNumGroups)(IBandwidthControl *pThis, PRUin= t32 *numGroups); - - nsresult PR_COM_METHOD (*CreateBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name, - PRUint32 type, - PRUint32 maxMbPerSec - ); - - nsresult PR_COM_METHOD (*DeleteBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*GetBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name, - IBandwidthGroup * * bandwidthGroup - ); - - nsresult PR_COM_METHOD (*GetAllBandwidthGroups)( - IBandwidthControl *pThis, - PRUint32 *bandwidthGroupsSize, - IBandwidthGroup *** bandwidthGroups - ); - -}; - -struct IBandwidthControl -{ - struct IBandwidthControl_vtbl *vtbl; -}; -/* End of struct IBandwidthControl Declaration */ - - -/* Start of struct IVirtualBoxClient Declaration */ -# define IVIRTUALBOXCLIENT_IID_STR "5fe0bd48-1181-40d1-991f-3b02f269a823" -# define IVIRTUALBOXCLIENT_IID { \ - 0x5fe0bd48, 0x1181, 0x40d1, \ - { 0x99, 0x1f, 0x3b, 0x02, 0xf2, 0x69, 0xa8, 0x23 } \ -} -struct IVirtualBoxClient_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetVirtualBox)(IVirtualBoxClient *pThis, IVir= tualBox * *virtualBox); - - nsresult PR_COM_METHOD (*GetSession)(IVirtualBoxClient *pThis, ISessio= n * *session); - - nsresult PR_COM_METHOD (*GetEventSource)(IVirtualBoxClient *pThis, IEv= entSource * *eventSource); - -}; - -struct IVirtualBoxClient -{ - struct IVirtualBoxClient_vtbl *vtbl; -}; -/* End of struct IVirtualBoxClient Declaration */ - - -/* Start of struct IEventSource Declaration */ -# define IEVENTSOURCE_IID_STR "9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538" -# define IEVENTSOURCE_IID { \ - 0x9b6e1aee, 0x35f3, 0x4f4d, \ - { 0xb5, 0xbb, 0xed, 0x0e, 0xce, 0xfd, 0x85, 0x38 } \ -} -struct IEventSource_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*CreateListener)( - IEventSource *pThis, - IEventListener * * listener - ); - - nsresult PR_COM_METHOD (*CreateAggregator)( - IEventSource *pThis, - PRUint32 subordinatesSize, - IEventSource ** subordinates, - IEventSource * * result - ); - - nsresult PR_COM_METHOD (*RegisterListener)( - IEventSource *pThis, - IEventListener * listener, - PRUint32 interestingSize, - PRUint32* interesting, - PRBool active - ); - - nsresult PR_COM_METHOD (*UnregisterListener)( - IEventSource *pThis, - IEventListener * listener - ); - - nsresult PR_COM_METHOD (*FireEvent)( - IEventSource *pThis, - IEvent * event, - PRInt32 timeout, - PRBool * result - ); - - nsresult PR_COM_METHOD (*GetEvent)( - IEventSource *pThis, - IEventListener * listener, - PRInt32 timeout, - IEvent * * event - ); - - nsresult PR_COM_METHOD (*EventProcessed)( - IEventSource *pThis, - IEventListener * listener, - IEvent * event - ); - -}; - -struct IEventSource -{ - struct IEventSource_vtbl *vtbl; -}; -/* End of struct IEventSource Declaration */ - - -/* Start of struct IEventListener Declaration */ -# define IEVENTLISTENER_IID_STR "67099191-32e7-4f6c-85ee-422304c71b90" -# define IEVENTLISTENER_IID { \ - 0x67099191, 0x32e7, 0x4f6c, \ - { 0x85, 0xee, 0x42, 0x23, 0x04, 0xc7, 0x1b, 0x90 } \ -} -struct IEventListener_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*HandleEvent)( - IEventListener *pThis, - IEvent * event - ); - -}; - -struct IEventListener -{ - struct IEventListener_vtbl *vtbl; -}; -/* End of struct IEventListener Declaration */ - - -/* Start of struct IEvent Declaration */ -# define IEVENT_IID_STR "0ca2adba-8f30-401b-a8cd-fe31dbe839c0" -# define IEVENT_IID { \ - 0x0ca2adba, 0x8f30, 0x401b, \ - { 0xa8, 0xcd, 0xfe, 0x31, 0xdb, 0xe8, 0x39, 0xc0 } \ -} -struct IEvent_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetType)(IEvent *pThis, PRUint32 *type); - - nsresult PR_COM_METHOD (*GetSource)(IEvent *pThis, IEventSource * *sou= rce); - - nsresult PR_COM_METHOD (*GetWaitable)(IEvent *pThis, PRBool *waitable); - - nsresult PR_COM_METHOD (*SetProcessed)(IEvent *pThis ); - - nsresult PR_COM_METHOD (*WaitProcessed)( - IEvent *pThis, - PRInt32 timeout, - PRBool * result - ); - -}; - -struct IEvent -{ - struct IEvent_vtbl *vtbl; -}; -/* End of struct IEvent Declaration */ - - -/* Start of struct IReusableEvent Declaration */ -# define IREUSABLEEVENT_IID_STR "69bfb134-80f6-4266-8e20-16371f68fa25" -# define IREUSABLEEVENT_IID { \ - 0x69bfb134, 0x80f6, 0x4266, \ - { 0x8e, 0x20, 0x16, 0x37, 0x1f, 0x68, 0xfa, 0x25 } \ -} -struct IReusableEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetGeneration)(IReusableEvent *pThis, PRUint3= 2 *generation); - - nsresult PR_COM_METHOD (*Reuse)(IReusableEvent *pThis ); - -}; - -struct IReusableEvent -{ - struct IReusableEvent_vtbl *vtbl; -}; -/* End of struct IReusableEvent Declaration */ - - -/* Start of struct IMachineEvent Declaration */ -# define IMACHINEEVENT_IID_STR "92ed7b1a-0d96-40ed-ae46-a564d484325e" -# define IMACHINEEVENT_IID { \ - 0x92ed7b1a, 0x0d96, 0x40ed, \ - { 0xae, 0x46, 0xa5, 0x64, 0xd4, 0x84, 0x32, 0x5e } \ -} -struct IMachineEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMachineId)(IMachineEvent *pThis, PRUnichar= * *machineId); - -}; - -struct IMachineEvent -{ - struct IMachineEvent_vtbl *vtbl; -}; -/* End of struct IMachineEvent Declaration */ - - -/* Start of struct IMachineStateChangedEvent Declaration */ -# define IMACHINESTATECHANGEDEVENT_IID_STR "5748F794-48DF-438D-85EB-98FFD= 70D18C9" -# define IMACHINESTATECHANGEDEVENT_IID { \ - 0x5748F794, 0x48DF, 0x438D, \ - { 0x85, 0xEB, 0x98, 0xFF, 0xD7, 0x0D, 0x18, 0xC9 } \ -} -struct IMachineStateChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetState)(IMachineStateChangedEvent *pThis, P= RUint32 *state); - -}; - -struct IMachineStateChangedEvent -{ - struct IMachineStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IMachineStateChangedEvent Declaration */ - - -/* Start of struct IMachineDataChangedEvent Declaration */ -# define IMACHINEDATACHANGEDEVENT_IID_STR "abe94809-2e88-4436-83d7-50f3e6= 4d0503" -# define IMACHINEDATACHANGEDEVENT_IID { \ - 0xabe94809, 0x2e88, 0x4436, \ - { 0x83, 0xd7, 0x50, 0xf3, 0xe6, 0x4d, 0x05, 0x03 } \ -} -struct IMachineDataChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetTemporary)(IMachineDataChangedEvent *pThis= , PRBool *temporary); - -}; - -struct IMachineDataChangedEvent -{ - struct IMachineDataChangedEvent_vtbl *vtbl; -}; -/* End of struct IMachineDataChangedEvent Declaration */ - - -/* Start of struct IMediumRegisteredEvent Declaration */ -# define IMEDIUMREGISTEREDEVENT_IID_STR "53fac49a-b7f1-4a5a-a4ef-a11dd9c2= a458" -# define IMEDIUMREGISTEREDEVENT_IID { \ - 0x53fac49a, 0xb7f1, 0x4a5a, \ - { 0xa4, 0xef, 0xa1, 0x1d, 0xd9, 0xc2, 0xa4, 0x58 } \ -} -struct IMediumRegisteredEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMediumId)(IMediumRegisteredEvent *pThis, P= RUnichar * *mediumId); - - nsresult PR_COM_METHOD (*GetMediumType)(IMediumRegisteredEvent *pThis,= PRUint32 *mediumType); - - nsresult PR_COM_METHOD (*GetRegistered)(IMediumRegisteredEvent *pThis,= PRBool *registered); - -}; - -struct IMediumRegisteredEvent -{ - struct IMediumRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IMediumRegisteredEvent Declaration */ - - -/* Start of struct IMachineRegisteredEvent Declaration */ -# define IMACHINEREGISTEREDEVENT_IID_STR "c354a762-3ff2-4f2e-8f09-07382ee= 25088" -# define IMACHINEREGISTEREDEVENT_IID { \ - 0xc354a762, 0x3ff2, 0x4f2e, \ - { 0x8f, 0x09, 0x07, 0x38, 0x2e, 0xe2, 0x50, 0x88 } \ -} -struct IMachineRegisteredEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetRegistered)(IMachineRegisteredEvent *pThis= , PRBool *registered); - -}; - -struct IMachineRegisteredEvent -{ - struct IMachineRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IMachineRegisteredEvent Declaration */ - - -/* Start of struct ISessionStateChangedEvent Declaration */ -# define ISESSIONSTATECHANGEDEVENT_IID_STR "714a3eef-799a-4489-86cd-fe8e4= 5b2ff8e" -# define ISESSIONSTATECHANGEDEVENT_IID { \ - 0x714a3eef, 0x799a, 0x4489, \ - { 0x86, 0xcd, 0xfe, 0x8e, 0x45, 0xb2, 0xff, 0x8e } \ -} -struct ISessionStateChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetState)(ISessionStateChangedEvent *pThis, P= RUint32 *state); - -}; - -struct ISessionStateChangedEvent -{ - struct ISessionStateChangedEvent_vtbl *vtbl; -}; -/* End of struct ISessionStateChangedEvent Declaration */ - - -/* Start of struct IGuestPropertyChangedEvent Declaration */ -# define IGUESTPROPERTYCHANGEDEVENT_IID_STR "3f63597a-26f1-4edb-8dd2-6bdd= d0912368" -# define IGUESTPROPERTYCHANGEDEVENT_IID { \ - 0x3f63597a, 0x26f1, 0x4edb, \ - { 0x8d, 0xd2, 0x6b, 0xdd, 0xd0, 0x91, 0x23, 0x68 } \ -} -struct IGuestPropertyChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetName)(IGuestPropertyChangedEvent *pThis, P= RUnichar * *name); - - nsresult PR_COM_METHOD (*GetValue)(IGuestPropertyChangedEvent *pThis, = PRUnichar * *value); - - nsresult PR_COM_METHOD (*GetFlags)(IGuestPropertyChangedEvent *pThis, = PRUnichar * *flags); - -}; - -struct IGuestPropertyChangedEvent -{ - struct IGuestPropertyChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestPropertyChangedEvent Declaration */ - - -/* Start of struct ISnapshotEvent Declaration */ -# define ISNAPSHOTEVENT_IID_STR "21637b0e-34b8-42d3-acfb-7e96daf77c22" -# define ISNAPSHOTEVENT_IID { \ - 0x21637b0e, 0x34b8, 0x42d3, \ - { 0xac, 0xfb, 0x7e, 0x96, 0xda, 0xf7, 0x7c, 0x22 } \ -} -struct ISnapshotEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetSnapshotId)(ISnapshotEvent *pThis, PRUnich= ar * *snapshotId); - -}; - -struct ISnapshotEvent -{ - struct ISnapshotEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotEvent Declaration */ - - -/* Start of struct ISnapshotTakenEvent Declaration */ -# define ISNAPSHOTTAKENEVENT_IID_STR "d27c0b3d-6038-422c-b45e-6d4a0503d9f= 1" -# define ISNAPSHOTTAKENEVENT_IID { \ - 0xd27c0b3d, 0x6038, 0x422c, \ - { 0xb4, 0x5e, 0x6d, 0x4a, 0x05, 0x03, 0xd9, 0xf1 } \ -} -struct ISnapshotTakenEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotTakenEvent -{ - struct ISnapshotTakenEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotTakenEvent Declaration */ - - -/* Start of struct ISnapshotDeletedEvent Declaration */ -# define ISNAPSHOTDELETEDEVENT_IID_STR "c48f3401-4a9e-43f4-b7a7-54bd285e2= 2f4" -# define ISNAPSHOTDELETEDEVENT_IID { \ - 0xc48f3401, 0x4a9e, 0x43f4, \ - { 0xb7, 0xa7, 0x54, 0xbd, 0x28, 0x5e, 0x22, 0xf4 } \ -} -struct ISnapshotDeletedEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotDeletedEvent -{ - struct ISnapshotDeletedEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotDeletedEvent Declaration */ - - -/* Start of struct ISnapshotChangedEvent Declaration */ -# define ISNAPSHOTCHANGEDEVENT_IID_STR "07541941-8079-447a-a33e-47a69c798= 0db" -# define ISNAPSHOTCHANGEDEVENT_IID { \ - 0x07541941, 0x8079, 0x447a, \ - { 0xa3, 0x3e, 0x47, 0xa6, 0x9c, 0x79, 0x80, 0xdb } \ -} -struct ISnapshotChangedEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotChangedEvent -{ - struct ISnapshotChangedEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotChangedEvent Declaration */ - - -/* Start of struct IMousePointerShapeChangedEvent Declaration */ -# define IMOUSEPOINTERSHAPECHANGEDEVENT_IID_STR "a6dcf6e8-416b-4181-8c4a-= 45ec95177aef" -# define IMOUSEPOINTERSHAPECHANGEDEVENT_IID { \ - 0xa6dcf6e8, 0x416b, 0x4181, \ - { 0x8c, 0x4a, 0x45, 0xec, 0x95, 0x17, 0x7a, 0xef } \ -} -struct IMousePointerShapeChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetVisible)(IMousePointerShapeChangedEvent *p= This, PRBool *visible); - - nsresult PR_COM_METHOD (*GetAlpha)(IMousePointerShapeChangedEvent *pTh= is, PRBool *alpha); - - nsresult PR_COM_METHOD (*GetXhot)(IMousePointerShapeChangedEvent *pThi= s, PRUint32 *xhot); - - nsresult PR_COM_METHOD (*GetYhot)(IMousePointerShapeChangedEvent *pThi= s, PRUint32 *yhot); - - nsresult PR_COM_METHOD (*GetWidth)(IMousePointerShapeChangedEvent *pTh= is, PRUint32 *width); - - nsresult PR_COM_METHOD (*GetHeight)(IMousePointerShapeChangedEvent *pT= his, PRUint32 *height); - - nsresult PR_COM_METHOD (*GetShape)(IMousePointerShapeChangedEvent *pTh= is, PRUint32 *shapeSize, PRUint8 **shape); - -}; - -struct IMousePointerShapeChangedEvent -{ - struct IMousePointerShapeChangedEvent_vtbl *vtbl; -}; -/* End of struct IMousePointerShapeChangedEvent Declaration */ - - -/* Start of struct IMouseCapabilityChangedEvent Declaration */ -# define IMOUSECAPABILITYCHANGEDEVENT_IID_STR "d633ad48-820c-4207-b46c-6b= d3596640d5" -# define IMOUSECAPABILITYCHANGEDEVENT_IID { \ - 0xd633ad48, 0x820c, 0x4207, \ - { 0xb4, 0x6c, 0x6b, 0xd3, 0x59, 0x66, 0x40, 0xd5 } \ -} -struct IMouseCapabilityChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetSupportsAbsolute)(IMouseCapabilityChangedE= vent *pThis, PRBool *supportsAbsolute); - - nsresult PR_COM_METHOD (*GetSupportsRelative)(IMouseCapabilityChangedE= vent *pThis, PRBool *supportsRelative); - - nsresult PR_COM_METHOD (*GetNeedsHostCursor)(IMouseCapabilityChangedEv= ent *pThis, PRBool *needsHostCursor); - -}; - -struct IMouseCapabilityChangedEvent -{ - struct IMouseCapabilityChangedEvent_vtbl *vtbl; -}; -/* End of struct IMouseCapabilityChangedEvent Declaration */ - - -/* Start of struct IKeyboardLedsChangedEvent Declaration */ -# define IKEYBOARDLEDSCHANGEDEVENT_IID_STR "6DDEF35E-4737-457B-99FC-BC52C= 851A44F" -# define IKEYBOARDLEDSCHANGEDEVENT_IID { \ - 0x6DDEF35E, 0x4737, 0x457B, \ - { 0x99, 0xFC, 0xBC, 0x52, 0xC8, 0x51, 0xA4, 0x4F } \ -} -struct IKeyboardLedsChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetNumLock)(IKeyboardLedsChangedEvent *pThis,= PRBool *numLock); - - nsresult PR_COM_METHOD (*GetCapsLock)(IKeyboardLedsChangedEvent *pThis= , PRBool *capsLock); - - nsresult PR_COM_METHOD (*GetScrollLock)(IKeyboardLedsChangedEvent *pTh= is, PRBool *scrollLock); - -}; - -struct IKeyboardLedsChangedEvent -{ - struct IKeyboardLedsChangedEvent_vtbl *vtbl; -}; -/* End of struct IKeyboardLedsChangedEvent Declaration */ - - -/* Start of struct IStateChangedEvent Declaration */ -# define ISTATECHANGEDEVENT_IID_STR "4376693C-CF37-453B-9289-3B0F521CAF27" -# define ISTATECHANGEDEVENT_IID { \ - 0x4376693C, 0xCF37, 0x453B, \ - { 0x92, 0x89, 0x3B, 0x0F, 0x52, 0x1C, 0xAF, 0x27 } \ -} -struct IStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetState)(IStateChangedEvent *pThis, PRUint32= *state); - -}; - -struct IStateChangedEvent -{ - struct IStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IStateChangedEvent Declaration */ - - -/* Start of struct IAdditionsStateChangedEvent Declaration */ -# define IADDITIONSSTATECHANGEDEVENT_IID_STR "D70F7915-DA7C-44C8-A7AC-9F1= 73490446A" -# define IADDITIONSSTATECHANGEDEVENT_IID { \ - 0xD70F7915, 0xDA7C, 0x44C8, \ - { 0xA7, 0xAC, 0x9F, 0x17, 0x34, 0x90, 0x44, 0x6A } \ -} -struct IAdditionsStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IAdditionsStateChangedEvent -{ - struct IAdditionsStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IAdditionsStateChangedEvent Declaration */ - - -/* Start of struct INetworkAdapterChangedEvent Declaration */ -# define INETWORKADAPTERCHANGEDEVENT_IID_STR "08889892-1EC6-4883-801D-77F= 56CFD0103" -# define INETWORKADAPTERCHANGEDEVENT_IID { \ - 0x08889892, 0x1EC6, 0x4883, \ - { 0x80, 0x1D, 0x77, 0xF5, 0x6C, 0xFD, 0x01, 0x03 } \ -} -struct INetworkAdapterChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetNetworkAdapter)(INetworkAdapterChangedEven= t *pThis, INetworkAdapter * *networkAdapter); - -}; - -struct INetworkAdapterChangedEvent -{ - struct INetworkAdapterChangedEvent_vtbl *vtbl; -}; -/* End of struct INetworkAdapterChangedEvent Declaration */ - - -/* Start of struct ISerialPortChangedEvent Declaration */ -# define ISERIALPORTCHANGEDEVENT_IID_STR "3BA329DC-659C-488B-835C-4ECA7AE= 71C6C" -# define ISERIALPORTCHANGEDEVENT_IID { \ - 0x3BA329DC, 0x659C, 0x488B, \ - { 0x83, 0x5C, 0x4E, 0xCA, 0x7A, 0xE7, 0x1C, 0x6C } \ -} -struct ISerialPortChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetSerialPort)(ISerialPortChangedEvent *pThis= , ISerialPort * *serialPort); - -}; - -struct ISerialPortChangedEvent -{ - struct ISerialPortChangedEvent_vtbl *vtbl; -}; -/* End of struct ISerialPortChangedEvent Declaration */ - - -/* Start of struct IParallelPortChangedEvent Declaration */ -# define IPARALLELPORTCHANGEDEVENT_IID_STR "813C99FC-9849-4F47-813E-24A75= DC85615" -# define IPARALLELPORTCHANGEDEVENT_IID { \ - 0x813C99FC, 0x9849, 0x4F47, \ - { 0x81, 0x3E, 0x24, 0xA7, 0x5D, 0xC8, 0x56, 0x15 } \ -} -struct IParallelPortChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetParallelPort)(IParallelPortChangedEvent *p= This, IParallelPort * *parallelPort); - -}; - -struct IParallelPortChangedEvent -{ - struct IParallelPortChangedEvent_vtbl *vtbl; -}; -/* End of struct IParallelPortChangedEvent Declaration */ - - -/* Start of struct IStorageControllerChangedEvent Declaration */ -# define ISTORAGECONTROLLERCHANGEDEVENT_IID_STR "715212BF-DA59-426E-8230-= 3831FAA52C56" -# define ISTORAGECONTROLLERCHANGEDEVENT_IID { \ - 0x715212BF, 0xDA59, 0x426E, \ - { 0x82, 0x30, 0x38, 0x31, 0xFA, 0xA5, 0x2C, 0x56 } \ -} -struct IStorageControllerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IStorageControllerChangedEvent -{ - struct IStorageControllerChangedEvent_vtbl *vtbl; -}; -/* End of struct IStorageControllerChangedEvent Declaration */ - - -/* Start of struct IMediumChangedEvent Declaration */ -# define IMEDIUMCHANGEDEVENT_IID_STR "0FE2DA40-5637-472A-9736-72019EABD7D= E" -# define IMEDIUMCHANGEDEVENT_IID { \ - 0x0FE2DA40, 0x5637, 0x472A, \ - { 0x97, 0x36, 0x72, 0x01, 0x9E, 0xAB, 0xD7, 0xDE } \ -} -struct IMediumChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMediumAttachment)(IMediumChangedEvent *pTh= is, IMediumAttachment * *mediumAttachment); - -}; - -struct IMediumChangedEvent -{ - struct IMediumChangedEvent_vtbl *vtbl; -}; -/* End of struct IMediumChangedEvent Declaration */ - - -/* Start of struct ICPUChangedEvent Declaration */ -# define ICPUCHANGEDEVENT_IID_STR "D0F0BECC-EE17-4D17-A8CC-383B0EB55E9D" -# define ICPUCHANGEDEVENT_IID { \ - 0xD0F0BECC, 0xEE17, 0x4D17, \ - { 0xA8, 0xCC, 0x38, 0x3B, 0x0E, 0xB5, 0x5E, 0x9D } \ -} -struct ICPUChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetCpu)(ICPUChangedEvent *pThis, PRUint32 *cp= u); - - nsresult PR_COM_METHOD (*GetAdd)(ICPUChangedEvent *pThis, PRBool *add); - -}; - -struct ICPUChangedEvent -{ - struct ICPUChangedEvent_vtbl *vtbl; -}; -/* End of struct ICPUChangedEvent Declaration */ - - -/* Start of struct ICPUExecutionCapChangedEvent Declaration */ -# define ICPUEXECUTIONCAPCHANGEDEVENT_IID_STR "dfa7e4f5-b4a4-44ce-85a8-12= 7ac5eb59dc" -# define ICPUEXECUTIONCAPCHANGEDEVENT_IID { \ - 0xdfa7e4f5, 0xb4a4, 0x44ce, \ - { 0x85, 0xa8, 0x12, 0x7a, 0xc5, 0xeb, 0x59, 0xdc } \ -} -struct ICPUExecutionCapChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetExecutionCap)(ICPUExecutionCapChangedEvent= *pThis, PRUint32 *executionCap); - -}; - -struct ICPUExecutionCapChangedEvent -{ - struct ICPUExecutionCapChangedEvent_vtbl *vtbl; -}; -/* End of struct ICPUExecutionCapChangedEvent Declaration */ - - -/* Start of struct IGuestKeyboardEvent Declaration */ -# define IGUESTKEYBOARDEVENT_IID_STR "88394258-7006-40d4-b339-472ee380184= 4" -# define IGUESTKEYBOARDEVENT_IID { \ - 0x88394258, 0x7006, 0x40d4, \ - { 0xb3, 0x39, 0x47, 0x2e, 0xe3, 0x80, 0x18, 0x44 } \ -} -struct IGuestKeyboardEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetScancodes)(IGuestKeyboardEvent *pThis, PRU= int32 *scancodesSize, PRInt32 **scancodes); - -}; - -struct IGuestKeyboardEvent -{ - struct IGuestKeyboardEvent_vtbl *vtbl; -}; -/* End of struct IGuestKeyboardEvent Declaration */ - - -/* Start of struct IGuestMouseEvent Declaration */ -# define IGUESTMOUSEEVENT_IID_STR "1f85d35c-c524-40ff-8e98-307000df0992" -# define IGUESTMOUSEEVENT_IID { \ - 0x1f85d35c, 0xc524, 0x40ff, \ - { 0x8e, 0x98, 0x30, 0x70, 0x00, 0xdf, 0x09, 0x92 } \ -} -struct IGuestMouseEvent_vtbl -{ - struct IReusableEvent_vtbl ireusableevent; - - nsresult PR_COM_METHOD (*GetAbsolute)(IGuestMouseEvent *pThis, PRBool = *absolute); - - nsresult PR_COM_METHOD (*GetX)(IGuestMouseEvent *pThis, PRInt32 *x); - - nsresult PR_COM_METHOD (*GetY)(IGuestMouseEvent *pThis, PRInt32 *y); - - nsresult PR_COM_METHOD (*GetZ)(IGuestMouseEvent *pThis, PRInt32 *z); - - nsresult PR_COM_METHOD (*GetW)(IGuestMouseEvent *pThis, PRInt32 *w); - - nsresult PR_COM_METHOD (*GetButtons)(IGuestMouseEvent *pThis, PRInt32 = *buttons); - -}; - -struct IGuestMouseEvent -{ - struct IGuestMouseEvent_vtbl *vtbl; -}; -/* End of struct IGuestMouseEvent Declaration */ - - -/* Start of struct IVRDEServerChangedEvent Declaration */ -# define IVRDESERVERCHANGEDEVENT_IID_STR "a06fd66a-3188-4c8c-8756-1395e8c= b691c" -# define IVRDESERVERCHANGEDEVENT_IID { \ - 0xa06fd66a, 0x3188, 0x4c8c, \ - { 0x87, 0x56, 0x13, 0x95, 0xe8, 0xcb, 0x69, 0x1c } \ -} -struct IVRDEServerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IVRDEServerChangedEvent -{ - struct IVRDEServerChangedEvent_vtbl *vtbl; -}; -/* End of struct IVRDEServerChangedEvent Declaration */ - - -/* Start of struct IVRDEServerInfoChangedEvent Declaration */ -# define IVRDESERVERINFOCHANGEDEVENT_IID_STR "dd6a1080-e1b7-4339-a549-f08= 78115596e" -# define IVRDESERVERINFOCHANGEDEVENT_IID { \ - 0xdd6a1080, 0xe1b7, 0x4339, \ - { 0xa5, 0x49, 0xf0, 0x87, 0x81, 0x15, 0x59, 0x6e } \ -} -struct IVRDEServerInfoChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IVRDEServerInfoChangedEvent -{ - struct IVRDEServerInfoChangedEvent_vtbl *vtbl; -}; -/* End of struct IVRDEServerInfoChangedEvent Declaration */ - - -/* Start of struct IUSBControllerChangedEvent Declaration */ -# define IUSBCONTROLLERCHANGEDEVENT_IID_STR "93BADC0C-61D9-4940-A084-E6BB= 29AF3D83" -# define IUSBCONTROLLERCHANGEDEVENT_IID { \ - 0x93BADC0C, 0x61D9, 0x4940, \ - { 0xA0, 0x84, 0xE6, 0xBB, 0x29, 0xAF, 0x3D, 0x83 } \ -} -struct IUSBControllerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IUSBControllerChangedEvent -{ - struct IUSBControllerChangedEvent_vtbl *vtbl; -}; -/* End of struct IUSBControllerChangedEvent Declaration */ - - -/* Start of struct IUSBDeviceStateChangedEvent Declaration */ -# define IUSBDEVICESTATECHANGEDEVENT_IID_STR "806da61b-6679-422a-b629-51b= 06b0c6d93" -# define IUSBDEVICESTATECHANGEDEVENT_IID { \ - 0x806da61b, 0x6679, 0x422a, \ - { 0xb6, 0x29, 0x51, 0xb0, 0x6b, 0x0c, 0x6d, 0x93 } \ -} -struct IUSBDeviceStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetDevice)(IUSBDeviceStateChangedEvent *pThis= , IUSBDevice * *device); - - nsresult PR_COM_METHOD (*GetAttached)(IUSBDeviceStateChangedEvent *pTh= is, PRBool *attached); - - nsresult PR_COM_METHOD (*GetError)(IUSBDeviceStateChangedEvent *pThis,= IVirtualBoxErrorInfo * *error); - -}; - -struct IUSBDeviceStateChangedEvent -{ - struct IUSBDeviceStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IUSBDeviceStateChangedEvent Declaration */ - - -/* Start of struct ISharedFolderChangedEvent Declaration */ -# define ISHAREDFOLDERCHANGEDEVENT_IID_STR "B66349B5-3534-4239-B2DE-8E153= 5D94C0B" -# define ISHAREDFOLDERCHANGEDEVENT_IID { \ - 0xB66349B5, 0x3534, 0x4239, \ - { 0xB2, 0xDE, 0x8E, 0x15, 0x35, 0xD9, 0x4C, 0x0B } \ -} -struct ISharedFolderChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetScope)(ISharedFolderChangedEvent *pThis, P= RUint32 *scope); - -}; - -struct ISharedFolderChangedEvent -{ - struct ISharedFolderChangedEvent_vtbl *vtbl; -}; -/* End of struct ISharedFolderChangedEvent Declaration */ - - -/* Start of struct IRuntimeErrorEvent Declaration */ -# define IRUNTIMEERROREVENT_IID_STR "883DD18B-0721-4CDE-867C-1A82ABAF914C" -# define IRUNTIMEERROREVENT_IID { \ - 0x883DD18B, 0x0721, 0x4CDE, \ - { 0x86, 0x7C, 0x1A, 0x82, 0xAB, 0xAF, 0x91, 0x4C } \ -} -struct IRuntimeErrorEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetFatal)(IRuntimeErrorEvent *pThis, PRBool *= fatal); - - nsresult PR_COM_METHOD (*GetId)(IRuntimeErrorEvent *pThis, PRUnichar *= *id); - - nsresult PR_COM_METHOD (*GetMessage)(IRuntimeErrorEvent *pThis, PRUnic= har * *message); - -}; - -struct IRuntimeErrorEvent -{ - struct IRuntimeErrorEvent_vtbl *vtbl; -}; -/* End of struct IRuntimeErrorEvent Declaration */ - - -/* Start of struct IEventSourceChangedEvent Declaration */ -# define IEVENTSOURCECHANGEDEVENT_IID_STR "e7932cb8-f6d4-4ab6-9cbf-558eb8= 959a6a" -# define IEVENTSOURCECHANGEDEVENT_IID { \ - 0xe7932cb8, 0xf6d4, 0x4ab6, \ - { 0x9c, 0xbf, 0x55, 0x8e, 0xb8, 0x95, 0x9a, 0x6a } \ -} -struct IEventSourceChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetListener)(IEventSourceChangedEvent *pThis,= IEventListener * *listener); - - nsresult PR_COM_METHOD (*GetAdd)(IEventSourceChangedEvent *pThis, PRBo= ol *add); - -}; - -struct IEventSourceChangedEvent -{ - struct IEventSourceChangedEvent_vtbl *vtbl; -}; -/* End of struct IEventSourceChangedEvent Declaration */ - - -/* Start of struct IExtraDataChangedEvent Declaration */ -# define IEXTRADATACHANGEDEVENT_IID_STR "024F00CE-6E0B-492A-A8D0-968472A9= 4DC7" -# define IEXTRADATACHANGEDEVENT_IID { \ - 0x024F00CE, 0x6E0B, 0x492A, \ - { 0xA8, 0xD0, 0x96, 0x84, 0x72, 0xA9, 0x4D, 0xC7 } \ -} -struct IExtraDataChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMachineId)(IExtraDataChangedEvent *pThis, = PRUnichar * *machineId); - - nsresult PR_COM_METHOD (*GetKey)(IExtraDataChangedEvent *pThis, PRUnic= har * *key); - - nsresult PR_COM_METHOD (*GetValue)(IExtraDataChangedEvent *pThis, PRUn= ichar * *value); - -}; - -struct IExtraDataChangedEvent -{ - struct IExtraDataChangedEvent_vtbl *vtbl; -}; -/* End of struct IExtraDataChangedEvent Declaration */ - - -/* Start of struct IVetoEvent Declaration */ -# define IVETOEVENT_IID_STR "9a1a4130-69fe-472f-ac10-c6fa25d75007" -# define IVETOEVENT_IID { \ - 0x9a1a4130, 0x69fe, 0x472f, \ - { 0xac, 0x10, 0xc6, 0xfa, 0x25, 0xd7, 0x50, 0x07 } \ -} -struct IVetoEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*AddVeto)( - IVetoEvent *pThis, - PRUnichar * reason - ); - - nsresult PR_COM_METHOD (*IsVetoed)( - IVetoEvent *pThis, - PRBool * result - ); - - nsresult PR_COM_METHOD (*GetVetos)( - IVetoEvent *pThis, - PRUint32 *resultSize, - PRUnichar *** result - ); - -}; - -struct IVetoEvent -{ - struct IVetoEvent_vtbl *vtbl; -}; -/* End of struct IVetoEvent Declaration */ - - -/* Start of struct IExtraDataCanChangeEvent Declaration */ -# define IEXTRADATACANCHANGEEVENT_IID_STR "245d88bd-800a-40f8-87a6-170d02= 249a55" -# define IEXTRADATACANCHANGEEVENT_IID { \ - 0x245d88bd, 0x800a, 0x40f8, \ - { 0x87, 0xa6, 0x17, 0x0d, 0x02, 0x24, 0x9a, 0x55 } \ -} -struct IExtraDataCanChangeEvent_vtbl -{ - struct IVetoEvent_vtbl ivetoevent; - - nsresult PR_COM_METHOD (*GetMachineId)(IExtraDataCanChangeEvent *pThis= , PRUnichar * *machineId); - - nsresult PR_COM_METHOD (*GetKey)(IExtraDataCanChangeEvent *pThis, PRUn= ichar * *key); - - nsresult PR_COM_METHOD (*GetValue)(IExtraDataCanChangeEvent *pThis, PR= Unichar * *value); - -}; - -struct IExtraDataCanChangeEvent -{ - struct IExtraDataCanChangeEvent_vtbl *vtbl; -}; -/* End of struct IExtraDataCanChangeEvent Declaration */ - - -/* Start of struct ICanShowWindowEvent Declaration */ -# define ICANSHOWWINDOWEVENT_IID_STR "adf292b0-92c9-4a77-9d35-e058b39fe0b= 9" -# define ICANSHOWWINDOWEVENT_IID { \ - 0xadf292b0, 0x92c9, 0x4a77, \ - { 0x9d, 0x35, 0xe0, 0x58, 0xb3, 0x9f, 0xe0, 0xb9 } \ -} -struct ICanShowWindowEvent_vtbl -{ - struct IVetoEvent_vtbl ivetoevent; - -}; - -struct ICanShowWindowEvent -{ - struct ICanShowWindowEvent_vtbl *vtbl; -}; -/* End of struct ICanShowWindowEvent Declaration */ - - -/* Start of struct IShowWindowEvent Declaration */ -# define ISHOWWINDOWEVENT_IID_STR "B0A0904D-2F05-4D28-855F-488F96BAD2B2" -# define ISHOWWINDOWEVENT_IID { \ - 0xB0A0904D, 0x2F05, 0x4D28, \ - { 0x85, 0x5F, 0x48, 0x8F, 0x96, 0xBA, 0xD2, 0xB2 } \ -} -struct IShowWindowEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetWinId)(IShowWindowEvent *pThis, PRInt64 *w= inId); - nsresult PR_COM_METHOD (*SetWinId)(IShowWindowEvent *pThis, PRInt64 wi= nId); - -}; - -struct IShowWindowEvent -{ - struct IShowWindowEvent_vtbl *vtbl; -}; -/* End of struct IShowWindowEvent Declaration */ - - -/* Start of struct INATRedirectEvent Declaration */ -# define INATREDIRECTEVENT_IID_STR "57DE97D7-3CBB-42A0-888F-610D5832D16B" -# define INATREDIRECTEVENT_IID { \ - 0x57DE97D7, 0x3CBB, 0x42A0, \ - { 0x88, 0x8F, 0x61, 0x0D, 0x58, 0x32, 0xD1, 0x6B } \ -} -struct INATRedirectEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetSlot)(INATRedirectEvent *pThis, PRUint32 *= slot); - - nsresult PR_COM_METHOD (*GetRemove)(INATRedirectEvent *pThis, PRBool *= remove); - - nsresult PR_COM_METHOD (*GetName)(INATRedirectEvent *pThis, PRUnichar = * *name); - - nsresult PR_COM_METHOD (*GetProto)(INATRedirectEvent *pThis, PRUint32 = *proto); - - nsresult PR_COM_METHOD (*GetHostIp)(INATRedirectEvent *pThis, PRUnicha= r * *hostIp); - - nsresult PR_COM_METHOD (*GetHostPort)(INATRedirectEvent *pThis, PRInt3= 2 *hostPort); - - nsresult PR_COM_METHOD (*GetGuestIp)(INATRedirectEvent *pThis, PRUnich= ar * *guestIp); - - nsresult PR_COM_METHOD (*GetGuestPort)(INATRedirectEvent *pThis, PRInt= 32 *guestPort); - -}; - -struct INATRedirectEvent -{ - struct INATRedirectEvent_vtbl *vtbl; -}; -/* End of struct INATRedirectEvent Declaration */ - - -/* Start of struct IHostPciDevicePlugEvent Declaration */ -# define IHOSTPCIDEVICEPLUGEVENT_IID_STR "9cebfc27-c579-4965-8eb7-d31794c= d7dcf" -# define IHOSTPCIDEVICEPLUGEVENT_IID { \ - 0x9cebfc27, 0xc579, 0x4965, \ - { 0x8e, 0xb7, 0xd3, 0x17, 0x94, 0xcd, 0x7d, 0xcf } \ -} -struct IHostPciDevicePlugEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetPlugged)(IHostPciDevicePlugEvent *pThis, P= RBool *plugged); - - nsresult PR_COM_METHOD (*GetSuccess)(IHostPciDevicePlugEvent *pThis, P= RBool *success); - - nsresult PR_COM_METHOD (*GetAttachment)(IHostPciDevicePlugEvent *pThis= , IPciDeviceAttachment * *attachment); - - nsresult PR_COM_METHOD (*GetMessage)(IHostPciDevicePlugEvent *pThis, P= RUnichar * *message); - -}; - -struct IHostPciDevicePlugEvent -{ - struct IHostPciDevicePlugEvent_vtbl *vtbl; -}; -/* End of struct IHostPciDevicePlugEvent Declaration */ - - -/* Start of struct IVBoxSVCAvailabilityChangedEvent Declaration */ -# define IVBOXSVCAVAILABILITYCHANGEDEVENT_IID_STR "97c78fcd-d4fc-485f-861= 3-5af88bfcfcdc" -# define IVBOXSVCAVAILABILITYCHANGEDEVENT_IID { \ - 0x97c78fcd, 0xd4fc, 0x485f, \ - { 0x86, 0x13, 0x5a, 0xf8, 0x8b, 0xfc, 0xfc, 0xdc } \ -} -struct IVBoxSVCAvailabilityChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetAvailable)(IVBoxSVCAvailabilityChangedEven= t *pThis, PRBool *available); - -}; - -struct IVBoxSVCAvailabilityChangedEvent -{ - struct IVBoxSVCAvailabilityChangedEvent_vtbl *vtbl; -}; -/* End of struct IVBoxSVCAvailabilityChangedEvent Declaration */ - - -/* Start of struct IBandwidthGroupChangedEvent Declaration */ -# define IBANDWIDTHGROUPCHANGEDEVENT_IID_STR "334df94a-7556-4cbc-8c04-043= 096b02d82" -# define IBANDWIDTHGROUPCHANGEDEVENT_IID { \ - 0x334df94a, 0x7556, 0x4cbc, \ - { 0x8c, 0x04, 0x04, 0x30, 0x96, 0xb0, 0x2d, 0x82 } \ -} -struct IBandwidthGroupChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetBandwidthGroup)(IBandwidthGroupChangedEven= t *pThis, IBandwidthGroup * *bandwidthGroup); - -}; - -struct IBandwidthGroupChangedEvent -{ - struct IBandwidthGroupChangedEvent_vtbl *vtbl; -}; -/* End of struct IBandwidthGroupChangedEvent Declaration */ - - -/* Start of struct IGuestMonitorChangedEvent Declaration */ -# define IGUESTMONITORCHANGEDEVENT_IID_STR "0f7b8a22-c71f-4a36-8e5f-a77d0= 1d76090" -# define IGUESTMONITORCHANGEDEVENT_IID { \ - 0x0f7b8a22, 0xc71f, 0x4a36, \ - { 0x8e, 0x5f, 0xa7, 0x7d, 0x01, 0xd7, 0x60, 0x90 } \ -} -struct IGuestMonitorChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetChangeType)(IGuestMonitorChangedEvent *pTh= is, PRUint32 *changeType); - - nsresult PR_COM_METHOD (*GetScreenId)(IGuestMonitorChangedEvent *pThis= , PRUint32 *screenId); - - nsresult PR_COM_METHOD (*GetOriginX)(IGuestMonitorChangedEvent *pThis,= PRUint32 *originX); - - nsresult PR_COM_METHOD (*GetOriginY)(IGuestMonitorChangedEvent *pThis,= PRUint32 *originY); - - nsresult PR_COM_METHOD (*GetWidth)(IGuestMonitorChangedEvent *pThis, P= RUint32 *width); - - nsresult PR_COM_METHOD (*GetHeight)(IGuestMonitorChangedEvent *pThis, = PRUint32 *height); - -}; - -struct IGuestMonitorChangedEvent -{ - struct IGuestMonitorChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestMonitorChangedEvent Declaration */ - - -/* Start of struct IStorageDeviceChangedEvent Declaration */ -# define ISTORAGEDEVICECHANGEDEVENT_IID_STR "8a5c2dce-e341-49d4-afce-c959= 79f7d70c" -# define ISTORAGEDEVICECHANGEDEVENT_IID { \ - 0x8a5c2dce, 0xe341, 0x49d4, \ - { 0xaf, 0xce, 0xc9, 0x59, 0x79, 0xf7, 0xd7, 0x0c } \ -} -struct IStorageDeviceChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetStorageDevice)(IStorageDeviceChangedEvent = *pThis, IMediumAttachment * *storageDevice); - - nsresult PR_COM_METHOD (*GetRemoved)(IStorageDeviceChangedEvent *pThis= , PRBool *removed); - -}; - -struct IStorageDeviceChangedEvent -{ - struct IStorageDeviceChangedEvent_vtbl *vtbl; -}; -/* End of struct IStorageDeviceChangedEvent Declaration */ - - - -# define NS_VIRTUALBOX_CID { \ - 0xB1A7A4F2, 0x47B9, 0x4A1E, \ - { 0x82, 0xB2, 0x07, 0xCC, 0xD5, 0x32, 0x3C, 0x3F } \ -} -# define NS_VIRTUALBOX_CONTRACTID "@virtualbox.org/VirtualBox;1" -/* for compatibility with Win32 */ -# define CLSID_VirtualBox (nsCID) NS_VIRTUALBOX_CID - - - -# define NS_VIRTUALBOXCLIENT_CID { \ - 0xdd3fc71d, 0x26c0, 0x4fe1, \ - { 0xbf, 0x6f, 0x67, 0xf6, 0x33, 0x26, 0x5b, 0xba } \ -} -# define NS_VIRTUALBOXCLIENT_CONTRACTID "@virtualbox.org/VirtualBoxClient= ;1" -/* for compatibility with Win32 */ -# define CLSID_VirtualBoxClient (nsCID) NS_VIRTUALBOXCLIENT_CID - - - -# define NS_SESSION_CID { \ - 0x3C02F46D, 0xC9D2, 0x4F11, \ - { 0xA3, 0x84, 0x53, 0xF0, 0xCF, 0x91, 0x72, 0x14 } \ -} -# define NS_SESSION_CONTRACTID "@virtualbox.org/Session;1" -/* for compatibility with Win32 */ -# define CLSID_Session (nsCID) NS_SESSION_CID - - - -# endif /* !__cplusplus */ - -# ifdef IN_VBOXXPCOMC -# define VBOXXPCOMC_DECL(type) PR_EXPORT(type) -# else -# define VBOXXPCOMC_DECL(type) PR_IMPORT(type) -# endif - -# ifdef __cplusplus -extern "C" { -# endif - - -/** - * Function table for dynamic linking. - * Use VBoxGetFunctions() to obtain the pointer to it. - */ -typedef struct VBOXXPCOMC -{ - /** The size of the structure. */ - unsigned cb; - /** The structure version. */ - unsigned uVersion; - - unsigned int (*pfnGetVersion)(void); - - void (*pfnComInitialize)(const char *pszVirtualBoxIID, - IVirtualBox **ppVirtualBox, - const char *pszSessionIID, - ISession **ppSession); - void (*pfnComUninitialize)(void); - - void (*pfnComUnallocMem)(void *pv); - void (*pfnUtf16Free)(PRUnichar *pwszString); - void (*pfnUtf8Free)(char *pszString); - - int (*pfnUtf16ToUtf8)(const PRUnichar *pwszString, char **ppszString= ); - int (*pfnUtf8ToUtf16)(const char *pszString, PRUnichar **ppwszString= ); - - void (*pfnGetEventQueue)(nsIEventQueue **eventQueue); - - /** Tail version, same as uVersion. */ - unsigned uEndVersion; -} VBOXXPCOMC; -/** Pointer to a const VBoxXPCOMC function table. */ -typedef VBOXXPCOMC const *PCVBOXXPCOM; - -/** The current interface version. - * For use with VBoxGetXPCOMCFunctions and to be found in - * VBOXXPCOMC::uVersion. */ -# define VBOX_XPCOMC_VERSION 0x00020000U - -VBOXXPCOMC_DECL(PCVBOXXPCOM) VBoxGetXPCOMCFunctions(unsigned uVersion); -/** Typedef for VBoxGetXPCOMCFunctions. */ -typedef PCVBOXXPCOM (*PFNVBOXGETXPCOMCFUNCTIONS)(unsigned uVersion); - -/** The symbol name of VBoxGetXPCOMCFunctions. */ -# if defined(__OS2__) -# define VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME "_VBoxGetXPCOMCFunctions" -# else -# define VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME "VBoxGetXPCOMCFunctions" -# endif - - -# ifdef __cplusplus -} -# endif - -#endif /* !___VirtualBox_CXPCOM_h */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri Apr 26 20:41:27 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555074120; cv=none; d=zoho.com; s=zohoarc; b=Dxt5pAluT9LlC4QQ9GredP4tGiPcDVJzHuCkq+FrQTz1VhKrlTy/MSH/DhjQbPZ14dhVEfYvTKHx8Pf6Jo+2N0Z1VMX76Yv9MlKfUvAJZjf3gf+HrX8T0pEUHZFHwzbXiLWqLsRhhthhECU1Sec/uYB6GG9zWMbl7uQLNSh6+Cc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555074120; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=QJRA45eRyCjUy/przmEXrF3C9JQtGXQ1lh1Xhf+9KtI=; b=WPAhDc3l6tBqQEoaD7UnIj/mh7okAAFiBYUMiXTQ79siIfGfJIFu7fd7VL5+Pm3EocVXYrENbUm4oQ6v3RfERHIwFt0bv11uCQDr+h63p1x3NfsmwIUxZVKhGZj5Kr8kxBGEZZW/FVabuImsIj/s2SUuXR6N++vKekwbf9zJYRE= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1555074120704708.6768307376155; Fri, 12 Apr 2019 06:02:00 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4BF6F307AD02; Fri, 12 Apr 2019 13:01:58 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0FC8B619BC; Fri, 12 Apr 2019 13:01:58 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B86393FB13; Fri, 12 Apr 2019 13:01:57 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3CD0vtC031806 for ; Fri, 12 Apr 2019 09:00:57 -0400 Received: by smtp.corp.redhat.com (Postfix) id 2334719750; Fri, 12 Apr 2019 13:00:57 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-27.ams2.redhat.com [10.36.112.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8E9C819728; Fri, 12 Apr 2019 13:00:52 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Fri, 12 Apr 2019 14:00:37 +0100 Message-Id: <20190412130040.21306-5-berrange@redhat.com> In-Reply-To: <20190412130040.21306-1-berrange@redhat.com> References: <20190412130040.21306-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 4/7] vbox: drop C API definition for release 4.2 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Fri, 12 Apr 2019 13:01:59 +0000 (UTC) Support for compiling this version was dropped in an earlier commit. Signed-off-by: Daniel P. Berrang=C3=A9 --- src/vbox/Makefile.inc.am | 1 - src/vbox/vbox_CAPI_v4_2.h | 8855 ------------------------------------- 2 files changed, 8856 deletions(-) delete mode 100644 src/vbox/vbox_CAPI_v4_2.h diff --git a/src/vbox/Makefile.inc.am b/src/vbox/Makefile.inc.am index 00d3b36044..f460a8d42c 100644 --- a/src/vbox/Makefile.inc.am +++ b/src/vbox/Makefile.inc.am @@ -5,7 +5,6 @@ VBOX_DRIVER_SOURCES =3D \ vbox/vbox_driver.h \ vbox/vbox_snapshot_conf.c \ vbox/vbox_snapshot_conf.h \ - vbox/vbox_CAPI_v4_2.h \ vbox/vbox_CAPI_v4_2_20.h \ vbox/vbox_CAPI_v4_3.h \ vbox/vbox_CAPI_v4_3_4.h \ diff --git a/src/vbox/vbox_CAPI_v4_2.h b/src/vbox/vbox_CAPI_v4_2.h deleted file mode 100644 index 003b9e3eef..0000000000 --- a/src/vbox/vbox_CAPI_v4_2.h +++ /dev/null @@ -1,8855 +0,0 @@ -/* - * Libvirt notice: this file is derived from the VirtualBox SDK, with - * libvirt edits; do not regenerate in the context of libvirt. - */ -/* - * DO NOT EDIT! This is a generated file. - * - * XPCOM IDL (XPIDL) definition for VirtualBox Main API (COM interfaces) - * generated from XIDL (XML interface definition). - * - * Source : src/VBox/Main/idl/VirtualBox.xidl - * Generator : src/VBox/Main/idl/xpcidl.xsl - * - * This file contains portions from the following Mozilla XPCOM files: - * xpcom/include/xpcom/nsID.h - * xpcom/include/nsIException.h - * xpcom/include/nsprpub/prtypes.h - * xpcom/include/xpcom/nsISupportsBase.h - * - * These files were originally triple-licensed (MPL/GPL2/LGPL2.1). Oracle - * elects to distribute this derived work under the LGPL2.1 only. - */ - -/* - * Copyright (C) 2008-2012 Oracle Corporation - * - * This file is part of a free software library; you can redistribute - * it and/or modify it under the terms of the GNU Lesser General - * Public License version 2.1 as published by the Free Software - * Foundation and shipped in the "COPYING.LESSER" file with this library. - * The library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY of any kind. - * - * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if - * any license choice other than GPL or LGPL is available it will - * apply instead, Oracle elects to use only the Lesser General Public - * License version 2.1 (LGPLv2) at this time for any software where - * a choice of LGPL license versions is made available with the - * language indicating that LGPLv2 or any later version may be used, - * or where a choice of which version of the LGPL is applied is - * otherwise unspecified. - */ - -#ifndef ___VirtualBox_CXPCOM_h -# define ___VirtualBox_CXPCOM_h - -# ifdef __cplusplus -# include "VirtualBox_XPCOM.h" -# else /* !__cplusplus */ - -# include -# include "wchar.h" - -# ifdef WIN32 -# define PR_COM_METHOD __stdcall -# else -# define PR_COM_METHOD -# endif - -# if defined(WIN32) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) __declspec(dllimport) __type -# define PR_IMPORT_DATA(__type) __declspec(dllimport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_BEOS) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) extern __declspec(dllexport) __type -# define PR_IMPORT_DATA(__type) extern __declspec(dllexport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(WIN16) - -# define PR_CALLBACK_DECL __cdecl - -# if defined(_WINDLL) -# define PR_EXPORT(__type) extern __type _cdecl _export _loadds -# define PR_IMPORT(__type) extern __type _cdecl _export _loadds -# define PR_EXPORT_DATA(__type) extern __type _export -# define PR_IMPORT_DATA(__type) extern __type _export - -# define PR_EXTERN(__type) extern __type _cdecl _export _loadds -# define PR_IMPLEMENT(__type) __type _cdecl _export _loadds -# define PR_EXTERN_DATA(__type) extern __type _export -# define PR_IMPLEMENT_DATA(__type) __type _export - -# define PR_CALLBACK __cdecl __loadds -# define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK - -# else /* this must be .EXE */ -# define PR_EXPORT(__type) extern __type _cdecl _export -# define PR_IMPORT(__type) extern __type _cdecl _export -# define PR_EXPORT_DATA(__type) extern __type _export -# define PR_IMPORT_DATA(__type) extern __type _export - -# define PR_EXTERN(__type) extern __type _cdecl _export -# define PR_IMPLEMENT(__type) __type _cdecl _export -# define PR_EXTERN_DATA(__type) extern __type _export -# define PR_IMPLEMENT_DATA(__type) __type _export - -# define PR_CALLBACK __cdecl __loadds -# define PR_STATIC_CALLBACK(__x) __x PR_CALLBACK -# endif /* _WINDLL */ - -# elif defined(XP_MAC) - -# define PR_EXPORT(__type) extern __declspec(export) __type -# define PR_EXPORT_DATA(__type) extern __declspec(export) __type -# define PR_IMPORT(__type) extern __declspec(export) __type -# define PR_IMPORT_DATA(__type) extern __declspec(export) __type - -# define PR_EXTERN(__type) extern __declspec(export) __type -# define PR_IMPLEMENT(__type) __declspec(export) __type -# define PR_EXTERN_DATA(__type) extern __declspec(export) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(export) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_OS2) && defined(__declspec) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) __declspec(dllimport) __type -# define PR_IMPORT_DATA(__type) __declspec(dllimport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_OS2_VACPP) - -# define PR_EXPORT(__type) extern __type -# define PR_EXPORT_DATA(__type) extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type - -# define PR_EXTERN(__type) extern __type -# define PR_IMPLEMENT(__type) __type -# define PR_EXTERN_DATA(__type) extern __type -# define PR_IMPLEMENT_DATA(__type) __type -# define PR_CALLBACK _Optlink -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK - -# else /* Unix */ - -# ifdef VBOX_HAVE_VISIBILITY_HIDDEN -# define PR_EXPORT(__type) __attribute__((visibility("default"))) exter= n __type -# define PR_EXPORT_DATA(__type) __attribute__((visibility("default"))) = extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type -# define PR_EXTERN(__type) __attribute__((visibility("default"))) exter= n __type -# define PR_IMPLEMENT(__type) __attribute__((visibility("default"))) __= type -# define PR_EXTERN_DATA(__type) __attribute__((visibility("default"))) = extern __type -# define PR_IMPLEMENT_DATA(__type) __attribute__((visibility("default")= )) __type -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x -# else -# define PR_EXPORT(__type) extern __type -# define PR_EXPORT_DATA(__type) extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type -# define PR_EXTERN(__type) extern __type -# define PR_IMPLEMENT(__type) __type -# define PR_EXTERN_DATA(__type) extern __type -# define PR_IMPLEMENT_DATA(__type) __type -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x -# endif -# endif - -# if defined(_NSPR_BUILD_) -# define NSPR_API(__type) PR_EXPORT(__type) -# define NSPR_DATA_API(__type) PR_EXPORT_DATA(__type) -# else -# define NSPR_API(__type) PR_IMPORT(__type) -# define NSPR_DATA_API(__type) PR_IMPORT_DATA(__type) -# endif - -typedef unsigned char PRUint8; -# if (defined(HPUX) && defined(__cplusplus) \ - && !defined(__GNUC__) && __cplusplus < 199707L) \ - || (defined(SCO) && defined(__cplusplus) \ - && !defined(__GNUC__) && __cplusplus =3D=3D 1L) -typedef char PRInt8; -# else -typedef signed char PRInt8; -# endif - -# define PR_INT8_MAX 127 -# define PR_INT8_MIN (-128) -# define PR_UINT8_MAX 255U - -typedef unsigned short PRUint16; -typedef short PRInt16; - -# define PR_INT16_MAX 32767 -# define PR_INT16_MIN (-32768) -# define PR_UINT16_MAX 65535U - -typedef unsigned int PRUint32; -typedef int PRInt32; -# define PR_INT32(x) x -# define PR_UINT32(x) x ## U - -# define PR_INT32_MAX PR_INT32(2147483647) -# define PR_INT32_MIN (-PR_INT32_MAX - 1) -# define PR_UINT32_MAX PR_UINT32(4294967295) - -typedef long PRInt64; -typedef unsigned long PRUint64; -typedef int PRIntn; -typedef unsigned int PRUintn; - -typedef double PRFloat64; -typedef size_t PRSize; - -typedef ptrdiff_t PRPtrdiff; - -typedef unsigned long PRUptrdiff; - -typedef PRIntn PRBool; - -# define PR_TRUE 1 -# define PR_FALSE 0 - -typedef PRUint8 PRPackedBool; - -/* -** Status code used by some routines that have a single point of failure or -** special status return. -*/ -typedef enum { PR_FAILURE =3D -1, PR_SUCCESS =3D 0 } PRStatus; - -# ifndef __PRUNICHAR__ -# define __PRUNICHAR__ -# if defined(WIN32) || defined(XP_MAC) -typedef wchar_t PRUnichar; -# else -typedef PRUint16 PRUnichar; -# endif -# endif - -typedef long PRWord; -typedef unsigned long PRUword; - -# define nsnull 0 -typedef PRUint32 nsresult; - -# if defined(__GNUC__) && (__GNUC__ > 2) -# define NS_LIKELY(x) (__builtin_expect((x), 1)) -# define NS_UNLIKELY(x) (__builtin_expect((x), 0)) -# else -# define NS_LIKELY(x) (x) -# define NS_UNLIKELY(x) (x) -# endif - -# define NS_FAILED(_nsresult) (NS_UNLIKELY((_nsresult) & 0x80000000)) -# define NS_SUCCEEDED(_nsresult) (NS_LIKELY(!((_nsresult) & 0x80000000))) - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_IntervalNow VBoxNsprPR_IntervalNow -# define PR_TicksPerSecond VBoxNsprPR_TicksPerSecond -# define PR_SecondsToInterval VBoxNsprPR_SecondsToInterval -# define PR_MillisecondsToInterval VBoxNsprPR_MillisecondsToInterval -# define PR_MicrosecondsToInterval VBoxNsprPR_MicrosecondsToInterval -# define PR_IntervalToSeconds VBoxNsprPR_IntervalToSeconds -# define PR_IntervalToMilliseconds VBoxNsprPR_IntervalToMilliseconds -# define PR_IntervalToMicroseconds VBoxNsprPR_IntervalToMicroseconds -# define PR_EnterMonitor VBoxNsprPR_EnterMonitor -# define PR_ExitMonitor VBoxNsprPR_ExitMonitor -# define PR_Notify VBoxNsprPR_Notify -# define PR_NotifyAll VBoxNsprPR_NotifyAll -# define PR_Wait VBoxNsprPR_Wait -# define PR_NewMonitor VBoxNsprPR_NewMonitor -# define PR_DestroyMonitor VBoxNsprPR_DestroyMonitor -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef PRUint32 PRIntervalTime; - -# define PR_INTERVAL_MIN 1000UL -# define PR_INTERVAL_MAX 100000UL -# define PR_INTERVAL_NO_WAIT 0UL -# define PR_INTERVAL_NO_TIMEOUT 0xffffffffUL - -NSPR_API(PRIntervalTime) PR_IntervalNow(void); -NSPR_API(PRUint32) PR_TicksPerSecond(void); -NSPR_API(PRIntervalTime) PR_SecondsToInterval(PRUint32 seconds); -NSPR_API(PRIntervalTime) PR_MillisecondsToInterval(PRUint32 milli); -NSPR_API(PRIntervalTime) PR_MicrosecondsToInterval(PRUint32 micro); -NSPR_API(PRUint32) PR_IntervalToSeconds(PRIntervalTime ticks); -NSPR_API(PRUint32) PR_IntervalToMilliseconds(PRIntervalTime ticks); -NSPR_API(PRUint32) PR_IntervalToMicroseconds(PRIntervalTime ticks); - -typedef struct PRMonitor PRMonitor; - -NSPR_API(PRMonitor*) PR_NewMonitor(void); -NSPR_API(void) PR_DestroyMonitor(PRMonitor *mon); -NSPR_API(void) PR_EnterMonitor(PRMonitor *mon); -NSPR_API(PRStatus) PR_ExitMonitor(PRMonitor *mon); -NSPR_API(PRStatus) PR_Wait(PRMonitor *mon, PRIntervalTime ticks); -NSPR_API(PRStatus) PR_Notify(PRMonitor *mon); -NSPR_API(PRStatus) PR_NotifyAll(PRMonitor *mon); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_CreateThread VBoxNsprPR_CreateThread -# define PR_JoinThread VBoxNsprPR_JoinThread -# define PR_Sleep VBoxNsprPR_Sleep -# define PR_GetCurrentThread VBoxNsprPR_GetCurrentThread -# define PR_GetThreadState VBoxNsprPR_GetThreadState -# define PR_SetThreadPrivate VBoxNsprPR_SetThreadPrivate -# define PR_GetThreadPrivate VBoxNsprPR_GetThreadPrivate -# define PR_NewThreadPrivateIndex VBoxNsprPR_NewThreadPrivateIndex -# define PR_GetThreadPriority VBoxNsprPR_GetThreadPriority -# define PR_SetThreadPriority VBoxNsprPR_SetThreadPriority -# define PR_Interrupt VBoxNsprPR_Interrupt -# define PR_ClearInterrupt VBoxNsprPR_ClearInterrupt -# define PR_BlockInterrupt VBoxNsprPR_BlockInterrupt -# define PR_UnblockInterrupt VBoxNsprPR_UnblockInterrupt -# define PR_GetThreadScope VBoxNsprPR_GetThreadScope -# define PR_GetThreadType VBoxNsprPR_GetThreadType -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRThread PRThread; -typedef struct PRThreadStack PRThreadStack; - -typedef enum PRThreadType { - PR_USER_THREAD, - PR_SYSTEM_THREAD -} PRThreadType; - -typedef enum PRThreadScope { - PR_LOCAL_THREAD, - PR_GLOBAL_THREAD, - PR_GLOBAL_BOUND_THREAD -} PRThreadScope; - -typedef enum PRThreadState { - PR_JOINABLE_THREAD, - PR_UNJOINABLE_THREAD -} PRThreadState; - -typedef enum PRThreadPriority -{ - PR_PRIORITY_FIRST =3D 0, /* just a placeholder */ - PR_PRIORITY_LOW =3D 0, /* the lowest possible priority */ - PR_PRIORITY_NORMAL =3D 1, /* most common expected priority */ - PR_PRIORITY_HIGH =3D 2, /* slightly more aggressive scheduling */ - PR_PRIORITY_URGENT =3D 3, /* it does little good to have more than= one */ - PR_PRIORITY_LAST =3D 3 /* this is just a placeholder */ -} PRThreadPriority; - -NSPR_API(PRThread*) PR_CreateThread(PRThreadType type, - void (PR_CALLBACK *start)(void *arg), - void *arg, - PRThreadPriority priority, - PRThreadScope scope, - PRThreadState state, - PRUint32 stackSize); -NSPR_API(PRStatus) PR_JoinThread(PRThread *thread); -NSPR_API(PRThread*) PR_GetCurrentThread(void); -# ifndef NO_NSPR_10_SUPPORT -# define PR_CurrentThread() PR_GetCurrentThread() /* for nspr1.0 compat.= */ -# endif /* NO_NSPR_10_SUPPORT */ -NSPR_API(PRThreadPriority) PR_GetThreadPriority(const PRThread *thread); -NSPR_API(void) PR_SetThreadPriority(PRThread *thread, PRThreadPriority pri= ority); - -typedef void (PR_CALLBACK *PRThreadPrivateDTOR)(void *priv); - -NSPR_API(PRStatus) PR_NewThreadPrivateIndex( - PRUintn *newIndex, PRThreadPrivateDTOR destructor); -NSPR_API(PRStatus) PR_SetThreadPrivate(PRUintn tpdIndex, void *priv); -NSPR_API(void*) PR_GetThreadPrivate(PRUintn tpdIndex); -NSPR_API(PRStatus) PR_Interrupt(PRThread *thread); -NSPR_API(void) PR_ClearInterrupt(void); -NSPR_API(void) PR_BlockInterrupt(void); -NSPR_API(void) PR_UnblockInterrupt(void); -NSPR_API(PRStatus) PR_Sleep(PRIntervalTime ticks); -NSPR_API(PRThreadScope) PR_GetThreadScope(const PRThread *thread); -NSPR_API(PRThreadType) PR_GetThreadType(const PRThread *thread); -NSPR_API(PRThreadState) PR_GetThreadState(const PRThread *thread); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_DestroyLock VBoxNsprPR_DestroyLock -# define PR_Lock VBoxNsprPR_Lock -# define PR_NewLock VBoxNsprPR_NewLock -# define PR_Unlock VBoxNsprPR_Unlock -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRLock PRLock; - -NSPR_API(PRLock*) PR_NewLock(void); -NSPR_API(void) PR_DestroyLock(PRLock *lock); -NSPR_API(void) PR_Lock(PRLock *lock); -NSPR_API(PRStatus) PR_Unlock(PRLock *lock); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_NewCondVar VBoxNsprPR_NewCondVar -# define PR_DestroyCondVar VBoxNsprPR_DestroyCondVar -# define PR_WaitCondVar VBoxNsprPR_WaitCondVar -# define PR_NotifyCondVar VBoxNsprPR_NotifyCondVar -# define PR_NotifyAllCondVar VBoxNsprPR_NotifyAllCondVar -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRCondVar PRCondVar; - -NSPR_API(PRCondVar*) PR_NewCondVar(PRLock *lock); -NSPR_API(void) PR_DestroyCondVar(PRCondVar *cvar); -NSPR_API(PRStatus) PR_WaitCondVar(PRCondVar *cvar, PRIntervalTime timeout); -NSPR_API(PRStatus) PR_NotifyCondVar(PRCondVar *cvar); -NSPR_API(PRStatus) PR_NotifyAllCondVar(PRCondVar *cvar); - -typedef struct PRCListStr PRCList; - -struct PRCListStr { - PRCList *next; - PRCList *prev; -}; - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PL_DestroyEvent VBoxNsplPL_DestroyEvent -# define PL_HandleEvent VBoxNsplPL_HandleEvent -# define PL_InitEvent VBoxNsplPL_InitEvent -# define PL_CreateEventQueue VBoxNsplPL_CreateEventQueue -# define PL_CreateMonitoredEventQueue VBoxNsplPL_CreateMonitoredEventQue= ue -# define PL_CreateNativeEventQueue VBoxNsplPL_CreateNativeEventQueue -# define PL_DequeueEvent VBoxNsplPL_DequeueEvent -# define PL_DestroyEventQueue VBoxNsplPL_DestroyEventQueue -# define PL_EventAvailable VBoxNsplPL_EventAvailable -# define PL_EventLoop VBoxNsplPL_EventLoop -# define PL_GetEvent VBoxNsplPL_GetEvent -# define PL_GetEventOwner VBoxNsplPL_GetEventOwner -# define PL_GetEventQueueMonitor VBoxNsplPL_GetEventQueueMonitor -# define PL_GetEventQueueSelectFD VBoxNsplPL_GetEventQueueSelectFD -# define PL_MapEvents VBoxNsplPL_MapEvents -# define PL_PostEvent VBoxNsplPL_PostEvent -# define PL_PostSynchronousEvent VBoxNsplPL_PostSynchronousEvent -# define PL_ProcessEventsBeforeID VBoxNsplPL_ProcessEventsBeforeID -# define PL_ProcessPendingEvents VBoxNsplPL_ProcessPendingEvents -# define PL_RegisterEventIDFunc VBoxNsplPL_RegisterEventIDFunc -# define PL_RevokeEvents VBoxNsplPL_RevokeEvents -# define PL_UnregisterEventIDFunc VBoxNsplPL_UnregisterEventIDFunc -# define PL_WaitForEvent VBoxNsplPL_WaitForEvent -# define PL_IsQueueNative VBoxNsplPL_IsQueueNative -# define PL_IsQueueOnCurrentThread VBoxNsplPL_IsQueueOnCurrentThread -# define PL_FavorPerformanceHint VBoxNsplPL_FavorPerformanceHint -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PLEvent PLEvent; -typedef struct PLEventQueue PLEventQueue; - -PR_EXTERN(PLEventQueue*) -PL_CreateEventQueue(const char* name, PRThread* handlerThread); -PR_EXTERN(PLEventQueue *) - PL_CreateNativeEventQueue( - const char *name, - PRThread *handlerThread - ); -PR_EXTERN(PLEventQueue *) - PL_CreateMonitoredEventQueue( - const char *name, - PRThread *handlerThread - ); -PR_EXTERN(void) -PL_DestroyEventQueue(PLEventQueue* self); -PR_EXTERN(PRMonitor*) -PL_GetEventQueueMonitor(PLEventQueue* self); - -# define PL_ENTER_EVENT_QUEUE_MONITOR(queue) \ - PR_EnterMonitor(PL_GetEventQueueMonitor(queue)) - -# define PL_EXIT_EVENT_QUEUE_MONITOR(queue) \ - PR_ExitMonitor(PL_GetEventQueueMonitor(queue)) - -PR_EXTERN(PRStatus) PL_PostEvent(PLEventQueue* self, PLEvent* event); -PR_EXTERN(void*) PL_PostSynchronousEvent(PLEventQueue* self, PLEvent* even= t); -PR_EXTERN(PLEvent*) PL_GetEvent(PLEventQueue* self); -PR_EXTERN(PRBool) PL_EventAvailable(PLEventQueue* self); - -typedef void (PR_CALLBACK *PLEventFunProc)(PLEvent* event, void* data, PLE= ventQueue* queue); - -PR_EXTERN(void) PL_MapEvents(PLEventQueue* self, PLEventFunProc fun, void*= data); -PR_EXTERN(void) PL_RevokeEvents(PLEventQueue* self, void* owner); -PR_EXTERN(void) PL_ProcessPendingEvents(PLEventQueue* self); -PR_EXTERN(PLEvent*) PL_WaitForEvent(PLEventQueue* self); -PR_EXTERN(void) PL_EventLoop(PLEventQueue* self); -PR_EXTERN(PRInt32) PL_GetEventQueueSelectFD(PLEventQueue* self); -PR_EXTERN(PRBool) PL_IsQueueOnCurrentThread( PLEventQueue *queue ); -PR_EXTERN(PRBool) PL_IsQueueNative(PLEventQueue *queue); - -typedef void* (PR_CALLBACK *PLHandleEventProc)(PLEvent* self); -typedef void (PR_CALLBACK *PLDestroyEventProc)(PLEvent* self); -PR_EXTERN(void) -PL_InitEvent(PLEvent* self, void* owner, - PLHandleEventProc handler, - PLDestroyEventProc destructor); -PR_EXTERN(void*) PL_GetEventOwner(PLEvent* self); -PR_EXTERN(void) PL_HandleEvent(PLEvent* self); -PR_EXTERN(void) PL_DestroyEvent(PLEvent* self); -PR_EXTERN(void) PL_DequeueEvent(PLEvent* self, PLEventQueue* queue); -PR_EXTERN(void) PL_FavorPerformanceHint(PRBool favorPerformanceOverEventSt= arvation, PRUint32 starvationDelay); - -struct PLEvent { - PRCList link; - PLHandleEventProc handler; - PLDestroyEventProc destructor; - void* owner; - void* synchronousResult; - PRLock* lock; - PRCondVar* condVar; - PRBool handled; -# ifdef PL_POST_TIMINGS - PRIntervalTime postTime; -# endif -# ifdef XP_UNIX - unsigned long id; -# endif /* XP_UNIX */ - /* other fields follow... */ -}; - -# if defined(XP_WIN) || defined(XP_OS2) - -PR_EXTERN(HWND) - PL_GetNativeEventReceiverWindow( - PLEventQueue *eqp - ); -# endif /* XP_WIN || XP_OS2 */ - -# ifdef XP_UNIX - -PR_EXTERN(PRInt32) -PL_ProcessEventsBeforeID(PLEventQueue *aSelf, unsigned long aID); - -typedef unsigned long (PR_CALLBACK *PLGetEventIDFunc)(void *aClosure); - -PR_EXTERN(void) -PL_RegisterEventIDFunc(PLEventQueue *aSelf, PLGetEventIDFunc aFunc, - void *aClosure); -PR_EXTERN(void) PL_UnregisterEventIDFunc(PLEventQueue *aSelf); - -# endif /* XP_UNIX */ - -/* Standard "it worked" return value */ -# define NS_OK 0 - -# define NS_ERROR_BASE ((nsresult) 0xC1F30000) - -/* Returned when an instance is not initialized */ -# define NS_ERROR_NOT_INITIALIZED (NS_ERROR_BASE + 1) - -/* Returned when an instance is already initialized */ -# define NS_ERROR_ALREADY_INITIALIZED (NS_ERROR_BASE + 2) - -/* Returned by a not implemented function */ -# define NS_ERROR_NOT_IMPLEMENTED ((nsresult) 0x80004001L) - -/* Returned when a given interface is not supported. */ -# define NS_NOINTERFACE ((nsresult) 0x80004002L) -# define NS_ERROR_NO_INTERFACE NS_NOINTERFACE - -# define NS_ERROR_INVALID_POINTER ((nsresult) 0x80004003L) -# define NS_ERROR_NULL_POINTER NS_ERROR_INVALID_POINTER - -/* Returned when a function aborts */ -# define NS_ERROR_ABORT ((nsresult) 0x80004004L) - -/* Returned when a function fails */ -# define NS_ERROR_FAILURE ((nsresult) 0x80004005L) - -/* Returned when an unexpected error occurs */ -# define NS_ERROR_UNEXPECTED ((nsresult) 0x8000ffffL) - -/* Returned when a memory allocation fails */ -# define NS_ERROR_OUT_OF_MEMORY ((nsresult) 0x8007000eL) - -/* Returned when an illegal value is passed */ -# define NS_ERROR_ILLEGAL_VALUE ((nsresult) 0x80070057L) -# define NS_ERROR_INVALID_ARG NS_ERROR_ILLEGAL_VALUE - -/* Returned when a class doesn't allow aggregation */ -# define NS_ERROR_NO_AGGREGATION ((nsresult) 0x80040110L) - -/* Returned when an operation can't complete due to an unavailable resourc= e */ -# define NS_ERROR_NOT_AVAILABLE ((nsresult) 0x80040111L) - -/* Returned when a class is not registered */ -# define NS_ERROR_FACTORY_NOT_REGISTERED ((nsresult) 0x80040154L) - -/* Returned when a class cannot be registered, but may be tried again late= r */ -# define NS_ERROR_FACTORY_REGISTER_AGAIN ((nsresult) 0x80040155L) - -/* Returned when a dynamically loaded factory couldn't be found */ -# define NS_ERROR_FACTORY_NOT_LOADED ((nsresult) 0x800401f8L) - -/* Returned when a factory doesn't support signatures */ -# define NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT \ - (NS_ERROR_BASE + 0x101) - -/* Returned when a factory already is registered */ -# define NS_ERROR_FACTORY_EXISTS (NS_ERROR_BASE + 0x100) - - -/** - * An "interface id" which can be used to uniquely identify a given - * interface. - * A "unique identifier". This is modeled after OSF DCE UUIDs. - */ - -struct nsID { - PRUint32 m0; - PRUint16 m1; - PRUint16 m2; - PRUint8 m3[8]; -}; - -typedef struct nsID nsID; -typedef nsID nsIID; - -struct nsISupports; /* forward declaration */ -struct nsIStackFrame; /* forward declaration */ -struct nsIException; /* forward declaration */ -typedef struct nsISupports nsISupports; /* forward declaration */ -typedef struct nsIStackFrame nsIStackFrame; /* forward declaration */ -typedef struct nsIException nsIException; /* forward declaration */ - -/** - * IID for the nsISupports interface - * {00000000-0000-0000-c000-000000000046} - * - * To maintain binary compatibility with COM's IUnknown, we define the IID - * of nsISupports to be the same as that of COM's IUnknown. - */ -# define NS_ISUPPORTS_IID \ - { 0x00000000, 0x0000, 0x0000, \ - {0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46} } - -/** - * Reference count values - * - * This is the return type for AddRef() and Release() in nsISupports. - * IUnknown of COM returns an unsigned long from equivalent functions. - * The following ifdef exists to maintain binary compatibility with - * IUnknown. - */ - -/** - * Basic component object model interface. Objects which implement - * this interface support runtime interface discovery (QueryInterface) - * and a reference counted memory model (AddRef/Release). This is - * modelled after the win32 IUnknown API. - */ -struct nsISupports_vtbl { - - /** - * @name Methods - */ - - /** - * A run time mechanism for interface discovery. - * @param aIID [in] A requested interface IID - * @param aInstancePtr [out] A pointer to an interface pointer to - * receive the result. - * @return NS_OK if the interface is supported by the associa= ted - * instance, NS_NOINTERFACE if it is not. - * NS_ERROR_INVALID_POINTER if aInstancePtr is NULL. - */ - nsresult PR_COM_METHOD (*QueryInterface)(nsISupports *pThis, const nsID = *iid, void **resultp); - /** - * Increases the reference count for this interface. - * The associated instance will not be deleted unless - * the reference count is returned to zero. - * - * @return The resulting reference count. - */ - nsresult PR_COM_METHOD (*AddRef)(nsISupports *pThis); - - /** - * Decreases the reference count for this interface. - * Generally, if the reference count returns to zero, - * the associated instance is deleted. - * - * @return The resulting reference count. - */ - nsresult PR_COM_METHOD (*Release)(nsISupports *pThis); - -# ifdef WIN32 - /* The MSCOM implementation has some additional methods here. - * So add them here to get correct binary layout of the object. - * In API version 4.x this affects all types. */ - nsresult PR_COM_METHOD (*GetTypeInfoCount)(nsISupports *pThis); - nsresult PR_COM_METHOD (*GetTypeInfo)(nsISupports *pThis); - nsresult PR_COM_METHOD (*GetIDsOfNames)(nsISupports *pThis); - nsresult PR_COM_METHOD (*Invoke)(nsISupports *pThis); -# endif -}; - -struct nsISupports { - struct nsISupports_vtbl *vtbl; -}; - -/* starting interface: nsIException */ -# define NS_IEXCEPTION_IID_STR "f3a8d3b4-c424-4edc-8bf6-8974c983ba78" - -# define NS_IEXCEPTION_IID \ - {0xf3a8d3b4, 0xc424, 0x4edc, \ - { 0x8b, 0xf6, 0x89, 0x74, 0xc9, 0x83, 0xba, 0x78 }} - -struct nsIException_vtbl { - - /* Methods from the Class nsISupports */ - struct nsISupports_vtbl nsisupports; - - /* readonly attribute string message; */ - nsresult PR_COM_METHOD (*GetMessage)(nsIException *pThis, PRUnichar * *a= Message); - - /* readonly attribute nsresult (*result; */ - nsresult PR_COM_METHOD (*GetResult)(nsIException *pThis, nsresult *aResu= lt); - - /* readonly attribute string name; */ - nsresult PR_COM_METHOD (*GetName)(nsIException *pThis, PRUnichar * *aNam= e); - - /* readonly attribute string filename; */ - nsresult PR_COM_METHOD (*GetFilename)(nsIException *pThis, PRUnichar * *= aFilename); - - /* readonly attribute PRUint32 lineNumber; */ - nsresult PR_COM_METHOD (*GetLineNumber)(nsIException *pThis, PRUint32 *a= LineNumber); - - /* readonly attribute PRUint32 columnNumber; */ - nsresult PR_COM_METHOD (*GetColumnNumber)(nsIException *pThis, PRUint32 = *aColumnNumber); - - /* readonly attribute nsIStackFrame location; */ - nsresult PR_COM_METHOD (*GetLocation)(nsIException *pThis, nsIStackFrame= * *aLocation); - - /* readonly attribute nsIException inner; */ - nsresult PR_COM_METHOD (*GetInner)(nsIException *pThis, nsIException * *= aInner); - - /* readonly attribute nsISupports data; */ - nsresult PR_COM_METHOD (*GetData)(nsIException *pThis, nsISupports * *aD= ata); - - /* string toString (); */ - nsresult PR_COM_METHOD (*ToString)(nsIException *pThis, PRUnichar **_ret= val); -}; - -struct nsIException { - struct nsIException_vtbl *vtbl; -}; - -/* starting interface: nsIStackFrame */ -# define NS_ISTACKFRAME_IID_STR "91d82105-7c62-4f8b-9779-154277c0ee90" - -# define NS_ISTACKFRAME_IID \ - {0x91d82105, 0x7c62, 0x4f8b, \ - { 0x97, 0x79, 0x15, 0x42, 0x77, 0xc0, 0xee, 0x90 }} - -struct nsIStackFrame_vtbl { - - /* Methods from the Class nsISupports */ - struct nsISupports_vtbl nsisupports; - - /* readonly attribute PRUint32 language; */ - nsresult PR_COM_METHOD (*GetLanguage)(nsIStackFrame *pThis, PRUint32 *aL= anguage); - - /* readonly attribute string languageName; */ - nsresult PR_COM_METHOD (*GetLanguageName)(nsIStackFrame *pThis, PRUnicha= r * *aLanguageName); - - /* readonly attribute string filename; */ - nsresult PR_COM_METHOD (*GetFilename)(nsIStackFrame *pThis, PRUnichar * = *aFilename); - - /* readonly attribute string name; */ - nsresult PR_COM_METHOD (*GetName)(nsIStackFrame *pThis, PRUnichar * *aNa= me); - - /* readonly attribute PRInt32 lineNumber; */ - nsresult PR_COM_METHOD (*GetLineNumber)(nsIStackFrame *pThis, PRInt32 *a= LineNumber); - - /* readonly attribute string sourceLine; */ - nsresult PR_COM_METHOD (*GetSourceLine)(nsIStackFrame *pThis, PRUnichar = * *aSourceLine); - - /* readonly attribute nsIStackFrame caller; */ - nsresult PR_COM_METHOD (*GetCaller)(nsIStackFrame *pThis, nsIStackFrame = * *aCaller); - - /* string toString (); */ - nsresult PR_COM_METHOD (*ToString)(nsIStackFrame *pThis, PRUnichar **_re= tval); -}; - -struct nsIStackFrame { - struct nsIStackFrame_vtbl *vtbl; -}; - -/* starting interface: nsIEventTarget */ -# define NS_IEVENTTARGET_IID_STR "ea99ad5b-cc67-4efb-97c9-2ef620a59f2a" - -# define NS_IEVENTTARGET_IID \ - {0xea99ad5b, 0xcc67, 0x4efb, \ - { 0x97, 0xc9, 0x2e, 0xf6, 0x20, 0xa5, 0x9f, 0x2a }} - -struct nsIEventTarget; -typedef struct nsIEventTarget nsIEventTarget; - -struct nsIEventTarget_vtbl { - - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*PostEvent)(nsIEventTarget *pThis, PLEvent * a= Event); - - nsresult PR_COM_METHOD (*IsOnCurrentThread)(nsIEventTarget *pThis, PRB= ool *_retval); - -}; - -struct nsIEventTarget { - struct nsIEventTarget_vtbl *vtbl; -}; - -/* starting interface: nsIEventQueue */ -# define NS_IEVENTQUEUE_IID_STR "176afb41-00a4-11d3-9f2a-00400553eef0" - -# define NS_IEVENTQUEUE_IID \ - {0x176afb41, 0x00a4, 0x11d3, \ - { 0x9f, 0x2a, 0x00, 0x40, 0x05, 0x53, 0xee, 0xf0 }} - -struct nsIEventQueue; -typedef struct nsIEventQueue nsIEventQueue; - -struct nsIEventQueue_vtbl { - - struct nsIEventTarget_vtbl nsieventtarget; - - nsresult PR_COM_METHOD (*InitEvent)(nsIEventQueue *pThis, PLEvent * aE= vent, void * owner, PLHandleEventProc handler, PLDestroyEventProc destructo= r); - - nsresult PR_COM_METHOD (*PostSynchronousEvent)(nsIEventQueue *pThis, P= LEvent * aEvent, void * *aResult); - - nsresult PR_COM_METHOD (*PendingEvents)(nsIEventQueue *pThis, PRBool *= _retval); - - nsresult PR_COM_METHOD (*ProcessPendingEvents)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*EventLoop)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*EventAvailable)(nsIEventQueue *pThis, PRBool = *aResult); - - nsresult PR_COM_METHOD (*GetEvent)(nsIEventQueue *pThis, PLEvent * *_r= etval); - - nsresult PR_COM_METHOD (*HandleEvent)(nsIEventQueue *pThis, PLEvent * = aEvent); - - nsresult PR_COM_METHOD (*WaitForEvent)(nsIEventQueue *pThis, PLEvent *= *_retval); - - PRInt32 PR_COM_METHOD (*GetEventQueueSelectFD)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*Init)(nsIEventQueue *pThis, PRBool aNative); - - nsresult PR_COM_METHOD (*InitFromPRThread)(nsIEventQueue *pThis, PRThr= ead * thread, PRBool aNative); - - nsresult PR_COM_METHOD (*InitFromPLQueue)(nsIEventQueue *pThis, PLEven= tQueue * aQueue); - - nsresult PR_COM_METHOD (*EnterMonitor)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*ExitMonitor)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*RevokeEvents)(nsIEventQueue *pThis, void * ow= ner); - - nsresult PR_COM_METHOD (*GetPLEventQueue)(nsIEventQueue *pThis, PLEven= tQueue * *_retval); - - nsresult PR_COM_METHOD (*IsQueueNative)(nsIEventQueue *pThis, PRBool *= _retval); - - nsresult PR_COM_METHOD (*StopAcceptingEvents)(nsIEventQueue *pThis); - -}; - -struct nsIEventQueue { - struct nsIEventQueue_vtbl *vtbl; -}; - - -# 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 - - -struct IVirtualBoxErrorInfo; -struct IDHCPServer; -struct IVirtualBox; -struct IVFSExplorer; -struct IAppliance; -struct IVirtualSystemDescription; -struct IInternalMachineControl; -struct IBIOSSettings; -struct IPCIAddress; -struct IPCIDeviceAttachment; -struct IMachine; -struct IVRDEServerInfo; -struct IConsole; -struct IHostNetworkInterface; -struct IHost; -struct ISystemProperties; -struct IGuestOSType; -struct IAdditionsFacility; -struct IGuestSession; -struct IProcess; -struct IGuestProcess; -struct IDirectory; -struct IGuestDirectory; -struct IFile; -struct IGuestFile; -struct IFsObjInfo; -struct IGuestFsObjInfo; -struct IGuest; -struct IProgress; -struct ISnapshot; -struct IMediumAttachment; -struct IMedium; -struct IMediumFormat; -struct IKeyboard; -struct IMouse; -struct IFramebuffer; -struct IFramebufferOverlay; -struct IDisplay; -struct INetworkAdapter; -struct ISerialPort; -struct IParallelPort; -struct IMachineDebugger; -struct IUSBController; -struct IUSBDevice; -struct IUSBDeviceFilter; -struct IHostUSBDevice; -struct IHostUSBDeviceFilter; -struct IAudioAdapter; -struct IVRDEServer; -struct ISharedFolder; -struct IInternalSessionControl; -struct ISession; -struct IStorageController; -struct IManagedObjectRef; -struct IWebsessionManager; -struct IPerformanceMetric; -struct IPerformanceCollector; -struct INATEngine; -struct IExtPackPlugIn; -struct IExtPackBase; -struct IExtPack; -struct IExtPackFile; -struct IExtPackManager; -struct IBandwidthGroup; -struct IBandwidthControl; -struct IVirtualBoxClient; -struct IEventSource; -struct IEventListener; -struct IEvent; -struct IReusableEvent; -struct IMachineEvent; -struct IMachineStateChangedEvent; -struct IMachineDataChangedEvent; -struct IMediumRegisteredEvent; -struct IMachineRegisteredEvent; -struct ISessionStateChangedEvent; -struct IGuestPropertyChangedEvent; -struct ISnapshotEvent; -struct ISnapshotTakenEvent; -struct ISnapshotDeletedEvent; -struct ISnapshotChangedEvent; -struct IMousePointerShapeChangedEvent; -struct IMouseCapabilityChangedEvent; -struct IKeyboardLedsChangedEvent; -struct IStateChangedEvent; -struct IAdditionsStateChangedEvent; -struct INetworkAdapterChangedEvent; -struct ISerialPortChangedEvent; -struct IParallelPortChangedEvent; -struct IStorageControllerChangedEvent; -struct IMediumChangedEvent; -struct IClipboardModeChangedEvent; -struct IDragAndDropModeChangedEvent; -struct ICPUChangedEvent; -struct ICPUExecutionCapChangedEvent; -struct IGuestKeyboardEvent; -struct IGuestMouseEvent; -struct IVRDEServerChangedEvent; -struct IVRDEServerInfoChangedEvent; -struct IUSBControllerChangedEvent; -struct IUSBDeviceStateChangedEvent; -struct ISharedFolderChangedEvent; -struct IRuntimeErrorEvent; -struct IEventSourceChangedEvent; -struct IExtraDataChangedEvent; -struct IVetoEvent; -struct IExtraDataCanChangeEvent; -struct ICanShowWindowEvent; -struct IShowWindowEvent; -struct INATRedirectEvent; -struct IHostPCIDevicePlugEvent; -struct IVBoxSVCAvailabilityChangedEvent; -struct IBandwidthGroupChangedEvent; -struct IGuestMonitorChangedEvent; -struct IStorageDeviceChangedEvent; - -typedef struct IVirtualBoxErrorInfo IVirtualBoxErrorInfo; -typedef struct IDHCPServer IDHCPServer; -typedef struct IVirtualBox IVirtualBox; -typedef struct IVFSExplorer IVFSExplorer; -typedef struct IAppliance IAppliance; -typedef struct IVirtualSystemDescription IVirtualSystemDescription; -typedef struct IInternalMachineControl IInternalMachineControl; -typedef struct IBIOSSettings IBIOSSettings; -typedef struct IPCIAddress IPCIAddress; -typedef struct IPCIDeviceAttachment IPCIDeviceAttachment; -typedef struct IMachine IMachine; -typedef struct IVRDEServerInfo IVRDEServerInfo; -typedef struct IConsole IConsole; -typedef struct IHostNetworkInterface IHostNetworkInterface; -typedef struct IHost IHost; -typedef struct ISystemProperties ISystemProperties; -typedef struct IGuestOSType IGuestOSType; -typedef struct IAdditionsFacility IAdditionsFacility; -typedef struct IGuestSession IGuestSession; -typedef struct IProcess IProcess; -typedef struct IGuestProcess IGuestProcess; -typedef struct IDirectory IDirectory; -typedef struct IGuestDirectory IGuestDirectory; -typedef struct IFile IFile; -typedef struct IGuestFile IGuestFile; -typedef struct IFsObjInfo IFsObjInfo; -typedef struct IGuestFsObjInfo IGuestFsObjInfo; -typedef struct IGuest IGuest; -typedef struct IProgress IProgress; -typedef struct ISnapshot ISnapshot; -typedef struct IMediumAttachment IMediumAttachment; -typedef struct IMedium IMedium; -typedef struct IMediumFormat IMediumFormat; -typedef struct IKeyboard IKeyboard; -typedef struct IMouse IMouse; -typedef struct IFramebuffer IFramebuffer; -typedef struct IFramebufferOverlay IFramebufferOverlay; -typedef struct IDisplay IDisplay; -typedef struct INetworkAdapter INetworkAdapter; -typedef struct ISerialPort ISerialPort; -typedef struct IParallelPort IParallelPort; -typedef struct IMachineDebugger IMachineDebugger; -typedef struct IUSBController IUSBController; -typedef struct IUSBDevice IUSBDevice; -typedef struct IUSBDeviceFilter IUSBDeviceFilter; -typedef struct IHostUSBDevice IHostUSBDevice; -typedef struct IHostUSBDeviceFilter IHostUSBDeviceFilter; -typedef struct IAudioAdapter IAudioAdapter; -typedef struct IVRDEServer IVRDEServer; -typedef struct ISharedFolder ISharedFolder; -typedef struct IInternalSessionControl IInternalSessionControl; -typedef struct ISession ISession; -typedef struct IStorageController IStorageController; -typedef struct IManagedObjectRef IManagedObjectRef; -typedef struct IWebsessionManager IWebsessionManager; -typedef struct IPerformanceMetric IPerformanceMetric; -typedef struct IPerformanceCollector IPerformanceCollector; -typedef struct INATEngine INATEngine; -typedef struct IExtPackPlugIn IExtPackPlugIn; -typedef struct IExtPackBase IExtPackBase; -typedef struct IExtPack IExtPack; -typedef struct IExtPackFile IExtPackFile; -typedef struct IExtPackManager IExtPackManager; -typedef struct IBandwidthGroup IBandwidthGroup; -typedef struct IBandwidthControl IBandwidthControl; -typedef struct IVirtualBoxClient IVirtualBoxClient; -typedef struct IEventSource IEventSource; -typedef struct IEventListener IEventListener; -typedef struct IEvent IEvent; -typedef struct IReusableEvent IReusableEvent; -typedef struct IMachineEvent IMachineEvent; -typedef struct IMachineStateChangedEvent IMachineStateChangedEvent; -typedef struct IMachineDataChangedEvent IMachineDataChangedEvent; -typedef struct IMediumRegisteredEvent IMediumRegisteredEvent; -typedef struct IMachineRegisteredEvent IMachineRegisteredEvent; -typedef struct ISessionStateChangedEvent ISessionStateChangedEvent; -typedef struct IGuestPropertyChangedEvent IGuestPropertyChangedEvent; -typedef struct ISnapshotEvent ISnapshotEvent; -typedef struct ISnapshotTakenEvent ISnapshotTakenEvent; -typedef struct ISnapshotDeletedEvent ISnapshotDeletedEvent; -typedef struct ISnapshotChangedEvent ISnapshotChangedEvent; -typedef struct IMousePointerShapeChangedEvent IMousePointerShapeChangedEve= nt; -typedef struct IMouseCapabilityChangedEvent IMouseCapabilityChangedEvent; -typedef struct IKeyboardLedsChangedEvent IKeyboardLedsChangedEvent; -typedef struct IStateChangedEvent IStateChangedEvent; -typedef struct IAdditionsStateChangedEvent IAdditionsStateChangedEvent; -typedef struct INetworkAdapterChangedEvent INetworkAdapterChangedEvent; -typedef struct ISerialPortChangedEvent ISerialPortChangedEvent; -typedef struct IParallelPortChangedEvent IParallelPortChangedEvent; -typedef struct IStorageControllerChangedEvent IStorageControllerChangedEve= nt; -typedef struct IMediumChangedEvent IMediumChangedEvent; -typedef struct IClipboardModeChangedEvent IClipboardModeChangedEvent; -typedef struct IDragAndDropModeChangedEvent IDragAndDropModeChangedEvent; -typedef struct ICPUChangedEvent ICPUChangedEvent; -typedef struct ICPUExecutionCapChangedEvent ICPUExecutionCapChangedEvent; -typedef struct IGuestKeyboardEvent IGuestKeyboardEvent; -typedef struct IGuestMouseEvent IGuestMouseEvent; -typedef struct IVRDEServerChangedEvent IVRDEServerChangedEvent; -typedef struct IVRDEServerInfoChangedEvent IVRDEServerInfoChangedEvent; -typedef struct IUSBControllerChangedEvent IUSBControllerChangedEvent; -typedef struct IUSBDeviceStateChangedEvent IUSBDeviceStateChangedEvent; -typedef struct ISharedFolderChangedEvent ISharedFolderChangedEvent; -typedef struct IRuntimeErrorEvent IRuntimeErrorEvent; -typedef struct IEventSourceChangedEvent IEventSourceChangedEvent; -typedef struct IExtraDataChangedEvent IExtraDataChangedEvent; -typedef struct IVetoEvent IVetoEvent; -typedef struct IExtraDataCanChangeEvent IExtraDataCanChangeEvent; -typedef struct ICanShowWindowEvent ICanShowWindowEvent; -typedef struct IShowWindowEvent IShowWindowEvent; -typedef struct INATRedirectEvent INATRedirectEvent; -typedef struct IHostPCIDevicePlugEvent IHostPCIDevicePlugEvent; -typedef struct IVBoxSVCAvailabilityChangedEvent IVBoxSVCAvailabilityChange= dEvent; -typedef struct IBandwidthGroupChangedEvent IBandwidthGroupChangedEvent; -typedef struct IGuestMonitorChangedEvent IGuestMonitorChangedEvent; -typedef struct IStorageDeviceChangedEvent IStorageDeviceChangedEvent; - -/* Start of enum SettingsVersion Declaration */ -# define SETTINGSVERSION_IID_STR "52bd6f5f-1adb-4493-975d-581a9c4b803f" -# define SETTINGSVERSION_IID { \ - 0x52bd6f5f, 0x1adb, 0x4493, \ - { 0x97, 0x5d, 0x58, 0x1a, 0x9c, 0x4b, 0x80, 0x3f } \ -} -enum SettingsVersion -{ - SettingsVersion_Null =3D 0, - SettingsVersion_v1_0 =3D 1, - SettingsVersion_v1_1 =3D 2, - SettingsVersion_v1_2 =3D 3, - SettingsVersion_v1_3pre =3D 4, - SettingsVersion_v1_3 =3D 5, - SettingsVersion_v1_4 =3D 6, - SettingsVersion_v1_5 =3D 7, - SettingsVersion_v1_6 =3D 8, - SettingsVersion_v1_7 =3D 9, - SettingsVersion_v1_8 =3D 10, - SettingsVersion_v1_9 =3D 11, - SettingsVersion_v1_10 =3D 12, - SettingsVersion_v1_11 =3D 13, - SettingsVersion_v1_12 =3D 14, - SettingsVersion_v1_13 =3D 15, - SettingsVersion_Future =3D 99999 -}; -/* End of enum SettingsVersion Declaration */ - - -/* Start of enum AccessMode Declaration */ -# define ACCESSMODE_IID_STR "1da0007c-ddf7-4be8-bcac-d84a1558785f" -# define ACCESSMODE_IID { \ - 0x1da0007c, 0xddf7, 0x4be8, \ - { 0xbc, 0xac, 0xd8, 0x4a, 0x15, 0x58, 0x78, 0x5f } \ -} -enum AccessMode -{ - AccessMode_ReadOnly =3D 1, - AccessMode_ReadWrite =3D 2 -}; -/* End of enum AccessMode Declaration */ - - -/* Start of enum MachineState Declaration */ -# define MACHINESTATE_IID_STR "ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe" -# define MACHINESTATE_IID { \ - 0xec6c6a9e, 0x113d, 0x4ff4, \ - { 0xb4, 0x4f, 0x0b, 0x69, 0xf2, 0x1c, 0x97, 0xfe } \ -} -enum MachineState -{ - MachineState_Null =3D 0, - MachineState_PoweredOff =3D 1, - MachineState_Saved =3D 2, - MachineState_Teleported =3D 3, - MachineState_Aborted =3D 4, - MachineState_Running =3D 5, - MachineState_Paused =3D 6, - MachineState_Stuck =3D 7, - MachineState_Teleporting =3D 8, - MachineState_LiveSnapshotting =3D 9, - MachineState_Starting =3D 10, - MachineState_Stopping =3D 11, - MachineState_Saving =3D 12, - MachineState_Restoring =3D 13, - MachineState_TeleportingPausedVM =3D 14, - MachineState_TeleportingIn =3D 15, - MachineState_FaultTolerantSyncing =3D 16, - MachineState_DeletingSnapshotOnline =3D 17, - MachineState_DeletingSnapshotPaused =3D 18, - MachineState_RestoringSnapshot =3D 19, - MachineState_DeletingSnapshot =3D 20, - MachineState_SettingUp =3D 21, - MachineState_FirstOnline =3D 5, - MachineState_LastOnline =3D 18, - MachineState_FirstTransient =3D 8, - MachineState_LastTransient =3D 21 -}; -/* End of enum MachineState Declaration */ - - -/* Start of enum SessionState Declaration */ -# define SESSIONSTATE_IID_STR "cf2700c0-ea4b-47ae-9725-7810114b94d8" -# define SESSIONSTATE_IID { \ - 0xcf2700c0, 0xea4b, 0x47ae, \ - { 0x97, 0x25, 0x78, 0x10, 0x11, 0x4b, 0x94, 0xd8 } \ -} -enum SessionState -{ - SessionState_Null =3D 0, - SessionState_Unlocked =3D 1, - SessionState_Locked =3D 2, - SessionState_Spawning =3D 3, - SessionState_Unlocking =3D 4 -}; -/* End of enum SessionState Declaration */ - - -/* Start of enum CPUPropertyType Declaration */ -# define CPUPROPERTYTYPE_IID_STR "24d356a6-2f45-4abd-b977-1cbe9c4701f5" -# define CPUPROPERTYTYPE_IID { \ - 0x24d356a6, 0x2f45, 0x4abd, \ - { 0xb9, 0x77, 0x1c, 0xbe, 0x9c, 0x47, 0x01, 0xf5 } \ -} -enum CPUPropertyType -{ - CPUPropertyType_Null =3D 0, - CPUPropertyType_PAE =3D 1, - CPUPropertyType_Synthetic =3D 2 -}; -/* End of enum CPUPropertyType Declaration */ - - -/* Start of enum HWVirtExPropertyType Declaration */ -# define HWVIRTEXPROPERTYTYPE_IID_STR "ce81dfdd-d2b8-4a90-bbea-40ee8b7ffc= ee" -# define HWVIRTEXPROPERTYTYPE_IID { \ - 0xce81dfdd, 0xd2b8, 0x4a90, \ - { 0xbb, 0xea, 0x40, 0xee, 0x8b, 0x7f, 0xfc, 0xee } \ -} -enum HWVirtExPropertyType -{ - HWVirtExPropertyType_Null =3D 0, - HWVirtExPropertyType_Enabled =3D 1, - HWVirtExPropertyType_Exclusive =3D 2, - HWVirtExPropertyType_VPID =3D 3, - HWVirtExPropertyType_NestedPaging =3D 4, - HWVirtExPropertyType_LargePages =3D 5, - HWVirtExPropertyType_Force =3D 6 -}; -/* End of enum HWVirtExPropertyType Declaration */ - - -/* Start of enum FaultToleranceState Declaration */ -# define FAULTTOLERANCESTATE_IID_STR "5124f7ec-6b67-493c-9dee-ee45a44114e= 1" -# define FAULTTOLERANCESTATE_IID { \ - 0x5124f7ec, 0x6b67, 0x493c, \ - { 0x9d, 0xee, 0xee, 0x45, 0xa4, 0x41, 0x14, 0xe1 } \ -} -enum FaultToleranceState -{ - FaultToleranceState_Inactive =3D 1, - FaultToleranceState_Master =3D 2, - FaultToleranceState_Standby =3D 3 -}; -/* End of enum FaultToleranceState Declaration */ - - -/* Start of enum LockType Declaration */ -# define LOCKTYPE_IID_STR "168a6a8e-12fd-4878-a1f9-38a750a56089" -# define LOCKTYPE_IID { \ - 0x168a6a8e, 0x12fd, 0x4878, \ - { 0xa1, 0xf9, 0x38, 0xa7, 0x50, 0xa5, 0x60, 0x89 } \ -} -enum LockType -{ - LockType_Write =3D 2, - LockType_Shared =3D 1, - LockType_VM =3D 3 -}; -/* End of enum LockType Declaration */ - - -/* Start of enum SessionType Declaration */ -# define SESSIONTYPE_IID_STR "A13C02CB-0C2C-421E-8317-AC0E8AAA153A" -# define SESSIONTYPE_IID { \ - 0xA13C02CB, 0x0C2C, 0x421E, \ - { 0x83, 0x17, 0xAC, 0x0E, 0x8A, 0xAA, 0x15, 0x3A } \ -} -enum SessionType -{ - SessionType_Null =3D 0, - SessionType_WriteLock =3D 1, - SessionType_Remote =3D 2, - SessionType_Shared =3D 3 -}; -/* End of enum SessionType Declaration */ - - -/* Start of enum DeviceType Declaration */ -# define DEVICETYPE_IID_STR "6d9420f7-0b56-4636-99f9-7346f1b01e57" -# define DEVICETYPE_IID { \ - 0x6d9420f7, 0x0b56, 0x4636, \ - { 0x99, 0xf9, 0x73, 0x46, 0xf1, 0xb0, 0x1e, 0x57 } \ -} -enum DeviceType -{ - DeviceType_Null =3D 0, - DeviceType_Floppy =3D 1, - DeviceType_DVD =3D 2, - DeviceType_HardDisk =3D 3, - DeviceType_Network =3D 4, - DeviceType_USB =3D 5, - DeviceType_SharedFolder =3D 6 -}; -/* End of enum DeviceType Declaration */ - - -/* Start of enum DeviceActivity Declaration */ -# define DEVICEACTIVITY_IID_STR "6FC8AEAA-130A-4eb5-8954-3F921422D707" -# define DEVICEACTIVITY_IID { \ - 0x6FC8AEAA, 0x130A, 0x4eb5, \ - { 0x89, 0x54, 0x3F, 0x92, 0x14, 0x22, 0xD7, 0x07 } \ -} -enum DeviceActivity -{ - DeviceActivity_Null =3D 0, - DeviceActivity_Idle =3D 1, - DeviceActivity_Reading =3D 2, - DeviceActivity_Writing =3D 3 -}; -/* End of enum DeviceActivity Declaration */ - - -/* Start of enum ClipboardMode Declaration */ -# define CLIPBOARDMODE_IID_STR "33364716-4008-4701-8f14-be0fa3d62950" -# define CLIPBOARDMODE_IID { \ - 0x33364716, 0x4008, 0x4701, \ - { 0x8f, 0x14, 0xbe, 0x0f, 0xa3, 0xd6, 0x29, 0x50 } \ -} -enum ClipboardMode -{ - ClipboardMode_Disabled =3D 0, - ClipboardMode_HostToGuest =3D 1, - ClipboardMode_GuestToHost =3D 2, - ClipboardMode_Bidirectional =3D 3 -}; -/* End of enum ClipboardMode Declaration */ - - -/* Start of enum DragAndDropMode Declaration */ -# define DRAGANDDROPMODE_IID_STR "b618ea0e-b6fb-4f8d-97f7-5e237e49b547" -# define DRAGANDDROPMODE_IID { \ - 0xb618ea0e, 0xb6fb, 0x4f8d, \ - { 0x97, 0xf7, 0x5e, 0x23, 0x7e, 0x49, 0xb5, 0x47 } \ -} -enum DragAndDropMode -{ - DragAndDropMode_Disabled =3D 0, - DragAndDropMode_HostToGuest =3D 1, - DragAndDropMode_GuestToHost =3D 2, - DragAndDropMode_Bidirectional =3D 3 -}; -/* End of enum DragAndDropMode Declaration */ - - -/* Start of enum Scope Declaration */ -# define SCOPE_IID_STR "7c91096e-499e-4eca-9f9b-9001438d7855" -# define SCOPE_IID { \ - 0x7c91096e, 0x499e, 0x4eca, \ - { 0x9f, 0x9b, 0x90, 0x01, 0x43, 0x8d, 0x78, 0x55 } \ -} -enum Scope -{ - Scope_Global =3D 0, - Scope_Machine =3D 1, - Scope_Session =3D 2 -}; -/* End of enum Scope Declaration */ - - -/* Start of enum BIOSBootMenuMode Declaration */ -# define BIOSBOOTMENUMODE_IID_STR "ae4fb9f7-29d2-45b4-b2c7-d579603135d5" -# define BIOSBOOTMENUMODE_IID { \ - 0xae4fb9f7, 0x29d2, 0x45b4, \ - { 0xb2, 0xc7, 0xd5, 0x79, 0x60, 0x31, 0x35, 0xd5 } \ -} -enum BIOSBootMenuMode -{ - BIOSBootMenuMode_Disabled =3D 0, - BIOSBootMenuMode_MenuOnly =3D 1, - BIOSBootMenuMode_MessageAndMenu =3D 2 -}; -/* End of enum BIOSBootMenuMode Declaration */ - - -/* Start of enum ProcessorFeature Declaration */ -# define PROCESSORFEATURE_IID_STR "64c38e6b-8bcf-45ad-ac03-9b406287c5bf" -# define PROCESSORFEATURE_IID { \ - 0x64c38e6b, 0x8bcf, 0x45ad, \ - { 0xac, 0x03, 0x9b, 0x40, 0x62, 0x87, 0xc5, 0xbf } \ -} -enum ProcessorFeature -{ - ProcessorFeature_HWVirtEx =3D 0, - ProcessorFeature_PAE =3D 1, - ProcessorFeature_LongMode =3D 2, - ProcessorFeature_NestedPaging =3D 3 -}; -/* End of enum ProcessorFeature Declaration */ - - -/* Start of enum FirmwareType Declaration */ -# define FIRMWARETYPE_IID_STR "b903f264-c230-483e-ac74-2b37ce60d371" -# define FIRMWARETYPE_IID { \ - 0xb903f264, 0xc230, 0x483e, \ - { 0xac, 0x74, 0x2b, 0x37, 0xce, 0x60, 0xd3, 0x71 } \ -} -enum FirmwareType -{ - FirmwareType_BIOS =3D 1, - FirmwareType_EFI =3D 2, - FirmwareType_EFI32 =3D 3, - FirmwareType_EFI64 =3D 4, - FirmwareType_EFIDUAL =3D 5 -}; -/* End of enum FirmwareType Declaration */ - - -/* Start of enum PointingHIDType Declaration */ -# define POINTINGHIDTYPE_IID_STR "e44b2f7b-72ba-44fb-9e53-2186014f0d17" -# define POINTINGHIDTYPE_IID { \ - 0xe44b2f7b, 0x72ba, 0x44fb, \ - { 0x9e, 0x53, 0x21, 0x86, 0x01, 0x4f, 0x0d, 0x17 } \ -} -enum PointingHIDType -{ - PointingHIDType_None =3D 1, - PointingHIDType_PS2Mouse =3D 2, - PointingHIDType_USBMouse =3D 3, - PointingHIDType_USBTablet =3D 4, - PointingHIDType_ComboMouse =3D 5 -}; -/* End of enum PointingHIDType Declaration */ - - -/* Start of enum KeyboardHIDType Declaration */ -# define KEYBOARDHIDTYPE_IID_STR "383e43d7-5c7c-4ec8-9cb8-eda1bccd6699" -# define KEYBOARDHIDTYPE_IID { \ - 0x383e43d7, 0x5c7c, 0x4ec8, \ - { 0x9c, 0xb8, 0xed, 0xa1, 0xbc, 0xcd, 0x66, 0x99 } \ -} -enum KeyboardHIDType -{ - KeyboardHIDType_None =3D 1, - KeyboardHIDType_PS2Keyboard =3D 2, - KeyboardHIDType_USBKeyboard =3D 3, - KeyboardHIDType_ComboKeyboard =3D 4 -}; -/* End of enum KeyboardHIDType Declaration */ - - -/* Start of enum VFSType Declaration */ -# define VFSTYPE_IID_STR "813999ba-b949-48a8-9230-aadc6285e2f2" -# define VFSTYPE_IID { \ - 0x813999ba, 0xb949, 0x48a8, \ - { 0x92, 0x30, 0xaa, 0xdc, 0x62, 0x85, 0xe2, 0xf2 } \ -} -enum VFSType -{ - VFSType_File =3D 1, - VFSType_Cloud =3D 2, - VFSType_S3 =3D 3, - VFSType_WebDav =3D 4 -}; -/* End of enum VFSType Declaration */ - - -/* Start of enum VFSFileType Declaration */ -# define VFSFILETYPE_IID_STR "714333cd-44e2-415f-a245-d378fa9b1242" -# define VFSFILETYPE_IID { \ - 0x714333cd, 0x44e2, 0x415f, \ - { 0xa2, 0x45, 0xd3, 0x78, 0xfa, 0x9b, 0x12, 0x42 } \ -} -enum VFSFileType -{ - VFSFileType_Unknown =3D 1, - VFSFileType_Fifo =3D 2, - VFSFileType_DevChar =3D 3, - VFSFileType_Directory =3D 4, - VFSFileType_DevBlock =3D 5, - VFSFileType_File =3D 6, - VFSFileType_SymLink =3D 7, - VFSFileType_Socket =3D 8, - VFSFileType_WhiteOut =3D 9 -}; -/* End of enum VFSFileType Declaration */ - - -/* Start of enum ImportOptions Declaration */ -# define IMPORTOPTIONS_IID_STR "0a981523-3b20-4004-8ee3-dfd322202ace" -# define IMPORTOPTIONS_IID { \ - 0x0a981523, 0x3b20, 0x4004, \ - { 0x8e, 0xe3, 0xdf, 0xd3, 0x22, 0x20, 0x2a, 0xce } \ -} -enum ImportOptions -{ - ImportOptions_KeepAllMACs =3D 1, - ImportOptions_KeepNATMACs =3D 2 -}; -/* End of enum ImportOptions Declaration */ - - -/* Start of enum VirtualSystemDescriptionType Declaration */ -# define VIRTUALSYSTEMDESCRIPTIONTYPE_IID_STR "303c0900-a746-4612-8c67-79= 003e91f459" -# define VIRTUALSYSTEMDESCRIPTIONTYPE_IID { \ - 0x303c0900, 0xa746, 0x4612, \ - { 0x8c, 0x67, 0x79, 0x00, 0x3e, 0x91, 0xf4, 0x59 } \ -} -enum VirtualSystemDescriptionType -{ - VirtualSystemDescriptionType_Ignore =3D 1, - VirtualSystemDescriptionType_OS =3D 2, - VirtualSystemDescriptionType_Name =3D 3, - VirtualSystemDescriptionType_Product =3D 4, - VirtualSystemDescriptionType_Vendor =3D 5, - VirtualSystemDescriptionType_Version =3D 6, - VirtualSystemDescriptionType_ProductUrl =3D 7, - VirtualSystemDescriptionType_VendorUrl =3D 8, - VirtualSystemDescriptionType_Description =3D 9, - VirtualSystemDescriptionType_License =3D 10, - VirtualSystemDescriptionType_Miscellaneous =3D 11, - VirtualSystemDescriptionType_CPU =3D 12, - VirtualSystemDescriptionType_Memory =3D 13, - VirtualSystemDescriptionType_HardDiskControllerIDE =3D 14, - VirtualSystemDescriptionType_HardDiskControllerSATA =3D 15, - VirtualSystemDescriptionType_HardDiskControllerSCSI =3D 16, - VirtualSystemDescriptionType_HardDiskControllerSAS =3D 17, - VirtualSystemDescriptionType_HardDiskImage =3D 18, - VirtualSystemDescriptionType_Floppy =3D 19, - VirtualSystemDescriptionType_CDROM =3D 20, - VirtualSystemDescriptionType_NetworkAdapter =3D 21, - VirtualSystemDescriptionType_USBController =3D 22, - VirtualSystemDescriptionType_SoundCard =3D 23, - VirtualSystemDescriptionType_SettingsFile =3D 24 -}; -/* End of enum VirtualSystemDescriptionType Declaration */ - - -/* Start of enum VirtualSystemDescriptionValueType Declaration */ -# define VIRTUALSYSTEMDESCRIPTIONVALUETYPE_IID_STR "56d9403f-3425-4118-99= 19-36f2a9b8c77c" -# define VIRTUALSYSTEMDESCRIPTIONVALUETYPE_IID { \ - 0x56d9403f, 0x3425, 0x4118, \ - { 0x99, 0x19, 0x36, 0xf2, 0xa9, 0xb8, 0xc7, 0x7c } \ -} -enum VirtualSystemDescriptionValueType -{ - VirtualSystemDescriptionValueType_Reference =3D 1, - VirtualSystemDescriptionValueType_Original =3D 2, - VirtualSystemDescriptionValueType_Auto =3D 3, - VirtualSystemDescriptionValueType_ExtraConfig =3D 4 -}; -/* End of enum VirtualSystemDescriptionValueType Declaration */ - - -/* Start of enum CleanupMode Declaration */ -# define CLEANUPMODE_IID_STR "67897c50-7cca-47a9-83f6-ce8fd8eb5441" -# define CLEANUPMODE_IID { \ - 0x67897c50, 0x7cca, 0x47a9, \ - { 0x83, 0xf6, 0xce, 0x8f, 0xd8, 0xeb, 0x54, 0x41 } \ -} -enum CleanupMode -{ - CleanupMode_UnregisterOnly =3D 1, - CleanupMode_DetachAllReturnNone =3D 2, - CleanupMode_DetachAllReturnHardDisksOnly =3D 3, - CleanupMode_Full =3D 4 -}; -/* End of enum CleanupMode Declaration */ - - -/* Start of enum CloneMode Declaration */ -# define CLONEMODE_IID_STR "A7A159FE-5096-4B8D-8C3C-D033CB0B35A8" -# define CLONEMODE_IID { \ - 0xA7A159FE, 0x5096, 0x4B8D, \ - { 0x8C, 0x3C, 0xD0, 0x33, 0xCB, 0x0B, 0x35, 0xA8 } \ -} -enum CloneMode -{ - CloneMode_MachineState =3D 1, - CloneMode_MachineAndChildStates =3D 2, - CloneMode_AllStates =3D 3 -}; -/* End of enum CloneMode Declaration */ - - -/* Start of enum CloneOptions Declaration */ -# define CLONEOPTIONS_IID_STR "22243f8e-96ab-497c-8cf0-f40a566c630b" -# define CLONEOPTIONS_IID { \ - 0x22243f8e, 0x96ab, 0x497c, \ - { 0x8c, 0xf0, 0xf4, 0x0a, 0x56, 0x6c, 0x63, 0x0b } \ -} -enum CloneOptions -{ - CloneOptions_Link =3D 1, - CloneOptions_KeepAllMACs =3D 2, - CloneOptions_KeepNATMACs =3D 3, - CloneOptions_KeepDiskNames =3D 4 -}; -/* End of enum CloneOptions Declaration */ - - -/* Start of enum AutostopType Declaration */ -# define AUTOSTOPTYPE_IID_STR "6bb96740-cf34-470d-aab2-2cd48ea2e10e" -# define AUTOSTOPTYPE_IID { \ - 0x6bb96740, 0xcf34, 0x470d, \ - { 0xaa, 0xb2, 0x2c, 0xd4, 0x8e, 0xa2, 0xe1, 0x0e } \ -} -enum AutostopType -{ - AutostopType_Disabled =3D 1, - AutostopType_SaveState =3D 2, - AutostopType_PowerOff =3D 3, - AutostopType_AcpiShutdown =3D 4 -}; -/* End of enum AutostopType Declaration */ - - -/* Start of enum HostNetworkInterfaceMediumType Declaration */ -# define HOSTNETWORKINTERFACEMEDIUMTYPE_IID_STR "1aa54aaf-2497-45a2-bfb1-= 8eb225e93d5b" -# define HOSTNETWORKINTERFACEMEDIUMTYPE_IID { \ - 0x1aa54aaf, 0x2497, 0x45a2, \ - { 0xbf, 0xb1, 0x8e, 0xb2, 0x25, 0xe9, 0x3d, 0x5b } \ -} -enum HostNetworkInterfaceMediumType -{ - HostNetworkInterfaceMediumType_Unknown =3D 0, - HostNetworkInterfaceMediumType_Ethernet =3D 1, - HostNetworkInterfaceMediumType_PPP =3D 2, - HostNetworkInterfaceMediumType_SLIP =3D 3 -}; -/* End of enum HostNetworkInterfaceMediumType Declaration */ - - -/* Start of enum HostNetworkInterfaceStatus Declaration */ -# define HOSTNETWORKINTERFACESTATUS_IID_STR "CC474A69-2710-434B-8D99-C38E= 5D5A6F41" -# define HOSTNETWORKINTERFACESTATUS_IID { \ - 0xCC474A69, 0x2710, 0x434B, \ - { 0x8D, 0x99, 0xC3, 0x8E, 0x5D, 0x5A, 0x6F, 0x41 } \ -} -enum HostNetworkInterfaceStatus -{ - HostNetworkInterfaceStatus_Unknown =3D 0, - HostNetworkInterfaceStatus_Up =3D 1, - HostNetworkInterfaceStatus_Down =3D 2 -}; -/* End of enum HostNetworkInterfaceStatus Declaration */ - - -/* Start of enum HostNetworkInterfaceType Declaration */ -# define HOSTNETWORKINTERFACETYPE_IID_STR "67431b00-9946-48a2-bc02-b25c59= 19f4f3" -# define HOSTNETWORKINTERFACETYPE_IID { \ - 0x67431b00, 0x9946, 0x48a2, \ - { 0xbc, 0x02, 0xb2, 0x5c, 0x59, 0x19, 0xf4, 0xf3 } \ -} -enum HostNetworkInterfaceType -{ - HostNetworkInterfaceType_Bridged =3D 1, - HostNetworkInterfaceType_HostOnly =3D 2 -}; -/* End of enum HostNetworkInterfaceType Declaration */ - - -/* Start of enum AdditionsFacilityType Declaration */ -# define ADDITIONSFACILITYTYPE_IID_STR "98f7f957-89fb-49b6-a3b1-31e3285eb= 1d8" -# define ADDITIONSFACILITYTYPE_IID { \ - 0x98f7f957, 0x89fb, 0x49b6, \ - { 0xa3, 0xb1, 0x31, 0xe3, 0x28, 0x5e, 0xb1, 0xd8 } \ -} -enum AdditionsFacilityType -{ - AdditionsFacilityType_None =3D 0, - AdditionsFacilityType_VBoxGuestDriver =3D 20, - AdditionsFacilityType_AutoLogon =3D 90, - AdditionsFacilityType_VBoxService =3D 100, - AdditionsFacilityType_VBoxTrayClient =3D 101, - AdditionsFacilityType_Seamless =3D 1000, - AdditionsFacilityType_Graphics =3D 1100, - AdditionsFacilityType_All =3D 2147483646 -}; -/* End of enum AdditionsFacilityType Declaration */ - - -/* Start of enum AdditionsFacilityClass Declaration */ -# define ADDITIONSFACILITYCLASS_IID_STR "446451b2-c88d-4e5d-84c9-91bc7f53= 3f5f" -# define ADDITIONSFACILITYCLASS_IID { \ - 0x446451b2, 0xc88d, 0x4e5d, \ - { 0x84, 0xc9, 0x91, 0xbc, 0x7f, 0x53, 0x3f, 0x5f } \ -} -enum AdditionsFacilityClass -{ - AdditionsFacilityClass_None =3D 0, - AdditionsFacilityClass_Driver =3D 10, - AdditionsFacilityClass_Service =3D 30, - AdditionsFacilityClass_Program =3D 50, - AdditionsFacilityClass_Feature =3D 100, - AdditionsFacilityClass_ThirdParty =3D 999, - AdditionsFacilityClass_All =3D 2147483646 -}; -/* End of enum AdditionsFacilityClass Declaration */ - - -/* Start of enum AdditionsFacilityStatus Declaration */ -# define ADDITIONSFACILITYSTATUS_IID_STR "ce06f9e1-394e-4fe9-9368-5a88c56= 7dbde" -# define ADDITIONSFACILITYSTATUS_IID { \ - 0xce06f9e1, 0x394e, 0x4fe9, \ - { 0x93, 0x68, 0x5a, 0x88, 0xc5, 0x67, 0xdb, 0xde } \ -} -enum AdditionsFacilityStatus -{ - AdditionsFacilityStatus_Inactive =3D 0, - AdditionsFacilityStatus_Paused =3D 1, - AdditionsFacilityStatus_PreInit =3D 20, - AdditionsFacilityStatus_Init =3D 30, - AdditionsFacilityStatus_Active =3D 50, - AdditionsFacilityStatus_Terminating =3D 100, - AdditionsFacilityStatus_Terminated =3D 101, - AdditionsFacilityStatus_Failed =3D 800, - AdditionsFacilityStatus_Unknown =3D 999 -}; -/* End of enum AdditionsFacilityStatus Declaration */ - - -/* Start of enum AdditionsRunLevelType Declaration */ -# define ADDITIONSRUNLEVELTYPE_IID_STR "a25417ee-a9dd-4f5b-b0dc-377860087= 754" -# define ADDITIONSRUNLEVELTYPE_IID { \ - 0xa25417ee, 0xa9dd, 0x4f5b, \ - { 0xb0, 0xdc, 0x37, 0x78, 0x60, 0x08, 0x77, 0x54 } \ -} -enum AdditionsRunLevelType -{ - AdditionsRunLevelType_None =3D 0, - AdditionsRunLevelType_System =3D 1, - AdditionsRunLevelType_Userland =3D 2, - AdditionsRunLevelType_Desktop =3D 3 -}; -/* End of enum AdditionsRunLevelType Declaration */ - - -/* Start of enum AdditionsUpdateFlag Declaration */ -# define ADDITIONSUPDATEFLAG_IID_STR "726a818d-18d6-4389-94e8-3e9e6826171= a" -# define ADDITIONSUPDATEFLAG_IID { \ - 0x726a818d, 0x18d6, 0x4389, \ - { 0x94, 0xe8, 0x3e, 0x9e, 0x68, 0x26, 0x17, 0x1a } \ -} -enum AdditionsUpdateFlag -{ - AdditionsUpdateFlag_None =3D 0, - AdditionsUpdateFlag_WaitForUpdateStartOnly =3D 1 -}; -/* End of enum AdditionsUpdateFlag Declaration */ - - -/* Start of enum FileSeekType Declaration */ -# define FILESEEKTYPE_IID_STR "1b73f4f3-3515-4073-a506-76878d9e2541" -# define FILESEEKTYPE_IID { \ - 0x1b73f4f3, 0x3515, 0x4073, \ - { 0xa5, 0x06, 0x76, 0x87, 0x8d, 0x9e, 0x25, 0x41 } \ -} -enum FileSeekType -{ - FileSeekType_Set =3D 0, - FileSeekType_Current =3D 1 -}; -/* End of enum FileSeekType Declaration */ - - -/* Start of enum ProcessInputFlag Declaration */ -# define PROCESSINPUTFLAG_IID_STR "5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5" -# define PROCESSINPUTFLAG_IID { \ - 0x5d38c1dd, 0x2604, 0x4ddf, \ - { 0x92, 0xe5, 0x0c, 0x0c, 0xdd, 0x3b, 0xdb, 0xd5 } \ -} -enum ProcessInputFlag -{ - ProcessInputFlag_None =3D 0, - ProcessInputFlag_EndOfFile =3D 1 -}; -/* End of enum ProcessInputFlag Declaration */ - - -/* Start of enum ProcessOutputFlag Declaration */ -# define PROCESSOUTPUTFLAG_IID_STR "9979e85a-52bb-40b7-870c-57115e27e0f1" -# define PROCESSOUTPUTFLAG_IID { \ - 0x9979e85a, 0x52bb, 0x40b7, \ - { 0x87, 0x0c, 0x57, 0x11, 0x5e, 0x27, 0xe0, 0xf1 } \ -} -enum ProcessOutputFlag -{ - ProcessOutputFlag_None =3D 0, - ProcessOutputFlag_StdErr =3D 1 -}; -/* End of enum ProcessOutputFlag Declaration */ - - -/* Start of enum ProcessWaitForFlag Declaration */ -# define PROCESSWAITFORFLAG_IID_STR "23b550c7-78e1-437e-98f0-65fd9757bcd2" -# define PROCESSWAITFORFLAG_IID { \ - 0x23b550c7, 0x78e1, 0x437e, \ - { 0x98, 0xf0, 0x65, 0xfd, 0x97, 0x57, 0xbc, 0xd2 } \ -} -enum ProcessWaitForFlag -{ - ProcessWaitForFlag_None =3D 0, - ProcessWaitForFlag_Start =3D 1, - ProcessWaitForFlag_Terminate =3D 2, - ProcessWaitForFlag_StdIn =3D 4, - ProcessWaitForFlag_StdOut =3D 8, - ProcessWaitForFlag_StdErr =3D 16 -}; -/* End of enum ProcessWaitForFlag Declaration */ - - -/* Start of enum ProcessWaitResult Declaration */ -# define PROCESSWAITRESULT_IID_STR "40719cbe-f192-4fe9-a231-6697b3c8e2b4" -# define PROCESSWAITRESULT_IID { \ - 0x40719cbe, 0xf192, 0x4fe9, \ - { 0xa2, 0x31, 0x66, 0x97, 0xb3, 0xc8, 0xe2, 0xb4 } \ -} -enum ProcessWaitResult -{ - ProcessWaitResult_None =3D 0, - ProcessWaitResult_Start =3D 1, - ProcessWaitResult_Terminate =3D 2, - ProcessWaitResult_Status =3D 3, - ProcessWaitResult_Error =3D 4, - ProcessWaitResult_Timeout =3D 5, - ProcessWaitResult_StdIn =3D 6, - ProcessWaitResult_StdOut =3D 7, - ProcessWaitResult_StdErr =3D 8, - ProcessWaitResult_WaitFlagNotSupported =3D 9 -}; -/* End of enum ProcessWaitResult Declaration */ - - -/* Start of enum CopyFileFlag Declaration */ -# define COPYFILEFLAG_IID_STR "23f79fdf-738a-493d-b80b-42d607c9b916" -# define COPYFILEFLAG_IID { \ - 0x23f79fdf, 0x738a, 0x493d, \ - { 0xb8, 0x0b, 0x42, 0xd6, 0x07, 0xc9, 0xb9, 0x16 } \ -} -enum CopyFileFlag -{ - CopyFileFlag_None =3D 0, - CopyFileFlag_Recursive =3D 1, - CopyFileFlag_Update =3D 2, - CopyFileFlag_FollowLinks =3D 4 -}; -/* End of enum CopyFileFlag Declaration */ - - -/* Start of enum DirectoryCreateFlag Declaration */ -# define DIRECTORYCREATEFLAG_IID_STR "bd721b0e-ced5-4f79-b368-249897c32a3= 6" -# define DIRECTORYCREATEFLAG_IID { \ - 0xbd721b0e, 0xced5, 0x4f79, \ - { 0xb3, 0x68, 0x24, 0x98, 0x97, 0xc3, 0x2a, 0x36 } \ -} -enum DirectoryCreateFlag -{ - DirectoryCreateFlag_None =3D 0, - DirectoryCreateFlag_Parents =3D 1 -}; -/* End of enum DirectoryCreateFlag Declaration */ - - -/* Start of enum DirectoryRemoveRecFlag Declaration */ -# define DIRECTORYREMOVERECFLAG_IID_STR "455aabf0-7692-48f6-9061-f21579b6= 5769" -# define DIRECTORYREMOVERECFLAG_IID { \ - 0x455aabf0, 0x7692, 0x48f6, \ - { 0x90, 0x61, 0xf2, 0x15, 0x79, 0xb6, 0x57, 0x69 } \ -} -enum DirectoryRemoveRecFlag -{ - DirectoryRemoveRecFlag_None =3D 0, - DirectoryRemoveRecFlag_ContentAndDir =3D 1, - DirectoryRemoveRecFlag_ContentOnly =3D 2 -}; -/* End of enum DirectoryRemoveRecFlag Declaration */ - - -/* Start of enum PathRenameFlag Declaration */ -# define PATHRENAMEFLAG_IID_STR "f3baa09f-c758-453d-b91c-c7787d76351d" -# define PATHRENAMEFLAG_IID { \ - 0xf3baa09f, 0xc758, 0x453d, \ - { 0xb9, 0x1c, 0xc7, 0x78, 0x7d, 0x76, 0x35, 0x1d } \ -} -enum PathRenameFlag -{ - PathRenameFlag_None =3D 0, - PathRenameFlag_NoReplace =3D 1, - PathRenameFlag_Replace =3D 2, - PathRenameFlag_NoSymlinks =3D 4 -}; -/* End of enum PathRenameFlag Declaration */ - - -/* Start of enum ProcessCreateFlag Declaration */ -# define PROCESSCREATEFLAG_IID_STR "35192799-bfde-405d-9bea-c735ab9998e4" -# define PROCESSCREATEFLAG_IID { \ - 0x35192799, 0xbfde, 0x405d, \ - { 0x9b, 0xea, 0xc7, 0x35, 0xab, 0x99, 0x98, 0xe4 } \ -} -enum ProcessCreateFlag -{ - ProcessCreateFlag_None =3D 0, - ProcessCreateFlag_WaitForProcessStartOnly =3D 1, - ProcessCreateFlag_IgnoreOrphanedProcesses =3D 2, - ProcessCreateFlag_Hidden =3D 4, - ProcessCreateFlag_NoProfile =3D 8, - ProcessCreateFlag_WaitForStdOut =3D 16, - ProcessCreateFlag_WaitForStdErr =3D 32, - ProcessCreateFlag_ExpandArguments =3D 64 -}; -/* End of enum ProcessCreateFlag Declaration */ - - -/* Start of enum ProcessPriority Declaration */ -# define PROCESSPRIORITY_IID_STR "ee8cac50-e232-49fe-806b-d1214d9c2e49" -# define PROCESSPRIORITY_IID { \ - 0xee8cac50, 0xe232, 0x49fe, \ - { 0x80, 0x6b, 0xd1, 0x21, 0x4d, 0x9c, 0x2e, 0x49 } \ -} -enum ProcessPriority -{ - ProcessPriority_Invalid =3D 0, - ProcessPriority_Default =3D 1 -}; -/* End of enum ProcessPriority Declaration */ - - -/* Start of enum SymlinkType Declaration */ -# define SYMLINKTYPE_IID_STR "37794668-f8f1-4714-98a5-6f8fa2ed0118" -# define SYMLINKTYPE_IID { \ - 0x37794668, 0xf8f1, 0x4714, \ - { 0x98, 0xa5, 0x6f, 0x8f, 0xa2, 0xed, 0x01, 0x18 } \ -} -enum SymlinkType -{ - SymlinkType_Unknown =3D 0, - SymlinkType_Directory =3D 1, - SymlinkType_File =3D 2 -}; -/* End of enum SymlinkType Declaration */ - - -/* Start of enum SymlinkReadFlag Declaration */ -# define SYMLINKREADFLAG_IID_STR "b7fe2b9d-790e-4b25-8adf-1ca33026931f" -# define SYMLINKREADFLAG_IID { \ - 0xb7fe2b9d, 0x790e, 0x4b25, \ - { 0x8a, 0xdf, 0x1c, 0xa3, 0x30, 0x26, 0x93, 0x1f } \ -} -enum SymlinkReadFlag -{ - SymlinkReadFlag_None =3D 0, - SymlinkReadFlag_NoSymlinks =3D 1 -}; -/* End of enum SymlinkReadFlag Declaration */ - - -/* Start of enum ProcessStatus Declaration */ -# define PROCESSSTATUS_IID_STR "4d52368f-5b48-4bfe-b486-acf89139b52f" -# define PROCESSSTATUS_IID { \ - 0x4d52368f, 0x5b48, 0x4bfe, \ - { 0xb4, 0x86, 0xac, 0xf8, 0x91, 0x39, 0xb5, 0x2f } \ -} -enum ProcessStatus -{ - ProcessStatus_Undefined =3D 0, - ProcessStatus_Starting =3D 10, - ProcessStatus_Started =3D 100, - ProcessStatus_Paused =3D 110, - ProcessStatus_Terminating =3D 480, - ProcessStatus_TerminatedNormally =3D 500, - ProcessStatus_TerminatedSignal =3D 510, - ProcessStatus_TerminatedAbnormally =3D 511, - ProcessStatus_TimedOutKilled =3D 512, - ProcessStatus_TimedOutAbnormally =3D 513, - ProcessStatus_Down =3D 600, - ProcessStatus_Error =3D 800 -}; -/* End of enum ProcessStatus Declaration */ - - -/* Start of enum FsObjType Declaration */ -# define FSOBJTYPE_IID_STR "a1ed437c-b3c3-4ca2-b19c-4239d658d5e8" -# define FSOBJTYPE_IID { \ - 0xa1ed437c, 0xb3c3, 0x4ca2, \ - { 0xb1, 0x9c, 0x42, 0x39, 0xd6, 0x58, 0xd5, 0xe8 } \ -} -enum FsObjType -{ - FsObjType_Undefined =3D 0, - FsObjType_FIFO =3D 1, - FsObjType_DevChar =3D 10, - FsObjType_DevBlock =3D 11, - FsObjType_Directory =3D 50, - FsObjType_File =3D 80, - FsObjType_Symlink =3D 100, - FsObjType_Socket =3D 200, - FsObjType_Whiteout =3D 400 -}; -/* End of enum FsObjType Declaration */ - - -/* Start of enum DragAndDropAction Declaration */ -# define DRAGANDDROPACTION_IID_STR "47f3b162-c107-4fcd-bfa7-54b8135c441e" -# define DRAGANDDROPACTION_IID { \ - 0x47f3b162, 0xc107, 0x4fcd, \ - { 0xbf, 0xa7, 0x54, 0xb8, 0x13, 0x5c, 0x44, 0x1e } \ -} -enum DragAndDropAction -{ - DragAndDropAction_Ignore =3D 0, - DragAndDropAction_Copy =3D 1, - DragAndDropAction_Move =3D 2, - DragAndDropAction_Link =3D 3 -}; -/* End of enum DragAndDropAction Declaration */ - - -/* Start of enum DirectoryOpenFlag Declaration */ -# define DIRECTORYOPENFLAG_IID_STR "5138837a-8fd2-4194-a1b0-08f7bc3949d0" -# define DIRECTORYOPENFLAG_IID { \ - 0x5138837a, 0x8fd2, 0x4194, \ - { 0xa1, 0xb0, 0x08, 0xf7, 0xbc, 0x39, 0x49, 0xd0 } \ -} -enum DirectoryOpenFlag -{ - DirectoryOpenFlag_None =3D 0, - DirectoryOpenFlag_NoSymlinks =3D 1 -}; -/* End of enum DirectoryOpenFlag Declaration */ - - -/* Start of enum MediumState Declaration */ -# define MEDIUMSTATE_IID_STR "ef41e980-e012-43cd-9dea-479d4ef14d13" -# define MEDIUMSTATE_IID { \ - 0xef41e980, 0xe012, 0x43cd, \ - { 0x9d, 0xea, 0x47, 0x9d, 0x4e, 0xf1, 0x4d, 0x13 } \ -} -enum MediumState -{ - MediumState_NotCreated =3D 0, - MediumState_Created =3D 1, - MediumState_LockedRead =3D 2, - MediumState_LockedWrite =3D 3, - MediumState_Inaccessible =3D 4, - MediumState_Creating =3D 5, - MediumState_Deleting =3D 6 -}; -/* End of enum MediumState Declaration */ - - -/* Start of enum MediumType Declaration */ -# define MEDIUMTYPE_IID_STR "fe663fb5-c244-4e1b-9d81-c628b417dd04" -# define MEDIUMTYPE_IID { \ - 0xfe663fb5, 0xc244, 0x4e1b, \ - { 0x9d, 0x81, 0xc6, 0x28, 0xb4, 0x17, 0xdd, 0x04 } \ -} -enum MediumType -{ - MediumType_Normal =3D 0, - MediumType_Immutable =3D 1, - MediumType_Writethrough =3D 2, - MediumType_Shareable =3D 3, - MediumType_Readonly =3D 4, - MediumType_MultiAttach =3D 5 -}; -/* End of enum MediumType Declaration */ - - -/* Start of enum MediumVariant Declaration */ -# define MEDIUMVARIANT_IID_STR "80685b6b-e42f-497d-8271-e77bf3c61ada" -# define MEDIUMVARIANT_IID { \ - 0x80685b6b, 0xe42f, 0x497d, \ - { 0x82, 0x71, 0xe7, 0x7b, 0xf3, 0xc6, 0x1a, 0xda } \ -} -enum MediumVariant -{ - MediumVariant_Standard =3D 0, - MediumVariant_VmdkSplit2G =3D 0x01, - MediumVariant_VmdkRawDisk =3D 0x02, - MediumVariant_VmdkStreamOptimized =3D 0x04, - MediumVariant_VmdkESX =3D 0x08, - MediumVariant_Fixed =3D 0x10000, - MediumVariant_Diff =3D 0x20000, - MediumVariant_NoCreateDir =3D 0x40000000 -}; -/* End of enum MediumVariant Declaration */ - - -/* Start of enum DataType Declaration */ -# define DATATYPE_IID_STR "d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7" -# define DATATYPE_IID { \ - 0xd90ea51e, 0xa3f1, 0x4a01, \ - { 0xbe, 0xb1, 0xc1, 0x72, 0x3c, 0x0d, 0x3b, 0xa7 } \ -} -enum DataType -{ - DataType_Int32 =3D 0, - DataType_Int8 =3D 1, - DataType_String =3D 2 -}; -/* End of enum DataType Declaration */ - - -/* Start of enum DataFlags Declaration */ -# define DATAFLAGS_IID_STR "86884dcf-1d6b-4f1b-b4bf-f5aa44959d60" -# define DATAFLAGS_IID { \ - 0x86884dcf, 0x1d6b, 0x4f1b, \ - { 0xb4, 0xbf, 0xf5, 0xaa, 0x44, 0x95, 0x9d, 0x60 } \ -} -enum DataFlags -{ - DataFlags_None =3D 0x00, - DataFlags_Mandatory =3D 0x01, - DataFlags_Expert =3D 0x02, - DataFlags_Array =3D 0x04, - DataFlags_FlagMask =3D 0x07 -}; -/* End of enum DataFlags Declaration */ - - -/* Start of enum MediumFormatCapabilities Declaration */ -# define MEDIUMFORMATCAPABILITIES_IID_STR "7342ba79-7ce0-4d94-8f86-5ed5a1= 85d9bd" -# define MEDIUMFORMATCAPABILITIES_IID { \ - 0x7342ba79, 0x7ce0, 0x4d94, \ - { 0x8f, 0x86, 0x5e, 0xd5, 0xa1, 0x85, 0xd9, 0xbd } \ -} -enum MediumFormatCapabilities -{ - MediumFormatCapabilities_Uuid =3D 0x01, - MediumFormatCapabilities_CreateFixed =3D 0x02, - MediumFormatCapabilities_CreateDynamic =3D 0x04, - MediumFormatCapabilities_CreateSplit2G =3D 0x08, - MediumFormatCapabilities_Differencing =3D 0x10, - MediumFormatCapabilities_Asynchronous =3D 0x20, - MediumFormatCapabilities_File =3D 0x40, - MediumFormatCapabilities_Properties =3D 0x80, - MediumFormatCapabilities_TcpNetworking =3D 0x100, - MediumFormatCapabilities_VFS =3D 0x200, - MediumFormatCapabilities_CapabilityMask =3D 0x3FF -}; -/* End of enum MediumFormatCapabilities Declaration */ - - -/* Start of enum MouseButtonState Declaration */ -# define MOUSEBUTTONSTATE_IID_STR "9ee094b8-b28a-4d56-a166-973cb588d7f8" -# define MOUSEBUTTONSTATE_IID { \ - 0x9ee094b8, 0xb28a, 0x4d56, \ - { 0xa1, 0x66, 0x97, 0x3c, 0xb5, 0x88, 0xd7, 0xf8 } \ -} -enum MouseButtonState -{ - MouseButtonState_LeftButton =3D 0x01, - MouseButtonState_RightButton =3D 0x02, - MouseButtonState_MiddleButton =3D 0x04, - MouseButtonState_WheelUp =3D 0x08, - MouseButtonState_WheelDown =3D 0x10, - MouseButtonState_XButton1 =3D 0x20, - MouseButtonState_XButton2 =3D 0x40, - MouseButtonState_MouseStateMask =3D 0x7F -}; -/* End of enum MouseButtonState Declaration */ - - -/* Start of enum FramebufferPixelFormat Declaration */ -# define FRAMEBUFFERPIXELFORMAT_IID_STR "7acfd5ed-29e3-45e3-8136-73c9224f= 3d2d" -# define FRAMEBUFFERPIXELFORMAT_IID { \ - 0x7acfd5ed, 0x29e3, 0x45e3, \ - { 0x81, 0x36, 0x73, 0xc9, 0x22, 0x4f, 0x3d, 0x2d } \ -} -enum FramebufferPixelFormat -{ - FramebufferPixelFormat_Opaque =3D 0, - FramebufferPixelFormat_FOURCC_RGB =3D 0x32424752 -}; -/* End of enum FramebufferPixelFormat Declaration */ - - -/* Start of enum NetworkAttachmentType Declaration */ -# define NETWORKATTACHMENTTYPE_IID_STR "2ac4bc71-6b82-417a-acd1-f7426d257= 0d6" -# define NETWORKATTACHMENTTYPE_IID { \ - 0x2ac4bc71, 0x6b82, 0x417a, \ - { 0xac, 0xd1, 0xf7, 0x42, 0x6d, 0x25, 0x70, 0xd6 } \ -} -enum NetworkAttachmentType -{ - NetworkAttachmentType_Null =3D 0, - NetworkAttachmentType_NAT =3D 1, - NetworkAttachmentType_Bridged =3D 2, - NetworkAttachmentType_Internal =3D 3, - NetworkAttachmentType_HostOnly =3D 4, - NetworkAttachmentType_Generic =3D 5 -}; -/* End of enum NetworkAttachmentType Declaration */ - - -/* Start of enum NetworkAdapterType Declaration */ -# define NETWORKADAPTERTYPE_IID_STR "3c2281e4-d952-4e87-8c7d-24379cb6a81c" -# define NETWORKADAPTERTYPE_IID { \ - 0x3c2281e4, 0xd952, 0x4e87, \ - { 0x8c, 0x7d, 0x24, 0x37, 0x9c, 0xb6, 0xa8, 0x1c } \ -} -enum NetworkAdapterType -{ - NetworkAdapterType_Null =3D 0, - NetworkAdapterType_Am79C970A =3D 1, - NetworkAdapterType_Am79C973 =3D 2, - NetworkAdapterType_I82540EM =3D 3, - NetworkAdapterType_I82543GC =3D 4, - NetworkAdapterType_I82545EM =3D 5, - NetworkAdapterType_Virtio =3D 6 -}; -/* End of enum NetworkAdapterType Declaration */ - - -/* Start of enum NetworkAdapterPromiscModePolicy Declaration */ -# define NETWORKADAPTERPROMISCMODEPOLICY_IID_STR "c963768a-376f-4c85-8d84= -d8ced4b7269e" -# define NETWORKADAPTERPROMISCMODEPOLICY_IID { \ - 0xc963768a, 0x376f, 0x4c85, \ - { 0x8d, 0x84, 0xd8, 0xce, 0xd4, 0xb7, 0x26, 0x9e } \ -} -enum NetworkAdapterPromiscModePolicy -{ - NetworkAdapterPromiscModePolicy_Deny =3D 1, - NetworkAdapterPromiscModePolicy_AllowNetwork =3D 2, - NetworkAdapterPromiscModePolicy_AllowAll =3D 3 -}; -/* End of enum NetworkAdapterPromiscModePolicy Declaration */ - - -/* Start of enum PortMode Declaration */ -# define PORTMODE_IID_STR "533b5fe3-0185-4197-86a7-17e37dd39d76" -# define PORTMODE_IID { \ - 0x533b5fe3, 0x0185, 0x4197, \ - { 0x86, 0xa7, 0x17, 0xe3, 0x7d, 0xd3, 0x9d, 0x76 } \ -} -enum PortMode -{ - PortMode_Disconnected =3D 0, - PortMode_HostPipe =3D 1, - PortMode_HostDevice =3D 2, - PortMode_RawFile =3D 3 -}; -/* End of enum PortMode Declaration */ - - -/* Start of enum USBDeviceState Declaration */ -# define USBDEVICESTATE_IID_STR "b99a2e65-67fb-4882-82fd-f3e5e8193ab4" -# define USBDEVICESTATE_IID { \ - 0xb99a2e65, 0x67fb, 0x4882, \ - { 0x82, 0xfd, 0xf3, 0xe5, 0xe8, 0x19, 0x3a, 0xb4 } \ -} -enum USBDeviceState -{ - USBDeviceState_NotSupported =3D 0, - USBDeviceState_Unavailable =3D 1, - USBDeviceState_Busy =3D 2, - USBDeviceState_Available =3D 3, - USBDeviceState_Held =3D 4, - USBDeviceState_Captured =3D 5 -}; -/* End of enum USBDeviceState Declaration */ - - -/* Start of enum USBDeviceFilterAction Declaration */ -# define USBDEVICEFILTERACTION_IID_STR "cbc30a49-2f4e-43b5-9da6-121320475= 933" -# define USBDEVICEFILTERACTION_IID { \ - 0xcbc30a49, 0x2f4e, 0x43b5, \ - { 0x9d, 0xa6, 0x12, 0x13, 0x20, 0x47, 0x59, 0x33 } \ -} -enum USBDeviceFilterAction -{ - USBDeviceFilterAction_Null =3D 0, - USBDeviceFilterAction_Ignore =3D 1, - USBDeviceFilterAction_Hold =3D 2 -}; -/* End of enum USBDeviceFilterAction Declaration */ - - -/* Start of enum AudioDriverType Declaration */ -# define AUDIODRIVERTYPE_IID_STR "4bcc3d73-c2fe-40db-b72f-0c2ca9d68496" -# define AUDIODRIVERTYPE_IID { \ - 0x4bcc3d73, 0xc2fe, 0x40db, \ - { 0xb7, 0x2f, 0x0c, 0x2c, 0xa9, 0xd6, 0x84, 0x96 } \ -} -enum AudioDriverType -{ - AudioDriverType_Null =3D 0, - AudioDriverType_WinMM =3D 1, - AudioDriverType_OSS =3D 2, - AudioDriverType_ALSA =3D 3, - AudioDriverType_DirectSound =3D 4, - AudioDriverType_CoreAudio =3D 5, - AudioDriverType_MMPM =3D 6, - AudioDriverType_Pulse =3D 7, - AudioDriverType_SolAudio =3D 8 -}; -/* End of enum AudioDriverType Declaration */ - - -/* Start of enum AudioControllerType Declaration */ -# define AUDIOCONTROLLERTYPE_IID_STR "7afd395c-42c3-444e-8788-3ce80292f36= c" -# define AUDIOCONTROLLERTYPE_IID { \ - 0x7afd395c, 0x42c3, 0x444e, \ - { 0x87, 0x88, 0x3c, 0xe8, 0x02, 0x92, 0xf3, 0x6c } \ -} -enum AudioControllerType -{ - AudioControllerType_AC97 =3D 0, - AudioControllerType_SB16 =3D 1, - AudioControllerType_HDA =3D 2 -}; -/* End of enum AudioControllerType Declaration */ - - -/* Start of enum AuthType Declaration */ -# define AUTHTYPE_IID_STR "7eef6ef6-98c2-4dc2-ab35-10d2b292028d" -# define AUTHTYPE_IID { \ - 0x7eef6ef6, 0x98c2, 0x4dc2, \ - { 0xab, 0x35, 0x10, 0xd2, 0xb2, 0x92, 0x02, 0x8d } \ -} -enum AuthType -{ - AuthType_Null =3D 0, - AuthType_External =3D 1, - AuthType_Guest =3D 2 -}; -/* End of enum AuthType Declaration */ - - -/* Start of enum StorageBus Declaration */ -# define STORAGEBUS_IID_STR "eee67ab3-668d-4ef5-91e0-7025fe4a0d7a" -# define STORAGEBUS_IID { \ - 0xeee67ab3, 0x668d, 0x4ef5, \ - { 0x91, 0xe0, 0x70, 0x25, 0xfe, 0x4a, 0x0d, 0x7a } \ -} -enum StorageBus -{ - StorageBus_Null =3D 0, - StorageBus_IDE =3D 1, - StorageBus_SATA =3D 2, - StorageBus_SCSI =3D 3, - StorageBus_Floppy =3D 4, - StorageBus_SAS =3D 5 -}; -/* End of enum StorageBus Declaration */ - - -/* Start of enum StorageControllerType Declaration */ -# define STORAGECONTROLLERTYPE_IID_STR "8a412b8a-f43e-4456-bd37-b474f0879= a58" -# define STORAGECONTROLLERTYPE_IID { \ - 0x8a412b8a, 0xf43e, 0x4456, \ - { 0xbd, 0x37, 0xb4, 0x74, 0xf0, 0x87, 0x9a, 0x58 } \ -} -enum StorageControllerType -{ - StorageControllerType_Null =3D 0, - StorageControllerType_LsiLogic =3D 1, - StorageControllerType_BusLogic =3D 2, - StorageControllerType_IntelAhci =3D 3, - StorageControllerType_PIIX3 =3D 4, - StorageControllerType_PIIX4 =3D 5, - StorageControllerType_ICH6 =3D 6, - StorageControllerType_I82078 =3D 7, - StorageControllerType_LsiLogicSas =3D 8 -}; -/* End of enum StorageControllerType Declaration */ - - -/* Start of enum ChipsetType Declaration */ -# define CHIPSETTYPE_IID_STR "8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394" -# define CHIPSETTYPE_IID { \ - 0x8b4096a8, 0xa7c3, 0x4d3b, \ - { 0xbb, 0xb1, 0x05, 0xa0, 0xa5, 0x1e, 0xc3, 0x94 } \ -} -enum ChipsetType -{ - ChipsetType_Null =3D 0, - ChipsetType_PIIX3 =3D 1, - ChipsetType_ICH9 =3D 2 -}; -/* End of enum ChipsetType Declaration */ - - -/* Start of enum NATAliasMode Declaration */ -# define NATALIASMODE_IID_STR "67772168-50d9-11df-9669-7fb714ee4fa1" -# define NATALIASMODE_IID { \ - 0x67772168, 0x50d9, 0x11df, \ - { 0x96, 0x69, 0x7f, 0xb7, 0x14, 0xee, 0x4f, 0xa1 } \ -} -enum NATAliasMode -{ - NATAliasMode_AliasLog =3D 0x1, - NATAliasMode_AliasProxyOnly =3D 0x02, - NATAliasMode_AliasUseSamePorts =3D 0x04 -}; -/* End of enum NATAliasMode Declaration */ - - -/* Start of enum NATProtocol Declaration */ -# define NATPROTOCOL_IID_STR "e90164be-eb03-11de-94af-fff9b1c1b19f" -# define NATPROTOCOL_IID { \ - 0xe90164be, 0xeb03, 0x11de, \ - { 0x94, 0xaf, 0xff, 0xf9, 0xb1, 0xc1, 0xb1, 0x9f } \ -} -enum NATProtocol -{ - NATProtocol_UDP =3D 0, - NATProtocol_TCP =3D 1 -}; -/* End of enum NATProtocol Declaration */ - - -/* Start of enum BandwidthGroupType Declaration */ -# define BANDWIDTHGROUPTYPE_IID_STR "1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e" -# define BANDWIDTHGROUPTYPE_IID { \ - 0x1d92b67d, 0xdc69, 0x4be9, \ - { 0xad, 0x4c, 0x93, 0xa0, 0x1e, 0x1e, 0x0c, 0x8e } \ -} -enum BandwidthGroupType -{ - BandwidthGroupType_Null =3D 0, - BandwidthGroupType_Disk =3D 1, - BandwidthGroupType_Network =3D 2 -}; -/* End of enum BandwidthGroupType Declaration */ - - -/* Start of enum VBoxEventType Declaration */ -# define VBOXEVENTTYPE_IID_STR "0d67e79e-b7b1-4919-aab3-b36866075515" -# define VBOXEVENTTYPE_IID { \ - 0x0d67e79e, 0xb7b1, 0x4919, \ - { 0xaa, 0xb3, 0xb3, 0x68, 0x66, 0x07, 0x55, 0x15 } \ -} -enum VBoxEventType -{ - VBoxEventType_Invalid =3D 0, - VBoxEventType_Any =3D 1, - VBoxEventType_Vetoable =3D 2, - VBoxEventType_MachineEvent =3D 3, - VBoxEventType_SnapshotEvent =3D 4, - VBoxEventType_InputEvent =3D 5, - VBoxEventType_LastWildcard =3D 31, - VBoxEventType_OnMachineStateChanged =3D 32, - VBoxEventType_OnMachineDataChanged =3D 33, - VBoxEventType_OnExtraDataChanged =3D 34, - VBoxEventType_OnExtraDataCanChange =3D 35, - VBoxEventType_OnMediumRegistered =3D 36, - VBoxEventType_OnMachineRegistered =3D 37, - VBoxEventType_OnSessionStateChanged =3D 38, - VBoxEventType_OnSnapshotTaken =3D 39, - VBoxEventType_OnSnapshotDeleted =3D 40, - VBoxEventType_OnSnapshotChanged =3D 41, - VBoxEventType_OnGuestPropertyChanged =3D 42, - VBoxEventType_OnMousePointerShapeChanged =3D 43, - VBoxEventType_OnMouseCapabilityChanged =3D 44, - VBoxEventType_OnKeyboardLedsChanged =3D 45, - VBoxEventType_OnStateChanged =3D 46, - VBoxEventType_OnAdditionsStateChanged =3D 47, - VBoxEventType_OnNetworkAdapterChanged =3D 48, - VBoxEventType_OnSerialPortChanged =3D 49, - VBoxEventType_OnParallelPortChanged =3D 50, - VBoxEventType_OnStorageControllerChanged =3D 51, - VBoxEventType_OnMediumChanged =3D 52, - VBoxEventType_OnVRDEServerChanged =3D 53, - VBoxEventType_OnUSBControllerChanged =3D 54, - VBoxEventType_OnUSBDeviceStateChanged =3D 55, - VBoxEventType_OnSharedFolderChanged =3D 56, - VBoxEventType_OnRuntimeError =3D 57, - VBoxEventType_OnCanShowWindow =3D 58, - VBoxEventType_OnShowWindow =3D 59, - VBoxEventType_OnCPUChanged =3D 60, - VBoxEventType_OnVRDEServerInfoChanged =3D 61, - VBoxEventType_OnEventSourceChanged =3D 62, - VBoxEventType_OnCPUExecutionCapChanged =3D 63, - VBoxEventType_OnGuestKeyboard =3D 64, - VBoxEventType_OnGuestMouse =3D 65, - VBoxEventType_OnNATRedirect =3D 66, - VBoxEventType_OnHostPCIDevicePlug =3D 67, - VBoxEventType_OnVBoxSVCAvailabilityChanged =3D 68, - VBoxEventType_OnBandwidthGroupChanged =3D 69, - VBoxEventType_OnGuestMonitorChanged =3D 70, - VBoxEventType_OnStorageDeviceChanged =3D 71, - VBoxEventType_OnClipboardModeChanged =3D 72, - VBoxEventType_OnDragAndDropModeChanged =3D 73, - VBoxEventType_Last =3D 74 -}; -/* End of enum VBoxEventType Declaration */ - - -/* Start of enum GuestMonitorChangedEventType Declaration */ -# define GUESTMONITORCHANGEDEVENTTYPE_IID_STR "ef172985-7e36-4297-95be-e4= 6396968d66" -# define GUESTMONITORCHANGEDEVENTTYPE_IID { \ - 0xef172985, 0x7e36, 0x4297, \ - { 0x95, 0xbe, 0xe4, 0x63, 0x96, 0x96, 0x8d, 0x66 } \ -} -enum GuestMonitorChangedEventType -{ - GuestMonitorChangedEventType_Enabled =3D 0, - GuestMonitorChangedEventType_Disabled =3D 1, - GuestMonitorChangedEventType_NewOrigin =3D 2 -}; -/* End of enum GuestMonitorChangedEventType Declaration */ - - -/* Start of struct IVirtualBoxErrorInfo Declaration */ -# define IVIRTUALBOXERRORINFO_IID_STR "f91e6e91-49e1-4fd2-b21e-269003350d= 06" -# define IVIRTUALBOXERRORINFO_IID { \ - 0xf91e6e91, 0x49e1, 0x4fd2, \ - { 0xb2, 0x1e, 0x26, 0x90, 0x03, 0x35, 0x0d, 0x06 } \ -} -struct IVirtualBoxErrorInfo_vtbl -{ - struct nsIException_vtbl nsiexception; - - nsresult PR_COM_METHOD (*GetResultCode)(IVirtualBoxErrorInfo *pThis, P= RInt32 *resultCode); - - nsresult PR_COM_METHOD (*GetInterfaceID)(IVirtualBoxErrorInfo *pThis, = PRUnichar * *interfaceID); - - nsresult PR_COM_METHOD (*GetComponent)(IVirtualBoxErrorInfo *pThis, PR= Unichar * *component); - - nsresult PR_COM_METHOD (*GetText)(IVirtualBoxErrorInfo *pThis, PRUnich= ar * *text); - - nsresult PR_COM_METHOD (*GetNext)(IVirtualBoxErrorInfo *pThis, IVirtua= lBoxErrorInfo * *next); - -}; - -struct IVirtualBoxErrorInfo -{ - struct IVirtualBoxErrorInfo_vtbl *vtbl; -}; -/* End of struct IVirtualBoxErrorInfo Declaration */ - - -/* Start of struct IDHCPServer Declaration */ -# define IDHCPSERVER_IID_STR "6cfe387c-74fb-4ca7-bff6-973bec8af7a3" -# define IDHCPSERVER_IID { \ - 0x6cfe387c, 0x74fb, 0x4ca7, \ - { 0xbf, 0xf6, 0x97, 0x3b, 0xec, 0x8a, 0xf7, 0xa3 } \ -} -struct IDHCPServer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IDHCPServer *pThis, PRBool *enabl= ed); - nsresult PR_COM_METHOD (*SetEnabled)(IDHCPServer *pThis, PRBool enable= d); - - nsresult PR_COM_METHOD (*GetIPAddress)(IDHCPServer *pThis, PRUnichar *= *IPAddress); - - nsresult PR_COM_METHOD (*GetNetworkMask)(IDHCPServer *pThis, PRUnichar= * *networkMask); - - nsresult PR_COM_METHOD (*GetNetworkName)(IDHCPServer *pThis, PRUnichar= * *networkName); - - nsresult PR_COM_METHOD (*GetLowerIP)(IDHCPServer *pThis, PRUnichar * *= lowerIP); - - nsresult PR_COM_METHOD (*GetUpperIP)(IDHCPServer *pThis, PRUnichar * *= upperIP); - - nsresult PR_COM_METHOD (*SetConfiguration)( - IDHCPServer *pThis, - PRUnichar * IPAddress, - PRUnichar * networkMask, - PRUnichar * FromIPAddress, - PRUnichar * ToIPAddress - ); - - nsresult PR_COM_METHOD (*Start)( - IDHCPServer *pThis, - PRUnichar * networkName, - PRUnichar * trunkName, - PRUnichar * trunkType - ); - - nsresult PR_COM_METHOD (*Stop)(IDHCPServer *pThis ); - -}; - -struct IDHCPServer -{ - struct IDHCPServer_vtbl *vtbl; -}; -/* End of struct IDHCPServer Declaration */ - - -/* Start of struct IVirtualBox Declaration */ -# define IVIRTUALBOX_IID_STR "3b2f08eb-b810-4715-bee0-bb06b9880ad2" -# define IVIRTUALBOX_IID { \ - 0x3b2f08eb, 0xb810, 0x4715, \ - { 0xbe, 0xe0, 0xbb, 0x06, 0xb9, 0x88, 0x0a, 0xd2 } \ -} -struct IVirtualBox_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetVersion)(IVirtualBox *pThis, PRUnichar * *= version); - - nsresult PR_COM_METHOD (*GetVersionNormalized)(IVirtualBox *pThis, PRU= nichar * *versionNormalized); - - nsresult PR_COM_METHOD (*GetRevision)(IVirtualBox *pThis, PRUint32 *re= vision); - - nsresult PR_COM_METHOD (*GetPackageType)(IVirtualBox *pThis, PRUnichar= * *packageType); - - nsresult PR_COM_METHOD (*GetAPIVersion)(IVirtualBox *pThis, PRUnichar = * *APIVersion); - - nsresult PR_COM_METHOD (*GetHomeFolder)(IVirtualBox *pThis, PRUnichar = * *homeFolder); - - nsresult PR_COM_METHOD (*GetSettingsFilePath)(IVirtualBox *pThis, PRUn= ichar * *settingsFilePath); - - nsresult PR_COM_METHOD (*GetHost)(IVirtualBox *pThis, IHost * *host); - - nsresult PR_COM_METHOD (*GetSystemProperties)(IVirtualBox *pThis, ISys= temProperties * *systemProperties); - - nsresult PR_COM_METHOD (*GetMachines)(IVirtualBox *pThis, PRUint32 *ma= chinesSize, IMachine * **machines); - - nsresult PR_COM_METHOD (*GetMachineGroups)(IVirtualBox *pThis, PRUint3= 2 *machineGroupsSize, PRUnichar * **machineGroups); - - nsresult PR_COM_METHOD (*GetHardDisks)(IVirtualBox *pThis, PRUint32 *h= ardDisksSize, IMedium * **hardDisks); - - nsresult PR_COM_METHOD (*GetDVDImages)(IVirtualBox *pThis, PRUint32 *D= VDImagesSize, IMedium * **DVDImages); - - nsresult PR_COM_METHOD (*GetFloppyImages)(IVirtualBox *pThis, PRUint32= *floppyImagesSize, IMedium * **floppyImages); - - nsresult PR_COM_METHOD (*GetProgressOperations)(IVirtualBox *pThis, PR= Uint32 *progressOperationsSize, IProgress * **progressOperations); - - nsresult PR_COM_METHOD (*GetGuestOSTypes)(IVirtualBox *pThis, PRUint32= *guestOSTypesSize, IGuestOSType * **guestOSTypes); - - nsresult PR_COM_METHOD (*GetSharedFolders)(IVirtualBox *pThis, PRUint3= 2 *sharedFoldersSize, ISharedFolder * **sharedFolders); - - nsresult PR_COM_METHOD (*GetPerformanceCollector)(IVirtualBox *pThis, = IPerformanceCollector * *performanceCollector); - - nsresult PR_COM_METHOD (*GetDHCPServers)(IVirtualBox *pThis, PRUint32 = *DHCPServersSize, IDHCPServer * **DHCPServers); - - nsresult PR_COM_METHOD (*GetEventSource)(IVirtualBox *pThis, IEventSou= rce * *eventSource); - - nsresult PR_COM_METHOD (*GetExtensionPackManager)(IVirtualBox *pThis, = IExtPackManager * *extensionPackManager); - - nsresult PR_COM_METHOD (*GetInternalNetworks)(IVirtualBox *pThis, PRUi= nt32 *internalNetworksSize, PRUnichar * **internalNetworks); - - nsresult PR_COM_METHOD (*GetGenericNetworkDrivers)(IVirtualBox *pThis,= PRUint32 *genericNetworkDriversSize, PRUnichar * **genericNetworkDrivers); - - nsresult PR_COM_METHOD (*ComposeMachineFilename)( - IVirtualBox *pThis, - PRUnichar * name, - PRUnichar * group, - PRUnichar * createFlags, - PRUnichar * baseFolder, - PRUnichar * * file - ); - - nsresult PR_COM_METHOD (*CreateMachine)( - IVirtualBox *pThis, - PRUnichar * settingsFile, - PRUnichar * name, - PRUint32 groupsSize, - PRUnichar ** groups, - PRUnichar * osTypeId, - PRUnichar * flags, - IMachine * * machine - ); - - nsresult PR_COM_METHOD (*OpenMachine)( - IVirtualBox *pThis, - PRUnichar * settingsFile, - IMachine * * machine - ); - - nsresult PR_COM_METHOD (*RegisterMachine)( - IVirtualBox *pThis, - IMachine * machine - ); - - nsresult PR_COM_METHOD (*FindMachine)( - IVirtualBox *pThis, - PRUnichar * nameOrId, - IMachine * * machine - ); - - nsresult PR_COM_METHOD (*GetMachinesByGroups)( - IVirtualBox *pThis, - PRUint32 groupsSize, - PRUnichar ** groups, - PRUint32 *machinesSize, - IMachine *** machines - ); - - nsresult PR_COM_METHOD (*GetMachineStates)( - IVirtualBox *pThis, - PRUint32 machinesSize, - IMachine ** machines, - PRUint32 *statesSize, - PRUint32** states - ); - - nsresult PR_COM_METHOD (*CreateAppliance)( - IVirtualBox *pThis, - IAppliance * * appliance - ); - - nsresult PR_COM_METHOD (*CreateHardDisk)( - IVirtualBox *pThis, - PRUnichar * format, - PRUnichar * location, - IMedium * * medium - ); - - nsresult PR_COM_METHOD (*OpenMedium)( - IVirtualBox *pThis, - PRUnichar * location, - PRUint32 deviceType, - PRUint32 accessMode, - PRBool forceNewUuid, - IMedium * * medium - ); - - nsresult PR_COM_METHOD (*GetGuestOSType)( - IVirtualBox *pThis, - PRUnichar * id, - IGuestOSType * * type - ); - - nsresult PR_COM_METHOD (*CreateSharedFolder)( - IVirtualBox *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult PR_COM_METHOD (*RemoveSharedFolder)( - IVirtualBox *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*GetExtraDataKeys)( - IVirtualBox *pThis, - PRUint32 *valueSize, - PRUnichar *** value - ); - - nsresult PR_COM_METHOD (*GetExtraData)( - IVirtualBox *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetExtraData)( - IVirtualBox *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*SetSettingsSecret)( - IVirtualBox *pThis, - PRUnichar * password - ); - - nsresult PR_COM_METHOD (*CreateDHCPServer)( - IVirtualBox *pThis, - PRUnichar * name, - IDHCPServer * * server - ); - - nsresult PR_COM_METHOD (*FindDHCPServerByNetworkName)( - IVirtualBox *pThis, - PRUnichar * name, - IDHCPServer * * server - ); - - nsresult PR_COM_METHOD (*RemoveDHCPServer)( - IVirtualBox *pThis, - IDHCPServer * server - ); - - nsresult PR_COM_METHOD (*CheckFirmwarePresent)( - IVirtualBox *pThis, - PRUint32 firmwareType, - PRUnichar * version, - PRUnichar * * url, - PRUnichar * * file, - PRBool * result - ); - -}; - -struct IVirtualBox -{ - struct IVirtualBox_vtbl *vtbl; -}; -/* End of struct IVirtualBox Declaration */ - - -/* Start of struct IVFSExplorer Declaration */ -# define IVFSEXPLORER_IID_STR "003d7f92-d38e-487f-b790-8c5e8631cb2f" -# define IVFSEXPLORER_IID { \ - 0x003d7f92, 0xd38e, 0x487f, \ - { 0xb7, 0x90, 0x8c, 0x5e, 0x86, 0x31, 0xcb, 0x2f } \ -} -struct IVFSExplorer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetPath)(IVFSExplorer *pThis, PRUnichar * *pa= th); - - nsresult PR_COM_METHOD (*GetType)(IVFSExplorer *pThis, PRUint32 *type); - - nsresult PR_COM_METHOD (*Update)( - IVFSExplorer *pThis, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*Cd)( - IVFSExplorer *pThis, - PRUnichar * aDir, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*CdUp)( - IVFSExplorer *pThis, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*EntryList)( - IVFSExplorer *pThis, - PRUint32 *aNamesSize, - PRUnichar *** aNames, - PRUint32 *aTypesSize, - PRUint32* aTypes, - PRUint32 *aSizesSize, - PRUint32* aSizes, - PRUint32 *aModesSize, - PRUint32* aModes - ); - - nsresult PR_COM_METHOD (*Exists)( - IVFSExplorer *pThis, - PRUint32 aNamesSize, - PRUnichar ** aNames, - PRUint32 *aExistsSize, - PRUnichar *** aExists - ); - - nsresult PR_COM_METHOD (*Remove)( - IVFSExplorer *pThis, - PRUint32 aNamesSize, - PRUnichar ** aNames, - IProgress * * aProgress - ); - -}; - -struct IVFSExplorer -{ - struct IVFSExplorer_vtbl *vtbl; -}; -/* End of struct IVFSExplorer Declaration */ - - -/* Start of struct IAppliance Declaration */ -# define IAPPLIANCE_IID_STR "3059cf9e-25c7-4f0b-9fa5-3c42e441670b" -# define IAPPLIANCE_IID { \ - 0x3059cf9e, 0x25c7, 0x4f0b, \ - { 0x9f, 0xa5, 0x3c, 0x42, 0xe4, 0x41, 0x67, 0x0b } \ -} -struct IAppliance_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetPath)(IAppliance *pThis, PRUnichar * *path= ); - - nsresult PR_COM_METHOD (*GetDisks)(IAppliance *pThis, PRUint32 *disksS= ize, PRUnichar * **disks); - - nsresult PR_COM_METHOD (*GetVirtualSystemDescriptions)(IAppliance *pTh= is, PRUint32 *virtualSystemDescriptionsSize, IVirtualSystemDescription * **= virtualSystemDescriptions); - - nsresult PR_COM_METHOD (*GetMachines)(IAppliance *pThis, PRUint32 *mac= hinesSize, PRUnichar * **machines); - - nsresult PR_COM_METHOD (*Read)( - IAppliance *pThis, - PRUnichar * file, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*Interpret)(IAppliance *pThis ); - - nsresult PR_COM_METHOD (*ImportMachines)( - IAppliance *pThis, - PRUint32 optionsSize, - PRUint32* options, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*CreateVFSExplorer)( - IAppliance *pThis, - PRUnichar * aUri, - IVFSExplorer * * aExplorer - ); - - nsresult PR_COM_METHOD (*Write)( - IAppliance *pThis, - PRUnichar * format, - PRBool manifest, - PRUnichar * path, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*GetWarnings)( - IAppliance *pThis, - PRUint32 *aWarningsSize, - PRUnichar *** aWarnings - ); - -}; - -struct IAppliance -{ - struct IAppliance_vtbl *vtbl; -}; -/* End of struct IAppliance Declaration */ - - -/* Start of struct IVirtualSystemDescription Declaration */ -# define IVIRTUALSYSTEMDESCRIPTION_IID_STR "d7525e6c-531a-4c51-8e04-41235= 083a3d8" -# define IVIRTUALSYSTEMDESCRIPTION_IID { \ - 0xd7525e6c, 0x531a, 0x4c51, \ - { 0x8e, 0x04, 0x41, 0x23, 0x50, 0x83, 0xa3, 0xd8 } \ -} -struct IVirtualSystemDescription_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetCount)(IVirtualSystemDescription *pThis, P= RUint32 *count); - - nsresult PR_COM_METHOD (*GetDescription)( - IVirtualSystemDescription *pThis, - PRUint32 *aTypesSize, - PRUint32* aTypes, - PRUint32 *aRefsSize, - PRUnichar *** aRefs, - PRUint32 *aOvfValuesSize, - PRUnichar *** aOvfValues, - PRUint32 *aVBoxValuesSize, - PRUnichar *** aVBoxValues, - PRUint32 *aExtraConfigValuesSize, - PRUnichar *** aExtraConfigValues - ); - - nsresult PR_COM_METHOD (*GetDescriptionByType)( - IVirtualSystemDescription *pThis, - PRUint32 aType, - PRUint32 *aTypesSize, - PRUint32* aTypes, - PRUint32 *aRefsSize, - PRUnichar *** aRefs, - PRUint32 *aOvfValuesSize, - PRUnichar *** aOvfValues, - PRUint32 *aVBoxValuesSize, - PRUnichar *** aVBoxValues, - PRUint32 *aExtraConfigValuesSize, - PRUnichar *** aExtraConfigValues - ); - - nsresult PR_COM_METHOD (*GetValuesByType)( - IVirtualSystemDescription *pThis, - PRUint32 aType, - PRUint32 aWhich, - PRUint32 *aValuesSize, - PRUnichar *** aValues - ); - - nsresult PR_COM_METHOD (*SetFinalValues)( - IVirtualSystemDescription *pThis, - PRUint32 aEnabledSize, - PRBool* aEnabled, - PRUint32 aVBoxValuesSize, - PRUnichar ** aVBoxValues, - PRUint32 aExtraConfigValuesSize, - PRUnichar ** aExtraConfigValues - ); - - nsresult PR_COM_METHOD (*AddDescription)( - IVirtualSystemDescription *pThis, - PRUint32 aType, - PRUnichar * aVBoxValue, - PRUnichar * aExtraConfigValue - ); - -}; - -struct IVirtualSystemDescription -{ - struct IVirtualSystemDescription_vtbl *vtbl; -}; -/* End of struct IVirtualSystemDescription Declaration */ - - -/* Start of struct IInternalMachineControl Declaration */ -# define IINTERNALMACHINECONTROL_IID_STR "ec824977-e43f-479c-81c9-ac6cae1= 423a5" -# define IINTERNALMACHINECONTROL_IID { \ - 0xec824977, 0xe43f, 0x479c, \ - { 0x81, 0xc9, 0xac, 0x6c, 0xae, 0x14, 0x23, 0xa5 } \ -} -struct IInternalMachineControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*SetRemoveSavedStateFile)( - IInternalMachineControl *pThis, - PRBool aRemove - ); - - nsresult PR_COM_METHOD (*UpdateState)( - IInternalMachineControl *pThis, - PRUint32 state - ); - - nsresult PR_COM_METHOD (*GetIPCId)( - IInternalMachineControl *pThis, - PRUnichar * * id - ); - - nsresult PR_COM_METHOD (*BeginPowerUp)( - IInternalMachineControl *pThis, - IProgress * aProgress - ); - - nsresult PR_COM_METHOD (*EndPowerUp)( - IInternalMachineControl *pThis, - PRInt32 result - ); - - nsresult PR_COM_METHOD (*BeginPoweringDown)( - IInternalMachineControl *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*EndPoweringDown)( - IInternalMachineControl *pThis, - PRInt32 result, - PRUnichar * errMsg - ); - - nsresult PR_COM_METHOD (*RunUSBDeviceFilters)( - IInternalMachineControl *pThis, - IUSBDevice * device, - PRBool * matched, - PRUint32 * maskedInterfaces - ); - - nsresult PR_COM_METHOD (*CaptureUSBDevice)( - IInternalMachineControl *pThis, - PRUnichar * id - ); - - nsresult PR_COM_METHOD (*DetachUSBDevice)( - IInternalMachineControl *pThis, - PRUnichar * id, - PRBool done - ); - - nsresult PR_COM_METHOD (*AutoCaptureUSBDevices)(IInternalMachineContro= l *pThis ); - - nsresult PR_COM_METHOD (*DetachAllUSBDevices)( - IInternalMachineControl *pThis, - PRBool done - ); - - nsresult PR_COM_METHOD (*OnSessionEnd)( - IInternalMachineControl *pThis, - ISession * session, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*BeginSavingState)( - IInternalMachineControl *pThis, - IProgress * * progress, - PRUnichar * * stateFilePath - ); - - nsresult PR_COM_METHOD (*EndSavingState)( - IInternalMachineControl *pThis, - PRInt32 result, - PRUnichar * errMsg - ); - - nsresult PR_COM_METHOD (*AdoptSavedState)( - IInternalMachineControl *pThis, - PRUnichar * savedStateFile - ); - - nsresult PR_COM_METHOD (*BeginTakingSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - PRUnichar * name, - PRUnichar * description, - IProgress * consoleProgress, - PRBool fTakingSnapshotOnline, - PRUnichar * * stateFilePath - ); - - nsresult PR_COM_METHOD (*EndTakingSnapshot)( - IInternalMachineControl *pThis, - PRBool success - ); - - nsresult PR_COM_METHOD (*DeleteSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - PRUnichar * startId, - PRUnichar * endId, - PRBool deleteAllChildren, - PRUint32 * machineState, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*FinishOnlineMergeMedium)( - IInternalMachineControl *pThis, - IMediumAttachment * mediumAttachment, - IMedium * source, - IMedium * target, - PRBool mergeForward, - IMedium * parentForTarget, - PRUint32 childrenToReparentSize, - IMedium ** childrenToReparent - ); - - nsresult PR_COM_METHOD (*RestoreSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - ISnapshot * snapshot, - PRUint32 * machineState, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*PullGuestProperties)( - IInternalMachineControl *pThis, - PRUint32 *nameSize, - PRUnichar *** name, - PRUint32 *valueSize, - PRUnichar *** value, - PRUint32 *timestampSize, - PRInt64* timestamp, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult PR_COM_METHOD (*PushGuestProperty)( - IInternalMachineControl *pThis, - PRUnichar * name, - PRUnichar * value, - PRInt64 timestamp, - PRUnichar * flags - ); - - nsresult PR_COM_METHOD (*LockMedia)(IInternalMachineControl *pThis ); - - nsresult PR_COM_METHOD (*UnlockMedia)(IInternalMachineControl *pThis ); - - nsresult PR_COM_METHOD (*EjectMedium)( - IInternalMachineControl *pThis, - IMediumAttachment * attachment, - IMediumAttachment * * newAttachment - ); - - nsresult PR_COM_METHOD (*ReportGuestStatistics)( - IInternalMachineControl *pThis, - PRUint32 validStats, - PRUint32 cpuUser, - PRUint32 cpuKernel, - PRUint32 cpuIdle, - PRUint32 memTotal, - PRUint32 memFree, - PRUint32 memBalloon, - PRUint32 memShared, - PRUint32 memCache, - PRUint32 pagedTotal, - PRUint32 memAllocTotal, - PRUint32 memFreeTotal, - PRUint32 memBalloonTotal, - PRUint32 memSharedTotal - ); - -}; - -struct IInternalMachineControl -{ - struct IInternalMachineControl_vtbl *vtbl; -}; -/* End of struct IInternalMachineControl Declaration */ - - -/* Start of struct IBIOSSettings Declaration */ -# define IBIOSSETTINGS_IID_STR "38b54279-dc35-4f5e-a431-835b867c6b5e" -# define IBIOSSETTINGS_IID { \ - 0x38b54279, 0xdc35, 0x4f5e, \ - { 0xa4, 0x31, 0x83, 0x5b, 0x86, 0x7c, 0x6b, 0x5e } \ -} -struct IBIOSSettings_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetLogoFadeIn)(IBIOSSettings *pThis, PRBool *= logoFadeIn); - nsresult PR_COM_METHOD (*SetLogoFadeIn)(IBIOSSettings *pThis, PRBool l= ogoFadeIn); - - nsresult PR_COM_METHOD (*GetLogoFadeOut)(IBIOSSettings *pThis, PRBool = *logoFadeOut); - nsresult PR_COM_METHOD (*SetLogoFadeOut)(IBIOSSettings *pThis, PRBool = logoFadeOut); - - nsresult PR_COM_METHOD (*GetLogoDisplayTime)(IBIOSSettings *pThis, PRU= int32 *logoDisplayTime); - nsresult PR_COM_METHOD (*SetLogoDisplayTime)(IBIOSSettings *pThis, PRU= int32 logoDisplayTime); - - nsresult PR_COM_METHOD (*GetLogoImagePath)(IBIOSSettings *pThis, PRUni= char * *logoImagePath); - nsresult PR_COM_METHOD (*SetLogoImagePath)(IBIOSSettings *pThis, PRUni= char * logoImagePath); - - nsresult PR_COM_METHOD (*GetBootMenuMode)(IBIOSSettings *pThis, PRUint= 32 *bootMenuMode); - nsresult PR_COM_METHOD (*SetBootMenuMode)(IBIOSSettings *pThis, PRUint= 32 bootMenuMode); - - nsresult PR_COM_METHOD (*GetACPIEnabled)(IBIOSSettings *pThis, PRBool = *ACPIEnabled); - nsresult PR_COM_METHOD (*SetACPIEnabled)(IBIOSSettings *pThis, PRBool = ACPIEnabled); - - nsresult PR_COM_METHOD (*GetIOAPICEnabled)(IBIOSSettings *pThis, PRBoo= l *IOAPICEnabled); - nsresult PR_COM_METHOD (*SetIOAPICEnabled)(IBIOSSettings *pThis, PRBoo= l IOAPICEnabled); - - nsresult PR_COM_METHOD (*GetTimeOffset)(IBIOSSettings *pThis, PRInt64 = *timeOffset); - nsresult PR_COM_METHOD (*SetTimeOffset)(IBIOSSettings *pThis, PRInt64 = timeOffset); - - nsresult PR_COM_METHOD (*GetPXEDebugEnabled)(IBIOSSettings *pThis, PRB= ool *PXEDebugEnabled); - nsresult PR_COM_METHOD (*SetPXEDebugEnabled)(IBIOSSettings *pThis, PRB= ool PXEDebugEnabled); - -}; - -struct IBIOSSettings -{ - struct IBIOSSettings_vtbl *vtbl; -}; -/* End of struct IBIOSSettings Declaration */ - - -/* Start of struct IPCIAddress Declaration */ -# define IPCIADDRESS_IID_STR "D88B324F-DB19-4D3B-A1A9-BF5B127199A8" -# define IPCIADDRESS_IID { \ - 0xD88B324F, 0xDB19, 0x4D3B, \ - { 0xA1, 0xA9, 0xBF, 0x5B, 0x12, 0x71, 0x99, 0xA8 } \ -} -struct IPCIAddress_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetBus)(IPCIAddress *pThis, PRInt16 *bus); - nsresult PR_COM_METHOD (*SetBus)(IPCIAddress *pThis, PRInt16 bus); - - nsresult PR_COM_METHOD (*GetDevice)(IPCIAddress *pThis, PRInt16 *devic= e); - nsresult PR_COM_METHOD (*SetDevice)(IPCIAddress *pThis, PRInt16 device= ); - - nsresult PR_COM_METHOD (*GetDevFunction)(IPCIAddress *pThis, PRInt16 *= devFunction); - nsresult PR_COM_METHOD (*SetDevFunction)(IPCIAddress *pThis, PRInt16 d= evFunction); - - nsresult PR_COM_METHOD (*AsLong)( - IPCIAddress *pThis, - PRInt32 * result - ); - - nsresult PR_COM_METHOD (*FromLong)( - IPCIAddress *pThis, - PRInt32 number - ); - -}; - -struct IPCIAddress -{ - struct IPCIAddress_vtbl *vtbl; -}; -/* End of struct IPCIAddress Declaration */ - - -/* Start of struct IPCIDeviceAttachment Declaration */ -# define IPCIDEVICEATTACHMENT_IID_STR "91f33d6f-e621-4f70-a77e-15f0e3c714= d5" -# define IPCIDEVICEATTACHMENT_IID { \ - 0x91f33d6f, 0xe621, 0x4f70, \ - { 0xa7, 0x7e, 0x15, 0xf0, 0xe3, 0xc7, 0x14, 0xd5 } \ -} -struct IPCIDeviceAttachment_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IPCIDeviceAttachment *pThis, PRUnich= ar * *name); - - nsresult PR_COM_METHOD (*GetIsPhysicalDevice)(IPCIDeviceAttachment *pT= his, PRBool *isPhysicalDevice); - - nsresult PR_COM_METHOD (*GetHostAddress)(IPCIDeviceAttachment *pThis, = PRInt32 *hostAddress); - - nsresult PR_COM_METHOD (*GetGuestAddress)(IPCIDeviceAttachment *pThis,= PRInt32 *guestAddress); - -}; - -struct IPCIDeviceAttachment -{ - struct IPCIDeviceAttachment_vtbl *vtbl; -}; -/* End of struct IPCIDeviceAttachment Declaration */ - - -/* Start of struct IMachine Declaration */ -# define IMACHINE_IID_STR "22781af3-1c96-4126-9edf-67a020e0e858" -# define IMACHINE_IID { \ - 0x22781af3, 0x1c96, 0x4126, \ - { 0x9e, 0xdf, 0x67, 0xa0, 0x20, 0xe0, 0xe8, 0x58 } \ -} -struct IMachine_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetParent)(IMachine *pThis, IVirtualBox * *pa= rent); - - nsresult PR_COM_METHOD (*GetAccessible)(IMachine *pThis, PRBool *acces= sible); - - nsresult PR_COM_METHOD (*GetAccessError)(IMachine *pThis, IVirtualBoxE= rrorInfo * *accessError); - - nsresult PR_COM_METHOD (*GetName)(IMachine *pThis, PRUnichar * *name); - nsresult PR_COM_METHOD (*SetName)(IMachine *pThis, PRUnichar * name); - - nsresult PR_COM_METHOD (*GetDescription)(IMachine *pThis, PRUnichar * = *description); - nsresult PR_COM_METHOD (*SetDescription)(IMachine *pThis, PRUnichar * = description); - - nsresult PR_COM_METHOD (*GetId)(IMachine *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetGroups)(IMachine *pThis, PRUint32 *groupsS= ize, PRUnichar * **groups); - nsresult PR_COM_METHOD (*SetGroups)(IMachine *pThis, PRUint32 groupsSi= ze, PRUnichar * *groups); - - nsresult PR_COM_METHOD (*GetOSTypeId)(IMachine *pThis, PRUnichar * *OS= TypeId); - nsresult PR_COM_METHOD (*SetOSTypeId)(IMachine *pThis, PRUnichar * OST= ypeId); - - nsresult PR_COM_METHOD (*GetHardwareVersion)(IMachine *pThis, PRUnicha= r * *hardwareVersion); - nsresult PR_COM_METHOD (*SetHardwareVersion)(IMachine *pThis, PRUnicha= r * hardwareVersion); - - nsresult PR_COM_METHOD (*GetHardwareUUID)(IMachine *pThis, PRUnichar *= *hardwareUUID); - nsresult PR_COM_METHOD (*SetHardwareUUID)(IMachine *pThis, PRUnichar *= hardwareUUID); - - nsresult PR_COM_METHOD (*GetCPUCount)(IMachine *pThis, PRUint32 *CPUCo= unt); - nsresult PR_COM_METHOD (*SetCPUCount)(IMachine *pThis, PRUint32 CPUCou= nt); - - nsresult PR_COM_METHOD (*GetCPUHotPlugEnabled)(IMachine *pThis, PRBool= *CPUHotPlugEnabled); - nsresult PR_COM_METHOD (*SetCPUHotPlugEnabled)(IMachine *pThis, PRBool= CPUHotPlugEnabled); - - nsresult PR_COM_METHOD (*GetCPUExecutionCap)(IMachine *pThis, PRUint32= *CPUExecutionCap); - nsresult PR_COM_METHOD (*SetCPUExecutionCap)(IMachine *pThis, PRUint32= CPUExecutionCap); - - nsresult PR_COM_METHOD (*GetMemorySize)(IMachine *pThis, PRUint32 *mem= orySize); - nsresult PR_COM_METHOD (*SetMemorySize)(IMachine *pThis, PRUint32 memo= rySize); - - nsresult PR_COM_METHOD (*GetMemoryBalloonSize)(IMachine *pThis, PRUint= 32 *memoryBalloonSize); - nsresult PR_COM_METHOD (*SetMemoryBalloonSize)(IMachine *pThis, PRUint= 32 memoryBalloonSize); - - nsresult PR_COM_METHOD (*GetPageFusionEnabled)(IMachine *pThis, PRBool= *pageFusionEnabled); - nsresult PR_COM_METHOD (*SetPageFusionEnabled)(IMachine *pThis, PRBool= pageFusionEnabled); - - nsresult PR_COM_METHOD (*GetVRAMSize)(IMachine *pThis, PRUint32 *VRAMS= ize); - nsresult PR_COM_METHOD (*SetVRAMSize)(IMachine *pThis, PRUint32 VRAMSi= ze); - - nsresult PR_COM_METHOD (*GetAccelerate3DEnabled)(IMachine *pThis, PRBo= ol *accelerate3DEnabled); - nsresult PR_COM_METHOD (*SetAccelerate3DEnabled)(IMachine *pThis, PRBo= ol accelerate3DEnabled); - - nsresult PR_COM_METHOD (*GetAccelerate2DVideoEnabled)(IMachine *pThis,= PRBool *accelerate2DVideoEnabled); - nsresult PR_COM_METHOD (*SetAccelerate2DVideoEnabled)(IMachine *pThis,= PRBool accelerate2DVideoEnabled); - - nsresult PR_COM_METHOD (*GetMonitorCount)(IMachine *pThis, PRUint32 *m= onitorCount); - nsresult PR_COM_METHOD (*SetMonitorCount)(IMachine *pThis, PRUint32 mo= nitorCount); - - nsresult PR_COM_METHOD (*GetVideoCaptureEnabled)(IMachine *pThis, PRBo= ol *VideoCaptureEnabled); - nsresult PR_COM_METHOD (*SetVideoCaptureEnabled)(IMachine *pThis, PRBo= ol VideoCaptureEnabled); - - nsresult PR_COM_METHOD (*GetVideoCaptureFile)(IMachine *pThis, PRUnich= ar * *VideoCaptureFile); - nsresult PR_COM_METHOD (*SetVideoCaptureFile)(IMachine *pThis, PRUnich= ar * VideoCaptureFile); - - nsresult PR_COM_METHOD (*GetVideoCaptureWidth)(IMachine *pThis, PRUint= 32 *VideoCaptureWidth); - nsresult PR_COM_METHOD (*SetVideoCaptureWidth)(IMachine *pThis, PRUint= 32 VideoCaptureWidth); - - nsresult PR_COM_METHOD (*GetVideoCaptureHeight)(IMachine *pThis, PRUin= t32 *VideoCaptureHeight); - nsresult PR_COM_METHOD (*SetVideoCaptureHeight)(IMachine *pThis, PRUin= t32 VideoCaptureHeight); - - nsresult PR_COM_METHOD (*GetBIOSSettings)(IMachine *pThis, IBIOSSettin= gs * *BIOSSettings); - - nsresult PR_COM_METHOD (*GetFirmwareType)(IMachine *pThis, PRUint32 *f= irmwareType); - nsresult PR_COM_METHOD (*SetFirmwareType)(IMachine *pThis, PRUint32 fi= rmwareType); - - nsresult PR_COM_METHOD (*GetPointingHIDType)(IMachine *pThis, PRUint32= *pointingHIDType); - nsresult PR_COM_METHOD (*SetPointingHIDType)(IMachine *pThis, PRUint32= pointingHIDType); - - nsresult PR_COM_METHOD (*GetKeyboardHIDType)(IMachine *pThis, PRUint32= *keyboardHIDType); - nsresult PR_COM_METHOD (*SetKeyboardHIDType)(IMachine *pThis, PRUint32= keyboardHIDType); - - nsresult PR_COM_METHOD (*GetHPETEnabled)(IMachine *pThis, PRBool *HPET= Enabled); - nsresult PR_COM_METHOD (*SetHPETEnabled)(IMachine *pThis, PRBool HPETE= nabled); - - nsresult PR_COM_METHOD (*GetChipsetType)(IMachine *pThis, PRUint32 *ch= ipsetType); - nsresult PR_COM_METHOD (*SetChipsetType)(IMachine *pThis, PRUint32 chi= psetType); - - nsresult PR_COM_METHOD (*GetSnapshotFolder)(IMachine *pThis, PRUnichar= * *snapshotFolder); - nsresult PR_COM_METHOD (*SetSnapshotFolder)(IMachine *pThis, PRUnichar= * snapshotFolder); - - nsresult PR_COM_METHOD (*GetVRDEServer)(IMachine *pThis, IVRDEServer *= *VRDEServer); - - nsresult PR_COM_METHOD (*GetEmulatedUSBWebcameraEnabled)(IMachine *pTh= is, PRBool *emulatedUSBWebcameraEnabled); - nsresult PR_COM_METHOD (*SetEmulatedUSBWebcameraEnabled)(IMachine *pTh= is, PRBool emulatedUSBWebcameraEnabled); - - nsresult PR_COM_METHOD (*GetEmulatedUSBCardReaderEnabled)(IMachine *pT= his, PRBool *emulatedUSBCardReaderEnabled); - nsresult PR_COM_METHOD (*SetEmulatedUSBCardReaderEnabled)(IMachine *pT= his, PRBool emulatedUSBCardReaderEnabled); - - nsresult PR_COM_METHOD (*GetMediumAttachments)(IMachine *pThis, PRUint= 32 *mediumAttachmentsSize, IMediumAttachment * **mediumAttachments); - - nsresult PR_COM_METHOD (*GetUSBController)(IMachine *pThis, IUSBContro= ller * *USBController); - - nsresult PR_COM_METHOD (*GetAudioAdapter)(IMachine *pThis, IAudioAdapt= er * *audioAdapter); - - nsresult PR_COM_METHOD (*GetStorageControllers)(IMachine *pThis, PRUin= t32 *storageControllersSize, IStorageController * **storageControllers); - - nsresult PR_COM_METHOD (*GetSettingsFilePath)(IMachine *pThis, PRUnich= ar * *settingsFilePath); - - nsresult PR_COM_METHOD (*GetSettingsModified)(IMachine *pThis, PRBool = *settingsModified); - - nsresult PR_COM_METHOD (*GetSessionState)(IMachine *pThis, PRUint32 *s= essionState); - - nsresult PR_COM_METHOD (*GetSessionType)(IMachine *pThis, PRUnichar * = *sessionType); - - nsresult PR_COM_METHOD (*GetSessionPID)(IMachine *pThis, PRUint32 *ses= sionPID); - - nsresult PR_COM_METHOD (*GetState)(IMachine *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetLastStateChange)(IMachine *pThis, PRInt64 = *lastStateChange); - - nsresult PR_COM_METHOD (*GetStateFilePath)(IMachine *pThis, PRUnichar = * *stateFilePath); - - nsresult PR_COM_METHOD (*GetLogFolder)(IMachine *pThis, PRUnichar * *l= ogFolder); - - nsresult PR_COM_METHOD (*GetCurrentSnapshot)(IMachine *pThis, ISnapsho= t * *currentSnapshot); - - nsresult PR_COM_METHOD (*GetSnapshotCount)(IMachine *pThis, PRUint32 *= snapshotCount); - - nsresult PR_COM_METHOD (*GetCurrentStateModified)(IMachine *pThis, PRB= ool *currentStateModified); - - nsresult PR_COM_METHOD (*GetSharedFolders)(IMachine *pThis, PRUint32 *= sharedFoldersSize, ISharedFolder * **sharedFolders); - - nsresult PR_COM_METHOD (*GetClipboardMode)(IMachine *pThis, PRUint32 *= clipboardMode); - nsresult PR_COM_METHOD (*SetClipboardMode)(IMachine *pThis, PRUint32 c= lipboardMode); - - nsresult PR_COM_METHOD (*GetDragAndDropMode)(IMachine *pThis, PRUint32= *dragAndDropMode); - nsresult PR_COM_METHOD (*SetDragAndDropMode)(IMachine *pThis, PRUint32= dragAndDropMode); - - nsresult PR_COM_METHOD (*GetGuestPropertyNotificationPatterns)(IMachin= e *pThis, PRUnichar * *guestPropertyNotificationPatterns); - nsresult PR_COM_METHOD (*SetGuestPropertyNotificationPatterns)(IMachin= e *pThis, PRUnichar * guestPropertyNotificationPatterns); - - nsresult PR_COM_METHOD (*GetTeleporterEnabled)(IMachine *pThis, PRBool= *teleporterEnabled); - nsresult PR_COM_METHOD (*SetTeleporterEnabled)(IMachine *pThis, PRBool= teleporterEnabled); - - nsresult PR_COM_METHOD (*GetTeleporterPort)(IMachine *pThis, PRUint32 = *teleporterPort); - nsresult PR_COM_METHOD (*SetTeleporterPort)(IMachine *pThis, PRUint32 = teleporterPort); - - nsresult PR_COM_METHOD (*GetTeleporterAddress)(IMachine *pThis, PRUnic= har * *teleporterAddress); - nsresult PR_COM_METHOD (*SetTeleporterAddress)(IMachine *pThis, PRUnic= har * teleporterAddress); - - nsresult PR_COM_METHOD (*GetTeleporterPassword)(IMachine *pThis, PRUni= char * *teleporterPassword); - nsresult PR_COM_METHOD (*SetTeleporterPassword)(IMachine *pThis, PRUni= char * teleporterPassword); - - nsresult PR_COM_METHOD (*GetFaultToleranceState)(IMachine *pThis, PRUi= nt32 *faultToleranceState); - nsresult PR_COM_METHOD (*SetFaultToleranceState)(IMachine *pThis, PRUi= nt32 faultToleranceState); - - nsresult PR_COM_METHOD (*GetFaultTolerancePort)(IMachine *pThis, PRUin= t32 *faultTolerancePort); - nsresult PR_COM_METHOD (*SetFaultTolerancePort)(IMachine *pThis, PRUin= t32 faultTolerancePort); - - nsresult PR_COM_METHOD (*GetFaultToleranceAddress)(IMachine *pThis, PR= Unichar * *faultToleranceAddress); - nsresult PR_COM_METHOD (*SetFaultToleranceAddress)(IMachine *pThis, PR= Unichar * faultToleranceAddress); - - nsresult PR_COM_METHOD (*GetFaultTolerancePassword)(IMachine *pThis, P= RUnichar * *faultTolerancePassword); - nsresult PR_COM_METHOD (*SetFaultTolerancePassword)(IMachine *pThis, P= RUnichar * faultTolerancePassword); - - nsresult PR_COM_METHOD (*GetFaultToleranceSyncInterval)(IMachine *pThi= s, PRUint32 *faultToleranceSyncInterval); - nsresult PR_COM_METHOD (*SetFaultToleranceSyncInterval)(IMachine *pThi= s, PRUint32 faultToleranceSyncInterval); - - nsresult PR_COM_METHOD (*GetRTCUseUTC)(IMachine *pThis, PRBool *RTCUse= UTC); - nsresult PR_COM_METHOD (*SetRTCUseUTC)(IMachine *pThis, PRBool RTCUseU= TC); - - nsresult PR_COM_METHOD (*GetIOCacheEnabled)(IMachine *pThis, PRBool *I= OCacheEnabled); - nsresult PR_COM_METHOD (*SetIOCacheEnabled)(IMachine *pThis, PRBool IO= CacheEnabled); - - nsresult PR_COM_METHOD (*GetIOCacheSize)(IMachine *pThis, PRUint32 *IO= CacheSize); - nsresult PR_COM_METHOD (*SetIOCacheSize)(IMachine *pThis, PRUint32 IOC= acheSize); - - nsresult PR_COM_METHOD (*GetPCIDeviceAssignments)(IMachine *pThis, PRU= int32 *PCIDeviceAssignmentsSize, IPCIDeviceAttachment * **PCIDeviceAssignme= nts); - - nsresult PR_COM_METHOD (*GetBandwidthControl)(IMachine *pThis, IBandwi= dthControl * *bandwidthControl); - - nsresult PR_COM_METHOD (*GetTracingEnabled)(IMachine *pThis, PRBool *t= racingEnabled); - nsresult PR_COM_METHOD (*SetTracingEnabled)(IMachine *pThis, PRBool tr= acingEnabled); - - nsresult PR_COM_METHOD (*GetTracingConfig)(IMachine *pThis, PRUnichar = * *tracingConfig); - nsresult PR_COM_METHOD (*SetTracingConfig)(IMachine *pThis, PRUnichar = * tracingConfig); - - nsresult PR_COM_METHOD (*GetAllowTracingToAccessVM)(IMachine *pThis, P= RBool *allowTracingToAccessVM); - nsresult PR_COM_METHOD (*SetAllowTracingToAccessVM)(IMachine *pThis, P= RBool allowTracingToAccessVM); - - nsresult PR_COM_METHOD (*GetAutostartEnabled)(IMachine *pThis, PRBool = *autostartEnabled); - nsresult PR_COM_METHOD (*SetAutostartEnabled)(IMachine *pThis, PRBool = autostartEnabled); - - nsresult PR_COM_METHOD (*GetAutostartDelay)(IMachine *pThis, PRUint32 = *autostartDelay); - nsresult PR_COM_METHOD (*SetAutostartDelay)(IMachine *pThis, PRUint32 = autostartDelay); - - nsresult PR_COM_METHOD (*GetAutostopType)(IMachine *pThis, PRUint32 *a= utostopType); - nsresult PR_COM_METHOD (*SetAutostopType)(IMachine *pThis, PRUint32 au= tostopType); - - nsresult PR_COM_METHOD (*LockMachine)( - IMachine *pThis, - ISession * session, - PRUint32 lockType - ); - - nsresult PR_COM_METHOD (*LaunchVMProcess)( - IMachine *pThis, - ISession * session, - PRUnichar * type, - PRUnichar * environment, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*SetBootOrder)( - IMachine *pThis, - PRUint32 position, - PRUint32 device - ); - - nsresult PR_COM_METHOD (*GetBootOrder)( - IMachine *pThis, - PRUint32 position, - PRUint32 * device - ); - - nsresult PR_COM_METHOD (*AttachDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRUint32 type, - IMedium * medium - ); - - nsresult PR_COM_METHOD (*AttachDeviceWithoutMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRUint32 type - ); - - nsresult PR_COM_METHOD (*DetachDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device - ); - - nsresult PR_COM_METHOD (*PassthroughDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool passthrough - ); - - nsresult PR_COM_METHOD (*TemporaryEjectDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool temporaryEject - ); - - nsresult PR_COM_METHOD (*NonRotationalDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool nonRotational - ); - - nsresult PR_COM_METHOD (*SetAutoDiscardForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool discard - ); - - nsresult PR_COM_METHOD (*SetBandwidthGroupForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IBandwidthGroup * bandwidthGroup - ); - - nsresult PR_COM_METHOD (*SetNoBandwidthGroupForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device - ); - - nsresult PR_COM_METHOD (*UnmountMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool force - ); - - nsresult PR_COM_METHOD (*MountMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMedium * medium, - PRBool force - ); - - nsresult PR_COM_METHOD (*GetMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMedium * * medium - ); - - nsresult PR_COM_METHOD (*GetMediumAttachmentsOfController)( - IMachine *pThis, - PRUnichar * name, - PRUint32 *mediumAttachmentsSize, - IMediumAttachment *** mediumAttachments - ); - - nsresult PR_COM_METHOD (*GetMediumAttachment)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMediumAttachment * * attachment - ); - - nsresult PR_COM_METHOD (*AttachHostPCIDevice)( - IMachine *pThis, - PRInt32 hostAddress, - PRInt32 desiredGuestAddress, - PRBool tryToUnbind - ); - - nsresult PR_COM_METHOD (*DetachHostPCIDevice)( - IMachine *pThis, - PRInt32 hostAddress - ); - - nsresult PR_COM_METHOD (*GetNetworkAdapter)( - IMachine *pThis, - PRUint32 slot, - INetworkAdapter * * adapter - ); - - nsresult PR_COM_METHOD (*AddStorageController)( - IMachine *pThis, - PRUnichar * name, - PRUint32 connectionType, - IStorageController * * controller - ); - - nsresult PR_COM_METHOD (*GetStorageControllerByName)( - IMachine *pThis, - PRUnichar * name, - IStorageController * * storageController - ); - - nsresult PR_COM_METHOD (*GetStorageControllerByInstance)( - IMachine *pThis, - PRUint32 instance, - IStorageController * * storageController - ); - - nsresult PR_COM_METHOD (*RemoveStorageController)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*SetStorageControllerBootable)( - IMachine *pThis, - PRUnichar * name, - PRBool bootable - ); - - nsresult PR_COM_METHOD (*GetSerialPort)( - IMachine *pThis, - PRUint32 slot, - ISerialPort * * port - ); - - nsresult PR_COM_METHOD (*GetParallelPort)( - IMachine *pThis, - PRUint32 slot, - IParallelPort * * port - ); - - nsresult PR_COM_METHOD (*GetExtraDataKeys)( - IMachine *pThis, - PRUint32 *valueSize, - PRUnichar *** value - ); - - nsresult PR_COM_METHOD (*GetExtraData)( - IMachine *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetExtraData)( - IMachine *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetCPUProperty)( - IMachine *pThis, - PRUint32 property, - PRBool * value - ); - - nsresult PR_COM_METHOD (*SetCPUProperty)( - IMachine *pThis, - PRUint32 property, - PRBool value - ); - - nsresult PR_COM_METHOD (*GetCPUIDLeaf)( - IMachine *pThis, - PRUint32 id, - PRUint32 * valEax, - PRUint32 * valEbx, - PRUint32 * valEcx, - PRUint32 * valEdx - ); - - nsresult PR_COM_METHOD (*SetCPUIDLeaf)( - IMachine *pThis, - PRUint32 id, - PRUint32 valEax, - PRUint32 valEbx, - PRUint32 valEcx, - PRUint32 valEdx - ); - - nsresult PR_COM_METHOD (*RemoveCPUIDLeaf)( - IMachine *pThis, - PRUint32 id - ); - - nsresult PR_COM_METHOD (*RemoveAllCPUIDLeaves)(IMachine *pThis ); - - nsresult PR_COM_METHOD (*GetHWVirtExProperty)( - IMachine *pThis, - PRUint32 property, - PRBool * value - ); - - nsresult PR_COM_METHOD (*SetHWVirtExProperty)( - IMachine *pThis, - PRUint32 property, - PRBool value - ); - - nsresult PR_COM_METHOD (*SaveSettings)(IMachine *pThis ); - - nsresult PR_COM_METHOD (*DiscardSettings)(IMachine *pThis ); - - nsresult PR_COM_METHOD (*Unregister)( - IMachine *pThis, - PRUint32 cleanupMode, - PRUint32 *aMediaSize, - IMedium *** aMedia - ); - - nsresult PR_COM_METHOD (*Delete)( - IMachine *pThis, - PRUint32 aMediaSize, - IMedium ** aMedia, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*Export)( - IMachine *pThis, - IAppliance * aAppliance, - PRUnichar * location, - IVirtualSystemDescription * * aDescription - ); - - nsresult PR_COM_METHOD (*FindSnapshot)( - IMachine *pThis, - PRUnichar * nameOrId, - ISnapshot * * snapshot - ); - - nsresult PR_COM_METHOD (*CreateSharedFolder)( - IMachine *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult PR_COM_METHOD (*RemoveSharedFolder)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*CanShowConsoleWindow)( - IMachine *pThis, - PRBool * canShow - ); - - nsresult PR_COM_METHOD (*ShowConsoleWindow)( - IMachine *pThis, - PRInt64 * winId - ); - - nsresult PR_COM_METHOD (*GetGuestProperty)( - IMachine *pThis, - PRUnichar * name, - PRUnichar * * value, - PRInt64 * timestamp, - PRUnichar * * flags - ); - - nsresult PR_COM_METHOD (*GetGuestPropertyValue)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*GetGuestPropertyTimestamp)( - IMachine *pThis, - PRUnichar * property, - PRInt64 * value - ); - - nsresult PR_COM_METHOD (*SetGuestProperty)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * value, - PRUnichar * flags - ); - - nsresult PR_COM_METHOD (*SetGuestPropertyValue)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*DeleteGuestProperty)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*EnumerateGuestProperties)( - IMachine *pThis, - PRUnichar * patterns, - PRUint32 *nameSize, - PRUnichar *** name, - PRUint32 *valueSize, - PRUnichar *** value, - PRUint32 *timestampSize, - PRInt64* timestamp, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult PR_COM_METHOD (*QuerySavedGuestScreenInfo)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * originX, - PRUint32 * originY, - PRUint32 * width, - PRUint32 * height, - PRBool * enabled - ); - - nsresult PR_COM_METHOD (*QuerySavedThumbnailSize)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * size, - PRUint32 * width, - PRUint32 * height - ); - - nsresult PR_COM_METHOD (*ReadSavedThumbnailToArray)( - IMachine *pThis, - PRUint32 screenId, - PRBool BGR, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*ReadSavedThumbnailPNGToArray)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*QuerySavedScreenshotPNGSize)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * size, - PRUint32 * width, - PRUint32 * height - ); - - nsresult PR_COM_METHOD (*ReadSavedScreenshotPNGToArray)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*HotPlugCPU)( - IMachine *pThis, - PRUint32 cpu - ); - - nsresult PR_COM_METHOD (*HotUnplugCPU)( - IMachine *pThis, - PRUint32 cpu - ); - - nsresult PR_COM_METHOD (*GetCPUStatus)( - IMachine *pThis, - PRUint32 cpu, - PRBool * attached - ); - - nsresult PR_COM_METHOD (*QueryLogFilename)( - IMachine *pThis, - PRUint32 idx, - PRUnichar * * filename - ); - - nsresult PR_COM_METHOD (*ReadLog)( - IMachine *pThis, - PRUint32 idx, - PRInt64 offset, - PRInt64 size, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*CloneTo)( - IMachine *pThis, - IMachine * target, - PRUint32 mode, - PRUint32 optionsSize, - PRUint32* options, - IProgress * * progress - ); - -}; - -struct IMachine -{ - struct IMachine_vtbl *vtbl; -}; -/* End of struct IMachine Declaration */ - - -/* Start of struct IVRDEServerInfo Declaration */ -# define IVRDESERVERINFO_IID_STR "714434a1-58c3-4aab-9049-7652c5df113b" -# define IVRDESERVERINFO_IID { \ - 0x714434a1, 0x58c3, 0x4aab, \ - { 0x90, 0x49, 0x76, 0x52, 0xc5, 0xdf, 0x11, 0x3b } \ -} -struct IVRDEServerInfo_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetActive)(IVRDEServerInfo *pThis, PRBool *ac= tive); - - nsresult PR_COM_METHOD (*GetPort)(IVRDEServerInfo *pThis, PRInt32 *por= t); - - nsresult PR_COM_METHOD (*GetNumberOfClients)(IVRDEServerInfo *pThis, P= RUint32 *numberOfClients); - - nsresult PR_COM_METHOD (*GetBeginTime)(IVRDEServerInfo *pThis, PRInt64= *beginTime); - - nsresult PR_COM_METHOD (*GetEndTime)(IVRDEServerInfo *pThis, PRInt64 *= endTime); - - nsresult PR_COM_METHOD (*GetBytesSent)(IVRDEServerInfo *pThis, PRInt64= *bytesSent); - - nsresult PR_COM_METHOD (*GetBytesSentTotal)(IVRDEServerInfo *pThis, PR= Int64 *bytesSentTotal); - - nsresult PR_COM_METHOD (*GetBytesReceived)(IVRDEServerInfo *pThis, PRI= nt64 *bytesReceived); - - nsresult PR_COM_METHOD (*GetBytesReceivedTotal)(IVRDEServerInfo *pThis= , PRInt64 *bytesReceivedTotal); - - nsresult PR_COM_METHOD (*GetUser)(IVRDEServerInfo *pThis, PRUnichar * = *user); - - nsresult PR_COM_METHOD (*GetDomain)(IVRDEServerInfo *pThis, PRUnichar = * *domain); - - nsresult PR_COM_METHOD (*GetClientName)(IVRDEServerInfo *pThis, PRUnic= har * *clientName); - - nsresult PR_COM_METHOD (*GetClientIP)(IVRDEServerInfo *pThis, PRUnicha= r * *clientIP); - - nsresult PR_COM_METHOD (*GetClientVersion)(IVRDEServerInfo *pThis, PRU= int32 *clientVersion); - - nsresult PR_COM_METHOD (*GetEncryptionStyle)(IVRDEServerInfo *pThis, P= RUint32 *encryptionStyle); - -}; - -struct IVRDEServerInfo -{ - struct IVRDEServerInfo_vtbl *vtbl; -}; -/* End of struct IVRDEServerInfo Declaration */ - - -/* Start of struct IConsole Declaration */ -# define ICONSOLE_IID_STR "db7ab4ca-2a3f-4183-9243-c1208da92392" -# define ICONSOLE_IID { \ - 0xdb7ab4ca, 0x2a3f, 0x4183, \ - { 0x92, 0x43, 0xc1, 0x20, 0x8d, 0xa9, 0x23, 0x92 } \ -} -struct IConsole_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMachine)(IConsole *pThis, IMachine * *mach= ine); - - nsresult PR_COM_METHOD (*GetState)(IConsole *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetGuest)(IConsole *pThis, IGuest * *guest); - - nsresult PR_COM_METHOD (*GetKeyboard)(IConsole *pThis, IKeyboard * *ke= yboard); - - nsresult PR_COM_METHOD (*GetMouse)(IConsole *pThis, IMouse * *mouse); - - nsresult PR_COM_METHOD (*GetDisplay)(IConsole *pThis, IDisplay * *disp= lay); - - nsresult PR_COM_METHOD (*GetDebugger)(IConsole *pThis, IMachineDebugge= r * *debugger); - - nsresult PR_COM_METHOD (*GetUSBDevices)(IConsole *pThis, PRUint32 *USB= DevicesSize, IUSBDevice * **USBDevices); - - nsresult PR_COM_METHOD (*GetRemoteUSBDevices)(IConsole *pThis, PRUint3= 2 *remoteUSBDevicesSize, IHostUSBDevice * **remoteUSBDevices); - - nsresult PR_COM_METHOD (*GetSharedFolders)(IConsole *pThis, PRUint32 *= sharedFoldersSize, ISharedFolder * **sharedFolders); - - nsresult PR_COM_METHOD (*GetVRDEServerInfo)(IConsole *pThis, IVRDEServ= erInfo * *VRDEServerInfo); - - nsresult PR_COM_METHOD (*GetEventSource)(IConsole *pThis, IEventSource= * *eventSource); - - nsresult PR_COM_METHOD (*GetAttachedPCIDevices)(IConsole *pThis, PRUin= t32 *attachedPCIDevicesSize, IPCIDeviceAttachment * **attachedPCIDevices); - - nsresult PR_COM_METHOD (*GetUseHostClipboard)(IConsole *pThis, PRBool = *useHostClipboard); - nsresult PR_COM_METHOD (*SetUseHostClipboard)(IConsole *pThis, PRBool = useHostClipboard); - - nsresult PR_COM_METHOD (*PowerUp)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*PowerUpPaused)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*PowerDown)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Reset)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*Pause)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*Resume)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*PowerButton)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*SleepButton)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*GetPowerButtonHandled)( - IConsole *pThis, - PRBool * handled - ); - - nsresult PR_COM_METHOD (*GetGuestEnteredACPIMode)( - IConsole *pThis, - PRBool * entered - ); - - nsresult PR_COM_METHOD (*SaveState)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*AdoptSavedState)( - IConsole *pThis, - PRUnichar * savedStateFile - ); - - nsresult PR_COM_METHOD (*DiscardSavedState)( - IConsole *pThis, - PRBool fRemoveFile - ); - - nsresult PR_COM_METHOD (*GetDeviceActivity)( - IConsole *pThis, - PRUint32 type, - PRUint32 * activity - ); - - nsresult PR_COM_METHOD (*AttachUSBDevice)( - IConsole *pThis, - PRUnichar * id - ); - - nsresult PR_COM_METHOD (*DetachUSBDevice)( - IConsole *pThis, - PRUnichar * id, - IUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceByAddress)( - IConsole *pThis, - PRUnichar * name, - IUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceById)( - IConsole *pThis, - PRUnichar * id, - IUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*CreateSharedFolder)( - IConsole *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult PR_COM_METHOD (*RemoveSharedFolder)( - IConsole *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*TakeSnapshot)( - IConsole *pThis, - PRUnichar * name, - PRUnichar * description, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DeleteSnapshot)( - IConsole *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DeleteSnapshotAndAllChildren)( - IConsole *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DeleteSnapshotRange)( - IConsole *pThis, - PRUnichar * startId, - PRUnichar * endId, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*RestoreSnapshot)( - IConsole *pThis, - ISnapshot * snapshot, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Teleport)( - IConsole *pThis, - PRUnichar * hostname, - PRUint32 tcpport, - PRUnichar * password, - PRUint32 maxDowntime, - IProgress * * progress - ); - -}; - -struct IConsole -{ - struct IConsole_vtbl *vtbl; -}; -/* End of struct IConsole Declaration */ - - -/* Start of struct IHostNetworkInterface Declaration */ -# define IHOSTNETWORKINTERFACE_IID_STR "87a4153d-6889-4dd6-9654-2e9ff0ae8= dec" -# define IHOSTNETWORKINTERFACE_IID { \ - 0x87a4153d, 0x6889, 0x4dd6, \ - { 0x96, 0x54, 0x2e, 0x9f, 0xf0, 0xae, 0x8d, 0xec } \ -} -struct IHostNetworkInterface_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IHostNetworkInterface *pThis, PRUnic= har * *name); - - nsresult PR_COM_METHOD (*GetId)(IHostNetworkInterface *pThis, PRUnicha= r * *id); - - nsresult PR_COM_METHOD (*GetNetworkName)(IHostNetworkInterface *pThis,= PRUnichar * *networkName); - - nsresult PR_COM_METHOD (*GetDHCPEnabled)(IHostNetworkInterface *pThis,= PRBool *DHCPEnabled); - - nsresult PR_COM_METHOD (*GetIPAddress)(IHostNetworkInterface *pThis, P= RUnichar * *IPAddress); - - nsresult PR_COM_METHOD (*GetNetworkMask)(IHostNetworkInterface *pThis,= PRUnichar * *networkMask); - - nsresult PR_COM_METHOD (*GetIPV6Supported)(IHostNetworkInterface *pThi= s, PRBool *IPV6Supported); - - nsresult PR_COM_METHOD (*GetIPV6Address)(IHostNetworkInterface *pThis,= PRUnichar * *IPV6Address); - - nsresult PR_COM_METHOD (*GetIPV6NetworkMaskPrefixLength)(IHostNetworkI= nterface *pThis, PRUint32 *IPV6NetworkMaskPrefixLength); - - nsresult PR_COM_METHOD (*GetHardwareAddress)(IHostNetworkInterface *pT= his, PRUnichar * *hardwareAddress); - - nsresult PR_COM_METHOD (*GetMediumType)(IHostNetworkInterface *pThis, = PRUint32 *mediumType); - - nsresult PR_COM_METHOD (*GetStatus)(IHostNetworkInterface *pThis, PRUi= nt32 *status); - - nsresult PR_COM_METHOD (*GetInterfaceType)(IHostNetworkInterface *pThi= s, PRUint32 *interfaceType); - - nsresult PR_COM_METHOD (*EnableStaticIPConfig)( - IHostNetworkInterface *pThis, - PRUnichar * IPAddress, - PRUnichar * networkMask - ); - - nsresult PR_COM_METHOD (*EnableStaticIPConfigV6)( - IHostNetworkInterface *pThis, - PRUnichar * IPV6Address, - PRUint32 IPV6NetworkMaskPrefixLength - ); - - nsresult PR_COM_METHOD (*EnableDynamicIPConfig)(IHostNetworkInterface = *pThis ); - - nsresult PR_COM_METHOD (*DHCPRediscover)(IHostNetworkInterface *pThis = ); - -}; - -struct IHostNetworkInterface -{ - struct IHostNetworkInterface_vtbl *vtbl; -}; -/* End of struct IHostNetworkInterface Declaration */ - - -/* Start of struct IHost Declaration */ -# define IHOST_IID_STR "30678943-32df-4830-b413-931b25ac86a0" -# define IHOST_IID { \ - 0x30678943, 0x32df, 0x4830, \ - { 0xb4, 0x13, 0x93, 0x1b, 0x25, 0xac, 0x86, 0xa0 } \ -} -struct IHost_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetDVDDrives)(IHost *pThis, PRUint32 *DVDDriv= esSize, IMedium * **DVDDrives); - - nsresult PR_COM_METHOD (*GetFloppyDrives)(IHost *pThis, PRUint32 *flop= pyDrivesSize, IMedium * **floppyDrives); - - nsresult PR_COM_METHOD (*GetUSBDevices)(IHost *pThis, PRUint32 *USBDev= icesSize, IHostUSBDevice * **USBDevices); - - nsresult PR_COM_METHOD (*GetUSBDeviceFilters)(IHost *pThis, PRUint32 *= USBDeviceFiltersSize, IHostUSBDeviceFilter * **USBDeviceFilters); - - nsresult PR_COM_METHOD (*GetNetworkInterfaces)(IHost *pThis, PRUint32 = *networkInterfacesSize, IHostNetworkInterface * **networkInterfaces); - - nsresult PR_COM_METHOD (*GetProcessorCount)(IHost *pThis, PRUint32 *pr= ocessorCount); - - nsresult PR_COM_METHOD (*GetProcessorOnlineCount)(IHost *pThis, PRUint= 32 *processorOnlineCount); - - nsresult PR_COM_METHOD (*GetProcessorCoreCount)(IHost *pThis, PRUint32= *processorCoreCount); - - nsresult PR_COM_METHOD (*GetMemorySize)(IHost *pThis, PRUint32 *memory= Size); - - nsresult PR_COM_METHOD (*GetMemoryAvailable)(IHost *pThis, PRUint32 *m= emoryAvailable); - - nsresult PR_COM_METHOD (*GetOperatingSystem)(IHost *pThis, PRUnichar *= *operatingSystem); - - nsresult PR_COM_METHOD (*GetOSVersion)(IHost *pThis, PRUnichar * *OSVe= rsion); - - nsresult PR_COM_METHOD (*GetUTCTime)(IHost *pThis, PRInt64 *UTCTime); - - nsresult PR_COM_METHOD (*GetAcceleration3DAvailable)(IHost *pThis, PRB= ool *acceleration3DAvailable); - - nsresult PR_COM_METHOD (*GetProcessorSpeed)( - IHost *pThis, - PRUint32 cpuId, - PRUint32 * speed - ); - - nsresult PR_COM_METHOD (*GetProcessorFeature)( - IHost *pThis, - PRUint32 feature, - PRBool * supported - ); - - nsresult PR_COM_METHOD (*GetProcessorDescription)( - IHost *pThis, - PRUint32 cpuId, - PRUnichar * * description - ); - - nsresult PR_COM_METHOD (*GetProcessorCPUIDLeaf)( - IHost *pThis, - PRUint32 cpuId, - PRUint32 leaf, - PRUint32 subLeaf, - PRUint32 * valEax, - PRUint32 * valEbx, - PRUint32 * valEcx, - PRUint32 * valEdx - ); - - nsresult PR_COM_METHOD (*CreateHostOnlyNetworkInterface)( - IHost *pThis, - IHostNetworkInterface * * hostInterface, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*RemoveHostOnlyNetworkInterface)( - IHost *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CreateUSBDeviceFilter)( - IHost *pThis, - PRUnichar * name, - IHostUSBDeviceFilter * * filter - ); - - nsresult PR_COM_METHOD (*InsertUSBDeviceFilter)( - IHost *pThis, - PRUint32 position, - IHostUSBDeviceFilter * filter - ); - - nsresult PR_COM_METHOD (*RemoveUSBDeviceFilter)( - IHost *pThis, - PRUint32 position - ); - - nsresult PR_COM_METHOD (*FindHostDVDDrive)( - IHost *pThis, - PRUnichar * name, - IMedium * * drive - ); - - nsresult PR_COM_METHOD (*FindHostFloppyDrive)( - IHost *pThis, - PRUnichar * name, - IMedium * * drive - ); - - nsresult PR_COM_METHOD (*FindHostNetworkInterfaceByName)( - IHost *pThis, - PRUnichar * name, - IHostNetworkInterface * * networkInterface - ); - - nsresult PR_COM_METHOD (*FindHostNetworkInterfaceById)( - IHost *pThis, - PRUnichar * id, - IHostNetworkInterface * * networkInterface - ); - - nsresult PR_COM_METHOD (*FindHostNetworkInterfacesOfType)( - IHost *pThis, - PRUint32 type, - PRUint32 *networkInterfacesSize, - IHostNetworkInterface *** networkInterfaces - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceById)( - IHost *pThis, - PRUnichar * id, - IHostUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceByAddress)( - IHost *pThis, - PRUnichar * name, - IHostUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*GenerateMACAddress)( - IHost *pThis, - PRUnichar * * address - ); - -}; - -struct IHost -{ - struct IHost_vtbl *vtbl; -}; -/* End of struct IHost Declaration */ - - -/* Start of struct ISystemProperties Declaration */ -# define ISYSTEMPROPERTIES_IID_STR "1d7aca29-97f0-4287-9874-a60ec4f80ea6" -# define ISYSTEMPROPERTIES_IID { \ - 0x1d7aca29, 0x97f0, 0x4287, \ - { 0x98, 0x74, 0xa6, 0x0e, 0xc4, 0xf8, 0x0e, 0xa6 } \ -} -struct ISystemProperties_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMinGuestRAM)(ISystemProperties *pThis, PRU= int32 *minGuestRAM); - - nsresult PR_COM_METHOD (*GetMaxGuestRAM)(ISystemProperties *pThis, PRU= int32 *maxGuestRAM); - - nsresult PR_COM_METHOD (*GetMinGuestVRAM)(ISystemProperties *pThis, PR= Uint32 *minGuestVRAM); - - nsresult PR_COM_METHOD (*GetMaxGuestVRAM)(ISystemProperties *pThis, PR= Uint32 *maxGuestVRAM); - - nsresult PR_COM_METHOD (*GetMinGuestCPUCount)(ISystemProperties *pThis= , PRUint32 *minGuestCPUCount); - - nsresult PR_COM_METHOD (*GetMaxGuestCPUCount)(ISystemProperties *pThis= , PRUint32 *maxGuestCPUCount); - - nsresult PR_COM_METHOD (*GetMaxGuestMonitors)(ISystemProperties *pThis= , PRUint32 *maxGuestMonitors); - - nsresult PR_COM_METHOD (*GetInfoVDSize)(ISystemProperties *pThis, PRIn= t64 *infoVDSize); - - nsresult PR_COM_METHOD (*GetSerialPortCount)(ISystemProperties *pThis,= PRUint32 *serialPortCount); - - nsresult PR_COM_METHOD (*GetParallelPortCount)(ISystemProperties *pThi= s, PRUint32 *parallelPortCount); - - nsresult PR_COM_METHOD (*GetMaxBootPosition)(ISystemProperties *pThis,= PRUint32 *maxBootPosition); - - nsresult PR_COM_METHOD (*GetDefaultMachineFolder)(ISystemProperties *p= This, PRUnichar * *defaultMachineFolder); - nsresult PR_COM_METHOD (*SetDefaultMachineFolder)(ISystemProperties *p= This, PRUnichar * defaultMachineFolder); - - nsresult PR_COM_METHOD (*GetMediumFormats)(ISystemProperties *pThis, P= RUint32 *mediumFormatsSize, IMediumFormat * **mediumFormats); - - nsresult PR_COM_METHOD (*GetDefaultHardDiskFormat)(ISystemProperties *= pThis, PRUnichar * *defaultHardDiskFormat); - nsresult PR_COM_METHOD (*SetDefaultHardDiskFormat)(ISystemProperties *= pThis, PRUnichar * defaultHardDiskFormat); - - nsresult PR_COM_METHOD (*GetFreeDiskSpaceWarning)(ISystemProperties *p= This, PRInt64 *freeDiskSpaceWarning); - nsresult PR_COM_METHOD (*SetFreeDiskSpaceWarning)(ISystemProperties *p= This, PRInt64 freeDiskSpaceWarning); - - nsresult PR_COM_METHOD (*GetFreeDiskSpacePercentWarning)(ISystemProper= ties *pThis, PRUint32 *freeDiskSpacePercentWarning); - nsresult PR_COM_METHOD (*SetFreeDiskSpacePercentWarning)(ISystemProper= ties *pThis, PRUint32 freeDiskSpacePercentWarning); - - nsresult PR_COM_METHOD (*GetFreeDiskSpaceError)(ISystemProperties *pTh= is, PRInt64 *freeDiskSpaceError); - nsresult PR_COM_METHOD (*SetFreeDiskSpaceError)(ISystemProperties *pTh= is, PRInt64 freeDiskSpaceError); - - nsresult PR_COM_METHOD (*GetFreeDiskSpacePercentError)(ISystemProperti= es *pThis, PRUint32 *freeDiskSpacePercentError); - nsresult PR_COM_METHOD (*SetFreeDiskSpacePercentError)(ISystemProperti= es *pThis, PRUint32 freeDiskSpacePercentError); - - nsresult PR_COM_METHOD (*GetVRDEAuthLibrary)(ISystemProperties *pThis,= PRUnichar * *VRDEAuthLibrary); - nsresult PR_COM_METHOD (*SetVRDEAuthLibrary)(ISystemProperties *pThis,= PRUnichar * VRDEAuthLibrary); - - nsresult PR_COM_METHOD (*GetWebServiceAuthLibrary)(ISystemProperties *= pThis, PRUnichar * *webServiceAuthLibrary); - nsresult PR_COM_METHOD (*SetWebServiceAuthLibrary)(ISystemProperties *= pThis, PRUnichar * webServiceAuthLibrary); - - nsresult PR_COM_METHOD (*GetDefaultVRDEExtPack)(ISystemProperties *pTh= is, PRUnichar * *defaultVRDEExtPack); - nsresult PR_COM_METHOD (*SetDefaultVRDEExtPack)(ISystemProperties *pTh= is, PRUnichar * defaultVRDEExtPack); - - nsresult PR_COM_METHOD (*GetLogHistoryCount)(ISystemProperties *pThis,= PRUint32 *logHistoryCount); - nsresult PR_COM_METHOD (*SetLogHistoryCount)(ISystemProperties *pThis,= PRUint32 logHistoryCount); - - nsresult PR_COM_METHOD (*GetDefaultAudioDriver)(ISystemProperties *pTh= is, PRUint32 *defaultAudioDriver); - - nsresult PR_COM_METHOD (*GetAutostartDatabasePath)(ISystemProperties *= pThis, PRUnichar * *autostartDatabasePath); - nsresult PR_COM_METHOD (*SetAutostartDatabasePath)(ISystemProperties *= pThis, PRUnichar * autostartDatabasePath); - - nsresult PR_COM_METHOD (*GetDefaultAdditionsISO)(ISystemProperties *pT= his, PRUnichar * *defaultAdditionsISO); - nsresult PR_COM_METHOD (*SetDefaultAdditionsISO)(ISystemProperties *pT= his, PRUnichar * defaultAdditionsISO); - - nsresult PR_COM_METHOD (*GetMaxNetworkAdapters)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 * maxNetworkAdapters - ); - - nsresult PR_COM_METHOD (*GetMaxNetworkAdaptersOfType)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 type, - PRUint32 * maxNetworkAdapters - ); - - nsresult PR_COM_METHOD (*GetMaxDevicesPerPortForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * maxDevicesPerPort - ); - - nsresult PR_COM_METHOD (*GetMinPortCountForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * minPortCount - ); - - nsresult PR_COM_METHOD (*GetMaxPortCountForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * maxPortCount - ); - - nsresult PR_COM_METHOD (*GetMaxInstancesOfStorageBus)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 bus, - PRUint32 * maxInstances - ); - - nsresult PR_COM_METHOD (*GetDeviceTypesForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 *deviceTypesSize, - PRUint32** deviceTypes - ); - - nsresult PR_COM_METHOD (*GetDefaultIoCacheSettingForStorageController)( - ISystemProperties *pThis, - PRUint32 controllerType, - PRBool * enabled - ); - -}; - -struct ISystemProperties -{ - struct ISystemProperties_vtbl *vtbl; -}; -/* End of struct ISystemProperties Declaration */ - - -/* Start of struct IGuestOSType Declaration */ -# define IGUESTOSTYPE_IID_STR "6d968f9a-858b-4c50-bf17-241f069e94c2" -# define IGUESTOSTYPE_IID { \ - 0x6d968f9a, 0x858b, 0x4c50, \ - { 0xbf, 0x17, 0x24, 0x1f, 0x06, 0x9e, 0x94, 0xc2 } \ -} -struct IGuestOSType_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetFamilyId)(IGuestOSType *pThis, PRUnichar *= *familyId); - - nsresult PR_COM_METHOD (*GetFamilyDescription)(IGuestOSType *pThis, PR= Unichar * *familyDescription); - - nsresult PR_COM_METHOD (*GetId)(IGuestOSType *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetDescription)(IGuestOSType *pThis, PRUnicha= r * *description); - - nsresult PR_COM_METHOD (*GetIs64Bit)(IGuestOSType *pThis, PRBool *is64= Bit); - - nsresult PR_COM_METHOD (*GetRecommendedIOAPIC)(IGuestOSType *pThis, PR= Bool *recommendedIOAPIC); - - nsresult PR_COM_METHOD (*GetRecommendedVirtEx)(IGuestOSType *pThis, PR= Bool *recommendedVirtEx); - - nsresult PR_COM_METHOD (*GetRecommendedRAM)(IGuestOSType *pThis, PRUin= t32 *recommendedRAM); - - nsresult PR_COM_METHOD (*GetRecommendedVRAM)(IGuestOSType *pThis, PRUi= nt32 *recommendedVRAM); - - nsresult PR_COM_METHOD (*GetRecommended2DVideoAcceleration)(IGuestOSTy= pe *pThis, PRBool *recommended2DVideoAcceleration); - - nsresult PR_COM_METHOD (*GetRecommended3DAcceleration)(IGuestOSType *p= This, PRBool *recommended3DAcceleration); - - nsresult PR_COM_METHOD (*GetRecommendedHDD)(IGuestOSType *pThis, PRInt= 64 *recommendedHDD); - - nsresult PR_COM_METHOD (*GetAdapterType)(IGuestOSType *pThis, PRUint32= *adapterType); - - nsresult PR_COM_METHOD (*GetRecommendedPAE)(IGuestOSType *pThis, PRBoo= l *recommendedPAE); - - nsresult PR_COM_METHOD (*GetRecommendedDVDStorageController)(IGuestOST= ype *pThis, PRUint32 *recommendedDVDStorageController); - - nsresult PR_COM_METHOD (*GetRecommendedDVDStorageBus)(IGuestOSType *pT= his, PRUint32 *recommendedDVDStorageBus); - - nsresult PR_COM_METHOD (*GetRecommendedHDStorageController)(IGuestOSTy= pe *pThis, PRUint32 *recommendedHDStorageController); - - nsresult PR_COM_METHOD (*GetRecommendedHDStorageBus)(IGuestOSType *pTh= is, PRUint32 *recommendedHDStorageBus); - - nsresult PR_COM_METHOD (*GetRecommendedFirmware)(IGuestOSType *pThis, = PRUint32 *recommendedFirmware); - - nsresult PR_COM_METHOD (*GetRecommendedUSBHID)(IGuestOSType *pThis, PR= Bool *recommendedUSBHID); - - nsresult PR_COM_METHOD (*GetRecommendedHPET)(IGuestOSType *pThis, PRBo= ol *recommendedHPET); - - nsresult PR_COM_METHOD (*GetRecommendedUSBTablet)(IGuestOSType *pThis,= PRBool *recommendedUSBTablet); - - nsresult PR_COM_METHOD (*GetRecommendedRTCUseUTC)(IGuestOSType *pThis,= PRBool *recommendedRTCUseUTC); - - nsresult PR_COM_METHOD (*GetRecommendedChipset)(IGuestOSType *pThis, P= RUint32 *recommendedChipset); - - nsresult PR_COM_METHOD (*GetRecommendedAudioController)(IGuestOSType *= pThis, PRUint32 *recommendedAudioController); - - nsresult PR_COM_METHOD (*GetRecommendedFloppy)(IGuestOSType *pThis, PR= Bool *recommendedFloppy); - - nsresult PR_COM_METHOD (*GetRecommendedUSB)(IGuestOSType *pThis, PRBoo= l *recommendedUSB); - -}; - -struct IGuestOSType -{ - struct IGuestOSType_vtbl *vtbl; -}; -/* End of struct IGuestOSType Declaration */ - - -/* Start of struct IAdditionsFacility Declaration */ -# define IADDITIONSFACILITY_IID_STR "54992946-6af1-4e49-98ec-58b558b7291e" -# define IADDITIONSFACILITY_IID { \ - 0x54992946, 0x6af1, 0x4e49, \ - { 0x98, 0xec, 0x58, 0xb5, 0x58, 0xb7, 0x29, 0x1e } \ -} -struct IAdditionsFacility_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetClassType)(IAdditionsFacility *pThis, PRUi= nt32 *classType); - - nsresult PR_COM_METHOD (*GetLastUpdated)(IAdditionsFacility *pThis, PR= Int64 *lastUpdated); - - nsresult PR_COM_METHOD (*GetName)(IAdditionsFacility *pThis, PRUnichar= * *name); - - nsresult PR_COM_METHOD (*GetStatus)(IAdditionsFacility *pThis, PRUint3= 2 *status); - - nsresult PR_COM_METHOD (*GetType)(IAdditionsFacility *pThis, PRUint32 = *type); - -}; - -struct IAdditionsFacility -{ - struct IAdditionsFacility_vtbl *vtbl; -}; -/* End of struct IAdditionsFacility Declaration */ - - -/* Start of struct IGuestSession Declaration */ -# define IGUESTSESSION_IID_STR "57eb82a8-822b-42c1-9d1c-5c54bc3d3250" -# define IGUESTSESSION_IID { \ - 0x57eb82a8, 0x822b, 0x42c1, \ - { 0x9d, 0x1c, 0x5c, 0x54, 0xbc, 0x3d, 0x32, 0x50 } \ -} -struct IGuestSession_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetUser)(IGuestSession *pThis, PRUnichar * *u= ser); - - nsresult PR_COM_METHOD (*GetDomain)(IGuestSession *pThis, PRUnichar * = *domain); - - nsresult PR_COM_METHOD (*GetName)(IGuestSession *pThis, PRUnichar * *n= ame); - - nsresult PR_COM_METHOD (*GetId)(IGuestSession *pThis, PRUint32 *id); - - nsresult PR_COM_METHOD (*GetTimeout)(IGuestSession *pThis, PRUint32 *t= imeout); - nsresult PR_COM_METHOD (*SetTimeout)(IGuestSession *pThis, PRUint32 ti= meout); - - nsresult PR_COM_METHOD (*GetEnvironment)(IGuestSession *pThis, PRUint3= 2 *environmentSize, PRUnichar * **environment); - nsresult PR_COM_METHOD (*SetEnvironment)(IGuestSession *pThis, PRUint3= 2 environmentSize, PRUnichar * *environment); - - nsresult PR_COM_METHOD (*GetProcesses)(IGuestSession *pThis, PRUint32 = *processesSize, IGuestProcess * **processes); - - nsresult PR_COM_METHOD (*GetDirectories)(IGuestSession *pThis, PRUint3= 2 *directoriesSize, IGuestDirectory * **directories); - - nsresult PR_COM_METHOD (*GetFiles)(IGuestSession *pThis, PRUint32 *fil= esSize, IGuestFile * **files); - - nsresult PR_COM_METHOD (*Close)(IGuestSession *pThis ); - - nsresult PR_COM_METHOD (*CopyFrom)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CopyTo)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DirectoryCreate)( - IGuestSession *pThis, - PRUnichar * path, - PRUint32 mode, - PRUint32 flagsSize, - PRUint32* flags - ); - - nsresult PR_COM_METHOD (*DirectoryCreateTemp)( - IGuestSession *pThis, - PRUnichar * templateName, - PRUint32 mode, - PRUnichar * path, - PRBool secure, - PRUnichar * * directory - ); - - nsresult PR_COM_METHOD (*DirectoryExists)( - IGuestSession *pThis, - PRUnichar * path, - PRBool * exists - ); - - nsresult PR_COM_METHOD (*DirectoryOpen)( - IGuestSession *pThis, - PRUnichar * path, - PRUnichar * filter, - PRUint32 flagsSize, - PRUint32* flags, - IGuestDirectory * * directory - ); - - nsresult PR_COM_METHOD (*DirectoryQueryInfo)( - IGuestSession *pThis, - PRUnichar * path, - IGuestFsObjInfo * * info - ); - - nsresult PR_COM_METHOD (*DirectoryRemove)( - IGuestSession *pThis, - PRUnichar * path - ); - - nsresult PR_COM_METHOD (*DirectoryRemoveRecursive)( - IGuestSession *pThis, - PRUnichar * path, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DirectoryRename)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags - ); - - nsresult PR_COM_METHOD (*DirectorySetACL)( - IGuestSession *pThis, - PRUnichar * path, - PRUnichar * acl - ); - - nsresult PR_COM_METHOD (*EnvironmentClear)(IGuestSession *pThis ); - - nsresult PR_COM_METHOD (*EnvironmentGet)( - IGuestSession *pThis, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*EnvironmentSet)( - IGuestSession *pThis, - PRUnichar * name, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*EnvironmentUnset)( - IGuestSession *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*FileCreateTemp)( - IGuestSession *pThis, - PRUnichar * templateName, - PRUint32 mode, - PRUnichar * path, - PRBool secure, - IGuestFile * * file - ); - - nsresult PR_COM_METHOD (*FileExists)( - IGuestSession *pThis, - PRUnichar * path, - PRBool * exists - ); - - nsresult PR_COM_METHOD (*FileRemove)( - IGuestSession *pThis, - PRUnichar * path - ); - - nsresult PR_COM_METHOD (*FileOpen)( - IGuestSession *pThis, - PRUnichar * path, - PRUnichar * openMode, - PRUnichar * disposition, - PRUint32 creationMode, - PRInt64 offset, - IGuestFile * * file - ); - - nsresult PR_COM_METHOD (*FileQueryInfo)( - IGuestSession *pThis, - PRUnichar * path, - IGuestFsObjInfo * * info - ); - - nsresult PR_COM_METHOD (*FileQuerySize)( - IGuestSession *pThis, - PRUnichar * path, - PRInt64 * size - ); - - nsresult PR_COM_METHOD (*FileRename)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags - ); - - nsresult PR_COM_METHOD (*FileSetACL)( - IGuestSession *pThis, - PRUnichar * file, - PRUnichar * acl - ); - - nsresult PR_COM_METHOD (*ProcessCreate)( - IGuestSession *pThis, - PRUnichar * command, - PRUint32 argumentsSize, - PRUnichar ** arguments, - PRUint32 environmentSize, - PRUnichar ** environment, - PRUint32 flagsSize, - PRUint32* flags, - PRUint32 timeoutMS, - IGuestProcess * * guestProcess - ); - - nsresult PR_COM_METHOD (*ProcessCreateEx)( - IGuestSession *pThis, - PRUnichar * command, - PRUint32 argumentsSize, - PRUnichar ** arguments, - PRUint32 environmentSize, - PRUnichar ** environment, - PRUint32 flagsSize, - PRUint32* flags, - PRUint32 timeoutMS, - PRUint32 priority, - PRUint32 affinitySize, - PRInt32* affinity, - IGuestProcess * * guestProcess - ); - - nsresult PR_COM_METHOD (*ProcessGet)( - IGuestSession *pThis, - PRUint32 pid, - IGuestProcess * * guestProcess - ); - - nsresult PR_COM_METHOD (*SymlinkCreate)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * target, - PRUint32 type - ); - - nsresult PR_COM_METHOD (*SymlinkExists)( - IGuestSession *pThis, - PRUnichar * symlink, - PRBool * exists - ); - - nsresult PR_COM_METHOD (*SymlinkRead)( - IGuestSession *pThis, - PRUnichar * symlink, - PRUint32 flagsSize, - PRUint32* flags, - PRUnichar * * target - ); - - nsresult PR_COM_METHOD (*SymlinkRemoveDirectory)( - IGuestSession *pThis, - PRUnichar * path - ); - - nsresult PR_COM_METHOD (*SymlinkRemoveFile)( - IGuestSession *pThis, - PRUnichar * file - ); - -}; - -struct IGuestSession -{ - struct IGuestSession_vtbl *vtbl; -}; -/* End of struct IGuestSession Declaration */ - - -/* Start of struct IProcess Declaration */ -# define IPROCESS_IID_STR "08864d56-96ab-418b-adbc-5a679532aeb0" -# define IPROCESS_IID { \ - 0x08864d56, 0x96ab, 0x418b, \ - { 0xad, 0xbc, 0x5a, 0x67, 0x95, 0x32, 0xae, 0xb0 } \ -} -struct IProcess_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetPID)(IProcess *pThis, PRUint32 *PID); - - nsresult PR_COM_METHOD (*GetStatus)(IProcess *pThis, PRUint32 *status); - - nsresult PR_COM_METHOD (*GetExitCode)(IProcess *pThis, PRInt32 *exitCo= de); - - nsresult PR_COM_METHOD (*GetEnvironment)(IProcess *pThis, PRUint32 *en= vironmentSize, PRUnichar * **environment); - - nsresult PR_COM_METHOD (*GetArguments)(IProcess *pThis, PRUint32 *argu= mentsSize, PRUnichar * **arguments); - - nsresult PR_COM_METHOD (*GetExecutablePath)(IProcess *pThis, PRUnichar= * *executablePath); - - nsresult PR_COM_METHOD (*GetName)(IProcess *pThis, PRUnichar * *name); - - nsresult PR_COM_METHOD (*WaitFor)( - IProcess *pThis, - PRUint32 waitFor, - PRUint32 timeoutMS, - PRUint32 * reason - ); - - nsresult PR_COM_METHOD (*WaitForArray)( - IProcess *pThis, - PRUint32 waitForSize, - PRUint32* waitFor, - PRUint32 timeoutMS, - PRUint32 * reason - ); - - nsresult PR_COM_METHOD (*Read)( - IProcess *pThis, - PRUint32 handle, - PRUint32 toRead, - PRUint32 timeoutMS, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*Write)( - IProcess *pThis, - PRUint32 handle, - PRUint32 flags, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - - nsresult PR_COM_METHOD (*WriteArray)( - IProcess *pThis, - PRUint32 handle, - PRUint32 flagsSize, - PRUint32* flags, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - - nsresult PR_COM_METHOD (*Terminate)(IProcess *pThis ); - -}; - -struct IProcess -{ - struct IProcess_vtbl *vtbl; -}; -/* End of struct IProcess Declaration */ - - -/* Start of struct IGuestProcess Declaration */ -# define IGUESTPROCESS_IID_STR "dfa39a36-5d43-4840-a025-67ea956b3111" -# define IGUESTPROCESS_IID { \ - 0xdfa39a36, 0x5d43, 0x4840, \ - { 0xa0, 0x25, 0x67, 0xea, 0x95, 0x6b, 0x31, 0x11 } \ -} -struct IGuestProcess_vtbl -{ - struct IProcess_vtbl iprocess; - -}; - -struct IGuestProcess -{ - struct IGuestProcess_vtbl *vtbl; -}; -/* End of struct IGuestProcess Declaration */ - - -/* Start of struct IDirectory Declaration */ -# define IDIRECTORY_IID_STR "1b70dd03-26d7-483a-8877-89bbb0f87b70" -# define IDIRECTORY_IID { \ - 0x1b70dd03, 0x26d7, 0x483a, \ - { 0x88, 0x77, 0x89, 0xbb, 0xb0, 0xf8, 0x7b, 0x70 } \ -} -struct IDirectory_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetDirectoryName)(IDirectory *pThis, PRUnicha= r * *directoryName); - - nsresult PR_COM_METHOD (*GetFilter)(IDirectory *pThis, PRUnichar * *fi= lter); - - nsresult PR_COM_METHOD (*Close)(IDirectory *pThis ); - - nsresult PR_COM_METHOD (*Read)( - IDirectory *pThis, - IFsObjInfo * * objInfo - ); - -}; - -struct IDirectory -{ - struct IDirectory_vtbl *vtbl; -}; -/* End of struct IDirectory Declaration */ - - -/* Start of struct IGuestDirectory Declaration */ -# define IGUESTDIRECTORY_IID_STR "af4a8ce0-0725-42b7-8826-46e3c7ba7357" -# define IGUESTDIRECTORY_IID { \ - 0xaf4a8ce0, 0x0725, 0x42b7, \ - { 0x88, 0x26, 0x46, 0xe3, 0xc7, 0xba, 0x73, 0x57 } \ -} -struct IGuestDirectory_vtbl -{ - struct IDirectory_vtbl idirectory; - -}; - -struct IGuestDirectory -{ - struct IGuestDirectory_vtbl *vtbl; -}; -/* End of struct IGuestDirectory Declaration */ - - -/* Start of struct IFile Declaration */ -# define IFILE_IID_STR "b702a560-6139-4a8e-a892-bbf14b97bf97" -# define IFILE_IID { \ - 0xb702a560, 0x6139, 0x4a8e, \ - { 0xa8, 0x92, 0xbb, 0xf1, 0x4b, 0x97, 0xbf, 0x97 } \ -} -struct IFile_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetCreationMode)(IFile *pThis, PRUint32 *crea= tionMode); - - nsresult PR_COM_METHOD (*GetDisposition)(IFile *pThis, PRUint32 *dispo= sition); - - nsresult PR_COM_METHOD (*GetFileName)(IFile *pThis, PRUnichar * *fileN= ame); - - nsresult PR_COM_METHOD (*GetInitialSize)(IFile *pThis, PRInt64 *initia= lSize); - - nsresult PR_COM_METHOD (*GetOpenMode)(IFile *pThis, PRUint32 *openMode= ); - - nsresult PR_COM_METHOD (*GetOffset)(IFile *pThis, PRInt64 *offset); - - nsresult PR_COM_METHOD (*Close)(IFile *pThis ); - - nsresult PR_COM_METHOD (*QueryInfo)( - IFile *pThis, - IFsObjInfo * * objInfo - ); - - nsresult PR_COM_METHOD (*Read)( - IFile *pThis, - PRUint32 toRead, - PRUint32 timeoutMS, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*ReadAt)( - IFile *pThis, - PRInt64 offset, - PRUint32 toRead, - PRUint32 timeoutMS, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*Seek)( - IFile *pThis, - PRInt64 offset, - PRUint32 whence - ); - - nsresult PR_COM_METHOD (*SetACL)( - IFile *pThis, - PRUnichar * acl - ); - - nsresult PR_COM_METHOD (*Write)( - IFile *pThis, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - - nsresult PR_COM_METHOD (*WriteAt)( - IFile *pThis, - PRInt64 offset, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - -}; - -struct IFile -{ - struct IFile_vtbl *vtbl; -}; -/* End of struct IFile Declaration */ - - -/* Start of struct IGuestFile Declaration */ -# define IGUESTFILE_IID_STR "60661aec-145f-4d11-b80e-8ea151598093" -# define IGUESTFILE_IID { \ - 0x60661aec, 0x145f, 0x4d11, \ - { 0xb8, 0x0e, 0x8e, 0xa1, 0x51, 0x59, 0x80, 0x93 } \ -} -struct IGuestFile_vtbl -{ - struct IFile_vtbl ifile; - -}; - -struct IGuestFile -{ - struct IGuestFile_vtbl *vtbl; -}; -/* End of struct IGuestFile Declaration */ - - -/* Start of struct IFsObjInfo Declaration */ -# define IFSOBJINFO_IID_STR "4047ba30-7006-4966-ae86-94164e5e20eb" -# define IFSOBJINFO_IID { \ - 0x4047ba30, 0x7006, 0x4966, \ - { 0xae, 0x86, 0x94, 0x16, 0x4e, 0x5e, 0x20, 0xeb } \ -} -struct IFsObjInfo_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetAccessTime)(IFsObjInfo *pThis, PRInt64 *ac= cessTime); - - nsresult PR_COM_METHOD (*GetAllocatedSize)(IFsObjInfo *pThis, PRInt64 = *allocatedSize); - - nsresult PR_COM_METHOD (*GetBirthTime)(IFsObjInfo *pThis, PRInt64 *bir= thTime); - - nsresult PR_COM_METHOD (*GetChangeTime)(IFsObjInfo *pThis, PRInt64 *ch= angeTime); - - nsresult PR_COM_METHOD (*GetDeviceNumber)(IFsObjInfo *pThis, PRUint32 = *deviceNumber); - - nsresult PR_COM_METHOD (*GetFileAttributes)(IFsObjInfo *pThis, PRUnich= ar * *fileAttributes); - - nsresult PR_COM_METHOD (*GetGenerationId)(IFsObjInfo *pThis, PRUint32 = *generationId); - - nsresult PR_COM_METHOD (*GetGID)(IFsObjInfo *pThis, PRUint32 *GID); - - nsresult PR_COM_METHOD (*GetGroupName)(IFsObjInfo *pThis, PRUnichar * = *groupName); - - nsresult PR_COM_METHOD (*GetHardLinks)(IFsObjInfo *pThis, PRUint32 *ha= rdLinks); - - nsresult PR_COM_METHOD (*GetModificationTime)(IFsObjInfo *pThis, PRInt= 64 *modificationTime); - - nsresult PR_COM_METHOD (*GetName)(IFsObjInfo *pThis, PRUnichar * *name= ); - - nsresult PR_COM_METHOD (*GetNodeId)(IFsObjInfo *pThis, PRInt64 *nodeId= ); - - nsresult PR_COM_METHOD (*GetNodeIdDevice)(IFsObjInfo *pThis, PRUint32 = *nodeIdDevice); - - nsresult PR_COM_METHOD (*GetObjectSize)(IFsObjInfo *pThis, PRInt64 *ob= jectSize); - - nsresult PR_COM_METHOD (*GetType)(IFsObjInfo *pThis, PRUint32 *type); - - nsresult PR_COM_METHOD (*GetUID)(IFsObjInfo *pThis, PRUint32 *UID); - - nsresult PR_COM_METHOD (*GetUserFlags)(IFsObjInfo *pThis, PRUint32 *us= erFlags); - - nsresult PR_COM_METHOD (*GetUserName)(IFsObjInfo *pThis, PRUnichar * *= userName); - -}; - -struct IFsObjInfo -{ - struct IFsObjInfo_vtbl *vtbl; -}; -/* End of struct IFsObjInfo Declaration */ - - -/* Start of struct IGuestFsObjInfo Declaration */ -# define IGUESTFSOBJINFO_IID_STR "d5cf678e-3484-4e4a-ac55-329e15462e18" -# define IGUESTFSOBJINFO_IID { \ - 0xd5cf678e, 0x3484, 0x4e4a, \ - { 0xac, 0x55, 0x32, 0x9e, 0x15, 0x46, 0x2e, 0x18 } \ -} -struct IGuestFsObjInfo_vtbl -{ - struct IFsObjInfo_vtbl ifsobjinfo; - -}; - -struct IGuestFsObjInfo -{ - struct IGuestFsObjInfo_vtbl *vtbl; -}; -/* End of struct IGuestFsObjInfo Declaration */ - - -/* Start of struct IGuest Declaration */ -# define IGUEST_IID_STR "19c32350-0618-4ede-b0c3-2b4311bf0d9b" -# define IGUEST_IID { \ - 0x19c32350, 0x0618, 0x4ede, \ - { 0xb0, 0xc3, 0x2b, 0x43, 0x11, 0xbf, 0x0d, 0x9b } \ -} -struct IGuest_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetOSTypeId)(IGuest *pThis, PRUnichar * *OSTy= peId); - - nsresult PR_COM_METHOD (*GetAdditionsRunLevel)(IGuest *pThis, PRUint32= *additionsRunLevel); - - nsresult PR_COM_METHOD (*GetAdditionsVersion)(IGuest *pThis, PRUnichar= * *additionsVersion); - - nsresult PR_COM_METHOD (*GetAdditionsRevision)(IGuest *pThis, PRUint32= *additionsRevision); - - nsresult PR_COM_METHOD (*GetFacilities)(IGuest *pThis, PRUint32 *facil= itiesSize, IAdditionsFacility * **facilities); - - nsresult PR_COM_METHOD (*GetSessions)(IGuest *pThis, PRUint32 *session= sSize, IGuestSession * **sessions); - - nsresult PR_COM_METHOD (*GetMemoryBalloonSize)(IGuest *pThis, PRUint32= *memoryBalloonSize); - nsresult PR_COM_METHOD (*SetMemoryBalloonSize)(IGuest *pThis, PRUint32= memoryBalloonSize); - - nsresult PR_COM_METHOD (*GetStatisticsUpdateInterval)(IGuest *pThis, P= RUint32 *statisticsUpdateInterval); - nsresult PR_COM_METHOD (*SetStatisticsUpdateInterval)(IGuest *pThis, P= RUint32 statisticsUpdateInterval); - - nsresult PR_COM_METHOD (*InternalGetStatistics)( - IGuest *pThis, - PRUint32 * cpuUser, - PRUint32 * cpuKernel, - PRUint32 * cpuIdle, - PRUint32 * memTotal, - PRUint32 * memFree, - PRUint32 * memBalloon, - PRUint32 * memShared, - PRUint32 * memCache, - PRUint32 * pagedTotal, - PRUint32 * memAllocTotal, - PRUint32 * memFreeTotal, - PRUint32 * memBalloonTotal, - PRUint32 * memSharedTotal - ); - - nsresult PR_COM_METHOD (*GetFacilityStatus)( - IGuest *pThis, - PRUint32 facility, - PRInt64 * timestamp, - PRUint32 * status - ); - - nsresult PR_COM_METHOD (*GetAdditionsStatus)( - IGuest *pThis, - PRUint32 level, - PRBool * active - ); - - nsresult PR_COM_METHOD (*SetCredentials)( - IGuest *pThis, - PRUnichar * userName, - PRUnichar * password, - PRUnichar * domain, - PRBool allowInteractiveLogon - ); - - nsresult PR_COM_METHOD (*DragHGEnter)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 y, - PRUint32 x, - PRUint32 defaultAction, - PRUint32 allowedActionsSize, - PRUint32* allowedActions, - PRUint32 formatsSize, - PRUnichar ** formats, - PRUint32 * resultAction - ); - - nsresult PR_COM_METHOD (*DragHGMove)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 x, - PRUint32 y, - PRUint32 defaultAction, - PRUint32 allowedActionsSize, - PRUint32* allowedActions, - PRUint32 formatsSize, - PRUnichar ** formats, - PRUint32 * resultAction - ); - - nsresult PR_COM_METHOD (*DragHGLeave)( - IGuest *pThis, - PRUint32 screenId - ); - - nsresult PR_COM_METHOD (*DragHGDrop)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 x, - PRUint32 y, - PRUint32 defaultAction, - PRUint32 allowedActionsSize, - PRUint32* allowedActions, - PRUint32 formatsSize, - PRUnichar ** formats, - PRUnichar * * format, - PRUint32 * resultAction - ); - - nsresult PR_COM_METHOD (*DragHGPutData)( - IGuest *pThis, - PRUint32 screenId, - PRUnichar * format, - PRUint32 dataSize, - PRUint8* data, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DragGHPending)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 *formatSize, - PRUnichar *** format, - PRUint32 *allowedActionsSize, - PRUint32* allowedActions, - PRUint32 * defaultAction - ); - - nsresult PR_COM_METHOD (*DragGHDropped)( - IGuest *pThis, - PRUnichar * format, - PRUint32 action, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DragGHGetData)( - IGuest *pThis, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*CreateSession)( - IGuest *pThis, - PRUnichar * user, - PRUnichar * password, - PRUnichar * domain, - PRUnichar * sessionName, - IGuestSession * * guestSession - ); - - nsresult PR_COM_METHOD (*FindSession)( - IGuest *pThis, - PRUnichar * sessionName, - PRUint32 *sessionsSize, - IGuestSession *** sessions - ); - - nsresult PR_COM_METHOD (*UpdateGuestAdditions)( - IGuest *pThis, - PRUnichar * source, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - -}; - -struct IGuest -{ - struct IGuest_vtbl *vtbl; -}; -/* End of struct IGuest Declaration */ - - -/* Start of struct IProgress Declaration */ -# define IPROGRESS_IID_STR "c20238e4-3221-4d3f-8891-81ce92d9f913" -# define IPROGRESS_IID { \ - 0xc20238e4, 0x3221, 0x4d3f, \ - { 0x88, 0x91, 0x81, 0xce, 0x92, 0xd9, 0xf9, 0x13 } \ -} -struct IProgress_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IProgress *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetDescription)(IProgress *pThis, PRUnichar *= *description); - - nsresult PR_COM_METHOD (*GetInitiator)(IProgress *pThis, nsISupports *= *initiator); - - nsresult PR_COM_METHOD (*GetCancelable)(IProgress *pThis, PRBool *canc= elable); - - nsresult PR_COM_METHOD (*GetPercent)(IProgress *pThis, PRUint32 *perce= nt); - - nsresult PR_COM_METHOD (*GetTimeRemaining)(IProgress *pThis, PRInt32 *= timeRemaining); - - nsresult PR_COM_METHOD (*GetCompleted)(IProgress *pThis, PRBool *compl= eted); - - nsresult PR_COM_METHOD (*GetCanceled)(IProgress *pThis, PRBool *cancel= ed); - - nsresult PR_COM_METHOD (*GetResultCode)(IProgress *pThis, PRInt32 *res= ultCode); - - nsresult PR_COM_METHOD (*GetErrorInfo)(IProgress *pThis, IVirtualBoxEr= rorInfo * *errorInfo); - - nsresult PR_COM_METHOD (*GetOperationCount)(IProgress *pThis, PRUint32= *operationCount); - - nsresult PR_COM_METHOD (*GetOperation)(IProgress *pThis, PRUint32 *ope= ration); - - nsresult PR_COM_METHOD (*GetOperationDescription)(IProgress *pThis, PR= Unichar * *operationDescription); - - nsresult PR_COM_METHOD (*GetOperationPercent)(IProgress *pThis, PRUint= 32 *operationPercent); - - nsresult PR_COM_METHOD (*GetOperationWeight)(IProgress *pThis, PRUint3= 2 *operationWeight); - - nsresult PR_COM_METHOD (*GetTimeout)(IProgress *pThis, PRUint32 *timeo= ut); - nsresult PR_COM_METHOD (*SetTimeout)(IProgress *pThis, PRUint32 timeou= t); - - nsresult PR_COM_METHOD (*SetCurrentOperationProgress)( - IProgress *pThis, - PRUint32 percent - ); - - nsresult PR_COM_METHOD (*SetNextOperation)( - IProgress *pThis, - PRUnichar * nextOperationDescription, - PRUint32 nextOperationsWeight - ); - - nsresult PR_COM_METHOD (*WaitForCompletion)( - IProgress *pThis, - PRInt32 timeout - ); - - nsresult PR_COM_METHOD (*WaitForOperationCompletion)( - IProgress *pThis, - PRUint32 operation, - PRInt32 timeout - ); - - nsresult PR_COM_METHOD (*WaitForAsyncProgressCompletion)( - IProgress *pThis, - IProgress * pProgressAsync - ); - - nsresult PR_COM_METHOD (*Cancel)(IProgress *pThis ); - -}; - -struct IProgress -{ - struct IProgress_vtbl *vtbl; -}; -/* End of struct IProgress Declaration */ - - -/* Start of struct ISnapshot Declaration */ -# define ISNAPSHOT_IID_STR "0472823b-c6e7-472a-8e9f-d732e86b8463" -# define ISNAPSHOT_IID { \ - 0x0472823b, 0xc6e7, 0x472a, \ - { 0x8e, 0x9f, 0xd7, 0x32, 0xe8, 0x6b, 0x84, 0x63 } \ -} -struct ISnapshot_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(ISnapshot *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetName)(ISnapshot *pThis, PRUnichar * *name); - nsresult PR_COM_METHOD (*SetName)(ISnapshot *pThis, PRUnichar * name); - - nsresult PR_COM_METHOD (*GetDescription)(ISnapshot *pThis, PRUnichar *= *description); - nsresult PR_COM_METHOD (*SetDescription)(ISnapshot *pThis, PRUnichar *= description); - - nsresult PR_COM_METHOD (*GetTimeStamp)(ISnapshot *pThis, PRInt64 *time= Stamp); - - nsresult PR_COM_METHOD (*GetOnline)(ISnapshot *pThis, PRBool *online); - - nsresult PR_COM_METHOD (*GetMachine)(ISnapshot *pThis, IMachine * *mac= hine); - - nsresult PR_COM_METHOD (*GetParent)(ISnapshot *pThis, ISnapshot * *par= ent); - - nsresult PR_COM_METHOD (*GetChildren)(ISnapshot *pThis, PRUint32 *chil= drenSize, ISnapshot * **children); - - nsresult PR_COM_METHOD (*GetChildrenCount)( - ISnapshot *pThis, - PRUint32 * childrenCount - ); - -}; - -struct ISnapshot -{ - struct ISnapshot_vtbl *vtbl; -}; -/* End of struct ISnapshot Declaration */ - - -/* Start of struct IMediumAttachment Declaration */ -# define IMEDIUMATTACHMENT_IID_STR "5ee464d6-0613-4331-b154-7ce12170ef9f" -# define IMEDIUMATTACHMENT_IID { \ - 0x5ee464d6, 0x0613, 0x4331, \ - { 0xb1, 0x54, 0x7c, 0xe1, 0x21, 0x70, 0xef, 0x9f } \ -} -struct IMediumAttachment_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMedium)(IMediumAttachment *pThis, IMedium = * *medium); - - nsresult PR_COM_METHOD (*GetController)(IMediumAttachment *pThis, PRUn= ichar * *controller); - - nsresult PR_COM_METHOD (*GetPort)(IMediumAttachment *pThis, PRInt32 *p= ort); - - nsresult PR_COM_METHOD (*GetDevice)(IMediumAttachment *pThis, PRInt32 = *device); - - nsresult PR_COM_METHOD (*GetType)(IMediumAttachment *pThis, PRUint32 *= type); - - nsresult PR_COM_METHOD (*GetPassthrough)(IMediumAttachment *pThis, PRB= ool *passthrough); - - nsresult PR_COM_METHOD (*GetTemporaryEject)(IMediumAttachment *pThis, = PRBool *temporaryEject); - - nsresult PR_COM_METHOD (*GetIsEjected)(IMediumAttachment *pThis, PRBoo= l *isEjected); - - nsresult PR_COM_METHOD (*GetNonRotational)(IMediumAttachment *pThis, P= RBool *nonRotational); - - nsresult PR_COM_METHOD (*GetDiscard)(IMediumAttachment *pThis, PRBool = *discard); - - nsresult PR_COM_METHOD (*GetBandwidthGroup)(IMediumAttachment *pThis, = IBandwidthGroup * *bandwidthGroup); - -}; - -struct IMediumAttachment -{ - struct IMediumAttachment_vtbl *vtbl; -}; -/* End of struct IMediumAttachment Declaration */ - - -/* Start of struct IMedium Declaration */ -# define IMEDIUM_IID_STR "29989373-b111-4654-8493-2e1176cba890" -# define IMEDIUM_IID { \ - 0x29989373, 0xb111, 0x4654, \ - { 0x84, 0x93, 0x2e, 0x11, 0x76, 0xcb, 0xa8, 0x90 } \ -} -struct IMedium_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IMedium *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetDescription)(IMedium *pThis, PRUnichar * *= description); - nsresult PR_COM_METHOD (*SetDescription)(IMedium *pThis, PRUnichar * d= escription); - - nsresult PR_COM_METHOD (*GetState)(IMedium *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetVariant)(IMedium *pThis, PRUint32 *variant= ); - - nsresult PR_COM_METHOD (*GetLocation)(IMedium *pThis, PRUnichar * *loc= ation); - nsresult PR_COM_METHOD (*SetLocation)(IMedium *pThis, PRUnichar * loca= tion); - - nsresult PR_COM_METHOD (*GetName)(IMedium *pThis, PRUnichar * *name); - - nsresult PR_COM_METHOD (*GetDeviceType)(IMedium *pThis, PRUint32 *devi= ceType); - - nsresult PR_COM_METHOD (*GetHostDrive)(IMedium *pThis, PRBool *hostDri= ve); - - nsresult PR_COM_METHOD (*GetSize)(IMedium *pThis, PRInt64 *size); - - nsresult PR_COM_METHOD (*GetFormat)(IMedium *pThis, PRUnichar * *forma= t); - - nsresult PR_COM_METHOD (*GetMediumFormat)(IMedium *pThis, IMediumForma= t * *mediumFormat); - - nsresult PR_COM_METHOD (*GetType)(IMedium *pThis, PRUint32 *type); - nsresult PR_COM_METHOD (*SetType)(IMedium *pThis, PRUint32 type); - - nsresult PR_COM_METHOD (*GetAllowedTypes)(IMedium *pThis, PRUint32 *al= lowedTypesSize, PRUint32 **allowedTypes); - - nsresult PR_COM_METHOD (*GetParent)(IMedium *pThis, IMedium * *parent); - - nsresult PR_COM_METHOD (*GetChildren)(IMedium *pThis, PRUint32 *childr= enSize, IMedium * **children); - - nsresult PR_COM_METHOD (*GetBase)(IMedium *pThis, IMedium * *base); - - nsresult PR_COM_METHOD (*GetReadOnly)(IMedium *pThis, PRBool *readOnly= ); - - nsresult PR_COM_METHOD (*GetLogicalSize)(IMedium *pThis, PRInt64 *logi= calSize); - - nsresult PR_COM_METHOD (*GetAutoReset)(IMedium *pThis, PRBool *autoRes= et); - nsresult PR_COM_METHOD (*SetAutoReset)(IMedium *pThis, PRBool autoRese= t); - - nsresult PR_COM_METHOD (*GetLastAccessError)(IMedium *pThis, PRUnichar= * *lastAccessError); - - nsresult PR_COM_METHOD (*GetMachineIds)(IMedium *pThis, PRUint32 *mach= ineIdsSize, PRUnichar * **machineIds); - - nsresult PR_COM_METHOD (*SetIds)( - IMedium *pThis, - PRBool setImageId, - PRUnichar * imageId, - PRBool setParentId, - PRUnichar * parentId - ); - - nsresult PR_COM_METHOD (*RefreshState)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*GetSnapshotIds)( - IMedium *pThis, - PRUnichar * machineId, - PRUint32 *snapshotIdsSize, - PRUnichar *** snapshotIds - ); - - nsresult PR_COM_METHOD (*LockRead)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*UnlockRead)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*LockWrite)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*UnlockWrite)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*Close)(IMedium *pThis ); - - nsresult PR_COM_METHOD (*GetProperty)( - IMedium *pThis, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetProperty)( - IMedium *pThis, - PRUnichar * name, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetProperties)( - IMedium *pThis, - PRUnichar * names, - PRUint32 *returnNamesSize, - PRUnichar *** returnNames, - PRUint32 *returnValuesSize, - PRUnichar *** returnValues - ); - - nsresult PR_COM_METHOD (*SetProperties)( - IMedium *pThis, - PRUint32 namesSize, - PRUnichar ** names, - PRUint32 valuesSize, - PRUnichar ** values - ); - - nsresult PR_COM_METHOD (*CreateBaseStorage)( - IMedium *pThis, - PRInt64 logicalSize, - PRUint32 variant, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DeleteStorage)( - IMedium *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CreateDiffStorage)( - IMedium *pThis, - IMedium * target, - PRUint32 variant, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*MergeTo)( - IMedium *pThis, - IMedium * target, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CloneTo)( - IMedium *pThis, - IMedium * target, - PRUint32 variant, - IMedium * parent, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CloneToBase)( - IMedium *pThis, - IMedium * target, - PRUint32 variant, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Compact)( - IMedium *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Resize)( - IMedium *pThis, - PRInt64 logicalSize, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Reset)( - IMedium *pThis, - IProgress * * progress - ); - -}; - -struct IMedium -{ - struct IMedium_vtbl *vtbl; -}; -/* End of struct IMedium Declaration */ - - -/* Start of struct IMediumFormat Declaration */ -# define IMEDIUMFORMAT_IID_STR "9bd5b655-ea47-4637-99f3-aad0948be35b" -# define IMEDIUMFORMAT_IID { \ - 0x9bd5b655, 0xea47, 0x4637, \ - { 0x99, 0xf3, 0xaa, 0xd0, 0x94, 0x8b, 0xe3, 0x5b } \ -} -struct IMediumFormat_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IMediumFormat *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetName)(IMediumFormat *pThis, PRUnichar * *n= ame); - - nsresult PR_COM_METHOD (*GetCapabilities)(IMediumFormat *pThis, PRUint= 32 *capabilities); - - nsresult PR_COM_METHOD (*DescribeFileExtensions)( - IMediumFormat *pThis, - PRUint32 *extensionsSize, - PRUnichar *** extensions, - PRUint32 *typeSize, - PRUint32* type - ); - - nsresult PR_COM_METHOD (*DescribeProperties)( - IMediumFormat *pThis, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *descriptionSize, - PRUnichar *** description, - PRUint32 *typesSize, - PRUint32* types, - PRUint32 *flagsSize, - PRUint32* flags, - PRUint32 *defaultsSize, - PRUnichar *** defaults - ); - -}; - -struct IMediumFormat -{ - struct IMediumFormat_vtbl *vtbl; -}; -/* End of struct IMediumFormat Declaration */ - - -/* Start of struct IKeyboard Declaration */ -# define IKEYBOARD_IID_STR "f6916ec5-a881-4237-898f-7de58cf88672" -# define IKEYBOARD_IID { \ - 0xf6916ec5, 0xa881, 0x4237, \ - { 0x89, 0x8f, 0x7d, 0xe5, 0x8c, 0xf8, 0x86, 0x72 } \ -} -struct IKeyboard_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEventSource)(IKeyboard *pThis, IEventSourc= e * *eventSource); - - nsresult PR_COM_METHOD (*PutScancode)( - IKeyboard *pThis, - PRInt32 scancode - ); - - nsresult PR_COM_METHOD (*PutScancodes)( - IKeyboard *pThis, - PRUint32 scancodesSize, - PRInt32* scancodes, - PRUint32 * codesStored - ); - - nsresult PR_COM_METHOD (*PutCAD)(IKeyboard *pThis ); - -}; - -struct IKeyboard -{ - struct IKeyboard_vtbl *vtbl; -}; -/* End of struct IKeyboard Declaration */ - - -/* Start of struct IMouse Declaration */ -# define IMOUSE_IID_STR "05044a52-7811-4f00-ae3a-0ab7ff707b10" -# define IMOUSE_IID { \ - 0x05044a52, 0x7811, 0x4f00, \ - { 0xae, 0x3a, 0x0a, 0xb7, 0xff, 0x70, 0x7b, 0x10 } \ -} -struct IMouse_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetAbsoluteSupported)(IMouse *pThis, PRBool *= absoluteSupported); - - nsresult PR_COM_METHOD (*GetRelativeSupported)(IMouse *pThis, PRBool *= relativeSupported); - - nsresult PR_COM_METHOD (*GetNeedsHostCursor)(IMouse *pThis, PRBool *ne= edsHostCursor); - - nsresult PR_COM_METHOD (*GetEventSource)(IMouse *pThis, IEventSource *= *eventSource); - - nsresult PR_COM_METHOD (*PutMouseEvent)( - IMouse *pThis, - PRInt32 dx, - PRInt32 dy, - PRInt32 dz, - PRInt32 dw, - PRInt32 buttonState - ); - - nsresult PR_COM_METHOD (*PutMouseEventAbsolute)( - IMouse *pThis, - PRInt32 x, - PRInt32 y, - PRInt32 dz, - PRInt32 dw, - PRInt32 buttonState - ); - -}; - -struct IMouse -{ - struct IMouse_vtbl *vtbl; -}; -/* End of struct IMouse Declaration */ - - -/* Start of struct IFramebuffer Declaration */ -# define IFRAMEBUFFER_IID_STR "b7ed347a-5765-40a0-ae1c-f543eb4ddeaf" -# define IFRAMEBUFFER_IID { \ - 0xb7ed347a, 0x5765, 0x40a0, \ - { 0xae, 0x1c, 0xf5, 0x43, 0xeb, 0x4d, 0xde, 0xaf } \ -} -struct IFramebuffer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetAddress)(IFramebuffer *pThis, PRUint8 * *a= ddress); - - nsresult PR_COM_METHOD (*GetWidth)(IFramebuffer *pThis, PRUint32 *widt= h); - - nsresult PR_COM_METHOD (*GetHeight)(IFramebuffer *pThis, PRUint32 *hei= ght); - - nsresult PR_COM_METHOD (*GetBitsPerPixel)(IFramebuffer *pThis, PRUint3= 2 *bitsPerPixel); - - nsresult PR_COM_METHOD (*GetBytesPerLine)(IFramebuffer *pThis, PRUint3= 2 *bytesPerLine); - - nsresult PR_COM_METHOD (*GetPixelFormat)(IFramebuffer *pThis, PRUint32= *pixelFormat); - - nsresult PR_COM_METHOD (*GetUsesGuestVRAM)(IFramebuffer *pThis, PRBool= *usesGuestVRAM); - - nsresult PR_COM_METHOD (*GetHeightReduction)(IFramebuffer *pThis, PRUi= nt32 *heightReduction); - - nsresult PR_COM_METHOD (*GetOverlay)(IFramebuffer *pThis, IFramebuffer= Overlay * *overlay); - - nsresult PR_COM_METHOD (*GetWinId)(IFramebuffer *pThis, PRInt64 *winId= ); - - nsresult PR_COM_METHOD (*Lock)(IFramebuffer *pThis ); - - nsresult PR_COM_METHOD (*Unlock)(IFramebuffer *pThis ); - - nsresult PR_COM_METHOD (*NotifyUpdate)( - IFramebuffer *pThis, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - - nsresult PR_COM_METHOD (*RequestResize)( - IFramebuffer *pThis, - PRUint32 screenId, - PRUint32 pixelFormat, - PRUint8 * VRAM, - PRUint32 bitsPerPixel, - PRUint32 bytesPerLine, - PRUint32 width, - PRUint32 height, - PRBool * finished - ); - - nsresult PR_COM_METHOD (*VideoModeSupported)( - IFramebuffer *pThis, - PRUint32 width, - PRUint32 height, - PRUint32 bpp, - PRBool * supported - ); - - nsresult PR_COM_METHOD (*GetVisibleRegion)( - IFramebuffer *pThis, - PRUint8 * rectangles, - PRUint32 count, - PRUint32 * countCopied - ); - - nsresult PR_COM_METHOD (*SetVisibleRegion)( - IFramebuffer *pThis, - PRUint8 * rectangles, - PRUint32 count - ); - - nsresult PR_COM_METHOD (*ProcessVHWACommand)( - IFramebuffer *pThis, - PRUint8 * command - ); - -}; - -struct IFramebuffer -{ - struct IFramebuffer_vtbl *vtbl; -}; -/* End of struct IFramebuffer Declaration */ - - -/* Start of struct IFramebufferOverlay Declaration */ -# define IFRAMEBUFFEROVERLAY_IID_STR "0bcc1c7e-e415-47d2-bfdb-e4c705fb0f4= 7" -# define IFRAMEBUFFEROVERLAY_IID { \ - 0x0bcc1c7e, 0xe415, 0x47d2, \ - { 0xbf, 0xdb, 0xe4, 0xc7, 0x05, 0xfb, 0x0f, 0x47 } \ -} -struct IFramebufferOverlay_vtbl -{ - struct IFramebuffer_vtbl iframebuffer; - - nsresult PR_COM_METHOD (*GetX)(IFramebufferOverlay *pThis, PRUint32 *x= ); - - nsresult PR_COM_METHOD (*GetY)(IFramebufferOverlay *pThis, PRUint32 *y= ); - - nsresult PR_COM_METHOD (*GetVisible)(IFramebufferOverlay *pThis, PRBoo= l *visible); - nsresult PR_COM_METHOD (*SetVisible)(IFramebufferOverlay *pThis, PRBoo= l visible); - - nsresult PR_COM_METHOD (*GetAlpha)(IFramebufferOverlay *pThis, PRUint3= 2 *alpha); - nsresult PR_COM_METHOD (*SetAlpha)(IFramebufferOverlay *pThis, PRUint3= 2 alpha); - - nsresult PR_COM_METHOD (*Move)( - IFramebufferOverlay *pThis, - PRUint32 x, - PRUint32 y - ); - -}; - -struct IFramebufferOverlay -{ - struct IFramebufferOverlay_vtbl *vtbl; -}; -/* End of struct IFramebufferOverlay Declaration */ - - -/* Start of struct IDisplay Declaration */ -# define IDISPLAY_IID_STR "b83ee395-8679-40ca-8d60-1a0cbe724930" -# define IDISPLAY_IID { \ - 0xb83ee395, 0x8679, 0x40ca, \ - { 0x8d, 0x60, 0x1a, 0x0c, 0xbe, 0x72, 0x49, 0x30 } \ -} -struct IDisplay_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetScreenResolution)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 * bitsPerPixel - ); - - nsresult PR_COM_METHOD (*SetFramebuffer)( - IDisplay *pThis, - PRUint32 screenId, - IFramebuffer * framebuffer - ); - - nsresult PR_COM_METHOD (*GetFramebuffer)( - IDisplay *pThis, - PRUint32 screenId, - IFramebuffer * * framebuffer, - PRInt32 * xOrigin, - PRInt32 * yOrigin - ); - - nsresult PR_COM_METHOD (*SetVideoModeHint)( - IDisplay *pThis, - PRUint32 display, - PRBool enabled, - PRBool changeOrigin, - PRInt32 originX, - PRInt32 originY, - PRUint32 width, - PRUint32 height, - PRUint32 bitsPerPixel - ); - - nsresult PR_COM_METHOD (*SetSeamlessMode)( - IDisplay *pThis, - PRBool enabled - ); - - nsresult PR_COM_METHOD (*TakeScreenShot)( - IDisplay *pThis, - PRUint32 screenId, - PRUint8 * address, - PRUint32 width, - PRUint32 height - ); - - nsresult PR_COM_METHOD (*TakeScreenShotToArray)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 width, - PRUint32 height, - PRUint32 *screenDataSize, - PRUint8** screenData - ); - - nsresult PR_COM_METHOD (*TakeScreenShotPNGToArray)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 width, - PRUint32 height, - PRUint32 *screenDataSize, - PRUint8** screenData - ); - - nsresult PR_COM_METHOD (*DrawToScreen)( - IDisplay *pThis, - PRUint32 screenId, - PRUint8 * address, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - - nsresult PR_COM_METHOD (*InvalidateAndUpdate)(IDisplay *pThis ); - - nsresult PR_COM_METHOD (*ResizeCompleted)( - IDisplay *pThis, - PRUint32 screenId - ); - - nsresult PR_COM_METHOD (*CompleteVHWACommand)( - IDisplay *pThis, - PRUint8 * command - ); - - nsresult PR_COM_METHOD (*ViewportChanged)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - -}; - -struct IDisplay -{ - struct IDisplay_vtbl *vtbl; -}; -/* End of struct IDisplay Declaration */ - - -/* Start of struct INetworkAdapter Declaration */ -# define INETWORKADAPTER_IID_STR "efa0f965-63c7-4c60-afdf-b1cc9943b9c0" -# define INETWORKADAPTER_IID { \ - 0xefa0f965, 0x63c7, 0x4c60, \ - { 0xaf, 0xdf, 0xb1, 0xcc, 0x99, 0x43, 0xb9, 0xc0 } \ -} -struct INetworkAdapter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetAdapterType)(INetworkAdapter *pThis, PRUin= t32 *adapterType); - nsresult PR_COM_METHOD (*SetAdapterType)(INetworkAdapter *pThis, PRUin= t32 adapterType); - - nsresult PR_COM_METHOD (*GetSlot)(INetworkAdapter *pThis, PRUint32 *sl= ot); - - nsresult PR_COM_METHOD (*GetEnabled)(INetworkAdapter *pThis, PRBool *e= nabled); - nsresult PR_COM_METHOD (*SetEnabled)(INetworkAdapter *pThis, PRBool en= abled); - - nsresult PR_COM_METHOD (*GetMACAddress)(INetworkAdapter *pThis, PRUnic= har * *MACAddress); - nsresult PR_COM_METHOD (*SetMACAddress)(INetworkAdapter *pThis, PRUnic= har * MACAddress); - - nsresult PR_COM_METHOD (*GetAttachmentType)(INetworkAdapter *pThis, PR= Uint32 *attachmentType); - nsresult PR_COM_METHOD (*SetAttachmentType)(INetworkAdapter *pThis, PR= Uint32 attachmentType); - - nsresult PR_COM_METHOD (*GetBridgedInterface)(INetworkAdapter *pThis, = PRUnichar * *bridgedInterface); - nsresult PR_COM_METHOD (*SetBridgedInterface)(INetworkAdapter *pThis, = PRUnichar * bridgedInterface); - - nsresult PR_COM_METHOD (*GetHostOnlyInterface)(INetworkAdapter *pThis,= PRUnichar * *hostOnlyInterface); - nsresult PR_COM_METHOD (*SetHostOnlyInterface)(INetworkAdapter *pThis,= PRUnichar * hostOnlyInterface); - - nsresult PR_COM_METHOD (*GetInternalNetwork)(INetworkAdapter *pThis, P= RUnichar * *internalNetwork); - nsresult PR_COM_METHOD (*SetInternalNetwork)(INetworkAdapter *pThis, P= RUnichar * internalNetwork); - - nsresult PR_COM_METHOD (*GetNATNetwork)(INetworkAdapter *pThis, PRUnic= har * *NATNetwork); - nsresult PR_COM_METHOD (*SetNATNetwork)(INetworkAdapter *pThis, PRUnic= har * NATNetwork); - - nsresult PR_COM_METHOD (*GetGenericDriver)(INetworkAdapter *pThis, PRU= nichar * *genericDriver); - nsresult PR_COM_METHOD (*SetGenericDriver)(INetworkAdapter *pThis, PRU= nichar * genericDriver); - - nsresult PR_COM_METHOD (*GetCableConnected)(INetworkAdapter *pThis, PR= Bool *cableConnected); - nsresult PR_COM_METHOD (*SetCableConnected)(INetworkAdapter *pThis, PR= Bool cableConnected); - - nsresult PR_COM_METHOD (*GetLineSpeed)(INetworkAdapter *pThis, PRUint3= 2 *lineSpeed); - nsresult PR_COM_METHOD (*SetLineSpeed)(INetworkAdapter *pThis, PRUint3= 2 lineSpeed); - - nsresult PR_COM_METHOD (*GetPromiscModePolicy)(INetworkAdapter *pThis,= PRUint32 *promiscModePolicy); - nsresult PR_COM_METHOD (*SetPromiscModePolicy)(INetworkAdapter *pThis,= PRUint32 promiscModePolicy); - - nsresult PR_COM_METHOD (*GetTraceEnabled)(INetworkAdapter *pThis, PRBo= ol *traceEnabled); - nsresult PR_COM_METHOD (*SetTraceEnabled)(INetworkAdapter *pThis, PRBo= ol traceEnabled); - - nsresult PR_COM_METHOD (*GetTraceFile)(INetworkAdapter *pThis, PRUnich= ar * *traceFile); - nsresult PR_COM_METHOD (*SetTraceFile)(INetworkAdapter *pThis, PRUnich= ar * traceFile); - - nsresult PR_COM_METHOD (*GetNATEngine)(INetworkAdapter *pThis, INATEng= ine * *NATEngine); - - nsresult PR_COM_METHOD (*GetBootPriority)(INetworkAdapter *pThis, PRUi= nt32 *bootPriority); - nsresult PR_COM_METHOD (*SetBootPriority)(INetworkAdapter *pThis, PRUi= nt32 bootPriority); - - nsresult PR_COM_METHOD (*GetBandwidthGroup)(INetworkAdapter *pThis, IB= andwidthGroup * *bandwidthGroup); - nsresult PR_COM_METHOD (*SetBandwidthGroup)(INetworkAdapter *pThis, IB= andwidthGroup * bandwidthGroup); - - nsresult PR_COM_METHOD (*GetProperty)( - INetworkAdapter *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetProperty)( - INetworkAdapter *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetProperties)( - INetworkAdapter *pThis, - PRUnichar * names, - PRUint32 *returnNamesSize, - PRUnichar *** returnNames, - PRUint32 *returnValuesSize, - PRUnichar *** returnValues - ); - -}; - -struct INetworkAdapter -{ - struct INetworkAdapter_vtbl *vtbl; -}; -/* End of struct INetworkAdapter Declaration */ - - -/* Start of struct ISerialPort Declaration */ -# define ISERIALPORT_IID_STR "937f6970-5103-4745-b78e-d28dcf1479a8" -# define ISERIALPORT_IID { \ - 0x937f6970, 0x5103, 0x4745, \ - { 0xb7, 0x8e, 0xd2, 0x8d, 0xcf, 0x14, 0x79, 0xa8 } \ -} -struct ISerialPort_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetSlot)(ISerialPort *pThis, PRUint32 *slot); - - nsresult PR_COM_METHOD (*GetEnabled)(ISerialPort *pThis, PRBool *enabl= ed); - nsresult PR_COM_METHOD (*SetEnabled)(ISerialPort *pThis, PRBool enable= d); - - nsresult PR_COM_METHOD (*GetIOBase)(ISerialPort *pThis, PRUint32 *IOBa= se); - nsresult PR_COM_METHOD (*SetIOBase)(ISerialPort *pThis, PRUint32 IOBas= e); - - nsresult PR_COM_METHOD (*GetIRQ)(ISerialPort *pThis, PRUint32 *IRQ); - nsresult PR_COM_METHOD (*SetIRQ)(ISerialPort *pThis, PRUint32 IRQ); - - nsresult PR_COM_METHOD (*GetHostMode)(ISerialPort *pThis, PRUint32 *ho= stMode); - nsresult PR_COM_METHOD (*SetHostMode)(ISerialPort *pThis, PRUint32 hos= tMode); - - nsresult PR_COM_METHOD (*GetServer)(ISerialPort *pThis, PRBool *server= ); - nsresult PR_COM_METHOD (*SetServer)(ISerialPort *pThis, PRBool server); - - nsresult PR_COM_METHOD (*GetPath)(ISerialPort *pThis, PRUnichar * *pat= h); - nsresult PR_COM_METHOD (*SetPath)(ISerialPort *pThis, PRUnichar * path= ); - -}; - -struct ISerialPort -{ - struct ISerialPort_vtbl *vtbl; -}; -/* End of struct ISerialPort Declaration */ - - -/* Start of struct IParallelPort Declaration */ -# define IPARALLELPORT_IID_STR "0c925f06-dd10-4b77-8de8-294d738c3214" -# define IPARALLELPORT_IID { \ - 0x0c925f06, 0xdd10, 0x4b77, \ - { 0x8d, 0xe8, 0x29, 0x4d, 0x73, 0x8c, 0x32, 0x14 } \ -} -struct IParallelPort_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetSlot)(IParallelPort *pThis, PRUint32 *slot= ); - - nsresult PR_COM_METHOD (*GetEnabled)(IParallelPort *pThis, PRBool *ena= bled); - nsresult PR_COM_METHOD (*SetEnabled)(IParallelPort *pThis, PRBool enab= led); - - nsresult PR_COM_METHOD (*GetIOBase)(IParallelPort *pThis, PRUint32 *IO= Base); - nsresult PR_COM_METHOD (*SetIOBase)(IParallelPort *pThis, PRUint32 IOB= ase); - - nsresult PR_COM_METHOD (*GetIRQ)(IParallelPort *pThis, PRUint32 *IRQ); - nsresult PR_COM_METHOD (*SetIRQ)(IParallelPort *pThis, PRUint32 IRQ); - - nsresult PR_COM_METHOD (*GetPath)(IParallelPort *pThis, PRUnichar * *p= ath); - nsresult PR_COM_METHOD (*SetPath)(IParallelPort *pThis, PRUnichar * pa= th); - -}; - -struct IParallelPort -{ - struct IParallelPort_vtbl *vtbl; -}; -/* End of struct IParallelPort Declaration */ - - -/* Start of struct IMachineDebugger Declaration */ -# define IMACHINEDEBUGGER_IID_STR "a9abbb7c-d678-43b2-bed2-19ec0e32303d" -# define IMACHINEDEBUGGER_IID { \ - 0xa9abbb7c, 0xd678, 0x43b2, \ - { 0xbe, 0xd2, 0x19, 0xec, 0x0e, 0x32, 0x30, 0x3d } \ -} -struct IMachineDebugger_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetSingleStep)(IMachineDebugger *pThis, PRBoo= l *singleStep); - nsresult PR_COM_METHOD (*SetSingleStep)(IMachineDebugger *pThis, PRBoo= l singleStep); - - nsresult PR_COM_METHOD (*GetRecompileUser)(IMachineDebugger *pThis, PR= Bool *recompileUser); - nsresult PR_COM_METHOD (*SetRecompileUser)(IMachineDebugger *pThis, PR= Bool recompileUser); - - nsresult PR_COM_METHOD (*GetRecompileSupervisor)(IMachineDebugger *pTh= is, PRBool *recompileSupervisor); - nsresult PR_COM_METHOD (*SetRecompileSupervisor)(IMachineDebugger *pTh= is, PRBool recompileSupervisor); - - nsresult PR_COM_METHOD (*GetPATMEnabled)(IMachineDebugger *pThis, PRBo= ol *PATMEnabled); - nsresult PR_COM_METHOD (*SetPATMEnabled)(IMachineDebugger *pThis, PRBo= ol PATMEnabled); - - nsresult PR_COM_METHOD (*GetCSAMEnabled)(IMachineDebugger *pThis, PRBo= ol *CSAMEnabled); - nsresult PR_COM_METHOD (*SetCSAMEnabled)(IMachineDebugger *pThis, PRBo= ol CSAMEnabled); - - nsresult PR_COM_METHOD (*GetLogEnabled)(IMachineDebugger *pThis, PRBoo= l *logEnabled); - nsresult PR_COM_METHOD (*SetLogEnabled)(IMachineDebugger *pThis, PRBoo= l logEnabled); - - nsresult PR_COM_METHOD (*GetLogDbgFlags)(IMachineDebugger *pThis, PRUn= ichar * *logDbgFlags); - - nsresult PR_COM_METHOD (*GetLogDbgGroups)(IMachineDebugger *pThis, PRU= nichar * *logDbgGroups); - - nsresult PR_COM_METHOD (*GetLogDbgDestinations)(IMachineDebugger *pThi= s, PRUnichar * *logDbgDestinations); - - nsresult PR_COM_METHOD (*GetLogRelFlags)(IMachineDebugger *pThis, PRUn= ichar * *logRelFlags); - - nsresult PR_COM_METHOD (*GetLogRelGroups)(IMachineDebugger *pThis, PRU= nichar * *logRelGroups); - - nsresult PR_COM_METHOD (*GetLogRelDestinations)(IMachineDebugger *pThi= s, PRUnichar * *logRelDestinations); - - nsresult PR_COM_METHOD (*GetHWVirtExEnabled)(IMachineDebugger *pThis, = PRBool *HWVirtExEnabled); - - nsresult PR_COM_METHOD (*GetHWVirtExNestedPagingEnabled)(IMachineDebug= ger *pThis, PRBool *HWVirtExNestedPagingEnabled); - - nsresult PR_COM_METHOD (*GetHWVirtExVPIDEnabled)(IMachineDebugger *pTh= is, PRBool *HWVirtExVPIDEnabled); - - nsresult PR_COM_METHOD (*GetOSName)(IMachineDebugger *pThis, PRUnichar= * *OSName); - - nsresult PR_COM_METHOD (*GetOSVersion)(IMachineDebugger *pThis, PRUnic= har * *OSVersion); - - nsresult PR_COM_METHOD (*GetPAEEnabled)(IMachineDebugger *pThis, PRBoo= l *PAEEnabled); - - nsresult PR_COM_METHOD (*GetVirtualTimeRate)(IMachineDebugger *pThis, = PRUint32 *virtualTimeRate); - nsresult PR_COM_METHOD (*SetVirtualTimeRate)(IMachineDebugger *pThis, = PRUint32 virtualTimeRate); - - nsresult PR_COM_METHOD (*GetVM)(IMachineDebugger *pThis, PRInt64 *VM); - - nsresult PR_COM_METHOD (*DumpGuestCore)( - IMachineDebugger *pThis, - PRUnichar * filename, - PRUnichar * compression - ); - - nsresult PR_COM_METHOD (*DumpHostProcessCore)( - IMachineDebugger *pThis, - PRUnichar * filename, - PRUnichar * compression - ); - - nsresult PR_COM_METHOD (*Info)( - IMachineDebugger *pThis, - PRUnichar * name, - PRUnichar * args, - PRUnichar * * info - ); - - nsresult PR_COM_METHOD (*InjectNMI)(IMachineDebugger *pThis ); - - nsresult PR_COM_METHOD (*ModifyLogGroups)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult PR_COM_METHOD (*ModifyLogFlags)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult PR_COM_METHOD (*ModifyLogDestinations)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult PR_COM_METHOD (*ReadPhysicalMemory)( - IMachineDebugger *pThis, - PRInt64 address, - PRUint32 size, - PRUint32 *bytesSize, - PRUint8** bytes - ); - - nsresult PR_COM_METHOD (*WritePhysicalMemory)( - IMachineDebugger *pThis, - PRInt64 address, - PRUint32 size, - PRUint32 bytesSize, - PRUint8* bytes - ); - - nsresult PR_COM_METHOD (*ReadVirtualMemory)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRInt64 address, - PRUint32 size, - PRUint32 *bytesSize, - PRUint8** bytes - ); - - nsresult PR_COM_METHOD (*WriteVirtualMemory)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRInt64 address, - PRUint32 size, - PRUint32 bytesSize, - PRUint8* bytes - ); - - nsresult PR_COM_METHOD (*DetectOS)( - IMachineDebugger *pThis, - PRUnichar * * os - ); - - nsresult PR_COM_METHOD (*GetRegister)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*GetRegisters)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *valuesSize, - PRUnichar *** values - ); - - nsresult PR_COM_METHOD (*SetRegister)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * name, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*SetRegisters)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUint32 namesSize, - PRUnichar ** names, - PRUint32 valuesSize, - PRUnichar ** values - ); - - nsresult PR_COM_METHOD (*DumpGuestStack)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * * stack - ); - - nsresult PR_COM_METHOD (*ResetStats)( - IMachineDebugger *pThis, - PRUnichar * pattern - ); - - nsresult PR_COM_METHOD (*DumpStats)( - IMachineDebugger *pThis, - PRUnichar * pattern - ); - - nsresult PR_COM_METHOD (*GetStats)( - IMachineDebugger *pThis, - PRUnichar * pattern, - PRBool withDescriptions, - PRUnichar * * stats - ); - -}; - -struct IMachineDebugger -{ - struct IMachineDebugger_vtbl *vtbl; -}; -/* End of struct IMachineDebugger Declaration */ - - -/* Start of struct IUSBController Declaration */ -# define IUSBCONTROLLER_IID_STR "01e6f13a-0580-452f-a40f-74e32a5e4921" -# define IUSBCONTROLLER_IID { \ - 0x01e6f13a, 0x0580, 0x452f, \ - { 0xa4, 0x0f, 0x74, 0xe3, 0x2a, 0x5e, 0x49, 0x21 } \ -} -struct IUSBController_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IUSBController *pThis, PRBool *en= abled); - nsresult PR_COM_METHOD (*SetEnabled)(IUSBController *pThis, PRBool ena= bled); - - nsresult PR_COM_METHOD (*GetEnabledEHCI)(IUSBController *pThis, PRBool= *enabledEHCI); - nsresult PR_COM_METHOD (*SetEnabledEHCI)(IUSBController *pThis, PRBool= enabledEHCI); - - nsresult PR_COM_METHOD (*GetProxyAvailable)(IUSBController *pThis, PRB= ool *proxyAvailable); - - nsresult PR_COM_METHOD (*GetUSBStandard)(IUSBController *pThis, PRUint= 16 *USBStandard); - - nsresult PR_COM_METHOD (*GetDeviceFilters)(IUSBController *pThis, PRUi= nt32 *deviceFiltersSize, IUSBDeviceFilter * **deviceFilters); - - nsresult PR_COM_METHOD (*CreateDeviceFilter)( - IUSBController *pThis, - PRUnichar * name, - IUSBDeviceFilter * * filter - ); - - nsresult PR_COM_METHOD (*InsertDeviceFilter)( - IUSBController *pThis, - PRUint32 position, - IUSBDeviceFilter * filter - ); - - nsresult PR_COM_METHOD (*RemoveDeviceFilter)( - IUSBController *pThis, - PRUint32 position, - IUSBDeviceFilter * * filter - ); - -}; - -struct IUSBController -{ - struct IUSBController_vtbl *vtbl; -}; -/* End of struct IUSBController Declaration */ - - -/* Start of struct IUSBDevice Declaration */ -# define IUSBDEVICE_IID_STR "f8967b0b-4483-400f-92b5-8b675d98a85b" -# define IUSBDEVICE_IID { \ - 0xf8967b0b, 0x4483, 0x400f, \ - { 0x92, 0xb5, 0x8b, 0x67, 0x5d, 0x98, 0xa8, 0x5b } \ -} -struct IUSBDevice_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IUSBDevice *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetVendorId)(IUSBDevice *pThis, PRUint16 *ven= dorId); - - nsresult PR_COM_METHOD (*GetProductId)(IUSBDevice *pThis, PRUint16 *pr= oductId); - - nsresult PR_COM_METHOD (*GetRevision)(IUSBDevice *pThis, PRUint16 *rev= ision); - - nsresult PR_COM_METHOD (*GetManufacturer)(IUSBDevice *pThis, PRUnichar= * *manufacturer); - - nsresult PR_COM_METHOD (*GetProduct)(IUSBDevice *pThis, PRUnichar * *p= roduct); - - nsresult PR_COM_METHOD (*GetSerialNumber)(IUSBDevice *pThis, PRUnichar= * *serialNumber); - - nsresult PR_COM_METHOD (*GetAddress)(IUSBDevice *pThis, PRUnichar * *a= ddress); - - nsresult PR_COM_METHOD (*GetPort)(IUSBDevice *pThis, PRUint16 *port); - - nsresult PR_COM_METHOD (*GetVersion)(IUSBDevice *pThis, PRUint16 *vers= ion); - - nsresult PR_COM_METHOD (*GetPortVersion)(IUSBDevice *pThis, PRUint16 *= portVersion); - - nsresult PR_COM_METHOD (*GetRemote)(IUSBDevice *pThis, PRBool *remote); - -}; - -struct IUSBDevice -{ - struct IUSBDevice_vtbl *vtbl; -}; -/* End of struct IUSBDevice Declaration */ - - -/* Start of struct IUSBDeviceFilter Declaration */ -# define IUSBDEVICEFILTER_IID_STR "d6831fb4-1a94-4c2c-96ef-8d0d6192066d" -# define IUSBDEVICEFILTER_IID { \ - 0xd6831fb4, 0x1a94, 0x4c2c, \ - { 0x96, 0xef, 0x8d, 0x0d, 0x61, 0x92, 0x06, 0x6d } \ -} -struct IUSBDeviceFilter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IUSBDeviceFilter *pThis, PRUnichar *= *name); - nsresult PR_COM_METHOD (*SetName)(IUSBDeviceFilter *pThis, PRUnichar *= name); - - nsresult PR_COM_METHOD (*GetActive)(IUSBDeviceFilter *pThis, PRBool *a= ctive); - nsresult PR_COM_METHOD (*SetActive)(IUSBDeviceFilter *pThis, PRBool ac= tive); - - nsresult PR_COM_METHOD (*GetVendorId)(IUSBDeviceFilter *pThis, PRUnich= ar * *vendorId); - nsresult PR_COM_METHOD (*SetVendorId)(IUSBDeviceFilter *pThis, PRUnich= ar * vendorId); - - nsresult PR_COM_METHOD (*GetProductId)(IUSBDeviceFilter *pThis, PRUnic= har * *productId); - nsresult PR_COM_METHOD (*SetProductId)(IUSBDeviceFilter *pThis, PRUnic= har * productId); - - nsresult PR_COM_METHOD (*GetRevision)(IUSBDeviceFilter *pThis, PRUnich= ar * *revision); - nsresult PR_COM_METHOD (*SetRevision)(IUSBDeviceFilter *pThis, PRUnich= ar * revision); - - nsresult PR_COM_METHOD (*GetManufacturer)(IUSBDeviceFilter *pThis, PRU= nichar * *manufacturer); - nsresult PR_COM_METHOD (*SetManufacturer)(IUSBDeviceFilter *pThis, PRU= nichar * manufacturer); - - nsresult PR_COM_METHOD (*GetProduct)(IUSBDeviceFilter *pThis, PRUnicha= r * *product); - nsresult PR_COM_METHOD (*SetProduct)(IUSBDeviceFilter *pThis, PRUnicha= r * product); - - nsresult PR_COM_METHOD (*GetSerialNumber)(IUSBDeviceFilter *pThis, PRU= nichar * *serialNumber); - nsresult PR_COM_METHOD (*SetSerialNumber)(IUSBDeviceFilter *pThis, PRU= nichar * serialNumber); - - nsresult PR_COM_METHOD (*GetPort)(IUSBDeviceFilter *pThis, PRUnichar *= *port); - nsresult PR_COM_METHOD (*SetPort)(IUSBDeviceFilter *pThis, PRUnichar *= port); - - nsresult PR_COM_METHOD (*GetRemote)(IUSBDeviceFilter *pThis, PRUnichar= * *remote); - nsresult PR_COM_METHOD (*SetRemote)(IUSBDeviceFilter *pThis, PRUnichar= * remote); - - nsresult PR_COM_METHOD (*GetMaskedInterfaces)(IUSBDeviceFilter *pThis,= PRUint32 *maskedInterfaces); - nsresult PR_COM_METHOD (*SetMaskedInterfaces)(IUSBDeviceFilter *pThis,= PRUint32 maskedInterfaces); - -}; - -struct IUSBDeviceFilter -{ - struct IUSBDeviceFilter_vtbl *vtbl; -}; -/* End of struct IUSBDeviceFilter Declaration */ - - -/* Start of struct IHostUSBDevice Declaration */ -# define IHOSTUSBDEVICE_IID_STR "173b4b44-d268-4334-a00d-b6521c9a740a" -# define IHOSTUSBDEVICE_IID { \ - 0x173b4b44, 0xd268, 0x4334, \ - { 0xa0, 0x0d, 0xb6, 0x52, 0x1c, 0x9a, 0x74, 0x0a } \ -} -struct IHostUSBDevice_vtbl -{ - struct IUSBDevice_vtbl iusbdevice; - - nsresult PR_COM_METHOD (*GetState)(IHostUSBDevice *pThis, PRUint32 *st= ate); - -}; - -struct IHostUSBDevice -{ - struct IHostUSBDevice_vtbl *vtbl; -}; -/* End of struct IHostUSBDevice Declaration */ - - -/* Start of struct IHostUSBDeviceFilter Declaration */ -# define IHOSTUSBDEVICEFILTER_IID_STR "4cc70246-d74a-400f-8222-3900489c03= 74" -# define IHOSTUSBDEVICEFILTER_IID { \ - 0x4cc70246, 0xd74a, 0x400f, \ - { 0x82, 0x22, 0x39, 0x00, 0x48, 0x9c, 0x03, 0x74 } \ -} -struct IHostUSBDeviceFilter_vtbl -{ - struct IUSBDeviceFilter_vtbl iusbdevicefilter; - - nsresult PR_COM_METHOD (*GetAction)(IHostUSBDeviceFilter *pThis, PRUin= t32 *action); - nsresult PR_COM_METHOD (*SetAction)(IHostUSBDeviceFilter *pThis, PRUin= t32 action); - -}; - -struct IHostUSBDeviceFilter -{ - struct IHostUSBDeviceFilter_vtbl *vtbl; -}; -/* End of struct IHostUSBDeviceFilter Declaration */ - - -/* Start of struct IAudioAdapter Declaration */ -# define IAUDIOADAPTER_IID_STR "921873db-5f3f-4b69-91f9-7be9e535a2cb" -# define IAUDIOADAPTER_IID { \ - 0x921873db, 0x5f3f, 0x4b69, \ - { 0x91, 0xf9, 0x7b, 0xe9, 0xe5, 0x35, 0xa2, 0xcb } \ -} -struct IAudioAdapter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IAudioAdapter *pThis, PRBool *ena= bled); - nsresult PR_COM_METHOD (*SetEnabled)(IAudioAdapter *pThis, PRBool enab= led); - - nsresult PR_COM_METHOD (*GetAudioController)(IAudioAdapter *pThis, PRU= int32 *audioController); - nsresult PR_COM_METHOD (*SetAudioController)(IAudioAdapter *pThis, PRU= int32 audioController); - - nsresult PR_COM_METHOD (*GetAudioDriver)(IAudioAdapter *pThis, PRUint3= 2 *audioDriver); - nsresult PR_COM_METHOD (*SetAudioDriver)(IAudioAdapter *pThis, PRUint3= 2 audioDriver); - -}; - -struct IAudioAdapter -{ - struct IAudioAdapter_vtbl *vtbl; -}; -/* End of struct IAudioAdapter Declaration */ - - -/* Start of struct IVRDEServer Declaration */ -# define IVRDESERVER_IID_STR "d38de40a-c2c1-4e95-b5a4-167b05f5694c" -# define IVRDESERVER_IID { \ - 0xd38de40a, 0xc2c1, 0x4e95, \ - { 0xb5, 0xa4, 0x16, 0x7b, 0x05, 0xf5, 0x69, 0x4c } \ -} -struct IVRDEServer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IVRDEServer *pThis, PRBool *enabl= ed); - nsresult PR_COM_METHOD (*SetEnabled)(IVRDEServer *pThis, PRBool enable= d); - - nsresult PR_COM_METHOD (*GetAuthType)(IVRDEServer *pThis, PRUint32 *au= thType); - nsresult PR_COM_METHOD (*SetAuthType)(IVRDEServer *pThis, PRUint32 aut= hType); - - nsresult PR_COM_METHOD (*GetAuthTimeout)(IVRDEServer *pThis, PRUint32 = *authTimeout); - nsresult PR_COM_METHOD (*SetAuthTimeout)(IVRDEServer *pThis, PRUint32 = authTimeout); - - nsresult PR_COM_METHOD (*GetAllowMultiConnection)(IVRDEServer *pThis, = PRBool *allowMultiConnection); - nsresult PR_COM_METHOD (*SetAllowMultiConnection)(IVRDEServer *pThis, = PRBool allowMultiConnection); - - nsresult PR_COM_METHOD (*GetReuseSingleConnection)(IVRDEServer *pThis,= PRBool *reuseSingleConnection); - nsresult PR_COM_METHOD (*SetReuseSingleConnection)(IVRDEServer *pThis,= PRBool reuseSingleConnection); - - nsresult PR_COM_METHOD (*GetVRDEExtPack)(IVRDEServer *pThis, PRUnichar= * *VRDEExtPack); - nsresult PR_COM_METHOD (*SetVRDEExtPack)(IVRDEServer *pThis, PRUnichar= * VRDEExtPack); - - nsresult PR_COM_METHOD (*GetAuthLibrary)(IVRDEServer *pThis, PRUnichar= * *authLibrary); - nsresult PR_COM_METHOD (*SetAuthLibrary)(IVRDEServer *pThis, PRUnichar= * authLibrary); - - nsresult PR_COM_METHOD (*GetVRDEProperties)(IVRDEServer *pThis, PRUint= 32 *VRDEPropertiesSize, PRUnichar * **VRDEProperties); - - nsresult PR_COM_METHOD (*SetVRDEProperty)( - IVRDEServer *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetVRDEProperty)( - IVRDEServer *pThis, - PRUnichar * key, - PRUnichar * * value - ); - -}; - -struct IVRDEServer -{ - struct IVRDEServer_vtbl *vtbl; -}; -/* End of struct IVRDEServer Declaration */ - - -/* Start of struct ISharedFolder Declaration */ -# define ISHAREDFOLDER_IID_STR "8388da11-b559-4574-a5b7-2bd7acd5cef8" -# define ISHAREDFOLDER_IID { \ - 0x8388da11, 0xb559, 0x4574, \ - { 0xa5, 0xb7, 0x2b, 0xd7, 0xac, 0xd5, 0xce, 0xf8 } \ -} -struct ISharedFolder_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(ISharedFolder *pThis, PRUnichar * *n= ame); - - nsresult PR_COM_METHOD (*GetHostPath)(ISharedFolder *pThis, PRUnichar = * *hostPath); - - nsresult PR_COM_METHOD (*GetAccessible)(ISharedFolder *pThis, PRBool *= accessible); - - nsresult PR_COM_METHOD (*GetWritable)(ISharedFolder *pThis, PRBool *wr= itable); - - nsresult PR_COM_METHOD (*GetAutoMount)(ISharedFolder *pThis, PRBool *a= utoMount); - - nsresult PR_COM_METHOD (*GetLastAccessError)(ISharedFolder *pThis, PRU= nichar * *lastAccessError); - -}; - -struct ISharedFolder -{ - struct ISharedFolder_vtbl *vtbl; -}; -/* End of struct ISharedFolder Declaration */ - - -/* Start of struct IInternalSessionControl Declaration */ -# define IINTERNALSESSIONCONTROL_IID_STR "3e83963a-1c3b-400d-8c5f-f2d077b= 0a597" -# define IINTERNALSESSIONCONTROL_IID { \ - 0x3e83963a, 0x1c3b, 0x400d, \ - { 0x8c, 0x5f, 0xf2, 0xd0, 0x77, 0xb0, 0xa5, 0x97 } \ -} -struct IInternalSessionControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetPID)( - IInternalSessionControl *pThis, - PRUint32 * pid - ); - - nsresult PR_COM_METHOD (*GetRemoteConsole)( - IInternalSessionControl *pThis, - IConsole * * console - ); - - nsresult PR_COM_METHOD (*AssignMachine)( - IInternalSessionControl *pThis, - IMachine * machine, - PRUint32 lockType - ); - - nsresult PR_COM_METHOD (*AssignRemoteMachine)( - IInternalSessionControl *pThis, - IMachine * machine, - IConsole * console - ); - - nsresult PR_COM_METHOD (*UpdateMachineState)( - IInternalSessionControl *pThis, - PRUint32 aMachineState - ); - - nsresult PR_COM_METHOD (*Uninitialize)(IInternalSessionControl *pThis = ); - - nsresult PR_COM_METHOD (*OnNetworkAdapterChange)( - IInternalSessionControl *pThis, - INetworkAdapter * networkAdapter, - PRBool changeAdapter - ); - - nsresult PR_COM_METHOD (*OnSerialPortChange)( - IInternalSessionControl *pThis, - ISerialPort * serialPort - ); - - nsresult PR_COM_METHOD (*OnParallelPortChange)( - IInternalSessionControl *pThis, - IParallelPort * parallelPort - ); - - nsresult PR_COM_METHOD (*OnStorageControllerChange)(IInternalSessionCo= ntrol *pThis ); - - nsresult PR_COM_METHOD (*OnMediumChange)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRBool force - ); - - nsresult PR_COM_METHOD (*OnStorageDeviceChange)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRBool remove - ); - - nsresult PR_COM_METHOD (*OnClipboardModeChange)( - IInternalSessionControl *pThis, - PRUint32 clipboardMode - ); - - nsresult PR_COM_METHOD (*OnDragAndDropModeChange)( - IInternalSessionControl *pThis, - PRUint32 dragAndDropMode - ); - - nsresult PR_COM_METHOD (*OnCPUChange)( - IInternalSessionControl *pThis, - PRUint32 cpu, - PRBool add - ); - - nsresult PR_COM_METHOD (*OnCPUExecutionCapChange)( - IInternalSessionControl *pThis, - PRUint32 executionCap - ); - - nsresult PR_COM_METHOD (*OnVRDEServerChange)( - IInternalSessionControl *pThis, - PRBool restart - ); - - nsresult PR_COM_METHOD (*OnUSBControllerChange)(IInternalSessionContro= l *pThis ); - - nsresult PR_COM_METHOD (*OnSharedFolderChange)( - IInternalSessionControl *pThis, - PRBool global - ); - - nsresult PR_COM_METHOD (*OnUSBDeviceAttach)( - IInternalSessionControl *pThis, - IUSBDevice * device, - IVirtualBoxErrorInfo * error, - PRUint32 maskedInterfaces - ); - - nsresult PR_COM_METHOD (*OnUSBDeviceDetach)( - IInternalSessionControl *pThis, - PRUnichar * id, - IVirtualBoxErrorInfo * error - ); - - nsresult PR_COM_METHOD (*OnShowWindow)( - IInternalSessionControl *pThis, - PRBool check, - PRBool * canShow, - PRInt64 * winId - ); - - nsresult PR_COM_METHOD (*OnBandwidthGroupChange)( - IInternalSessionControl *pThis, - IBandwidthGroup * bandwidthGroup - ); - - nsresult PR_COM_METHOD (*AccessGuestProperty)( - IInternalSessionControl *pThis, - PRUnichar * name, - PRUnichar * value, - PRUnichar * flags, - PRBool isSetter, - PRUnichar * * retValue, - PRInt64 * retTimestamp, - PRUnichar * * retFlags - ); - - nsresult PR_COM_METHOD (*EnumerateGuestProperties)( - IInternalSessionControl *pThis, - PRUnichar * patterns, - PRUint32 *keySize, - PRUnichar *** key, - PRUint32 *valueSize, - PRUnichar *** value, - PRUint32 *timestampSize, - PRInt64* timestamp, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult PR_COM_METHOD (*OnlineMergeMedium)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRUint32 sourceIdx, - PRUint32 targetIdx, - IMedium * source, - IMedium * target, - PRBool mergeForward, - IMedium * parentForTarget, - PRUint32 childrenToReparentSize, - IMedium ** childrenToReparent, - IProgress * progress - ); - - nsresult PR_COM_METHOD (*EnableVMMStatistics)( - IInternalSessionControl *pThis, - PRBool enable - ); - -}; - -struct IInternalSessionControl -{ - struct IInternalSessionControl_vtbl *vtbl; -}; -/* End of struct IInternalSessionControl Declaration */ - - -/* Start of struct ISession Declaration */ -# define ISESSION_IID_STR "12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D" -# define ISESSION_IID { \ - 0x12F4DCDB, 0x12B2, 0x4EC1, \ - { 0xB7, 0xCD, 0xDD, 0xD9, 0xF6, 0xC5, 0xBF, 0x4D } \ -} -struct ISession_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetState)(ISession *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetType)(ISession *pThis, PRUint32 *type); - - nsresult PR_COM_METHOD (*GetMachine)(ISession *pThis, IMachine * *mach= ine); - - nsresult PR_COM_METHOD (*GetConsole)(ISession *pThis, IConsole * *cons= ole); - - nsresult PR_COM_METHOD (*UnlockMachine)(ISession *pThis ); - -}; - -struct ISession -{ - struct ISession_vtbl *vtbl; -}; -/* End of struct ISession Declaration */ - - -/* Start of struct IStorageController Declaration */ -# define ISTORAGECONTROLLER_IID_STR "a1556333-09b6-46d9-bfb7-fc239b7fbe1e" -# define ISTORAGECONTROLLER_IID { \ - 0xa1556333, 0x09b6, 0x46d9, \ - { 0xbf, 0xb7, 0xfc, 0x23, 0x9b, 0x7f, 0xbe, 0x1e } \ -} -struct IStorageController_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IStorageController *pThis, PRUnichar= * *name); - - nsresult PR_COM_METHOD (*GetMaxDevicesPerPortCount)(IStorageController= *pThis, PRUint32 *maxDevicesPerPortCount); - - nsresult PR_COM_METHOD (*GetMinPortCount)(IStorageController *pThis, P= RUint32 *minPortCount); - - nsresult PR_COM_METHOD (*GetMaxPortCount)(IStorageController *pThis, P= RUint32 *maxPortCount); - - nsresult PR_COM_METHOD (*GetInstance)(IStorageController *pThis, PRUin= t32 *instance); - nsresult PR_COM_METHOD (*SetInstance)(IStorageController *pThis, PRUin= t32 instance); - - nsresult PR_COM_METHOD (*GetPortCount)(IStorageController *pThis, PRUi= nt32 *portCount); - nsresult PR_COM_METHOD (*SetPortCount)(IStorageController *pThis, PRUi= nt32 portCount); - - nsresult PR_COM_METHOD (*GetBus)(IStorageController *pThis, PRUint32 *= bus); - - nsresult PR_COM_METHOD (*GetControllerType)(IStorageController *pThis,= PRUint32 *controllerType); - nsresult PR_COM_METHOD (*SetControllerType)(IStorageController *pThis,= PRUint32 controllerType); - - nsresult PR_COM_METHOD (*GetUseHostIOCache)(IStorageController *pThis,= PRBool *useHostIOCache); - nsresult PR_COM_METHOD (*SetUseHostIOCache)(IStorageController *pThis,= PRBool useHostIOCache); - - nsresult PR_COM_METHOD (*GetBootable)(IStorageController *pThis, PRBoo= l *bootable); - -}; - -struct IStorageController -{ - struct IStorageController_vtbl *vtbl; -}; -/* End of struct IStorageController Declaration */ - - -/* Start of struct IPerformanceMetric Declaration */ -# define IPERFORMANCEMETRIC_IID_STR "2a1a60ae-9345-4019-ad53-d34ba41cbfe9" -# define IPERFORMANCEMETRIC_IID { \ - 0x2a1a60ae, 0x9345, 0x4019, \ - { 0xad, 0x53, 0xd3, 0x4b, 0xa4, 0x1c, 0xbf, 0xe9 } \ -} -struct IPerformanceMetric_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMetricName)(IPerformanceMetric *pThis, PRU= nichar * *metricName); - - nsresult PR_COM_METHOD (*GetObject)(IPerformanceMetric *pThis, nsISupp= orts * *object); - - nsresult PR_COM_METHOD (*GetDescription)(IPerformanceMetric *pThis, PR= Unichar * *description); - - nsresult PR_COM_METHOD (*GetPeriod)(IPerformanceMetric *pThis, PRUint3= 2 *period); - - nsresult PR_COM_METHOD (*GetCount)(IPerformanceMetric *pThis, PRUint32= *count); - - nsresult PR_COM_METHOD (*GetUnit)(IPerformanceMetric *pThis, PRUnichar= * *unit); - - nsresult PR_COM_METHOD (*GetMinimumValue)(IPerformanceMetric *pThis, P= RInt32 *minimumValue); - - nsresult PR_COM_METHOD (*GetMaximumValue)(IPerformanceMetric *pThis, P= RInt32 *maximumValue); - -}; - -struct IPerformanceMetric -{ - struct IPerformanceMetric_vtbl *vtbl; -}; -/* End of struct IPerformanceMetric Declaration */ - - -/* Start of struct IPerformanceCollector Declaration */ -# define IPERFORMANCECOLLECTOR_IID_STR "e22e1acb-ac4a-43bb-a31c-17321659b= 0c6" -# define IPERFORMANCECOLLECTOR_IID { \ - 0xe22e1acb, 0xac4a, 0x43bb, \ - { 0xa3, 0x1c, 0x17, 0x32, 0x16, 0x59, 0xb0, 0xc6 } \ -} -struct IPerformanceCollector_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMetricNames)(IPerformanceCollector *pThis,= PRUint32 *metricNamesSize, PRUnichar * **metricNames); - - nsresult PR_COM_METHOD (*GetMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *metricsSize, - IPerformanceMetric *** metrics - ); - - nsresult PR_COM_METHOD (*SetupMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 period, - PRUint32 count, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult PR_COM_METHOD (*EnableMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult PR_COM_METHOD (*DisableMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult PR_COM_METHOD (*QueryMetricsData)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *returnMetricNamesSize, - PRUnichar *** returnMetricNames, - PRUint32 *returnObjectsSize, - nsISupports ** returnObjects, - PRUint32 *returnUnitsSize, - PRUnichar *** returnUnits, - PRUint32 *returnScalesSize, - PRUint32* returnScales, - PRUint32 *returnSequenceNumbersSize, - PRUint32* returnSequenceNumbers, - PRUint32 *returnDataIndicesSize, - PRUint32* returnDataIndices, - PRUint32 *returnDataLengthsSize, - PRUint32* returnDataLengths, - PRUint32 *returnDataSize, - PRInt32** returnData - ); - -}; - -struct IPerformanceCollector -{ - struct IPerformanceCollector_vtbl *vtbl; -}; -/* End of struct IPerformanceCollector Declaration */ - - -/* Start of struct INATEngine Declaration */ -# define INATENGINE_IID_STR "26451b99-3b2d-4dcb-8e4b-d63654218175" -# define INATENGINE_IID { \ - 0x26451b99, 0x3b2d, 0x4dcb, \ - { 0x8e, 0x4b, 0xd6, 0x36, 0x54, 0x21, 0x81, 0x75 } \ -} -struct INATEngine_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetNetwork)(INATEngine *pThis, PRUnichar * *n= etwork); - nsresult PR_COM_METHOD (*SetNetwork)(INATEngine *pThis, PRUnichar * ne= twork); - - nsresult PR_COM_METHOD (*GetHostIP)(INATEngine *pThis, PRUnichar * *ho= stIP); - nsresult PR_COM_METHOD (*SetHostIP)(INATEngine *pThis, PRUnichar * hos= tIP); - - nsresult PR_COM_METHOD (*GetTFTPPrefix)(INATEngine *pThis, PRUnichar *= *TFTPPrefix); - nsresult PR_COM_METHOD (*SetTFTPPrefix)(INATEngine *pThis, PRUnichar *= TFTPPrefix); - - nsresult PR_COM_METHOD (*GetTFTPBootFile)(INATEngine *pThis, PRUnichar= * *TFTPBootFile); - nsresult PR_COM_METHOD (*SetTFTPBootFile)(INATEngine *pThis, PRUnichar= * TFTPBootFile); - - nsresult PR_COM_METHOD (*GetTFTPNextServer)(INATEngine *pThis, PRUnich= ar * *TFTPNextServer); - nsresult PR_COM_METHOD (*SetTFTPNextServer)(INATEngine *pThis, PRUnich= ar * TFTPNextServer); - - nsresult PR_COM_METHOD (*GetAliasMode)(INATEngine *pThis, PRUint32 *al= iasMode); - nsresult PR_COM_METHOD (*SetAliasMode)(INATEngine *pThis, PRUint32 ali= asMode); - - nsresult PR_COM_METHOD (*GetDNSPassDomain)(INATEngine *pThis, PRBool *= DNSPassDomain); - nsresult PR_COM_METHOD (*SetDNSPassDomain)(INATEngine *pThis, PRBool D= NSPassDomain); - - nsresult PR_COM_METHOD (*GetDNSProxy)(INATEngine *pThis, PRBool *DNSPr= oxy); - nsresult PR_COM_METHOD (*SetDNSProxy)(INATEngine *pThis, PRBool DNSPro= xy); - - nsresult PR_COM_METHOD (*GetDNSUseHostResolver)(INATEngine *pThis, PRB= ool *DNSUseHostResolver); - nsresult PR_COM_METHOD (*SetDNSUseHostResolver)(INATEngine *pThis, PRB= ool DNSUseHostResolver); - - nsresult PR_COM_METHOD (*GetRedirects)(INATEngine *pThis, PRUint32 *re= directsSize, PRUnichar * **redirects); - - nsresult PR_COM_METHOD (*SetNetworkSettings)( - INATEngine *pThis, - PRUint32 mtu, - PRUint32 sockSnd, - PRUint32 sockRcv, - PRUint32 TcpWndSnd, - PRUint32 TcpWndRcv - ); - - nsresult PR_COM_METHOD (*GetNetworkSettings)( - INATEngine *pThis, - PRUint32 * mtu, - PRUint32 * sockSnd, - PRUint32 * sockRcv, - PRUint32 * TcpWndSnd, - PRUint32 * TcpWndRcv - ); - - nsresult PR_COM_METHOD (*AddRedirect)( - INATEngine *pThis, - PRUnichar * name, - PRUint32 proto, - PRUnichar * hostIP, - PRUint16 hostPort, - PRUnichar * guestIP, - PRUint16 guestPort - ); - - nsresult PR_COM_METHOD (*RemoveRedirect)( - INATEngine *pThis, - PRUnichar * name - ); - -}; - -struct INATEngine -{ - struct INATEngine_vtbl *vtbl; -}; -/* End of struct INATEngine Declaration */ - - -/* Start of struct IExtPackPlugIn Declaration */ -# define IEXTPACKPLUGIN_IID_STR "58000040-e718-4746-bbce-4b86d96da461" -# define IEXTPACKPLUGIN_IID { \ - 0x58000040, 0xe718, 0x4746, \ - { 0xbb, 0xce, 0x4b, 0x86, 0xd9, 0x6d, 0xa4, 0x61 } \ -} -struct IExtPackPlugIn_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IExtPackPlugIn *pThis, PRUnichar * *= name); - - nsresult PR_COM_METHOD (*GetDescription)(IExtPackPlugIn *pThis, PRUnic= har * *description); - - nsresult PR_COM_METHOD (*GetFrontend)(IExtPackPlugIn *pThis, PRUnichar= * *frontend); - - nsresult PR_COM_METHOD (*GetModulePath)(IExtPackPlugIn *pThis, PRUnich= ar * *modulePath); - -}; - -struct IExtPackPlugIn -{ - struct IExtPackPlugIn_vtbl *vtbl; -}; -/* End of struct IExtPackPlugIn Declaration */ - - -/* Start of struct IExtPackBase Declaration */ -# define IEXTPACKBASE_IID_STR "f79b75d8-2890-4f34-ffff-ffffa144e82c" -# define IEXTPACKBASE_IID { \ - 0xf79b75d8, 0x2890, 0x4f34, \ - { 0xff, 0xff, 0xff, 0xff, 0xa1, 0x44, 0xe8, 0x2c } \ -} -struct IExtPackBase_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IExtPackBase *pThis, PRUnichar * *na= me); - - nsresult PR_COM_METHOD (*GetDescription)(IExtPackBase *pThis, PRUnicha= r * *description); - - nsresult PR_COM_METHOD (*GetVersion)(IExtPackBase *pThis, PRUnichar * = *version); - - nsresult PR_COM_METHOD (*GetRevision)(IExtPackBase *pThis, PRUint32 *r= evision); - - nsresult PR_COM_METHOD (*GetEdition)(IExtPackBase *pThis, PRUnichar * = *edition); - - nsresult PR_COM_METHOD (*GetVRDEModule)(IExtPackBase *pThis, PRUnichar= * *VRDEModule); - - nsresult PR_COM_METHOD (*GetPlugIns)(IExtPackBase *pThis, PRUint32 *pl= ugInsSize, IExtPackPlugIn * **plugIns); - - nsresult PR_COM_METHOD (*GetUsable)(IExtPackBase *pThis, PRBool *usabl= e); - - nsresult PR_COM_METHOD (*GetWhyUnusable)(IExtPackBase *pThis, PRUnicha= r * *whyUnusable); - - nsresult PR_COM_METHOD (*GetShowLicense)(IExtPackBase *pThis, PRBool *= showLicense); - - nsresult PR_COM_METHOD (*GetLicense)(IExtPackBase *pThis, PRUnichar * = *license); - - nsresult PR_COM_METHOD (*QueryLicense)( - IExtPackBase *pThis, - PRUnichar * preferredLocale, - PRUnichar * preferredLanguage, - PRUnichar * format, - PRUnichar * * licenseText - ); - -}; - -struct IExtPackBase -{ - struct IExtPackBase_vtbl *vtbl; -}; -/* End of struct IExtPackBase Declaration */ - - -/* Start of struct IExtPack Declaration */ -# define IEXTPACK_IID_STR "431685da-3618-4ebc-b038-833ba829b4b2" -# define IEXTPACK_IID { \ - 0x431685da, 0x3618, 0x4ebc, \ - { 0xb0, 0x38, 0x83, 0x3b, 0xa8, 0x29, 0xb4, 0xb2 } \ -} -struct IExtPack_vtbl -{ - struct IExtPackBase_vtbl iextpackbase; - - nsresult PR_COM_METHOD (*QueryObject)( - IExtPack *pThis, - PRUnichar * objUuid, - nsISupports * * returnInterface - ); - -}; - -struct IExtPack -{ - struct IExtPack_vtbl *vtbl; -}; -/* End of struct IExtPack Declaration */ - - -/* Start of struct IExtPackFile Declaration */ -# define IEXTPACKFILE_IID_STR "b6b49f55-efcc-4f08-b486-56e8d8afb10b" -# define IEXTPACKFILE_IID { \ - 0xb6b49f55, 0xefcc, 0x4f08, \ - { 0xb4, 0x86, 0x56, 0xe8, 0xd8, 0xaf, 0xb1, 0x0b } \ -} -struct IExtPackFile_vtbl -{ - struct IExtPackBase_vtbl iextpackbase; - - nsresult PR_COM_METHOD (*GetFilePath)(IExtPackFile *pThis, PRUnichar *= *filePath); - - nsresult PR_COM_METHOD (*Install)( - IExtPackFile *pThis, - PRBool replace, - PRUnichar * displayInfo, - IProgress * * progess - ); - -}; - -struct IExtPackFile -{ - struct IExtPackFile_vtbl *vtbl; -}; -/* End of struct IExtPackFile Declaration */ - - -/* Start of struct IExtPackManager Declaration */ -# define IEXTPACKMANAGER_IID_STR "3295e6ce-b051-47b2-9514-2c588bfe7554" -# define IEXTPACKMANAGER_IID { \ - 0x3295e6ce, 0xb051, 0x47b2, \ - { 0x95, 0x14, 0x2c, 0x58, 0x8b, 0xfe, 0x75, 0x54 } \ -} -struct IExtPackManager_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetInstalledExtPacks)(IExtPackManager *pThis,= PRUint32 *installedExtPacksSize, IExtPack * **installedExtPacks); - - nsresult PR_COM_METHOD (*Find)( - IExtPackManager *pThis, - PRUnichar * name, - IExtPack * * returnData - ); - - nsresult PR_COM_METHOD (*OpenExtPackFile)( - IExtPackManager *pThis, - PRUnichar * path, - IExtPackFile * * file - ); - - nsresult PR_COM_METHOD (*Uninstall)( - IExtPackManager *pThis, - PRUnichar * name, - PRBool forcedRemoval, - PRUnichar * displayInfo, - IProgress * * progess - ); - - nsresult PR_COM_METHOD (*Cleanup)(IExtPackManager *pThis ); - - nsresult PR_COM_METHOD (*QueryAllPlugInsForFrontend)( - IExtPackManager *pThis, - PRUnichar * frontendName, - PRUint32 *plugInModulesSize, - PRUnichar *** plugInModules - ); - - nsresult PR_COM_METHOD (*IsExtPackUsable)( - IExtPackManager *pThis, - PRUnichar * name, - PRBool * usable - ); - -}; - -struct IExtPackManager -{ - struct IExtPackManager_vtbl *vtbl; -}; -/* End of struct IExtPackManager Declaration */ - - -/* Start of struct IBandwidthGroup Declaration */ -# define IBANDWIDTHGROUP_IID_STR "badea2d7-0261-4146-89f0-6a57cc34833d" -# define IBANDWIDTHGROUP_IID { \ - 0xbadea2d7, 0x0261, 0x4146, \ - { 0x89, 0xf0, 0x6a, 0x57, 0xcc, 0x34, 0x83, 0x3d } \ -} -struct IBandwidthGroup_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IBandwidthGroup *pThis, PRUnichar * = *name); - - nsresult PR_COM_METHOD (*GetType)(IBandwidthGroup *pThis, PRUint32 *ty= pe); - - nsresult PR_COM_METHOD (*GetReference)(IBandwidthGroup *pThis, PRUint3= 2 *reference); - - nsresult PR_COM_METHOD (*GetMaxBytesPerSec)(IBandwidthGroup *pThis, PR= Int64 *maxBytesPerSec); - nsresult PR_COM_METHOD (*SetMaxBytesPerSec)(IBandwidthGroup *pThis, PR= Int64 maxBytesPerSec); - -}; - -struct IBandwidthGroup -{ - struct IBandwidthGroup_vtbl *vtbl; -}; -/* End of struct IBandwidthGroup Declaration */ - - -/* Start of struct IBandwidthControl Declaration */ -# define IBANDWIDTHCONTROL_IID_STR "e2eb3930-d2f4-4f87-be17-0707e30f019f" -# define IBANDWIDTHCONTROL_IID { \ - 0xe2eb3930, 0xd2f4, 0x4f87, \ - { 0xbe, 0x17, 0x07, 0x07, 0xe3, 0x0f, 0x01, 0x9f } \ -} -struct IBandwidthControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetNumGroups)(IBandwidthControl *pThis, PRUin= t32 *numGroups); - - nsresult PR_COM_METHOD (*CreateBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name, - PRUint32 type, - PRInt64 maxBytesPerSec - ); - - nsresult PR_COM_METHOD (*DeleteBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*GetBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name, - IBandwidthGroup * * bandwidthGroup - ); - - nsresult PR_COM_METHOD (*GetAllBandwidthGroups)( - IBandwidthControl *pThis, - PRUint32 *bandwidthGroupsSize, - IBandwidthGroup *** bandwidthGroups - ); - -}; - -struct IBandwidthControl -{ - struct IBandwidthControl_vtbl *vtbl; -}; -/* End of struct IBandwidthControl Declaration */ - - -/* Start of struct IVirtualBoxClient Declaration */ -# define IVIRTUALBOXCLIENT_IID_STR "5fe0bd48-1181-40d1-991f-3b02f269a823" -# define IVIRTUALBOXCLIENT_IID { \ - 0x5fe0bd48, 0x1181, 0x40d1, \ - { 0x99, 0x1f, 0x3b, 0x02, 0xf2, 0x69, 0xa8, 0x23 } \ -} -struct IVirtualBoxClient_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetVirtualBox)(IVirtualBoxClient *pThis, IVir= tualBox * *virtualBox); - - nsresult PR_COM_METHOD (*GetSession)(IVirtualBoxClient *pThis, ISessio= n * *session); - - nsresult PR_COM_METHOD (*GetEventSource)(IVirtualBoxClient *pThis, IEv= entSource * *eventSource); - -}; - -struct IVirtualBoxClient -{ - struct IVirtualBoxClient_vtbl *vtbl; -}; -/* End of struct IVirtualBoxClient Declaration */ - - -/* Start of struct IEventSource Declaration */ -# define IEVENTSOURCE_IID_STR "9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538" -# define IEVENTSOURCE_IID { \ - 0x9b6e1aee, 0x35f3, 0x4f4d, \ - { 0xb5, 0xbb, 0xed, 0x0e, 0xce, 0xfd, 0x85, 0x38 } \ -} -struct IEventSource_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*CreateListener)( - IEventSource *pThis, - IEventListener * * listener - ); - - nsresult PR_COM_METHOD (*CreateAggregator)( - IEventSource *pThis, - PRUint32 subordinatesSize, - IEventSource ** subordinates, - IEventSource * * result - ); - - nsresult PR_COM_METHOD (*RegisterListener)( - IEventSource *pThis, - IEventListener * listener, - PRUint32 interestingSize, - PRUint32* interesting, - PRBool active - ); - - nsresult PR_COM_METHOD (*UnregisterListener)( - IEventSource *pThis, - IEventListener * listener - ); - - nsresult PR_COM_METHOD (*FireEvent)( - IEventSource *pThis, - IEvent * event, - PRInt32 timeout, - PRBool * result - ); - - nsresult PR_COM_METHOD (*GetEvent)( - IEventSource *pThis, - IEventListener * listener, - PRInt32 timeout, - IEvent * * event - ); - - nsresult PR_COM_METHOD (*EventProcessed)( - IEventSource *pThis, - IEventListener * listener, - IEvent * event - ); - -}; - -struct IEventSource -{ - struct IEventSource_vtbl *vtbl; -}; -/* End of struct IEventSource Declaration */ - - -/* Start of struct IEventListener Declaration */ -# define IEVENTLISTENER_IID_STR "67099191-32e7-4f6c-85ee-422304c71b90" -# define IEVENTLISTENER_IID { \ - 0x67099191, 0x32e7, 0x4f6c, \ - { 0x85, 0xee, 0x42, 0x23, 0x04, 0xc7, 0x1b, 0x90 } \ -} -struct IEventListener_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*HandleEvent)( - IEventListener *pThis, - IEvent * event - ); - -}; - -struct IEventListener -{ - struct IEventListener_vtbl *vtbl; -}; -/* End of struct IEventListener Declaration */ - - -/* Start of struct IEvent Declaration */ -# define IEVENT_IID_STR "0ca2adba-8f30-401b-a8cd-fe31dbe839c0" -# define IEVENT_IID { \ - 0x0ca2adba, 0x8f30, 0x401b, \ - { 0xa8, 0xcd, 0xfe, 0x31, 0xdb, 0xe8, 0x39, 0xc0 } \ -} -struct IEvent_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetType)(IEvent *pThis, PRUint32 *type); - - nsresult PR_COM_METHOD (*GetSource)(IEvent *pThis, IEventSource * *sou= rce); - - nsresult PR_COM_METHOD (*GetWaitable)(IEvent *pThis, PRBool *waitable); - - nsresult PR_COM_METHOD (*SetProcessed)(IEvent *pThis ); - - nsresult PR_COM_METHOD (*WaitProcessed)( - IEvent *pThis, - PRInt32 timeout, - PRBool * result - ); - -}; - -struct IEvent -{ - struct IEvent_vtbl *vtbl; -}; -/* End of struct IEvent Declaration */ - - -/* Start of struct IReusableEvent Declaration */ -# define IREUSABLEEVENT_IID_STR "69bfb134-80f6-4266-8e20-16371f68fa25" -# define IREUSABLEEVENT_IID { \ - 0x69bfb134, 0x80f6, 0x4266, \ - { 0x8e, 0x20, 0x16, 0x37, 0x1f, 0x68, 0xfa, 0x25 } \ -} -struct IReusableEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetGeneration)(IReusableEvent *pThis, PRUint3= 2 *generation); - - nsresult PR_COM_METHOD (*Reuse)(IReusableEvent *pThis ); - -}; - -struct IReusableEvent -{ - struct IReusableEvent_vtbl *vtbl; -}; -/* End of struct IReusableEvent Declaration */ - - -/* Start of struct IMachineEvent Declaration */ -# define IMACHINEEVENT_IID_STR "92ed7b1a-0d96-40ed-ae46-a564d484325e" -# define IMACHINEEVENT_IID { \ - 0x92ed7b1a, 0x0d96, 0x40ed, \ - { 0xae, 0x46, 0xa5, 0x64, 0xd4, 0x84, 0x32, 0x5e } \ -} -struct IMachineEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMachineId)(IMachineEvent *pThis, PRUnichar= * *machineId); - -}; - -struct IMachineEvent -{ - struct IMachineEvent_vtbl *vtbl; -}; -/* End of struct IMachineEvent Declaration */ - - -/* Start of struct IMachineStateChangedEvent Declaration */ -# define IMACHINESTATECHANGEDEVENT_IID_STR "5748F794-48DF-438D-85EB-98FFD= 70D18C9" -# define IMACHINESTATECHANGEDEVENT_IID { \ - 0x5748F794, 0x48DF, 0x438D, \ - { 0x85, 0xEB, 0x98, 0xFF, 0xD7, 0x0D, 0x18, 0xC9 } \ -} -struct IMachineStateChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetState)(IMachineStateChangedEvent *pThis, P= RUint32 *state); - -}; - -struct IMachineStateChangedEvent -{ - struct IMachineStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IMachineStateChangedEvent Declaration */ - - -/* Start of struct IMachineDataChangedEvent Declaration */ -# define IMACHINEDATACHANGEDEVENT_IID_STR "abe94809-2e88-4436-83d7-50f3e6= 4d0503" -# define IMACHINEDATACHANGEDEVENT_IID { \ - 0xabe94809, 0x2e88, 0x4436, \ - { 0x83, 0xd7, 0x50, 0xf3, 0xe6, 0x4d, 0x05, 0x03 } \ -} -struct IMachineDataChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetTemporary)(IMachineDataChangedEvent *pThis= , PRBool *temporary); - -}; - -struct IMachineDataChangedEvent -{ - struct IMachineDataChangedEvent_vtbl *vtbl; -}; -/* End of struct IMachineDataChangedEvent Declaration */ - - -/* Start of struct IMediumRegisteredEvent Declaration */ -# define IMEDIUMREGISTEREDEVENT_IID_STR "53fac49a-b7f1-4a5a-a4ef-a11dd9c2= a458" -# define IMEDIUMREGISTEREDEVENT_IID { \ - 0x53fac49a, 0xb7f1, 0x4a5a, \ - { 0xa4, 0xef, 0xa1, 0x1d, 0xd9, 0xc2, 0xa4, 0x58 } \ -} -struct IMediumRegisteredEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMediumId)(IMediumRegisteredEvent *pThis, P= RUnichar * *mediumId); - - nsresult PR_COM_METHOD (*GetMediumType)(IMediumRegisteredEvent *pThis,= PRUint32 *mediumType); - - nsresult PR_COM_METHOD (*GetRegistered)(IMediumRegisteredEvent *pThis,= PRBool *registered); - -}; - -struct IMediumRegisteredEvent -{ - struct IMediumRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IMediumRegisteredEvent Declaration */ - - -/* Start of struct IMachineRegisteredEvent Declaration */ -# define IMACHINEREGISTEREDEVENT_IID_STR "c354a762-3ff2-4f2e-8f09-07382ee= 25088" -# define IMACHINEREGISTEREDEVENT_IID { \ - 0xc354a762, 0x3ff2, 0x4f2e, \ - { 0x8f, 0x09, 0x07, 0x38, 0x2e, 0xe2, 0x50, 0x88 } \ -} -struct IMachineRegisteredEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetRegistered)(IMachineRegisteredEvent *pThis= , PRBool *registered); - -}; - -struct IMachineRegisteredEvent -{ - struct IMachineRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IMachineRegisteredEvent Declaration */ - - -/* Start of struct ISessionStateChangedEvent Declaration */ -# define ISESSIONSTATECHANGEDEVENT_IID_STR "714a3eef-799a-4489-86cd-fe8e4= 5b2ff8e" -# define ISESSIONSTATECHANGEDEVENT_IID { \ - 0x714a3eef, 0x799a, 0x4489, \ - { 0x86, 0xcd, 0xfe, 0x8e, 0x45, 0xb2, 0xff, 0x8e } \ -} -struct ISessionStateChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetState)(ISessionStateChangedEvent *pThis, P= RUint32 *state); - -}; - -struct ISessionStateChangedEvent -{ - struct ISessionStateChangedEvent_vtbl *vtbl; -}; -/* End of struct ISessionStateChangedEvent Declaration */ - - -/* Start of struct IGuestPropertyChangedEvent Declaration */ -# define IGUESTPROPERTYCHANGEDEVENT_IID_STR "3f63597a-26f1-4edb-8dd2-6bdd= d0912368" -# define IGUESTPROPERTYCHANGEDEVENT_IID { \ - 0x3f63597a, 0x26f1, 0x4edb, \ - { 0x8d, 0xd2, 0x6b, 0xdd, 0xd0, 0x91, 0x23, 0x68 } \ -} -struct IGuestPropertyChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetName)(IGuestPropertyChangedEvent *pThis, P= RUnichar * *name); - - nsresult PR_COM_METHOD (*GetValue)(IGuestPropertyChangedEvent *pThis, = PRUnichar * *value); - - nsresult PR_COM_METHOD (*GetFlags)(IGuestPropertyChangedEvent *pThis, = PRUnichar * *flags); - -}; - -struct IGuestPropertyChangedEvent -{ - struct IGuestPropertyChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestPropertyChangedEvent Declaration */ - - -/* Start of struct ISnapshotEvent Declaration */ -# define ISNAPSHOTEVENT_IID_STR "21637b0e-34b8-42d3-acfb-7e96daf77c22" -# define ISNAPSHOTEVENT_IID { \ - 0x21637b0e, 0x34b8, 0x42d3, \ - { 0xac, 0xfb, 0x7e, 0x96, 0xda, 0xf7, 0x7c, 0x22 } \ -} -struct ISnapshotEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetSnapshotId)(ISnapshotEvent *pThis, PRUnich= ar * *snapshotId); - -}; - -struct ISnapshotEvent -{ - struct ISnapshotEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotEvent Declaration */ - - -/* Start of struct ISnapshotTakenEvent Declaration */ -# define ISNAPSHOTTAKENEVENT_IID_STR "d27c0b3d-6038-422c-b45e-6d4a0503d9f= 1" -# define ISNAPSHOTTAKENEVENT_IID { \ - 0xd27c0b3d, 0x6038, 0x422c, \ - { 0xb4, 0x5e, 0x6d, 0x4a, 0x05, 0x03, 0xd9, 0xf1 } \ -} -struct ISnapshotTakenEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotTakenEvent -{ - struct ISnapshotTakenEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotTakenEvent Declaration */ - - -/* Start of struct ISnapshotDeletedEvent Declaration */ -# define ISNAPSHOTDELETEDEVENT_IID_STR "c48f3401-4a9e-43f4-b7a7-54bd285e2= 2f4" -# define ISNAPSHOTDELETEDEVENT_IID { \ - 0xc48f3401, 0x4a9e, 0x43f4, \ - { 0xb7, 0xa7, 0x54, 0xbd, 0x28, 0x5e, 0x22, 0xf4 } \ -} -struct ISnapshotDeletedEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotDeletedEvent -{ - struct ISnapshotDeletedEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotDeletedEvent Declaration */ - - -/* Start of struct ISnapshotChangedEvent Declaration */ -# define ISNAPSHOTCHANGEDEVENT_IID_STR "07541941-8079-447a-a33e-47a69c798= 0db" -# define ISNAPSHOTCHANGEDEVENT_IID { \ - 0x07541941, 0x8079, 0x447a, \ - { 0xa3, 0x3e, 0x47, 0xa6, 0x9c, 0x79, 0x80, 0xdb } \ -} -struct ISnapshotChangedEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotChangedEvent -{ - struct ISnapshotChangedEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotChangedEvent Declaration */ - - -/* Start of struct IMousePointerShapeChangedEvent Declaration */ -# define IMOUSEPOINTERSHAPECHANGEDEVENT_IID_STR "a6dcf6e8-416b-4181-8c4a-= 45ec95177aef" -# define IMOUSEPOINTERSHAPECHANGEDEVENT_IID { \ - 0xa6dcf6e8, 0x416b, 0x4181, \ - { 0x8c, 0x4a, 0x45, 0xec, 0x95, 0x17, 0x7a, 0xef } \ -} -struct IMousePointerShapeChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetVisible)(IMousePointerShapeChangedEvent *p= This, PRBool *visible); - - nsresult PR_COM_METHOD (*GetAlpha)(IMousePointerShapeChangedEvent *pTh= is, PRBool *alpha); - - nsresult PR_COM_METHOD (*GetXhot)(IMousePointerShapeChangedEvent *pThi= s, PRUint32 *xhot); - - nsresult PR_COM_METHOD (*GetYhot)(IMousePointerShapeChangedEvent *pThi= s, PRUint32 *yhot); - - nsresult PR_COM_METHOD (*GetWidth)(IMousePointerShapeChangedEvent *pTh= is, PRUint32 *width); - - nsresult PR_COM_METHOD (*GetHeight)(IMousePointerShapeChangedEvent *pT= his, PRUint32 *height); - - nsresult PR_COM_METHOD (*GetShape)(IMousePointerShapeChangedEvent *pTh= is, PRUint32 *shapeSize, PRUint8 **shape); - -}; - -struct IMousePointerShapeChangedEvent -{ - struct IMousePointerShapeChangedEvent_vtbl *vtbl; -}; -/* End of struct IMousePointerShapeChangedEvent Declaration */ - - -/* Start of struct IMouseCapabilityChangedEvent Declaration */ -# define IMOUSECAPABILITYCHANGEDEVENT_IID_STR "d633ad48-820c-4207-b46c-6b= d3596640d5" -# define IMOUSECAPABILITYCHANGEDEVENT_IID { \ - 0xd633ad48, 0x820c, 0x4207, \ - { 0xb4, 0x6c, 0x6b, 0xd3, 0x59, 0x66, 0x40, 0xd5 } \ -} -struct IMouseCapabilityChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetSupportsAbsolute)(IMouseCapabilityChangedE= vent *pThis, PRBool *supportsAbsolute); - - nsresult PR_COM_METHOD (*GetSupportsRelative)(IMouseCapabilityChangedE= vent *pThis, PRBool *supportsRelative); - - nsresult PR_COM_METHOD (*GetNeedsHostCursor)(IMouseCapabilityChangedEv= ent *pThis, PRBool *needsHostCursor); - -}; - -struct IMouseCapabilityChangedEvent -{ - struct IMouseCapabilityChangedEvent_vtbl *vtbl; -}; -/* End of struct IMouseCapabilityChangedEvent Declaration */ - - -/* Start of struct IKeyboardLedsChangedEvent Declaration */ -# define IKEYBOARDLEDSCHANGEDEVENT_IID_STR "6DDEF35E-4737-457B-99FC-BC52C= 851A44F" -# define IKEYBOARDLEDSCHANGEDEVENT_IID { \ - 0x6DDEF35E, 0x4737, 0x457B, \ - { 0x99, 0xFC, 0xBC, 0x52, 0xC8, 0x51, 0xA4, 0x4F } \ -} -struct IKeyboardLedsChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetNumLock)(IKeyboardLedsChangedEvent *pThis,= PRBool *numLock); - - nsresult PR_COM_METHOD (*GetCapsLock)(IKeyboardLedsChangedEvent *pThis= , PRBool *capsLock); - - nsresult PR_COM_METHOD (*GetScrollLock)(IKeyboardLedsChangedEvent *pTh= is, PRBool *scrollLock); - -}; - -struct IKeyboardLedsChangedEvent -{ - struct IKeyboardLedsChangedEvent_vtbl *vtbl; -}; -/* End of struct IKeyboardLedsChangedEvent Declaration */ - - -/* Start of struct IStateChangedEvent Declaration */ -# define ISTATECHANGEDEVENT_IID_STR "4376693C-CF37-453B-9289-3B0F521CAF27" -# define ISTATECHANGEDEVENT_IID { \ - 0x4376693C, 0xCF37, 0x453B, \ - { 0x92, 0x89, 0x3B, 0x0F, 0x52, 0x1C, 0xAF, 0x27 } \ -} -struct IStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetState)(IStateChangedEvent *pThis, PRUint32= *state); - -}; - -struct IStateChangedEvent -{ - struct IStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IStateChangedEvent Declaration */ - - -/* Start of struct IAdditionsStateChangedEvent Declaration */ -# define IADDITIONSSTATECHANGEDEVENT_IID_STR "D70F7915-DA7C-44C8-A7AC-9F1= 73490446A" -# define IADDITIONSSTATECHANGEDEVENT_IID { \ - 0xD70F7915, 0xDA7C, 0x44C8, \ - { 0xA7, 0xAC, 0x9F, 0x17, 0x34, 0x90, 0x44, 0x6A } \ -} -struct IAdditionsStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IAdditionsStateChangedEvent -{ - struct IAdditionsStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IAdditionsStateChangedEvent Declaration */ - - -/* Start of struct INetworkAdapterChangedEvent Declaration */ -# define INETWORKADAPTERCHANGEDEVENT_IID_STR "08889892-1EC6-4883-801D-77F= 56CFD0103" -# define INETWORKADAPTERCHANGEDEVENT_IID { \ - 0x08889892, 0x1EC6, 0x4883, \ - { 0x80, 0x1D, 0x77, 0xF5, 0x6C, 0xFD, 0x01, 0x03 } \ -} -struct INetworkAdapterChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetNetworkAdapter)(INetworkAdapterChangedEven= t *pThis, INetworkAdapter * *networkAdapter); - -}; - -struct INetworkAdapterChangedEvent -{ - struct INetworkAdapterChangedEvent_vtbl *vtbl; -}; -/* End of struct INetworkAdapterChangedEvent Declaration */ - - -/* Start of struct ISerialPortChangedEvent Declaration */ -# define ISERIALPORTCHANGEDEVENT_IID_STR "3BA329DC-659C-488B-835C-4ECA7AE= 71C6C" -# define ISERIALPORTCHANGEDEVENT_IID { \ - 0x3BA329DC, 0x659C, 0x488B, \ - { 0x83, 0x5C, 0x4E, 0xCA, 0x7A, 0xE7, 0x1C, 0x6C } \ -} -struct ISerialPortChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetSerialPort)(ISerialPortChangedEvent *pThis= , ISerialPort * *serialPort); - -}; - -struct ISerialPortChangedEvent -{ - struct ISerialPortChangedEvent_vtbl *vtbl; -}; -/* End of struct ISerialPortChangedEvent Declaration */ - - -/* Start of struct IParallelPortChangedEvent Declaration */ -# define IPARALLELPORTCHANGEDEVENT_IID_STR "813C99FC-9849-4F47-813E-24A75= DC85615" -# define IPARALLELPORTCHANGEDEVENT_IID { \ - 0x813C99FC, 0x9849, 0x4F47, \ - { 0x81, 0x3E, 0x24, 0xA7, 0x5D, 0xC8, 0x56, 0x15 } \ -} -struct IParallelPortChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetParallelPort)(IParallelPortChangedEvent *p= This, IParallelPort * *parallelPort); - -}; - -struct IParallelPortChangedEvent -{ - struct IParallelPortChangedEvent_vtbl *vtbl; -}; -/* End of struct IParallelPortChangedEvent Declaration */ - - -/* Start of struct IStorageControllerChangedEvent Declaration */ -# define ISTORAGECONTROLLERCHANGEDEVENT_IID_STR "715212BF-DA59-426E-8230-= 3831FAA52C56" -# define ISTORAGECONTROLLERCHANGEDEVENT_IID { \ - 0x715212BF, 0xDA59, 0x426E, \ - { 0x82, 0x30, 0x38, 0x31, 0xFA, 0xA5, 0x2C, 0x56 } \ -} -struct IStorageControllerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IStorageControllerChangedEvent -{ - struct IStorageControllerChangedEvent_vtbl *vtbl; -}; -/* End of struct IStorageControllerChangedEvent Declaration */ - - -/* Start of struct IMediumChangedEvent Declaration */ -# define IMEDIUMCHANGEDEVENT_IID_STR "0FE2DA40-5637-472A-9736-72019EABD7D= E" -# define IMEDIUMCHANGEDEVENT_IID { \ - 0x0FE2DA40, 0x5637, 0x472A, \ - { 0x97, 0x36, 0x72, 0x01, 0x9E, 0xAB, 0xD7, 0xDE } \ -} -struct IMediumChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMediumAttachment)(IMediumChangedEvent *pTh= is, IMediumAttachment * *mediumAttachment); - -}; - -struct IMediumChangedEvent -{ - struct IMediumChangedEvent_vtbl *vtbl; -}; -/* End of struct IMediumChangedEvent Declaration */ - - -/* Start of struct IClipboardModeChangedEvent Declaration */ -# define ICLIPBOARDMODECHANGEDEVENT_IID_STR "cac21692-7997-4595-a731-3a50= 9db604e5" -# define ICLIPBOARDMODECHANGEDEVENT_IID { \ - 0xcac21692, 0x7997, 0x4595, \ - { 0xa7, 0x31, 0x3a, 0x50, 0x9d, 0xb6, 0x04, 0xe5 } \ -} -struct IClipboardModeChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetClipboardMode)(IClipboardModeChangedEvent = *pThis, PRUint32 *clipboardMode); - -}; - -struct IClipboardModeChangedEvent -{ - struct IClipboardModeChangedEvent_vtbl *vtbl; -}; -/* End of struct IClipboardModeChangedEvent Declaration */ - - -/* Start of struct IDragAndDropModeChangedEvent Declaration */ -# define IDRAGANDDROPMODECHANGEDEVENT_IID_STR "e90b8850-ac8e-4dff-8059-41= 00ae2c3c3d" -# define IDRAGANDDROPMODECHANGEDEVENT_IID { \ - 0xe90b8850, 0xac8e, 0x4dff, \ - { 0x80, 0x59, 0x41, 0x00, 0xae, 0x2c, 0x3c, 0x3d } \ -} -struct IDragAndDropModeChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetDragAndDropMode)(IDragAndDropModeChangedEv= ent *pThis, PRUint32 *dragAndDropMode); - -}; - -struct IDragAndDropModeChangedEvent -{ - struct IDragAndDropModeChangedEvent_vtbl *vtbl; -}; -/* End of struct IDragAndDropModeChangedEvent Declaration */ - - -/* Start of struct ICPUChangedEvent Declaration */ -# define ICPUCHANGEDEVENT_IID_STR "4da2dec7-71b2-4817-9a64-4ed12c17388e" -# define ICPUCHANGEDEVENT_IID { \ - 0x4da2dec7, 0x71b2, 0x4817, \ - { 0x9a, 0x64, 0x4e, 0xd1, 0x2c, 0x17, 0x38, 0x8e } \ -} -struct ICPUChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetCPU)(ICPUChangedEvent *pThis, PRUint32 *CP= U); - - nsresult PR_COM_METHOD (*GetAdd)(ICPUChangedEvent *pThis, PRBool *add); - -}; - -struct ICPUChangedEvent -{ - struct ICPUChangedEvent_vtbl *vtbl; -}; -/* End of struct ICPUChangedEvent Declaration */ - - -/* Start of struct ICPUExecutionCapChangedEvent Declaration */ -# define ICPUEXECUTIONCAPCHANGEDEVENT_IID_STR "dfa7e4f5-b4a4-44ce-85a8-12= 7ac5eb59dc" -# define ICPUEXECUTIONCAPCHANGEDEVENT_IID { \ - 0xdfa7e4f5, 0xb4a4, 0x44ce, \ - { 0x85, 0xa8, 0x12, 0x7a, 0xc5, 0xeb, 0x59, 0xdc } \ -} -struct ICPUExecutionCapChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetExecutionCap)(ICPUExecutionCapChangedEvent= *pThis, PRUint32 *executionCap); - -}; - -struct ICPUExecutionCapChangedEvent -{ - struct ICPUExecutionCapChangedEvent_vtbl *vtbl; -}; -/* End of struct ICPUExecutionCapChangedEvent Declaration */ - - -/* Start of struct IGuestKeyboardEvent Declaration */ -# define IGUESTKEYBOARDEVENT_IID_STR "88394258-7006-40d4-b339-472ee380184= 4" -# define IGUESTKEYBOARDEVENT_IID { \ - 0x88394258, 0x7006, 0x40d4, \ - { 0xb3, 0x39, 0x47, 0x2e, 0xe3, 0x80, 0x18, 0x44 } \ -} -struct IGuestKeyboardEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetScancodes)(IGuestKeyboardEvent *pThis, PRU= int32 *scancodesSize, PRInt32 **scancodes); - -}; - -struct IGuestKeyboardEvent -{ - struct IGuestKeyboardEvent_vtbl *vtbl; -}; -/* End of struct IGuestKeyboardEvent Declaration */ - - -/* Start of struct IGuestMouseEvent Declaration */ -# define IGUESTMOUSEEVENT_IID_STR "1f85d35c-c524-40ff-8e98-307000df0992" -# define IGUESTMOUSEEVENT_IID { \ - 0x1f85d35c, 0xc524, 0x40ff, \ - { 0x8e, 0x98, 0x30, 0x70, 0x00, 0xdf, 0x09, 0x92 } \ -} -struct IGuestMouseEvent_vtbl -{ - struct IReusableEvent_vtbl ireusableevent; - - nsresult PR_COM_METHOD (*GetAbsolute)(IGuestMouseEvent *pThis, PRBool = *absolute); - - nsresult PR_COM_METHOD (*GetX)(IGuestMouseEvent *pThis, PRInt32 *x); - - nsresult PR_COM_METHOD (*GetY)(IGuestMouseEvent *pThis, PRInt32 *y); - - nsresult PR_COM_METHOD (*GetZ)(IGuestMouseEvent *pThis, PRInt32 *z); - - nsresult PR_COM_METHOD (*GetW)(IGuestMouseEvent *pThis, PRInt32 *w); - - nsresult PR_COM_METHOD (*GetButtons)(IGuestMouseEvent *pThis, PRInt32 = *buttons); - -}; - -struct IGuestMouseEvent -{ - struct IGuestMouseEvent_vtbl *vtbl; -}; -/* End of struct IGuestMouseEvent Declaration */ - - -/* Start of struct IVRDEServerChangedEvent Declaration */ -# define IVRDESERVERCHANGEDEVENT_IID_STR "a06fd66a-3188-4c8c-8756-1395e8c= b691c" -# define IVRDESERVERCHANGEDEVENT_IID { \ - 0xa06fd66a, 0x3188, 0x4c8c, \ - { 0x87, 0x56, 0x13, 0x95, 0xe8, 0xcb, 0x69, 0x1c } \ -} -struct IVRDEServerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IVRDEServerChangedEvent -{ - struct IVRDEServerChangedEvent_vtbl *vtbl; -}; -/* End of struct IVRDEServerChangedEvent Declaration */ - - -/* Start of struct IVRDEServerInfoChangedEvent Declaration */ -# define IVRDESERVERINFOCHANGEDEVENT_IID_STR "dd6a1080-e1b7-4339-a549-f08= 78115596e" -# define IVRDESERVERINFOCHANGEDEVENT_IID { \ - 0xdd6a1080, 0xe1b7, 0x4339, \ - { 0xa5, 0x49, 0xf0, 0x87, 0x81, 0x15, 0x59, 0x6e } \ -} -struct IVRDEServerInfoChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IVRDEServerInfoChangedEvent -{ - struct IVRDEServerInfoChangedEvent_vtbl *vtbl; -}; -/* End of struct IVRDEServerInfoChangedEvent Declaration */ - - -/* Start of struct IUSBControllerChangedEvent Declaration */ -# define IUSBCONTROLLERCHANGEDEVENT_IID_STR "93BADC0C-61D9-4940-A084-E6BB= 29AF3D83" -# define IUSBCONTROLLERCHANGEDEVENT_IID { \ - 0x93BADC0C, 0x61D9, 0x4940, \ - { 0xA0, 0x84, 0xE6, 0xBB, 0x29, 0xAF, 0x3D, 0x83 } \ -} -struct IUSBControllerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IUSBControllerChangedEvent -{ - struct IUSBControllerChangedEvent_vtbl *vtbl; -}; -/* End of struct IUSBControllerChangedEvent Declaration */ - - -/* Start of struct IUSBDeviceStateChangedEvent Declaration */ -# define IUSBDEVICESTATECHANGEDEVENT_IID_STR "806da61b-6679-422a-b629-51b= 06b0c6d93" -# define IUSBDEVICESTATECHANGEDEVENT_IID { \ - 0x806da61b, 0x6679, 0x422a, \ - { 0xb6, 0x29, 0x51, 0xb0, 0x6b, 0x0c, 0x6d, 0x93 } \ -} -struct IUSBDeviceStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetDevice)(IUSBDeviceStateChangedEvent *pThis= , IUSBDevice * *device); - - nsresult PR_COM_METHOD (*GetAttached)(IUSBDeviceStateChangedEvent *pTh= is, PRBool *attached); - - nsresult PR_COM_METHOD (*GetError)(IUSBDeviceStateChangedEvent *pThis,= IVirtualBoxErrorInfo * *error); - -}; - -struct IUSBDeviceStateChangedEvent -{ - struct IUSBDeviceStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IUSBDeviceStateChangedEvent Declaration */ - - -/* Start of struct ISharedFolderChangedEvent Declaration */ -# define ISHAREDFOLDERCHANGEDEVENT_IID_STR "B66349B5-3534-4239-B2DE-8E153= 5D94C0B" -# define ISHAREDFOLDERCHANGEDEVENT_IID { \ - 0xB66349B5, 0x3534, 0x4239, \ - { 0xB2, 0xDE, 0x8E, 0x15, 0x35, 0xD9, 0x4C, 0x0B } \ -} -struct ISharedFolderChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetScope)(ISharedFolderChangedEvent *pThis, P= RUint32 *scope); - -}; - -struct ISharedFolderChangedEvent -{ - struct ISharedFolderChangedEvent_vtbl *vtbl; -}; -/* End of struct ISharedFolderChangedEvent Declaration */ - - -/* Start of struct IRuntimeErrorEvent Declaration */ -# define IRUNTIMEERROREVENT_IID_STR "883DD18B-0721-4CDE-867C-1A82ABAF914C" -# define IRUNTIMEERROREVENT_IID { \ - 0x883DD18B, 0x0721, 0x4CDE, \ - { 0x86, 0x7C, 0x1A, 0x82, 0xAB, 0xAF, 0x91, 0x4C } \ -} -struct IRuntimeErrorEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetFatal)(IRuntimeErrorEvent *pThis, PRBool *= fatal); - - nsresult PR_COM_METHOD (*GetId)(IRuntimeErrorEvent *pThis, PRUnichar *= *id); - - nsresult PR_COM_METHOD (*GetMessage)(IRuntimeErrorEvent *pThis, PRUnic= har * *message); - -}; - -struct IRuntimeErrorEvent -{ - struct IRuntimeErrorEvent_vtbl *vtbl; -}; -/* End of struct IRuntimeErrorEvent Declaration */ - - -/* Start of struct IEventSourceChangedEvent Declaration */ -# define IEVENTSOURCECHANGEDEVENT_IID_STR "e7932cb8-f6d4-4ab6-9cbf-558eb8= 959a6a" -# define IEVENTSOURCECHANGEDEVENT_IID { \ - 0xe7932cb8, 0xf6d4, 0x4ab6, \ - { 0x9c, 0xbf, 0x55, 0x8e, 0xb8, 0x95, 0x9a, 0x6a } \ -} -struct IEventSourceChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetListener)(IEventSourceChangedEvent *pThis,= IEventListener * *listener); - - nsresult PR_COM_METHOD (*GetAdd)(IEventSourceChangedEvent *pThis, PRBo= ol *add); - -}; - -struct IEventSourceChangedEvent -{ - struct IEventSourceChangedEvent_vtbl *vtbl; -}; -/* End of struct IEventSourceChangedEvent Declaration */ - - -/* Start of struct IExtraDataChangedEvent Declaration */ -# define IEXTRADATACHANGEDEVENT_IID_STR "024F00CE-6E0B-492A-A8D0-968472A9= 4DC7" -# define IEXTRADATACHANGEDEVENT_IID { \ - 0x024F00CE, 0x6E0B, 0x492A, \ - { 0xA8, 0xD0, 0x96, 0x84, 0x72, 0xA9, 0x4D, 0xC7 } \ -} -struct IExtraDataChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMachineId)(IExtraDataChangedEvent *pThis, = PRUnichar * *machineId); - - nsresult PR_COM_METHOD (*GetKey)(IExtraDataChangedEvent *pThis, PRUnic= har * *key); - - nsresult PR_COM_METHOD (*GetValue)(IExtraDataChangedEvent *pThis, PRUn= ichar * *value); - -}; - -struct IExtraDataChangedEvent -{ - struct IExtraDataChangedEvent_vtbl *vtbl; -}; -/* End of struct IExtraDataChangedEvent Declaration */ - - -/* Start of struct IVetoEvent Declaration */ -# define IVETOEVENT_IID_STR "9a1a4130-69fe-472f-ac10-c6fa25d75007" -# define IVETOEVENT_IID { \ - 0x9a1a4130, 0x69fe, 0x472f, \ - { 0xac, 0x10, 0xc6, 0xfa, 0x25, 0xd7, 0x50, 0x07 } \ -} -struct IVetoEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*AddVeto)( - IVetoEvent *pThis, - PRUnichar * reason - ); - - nsresult PR_COM_METHOD (*IsVetoed)( - IVetoEvent *pThis, - PRBool * result - ); - - nsresult PR_COM_METHOD (*GetVetos)( - IVetoEvent *pThis, - PRUint32 *resultSize, - PRUnichar *** result - ); - -}; - -struct IVetoEvent -{ - struct IVetoEvent_vtbl *vtbl; -}; -/* End of struct IVetoEvent Declaration */ - - -/* Start of struct IExtraDataCanChangeEvent Declaration */ -# define IEXTRADATACANCHANGEEVENT_IID_STR "245d88bd-800a-40f8-87a6-170d02= 249a55" -# define IEXTRADATACANCHANGEEVENT_IID { \ - 0x245d88bd, 0x800a, 0x40f8, \ - { 0x87, 0xa6, 0x17, 0x0d, 0x02, 0x24, 0x9a, 0x55 } \ -} -struct IExtraDataCanChangeEvent_vtbl -{ - struct IVetoEvent_vtbl ivetoevent; - - nsresult PR_COM_METHOD (*GetMachineId)(IExtraDataCanChangeEvent *pThis= , PRUnichar * *machineId); - - nsresult PR_COM_METHOD (*GetKey)(IExtraDataCanChangeEvent *pThis, PRUn= ichar * *key); - - nsresult PR_COM_METHOD (*GetValue)(IExtraDataCanChangeEvent *pThis, PR= Unichar * *value); - -}; - -struct IExtraDataCanChangeEvent -{ - struct IExtraDataCanChangeEvent_vtbl *vtbl; -}; -/* End of struct IExtraDataCanChangeEvent Declaration */ - - -/* Start of struct ICanShowWindowEvent Declaration */ -# define ICANSHOWWINDOWEVENT_IID_STR "adf292b0-92c9-4a77-9d35-e058b39fe0b= 9" -# define ICANSHOWWINDOWEVENT_IID { \ - 0xadf292b0, 0x92c9, 0x4a77, \ - { 0x9d, 0x35, 0xe0, 0x58, 0xb3, 0x9f, 0xe0, 0xb9 } \ -} -struct ICanShowWindowEvent_vtbl -{ - struct IVetoEvent_vtbl ivetoevent; - -}; - -struct ICanShowWindowEvent -{ - struct ICanShowWindowEvent_vtbl *vtbl; -}; -/* End of struct ICanShowWindowEvent Declaration */ - - -/* Start of struct IShowWindowEvent Declaration */ -# define ISHOWWINDOWEVENT_IID_STR "B0A0904D-2F05-4D28-855F-488F96BAD2B2" -# define ISHOWWINDOWEVENT_IID { \ - 0xB0A0904D, 0x2F05, 0x4D28, \ - { 0x85, 0x5F, 0x48, 0x8F, 0x96, 0xBA, 0xD2, 0xB2 } \ -} -struct IShowWindowEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetWinId)(IShowWindowEvent *pThis, PRInt64 *w= inId); - nsresult PR_COM_METHOD (*SetWinId)(IShowWindowEvent *pThis, PRInt64 wi= nId); - -}; - -struct IShowWindowEvent -{ - struct IShowWindowEvent_vtbl *vtbl; -}; -/* End of struct IShowWindowEvent Declaration */ - - -/* Start of struct INATRedirectEvent Declaration */ -# define INATREDIRECTEVENT_IID_STR "24eef068-c380-4510-bc7c-19314a7352f1" -# define INATREDIRECTEVENT_IID { \ - 0x24eef068, 0xc380, 0x4510, \ - { 0xbc, 0x7c, 0x19, 0x31, 0x4a, 0x73, 0x52, 0xf1 } \ -} -struct INATRedirectEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetSlot)(INATRedirectEvent *pThis, PRUint32 *= slot); - - nsresult PR_COM_METHOD (*GetRemove)(INATRedirectEvent *pThis, PRBool *= remove); - - nsresult PR_COM_METHOD (*GetName)(INATRedirectEvent *pThis, PRUnichar = * *name); - - nsresult PR_COM_METHOD (*GetProto)(INATRedirectEvent *pThis, PRUint32 = *proto); - - nsresult PR_COM_METHOD (*GetHostIP)(INATRedirectEvent *pThis, PRUnicha= r * *hostIP); - - nsresult PR_COM_METHOD (*GetHostPort)(INATRedirectEvent *pThis, PRInt3= 2 *hostPort); - - nsresult PR_COM_METHOD (*GetGuestIP)(INATRedirectEvent *pThis, PRUnich= ar * *guestIP); - - nsresult PR_COM_METHOD (*GetGuestPort)(INATRedirectEvent *pThis, PRInt= 32 *guestPort); - -}; - -struct INATRedirectEvent -{ - struct INATRedirectEvent_vtbl *vtbl; -}; -/* End of struct INATRedirectEvent Declaration */ - - -/* Start of struct IHostPCIDevicePlugEvent Declaration */ -# define IHOSTPCIDEVICEPLUGEVENT_IID_STR "a0bad6df-d612-47d3-89d4-db39925= 33948" -# define IHOSTPCIDEVICEPLUGEVENT_IID { \ - 0xa0bad6df, 0xd612, 0x47d3, \ - { 0x89, 0xd4, 0xdb, 0x39, 0x92, 0x53, 0x39, 0x48 } \ -} -struct IHostPCIDevicePlugEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetPlugged)(IHostPCIDevicePlugEvent *pThis, P= RBool *plugged); - - nsresult PR_COM_METHOD (*GetSuccess)(IHostPCIDevicePlugEvent *pThis, P= RBool *success); - - nsresult PR_COM_METHOD (*GetAttachment)(IHostPCIDevicePlugEvent *pThis= , IPCIDeviceAttachment * *attachment); - - nsresult PR_COM_METHOD (*GetMessage)(IHostPCIDevicePlugEvent *pThis, P= RUnichar * *message); - -}; - -struct IHostPCIDevicePlugEvent -{ - struct IHostPCIDevicePlugEvent_vtbl *vtbl; -}; -/* End of struct IHostPCIDevicePlugEvent Declaration */ - - -/* Start of struct IVBoxSVCAvailabilityChangedEvent Declaration */ -# define IVBOXSVCAVAILABILITYCHANGEDEVENT_IID_STR "97c78fcd-d4fc-485f-861= 3-5af88bfcfcdc" -# define IVBOXSVCAVAILABILITYCHANGEDEVENT_IID { \ - 0x97c78fcd, 0xd4fc, 0x485f, \ - { 0x86, 0x13, 0x5a, 0xf8, 0x8b, 0xfc, 0xfc, 0xdc } \ -} -struct IVBoxSVCAvailabilityChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetAvailable)(IVBoxSVCAvailabilityChangedEven= t *pThis, PRBool *available); - -}; - -struct IVBoxSVCAvailabilityChangedEvent -{ - struct IVBoxSVCAvailabilityChangedEvent_vtbl *vtbl; -}; -/* End of struct IVBoxSVCAvailabilityChangedEvent Declaration */ - - -/* Start of struct IBandwidthGroupChangedEvent Declaration */ -# define IBANDWIDTHGROUPCHANGEDEVENT_IID_STR "334df94a-7556-4cbc-8c04-043= 096b02d82" -# define IBANDWIDTHGROUPCHANGEDEVENT_IID { \ - 0x334df94a, 0x7556, 0x4cbc, \ - { 0x8c, 0x04, 0x04, 0x30, 0x96, 0xb0, 0x2d, 0x82 } \ -} -struct IBandwidthGroupChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetBandwidthGroup)(IBandwidthGroupChangedEven= t *pThis, IBandwidthGroup * *bandwidthGroup); - -}; - -struct IBandwidthGroupChangedEvent -{ - struct IBandwidthGroupChangedEvent_vtbl *vtbl; -}; -/* End of struct IBandwidthGroupChangedEvent Declaration */ - - -/* Start of struct IGuestMonitorChangedEvent Declaration */ -# define IGUESTMONITORCHANGEDEVENT_IID_STR "0f7b8a22-c71f-4a36-8e5f-a77d0= 1d76090" -# define IGUESTMONITORCHANGEDEVENT_IID { \ - 0x0f7b8a22, 0xc71f, 0x4a36, \ - { 0x8e, 0x5f, 0xa7, 0x7d, 0x01, 0xd7, 0x60, 0x90 } \ -} -struct IGuestMonitorChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetChangeType)(IGuestMonitorChangedEvent *pTh= is, PRUint32 *changeType); - - nsresult PR_COM_METHOD (*GetScreenId)(IGuestMonitorChangedEvent *pThis= , PRUint32 *screenId); - - nsresult PR_COM_METHOD (*GetOriginX)(IGuestMonitorChangedEvent *pThis,= PRUint32 *originX); - - nsresult PR_COM_METHOD (*GetOriginY)(IGuestMonitorChangedEvent *pThis,= PRUint32 *originY); - - nsresult PR_COM_METHOD (*GetWidth)(IGuestMonitorChangedEvent *pThis, P= RUint32 *width); - - nsresult PR_COM_METHOD (*GetHeight)(IGuestMonitorChangedEvent *pThis, = PRUint32 *height); - -}; - -struct IGuestMonitorChangedEvent -{ - struct IGuestMonitorChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestMonitorChangedEvent Declaration */ - - -/* Start of struct IStorageDeviceChangedEvent Declaration */ -# define ISTORAGEDEVICECHANGEDEVENT_IID_STR "8a5c2dce-e341-49d4-afce-c959= 79f7d70c" -# define ISTORAGEDEVICECHANGEDEVENT_IID { \ - 0x8a5c2dce, 0xe341, 0x49d4, \ - { 0xaf, 0xce, 0xc9, 0x59, 0x79, 0xf7, 0xd7, 0x0c } \ -} -struct IStorageDeviceChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetStorageDevice)(IStorageDeviceChangedEvent = *pThis, IMediumAttachment * *storageDevice); - - nsresult PR_COM_METHOD (*GetRemoved)(IStorageDeviceChangedEvent *pThis= , PRBool *removed); - -}; - -struct IStorageDeviceChangedEvent -{ - struct IStorageDeviceChangedEvent_vtbl *vtbl; -}; -/* End of struct IStorageDeviceChangedEvent Declaration */ - - - -# define NS_VIRTUALBOX_CID { \ - 0xB1A7A4F2, 0x47B9, 0x4A1E, \ - { 0x82, 0xB2, 0x07, 0xCC, 0xD5, 0x32, 0x3C, 0x3F } \ -} -# define NS_VIRTUALBOX_CONTRACTID "@virtualbox.org/VirtualBox;1" -/* for compatibility with Win32 */ -# define CLSID_VirtualBox (nsCID) NS_VIRTUALBOX_CID - - - -# define NS_VIRTUALBOXCLIENT_CID { \ - 0xdd3fc71d, 0x26c0, 0x4fe1, \ - { 0xbf, 0x6f, 0x67, 0xf6, 0x33, 0x26, 0x5b, 0xba } \ -} -# define NS_VIRTUALBOXCLIENT_CONTRACTID "@virtualbox.org/VirtualBoxClient= ;1" -/* for compatibility with Win32 */ -# define CLSID_VirtualBoxClient (nsCID) NS_VIRTUALBOXCLIENT_CID - - - -# define NS_SESSION_CID { \ - 0x3C02F46D, 0xC9D2, 0x4F11, \ - { 0xA3, 0x84, 0x53, 0xF0, 0xCF, 0x91, 0x72, 0x14 } \ -} -# define NS_SESSION_CONTRACTID "@virtualbox.org/Session;1" -/* for compatibility with Win32 */ -# define CLSID_Session (nsCID) NS_SESSION_CID - - - -# endif /* !__cplusplus */ - -# ifdef IN_VBOXXPCOMC -# define VBOXXPCOMC_DECL(type) PR_EXPORT(type) -# else -# define VBOXXPCOMC_DECL(type) PR_IMPORT(type) -# endif - -# ifdef __cplusplus -extern "C" { -# endif - - -/** - * Function table for dynamic linking. - * Use VBoxGetFunctions() to obtain the pointer to it. - */ -typedef struct VBOXXPCOMC -{ - /** The size of the structure. */ - unsigned cb; - /** The structure version. */ - unsigned uVersion; - - unsigned int (*pfnGetVersion)(void); - - void (*pfnComInitialize)(const char *pszVirtualBoxIID, - IVirtualBox **ppVirtualBox, - const char *pszSessionIID, - ISession **ppSession); - void (*pfnComUninitialize)(void); - - void (*pfnComUnallocMem)(void *pv); - void (*pfnUtf16Free)(PRUnichar *pwszString); - void (*pfnUtf8Free)(char *pszString); - - int (*pfnUtf16ToUtf8)(const PRUnichar *pwszString, char **ppszString= ); - int (*pfnUtf8ToUtf16)(const char *pszString, PRUnichar **ppwszString= ); - - void (*pfnGetEventQueue)(nsIEventQueue **eventQueue); - - /** Tail version, same as uVersion. */ - unsigned uEndVersion; -} VBOXXPCOMC; -/** Pointer to a const VBoxXPCOMC function table. */ -typedef VBOXXPCOMC const *PCVBOXXPCOM; - -/** The current interface version. - * For use with VBoxGetXPCOMCFunctions and to be found in - * VBOXXPCOMC::uVersion. */ -# define VBOX_XPCOMC_VERSION 0x00020000U - -VBOXXPCOMC_DECL(PCVBOXXPCOM) VBoxGetXPCOMCFunctions(unsigned uVersion); -/** Typedef for VBoxGetXPCOMCFunctions. */ -typedef PCVBOXXPCOM (*PFNVBOXGETXPCOMCFUNCTIONS)(unsigned uVersion); - -/** The symbol name of VBoxGetXPCOMCFunctions. */ -# if defined(__OS2__) -# define VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME "_VBoxGetXPCOMCFunctions" -# else -# define VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME "VBoxGetXPCOMCFunctions" -# endif - - -# ifdef __cplusplus -} -# endif - -#endif /* !___VirtualBox_CXPCOM_h */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri Apr 26 20:41:27 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555074127; cv=none; d=zoho.com; s=zohoarc; b=PAdh5JMREM/V6Ft2xSv5/ZlZCIOGq1jsbh7o1BIzkX1jLGP9FDQ95KFQDWkIpzk9v3QpdVplSEoJAFX9t0if2BEtUWLO8PdVNh2ZDZX+/HVTUzh6dyoh7tqzyD2auhChkTIFR1ywIauK/vT5hBKCKAEnljSkc5Rs/X3l+1rWdEk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555074127; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=FPYpl8kiQTWUUXtRZUY36rfQkJVQPFwYM9raz83lBs0=; b=XD1XIDwW/DCzOdscFaM2jAIGFSUopqjyX7xUkf+MrH2Vv8dylRWlNsj0ZA9UvtgjTncxYfesBHsC/7lxFVTV9mHPd4CX69iIsfrniia/MVD12l46HRZ2W6Zs5YWAZcJjWCgigox5iItn1aCj3aBTPjwiBXbG8alQ6hrkzvQfxBg= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1555074127661769.6778493366234; Fri, 12 Apr 2019 06:02:07 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CCC8AC0AC37A; Fri, 12 Apr 2019 13:02:04 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 18B3916E5C; Fri, 12 Apr 2019 13:02:04 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 72D603FB30; Fri, 12 Apr 2019 13:02:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3CD1DMM031836 for ; Fri, 12 Apr 2019 09:01:13 -0400 Received: by smtp.corp.redhat.com (Postfix) id 3581519747; Fri, 12 Apr 2019 13:01:13 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-27.ams2.redhat.com [10.36.112.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 1B0DE19484; Fri, 12 Apr 2019 13:00:57 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Fri, 12 Apr 2019 14:00:38 +0100 Message-Id: <20190412130040.21306-6-berrange@redhat.com> In-Reply-To: <20190412130040.21306-1-berrange@redhat.com> References: <20190412130040.21306-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Subject: [libvirt] [PATCH v2 5/7] vbox: drop C API definition for release 4.2.20 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Fri, 12 Apr 2019 13:02:05 +0000 (UTC) Support for compiling this version was dropped in an earlier commit. Signed-off-by: Daniel P. Berrang=C3=A9 --- src/vbox/Makefile.inc.am | 1 - src/vbox/vbox_CAPI_v4_2_20.h | 9001 ---------------------------------- 2 files changed, 9002 deletions(-) delete mode 100644 src/vbox/vbox_CAPI_v4_2_20.h diff --git a/src/vbox/Makefile.inc.am b/src/vbox/Makefile.inc.am index f460a8d42c..4c1546d077 100644 --- a/src/vbox/Makefile.inc.am +++ b/src/vbox/Makefile.inc.am @@ -5,7 +5,6 @@ VBOX_DRIVER_SOURCES =3D \ vbox/vbox_driver.h \ vbox/vbox_snapshot_conf.c \ vbox/vbox_snapshot_conf.h \ - vbox/vbox_CAPI_v4_2_20.h \ vbox/vbox_CAPI_v4_3.h \ vbox/vbox_CAPI_v4_3_4.h \ vbox/vbox_V5_0.c \ diff --git a/src/vbox/vbox_CAPI_v4_2_20.h b/src/vbox/vbox_CAPI_v4_2_20.h deleted file mode 100644 index 26dcb0626f..0000000000 --- a/src/vbox/vbox_CAPI_v4_2_20.h +++ /dev/null @@ -1,9001 +0,0 @@ -/* - * Libvirt notice: this file is derived from the VirtualBox SDK, with - * libvirt edits; do not regenerate in the context of libvirt. - */ -/* - * DO NOT EDIT! This is a generated file. - * - * XPCOM IDL (XPIDL) definition for VirtualBox Main API (COM interfaces) - * generated from XIDL (XML interface definition). - * - * Source : src/VBox/Main/idl/VirtualBox.xidl - * Generator : src/VBox/Main/idl/xpcidl.xsl - * - * This file contains portions from the following Mozilla XPCOM files: - * xpcom/include/xpcom/nsID.h - * xpcom/include/nsIException.h - * xpcom/include/nsprpub/prtypes.h - * xpcom/include/xpcom/nsISupportsBase.h - * - * These files were originally triple-licensed (MPL/GPL2/LGPL2.1). Oracle - * elects to distribute this derived work under the LGPL2.1 only. - */ - -/* - * Copyright (C) 2008-2012 Oracle Corporation - * - * This file is part of a free software library; you can redistribute - * it and/or modify it under the terms of the GNU Lesser General - * Public License version 2.1 as published by the Free Software - * Foundation and shipped in the "COPYING.LESSER" file with this library. - * The library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY of any kind. - * - * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if - * any license choice other than GPL or LGPL is available it will - * apply instead, Oracle elects to use only the Lesser General Public - * License version 2.1 (LGPLv2) at this time for any software where - * a choice of LGPL license versions is made available with the - * language indicating that LGPLv2 or any later version may be used, - * or where a choice of which version of the LGPL is applied is - * otherwise unspecified. - */ - -#ifndef ___VirtualBox_CXPCOM_h -# define ___VirtualBox_CXPCOM_h - -# ifdef __cplusplus -# include "VirtualBox_XPCOM.h" -# else /* !__cplusplus */ - -# include -# include "wchar.h" - -# ifdef WIN32 -# define PR_COM_METHOD __stdcall -# else -# define PR_COM_METHOD -# endif - -# if defined(WIN32) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) __declspec(dllimport) __type -# define PR_IMPORT_DATA(__type) __declspec(dllimport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_BEOS) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) extern __declspec(dllexport) __type -# define PR_IMPORT_DATA(__type) extern __declspec(dllexport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(WIN16) - -# define PR_CALLBACK_DECL __cdecl - -# if defined(_WINDLL) -# define PR_EXPORT(__type) extern __type _cdecl _export _loadds -# define PR_IMPORT(__type) extern __type _cdecl _export _loadds -# define PR_EXPORT_DATA(__type) extern __type _export -# define PR_IMPORT_DATA(__type) extern __type _export - -# define PR_EXTERN(__type) extern __type _cdecl _export _loadds -# define PR_IMPLEMENT(__type) __type _cdecl _export _loadds -# define PR_EXTERN_DATA(__type) extern __type _export -# define PR_IMPLEMENT_DATA(__type) __type _export - -# define PR_CALLBACK __cdecl __loadds -# define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK - -# else /* this must be .EXE */ -# define PR_EXPORT(__type) extern __type _cdecl _export -# define PR_IMPORT(__type) extern __type _cdecl _export -# define PR_EXPORT_DATA(__type) extern __type _export -# define PR_IMPORT_DATA(__type) extern __type _export - -# define PR_EXTERN(__type) extern __type _cdecl _export -# define PR_IMPLEMENT(__type) __type _cdecl _export -# define PR_EXTERN_DATA(__type) extern __type _export -# define PR_IMPLEMENT_DATA(__type) __type _export - -# define PR_CALLBACK __cdecl __loadds -# define PR_STATIC_CALLBACK(__x) __x PR_CALLBACK -# endif /* _WINDLL */ - -# elif defined(XP_MAC) - -# define PR_EXPORT(__type) extern __declspec(export) __type -# define PR_EXPORT_DATA(__type) extern __declspec(export) __type -# define PR_IMPORT(__type) extern __declspec(export) __type -# define PR_IMPORT_DATA(__type) extern __declspec(export) __type - -# define PR_EXTERN(__type) extern __declspec(export) __type -# define PR_IMPLEMENT(__type) __declspec(export) __type -# define PR_EXTERN_DATA(__type) extern __declspec(export) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(export) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_OS2) && defined(__declspec) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) __declspec(dllimport) __type -# define PR_IMPORT_DATA(__type) __declspec(dllimport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_OS2_VACPP) - -# define PR_EXPORT(__type) extern __type -# define PR_EXPORT_DATA(__type) extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type - -# define PR_EXTERN(__type) extern __type -# define PR_IMPLEMENT(__type) __type -# define PR_EXTERN_DATA(__type) extern __type -# define PR_IMPLEMENT_DATA(__type) __type -# define PR_CALLBACK _Optlink -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK - -# else /* Unix */ - -# ifdef VBOX_HAVE_VISIBILITY_HIDDEN -# define PR_EXPORT(__type) __attribute__((visibility("default"))) exter= n __type -# define PR_EXPORT_DATA(__type) __attribute__((visibility("default"))) = extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type -# define PR_EXTERN(__type) __attribute__((visibility("default"))) exter= n __type -# define PR_IMPLEMENT(__type) __attribute__((visibility("default"))) __= type -# define PR_EXTERN_DATA(__type) __attribute__((visibility("default"))) = extern __type -# define PR_IMPLEMENT_DATA(__type) __attribute__((visibility("default")= )) __type -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x -# else -# define PR_EXPORT(__type) extern __type -# define PR_EXPORT_DATA(__type) extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type -# define PR_EXTERN(__type) extern __type -# define PR_IMPLEMENT(__type) __type -# define PR_EXTERN_DATA(__type) extern __type -# define PR_IMPLEMENT_DATA(__type) __type -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x -# endif -# endif - -# if defined(_NSPR_BUILD_) -# define NSPR_API(__type) PR_EXPORT(__type) -# define NSPR_DATA_API(__type) PR_EXPORT_DATA(__type) -# else -# define NSPR_API(__type) PR_IMPORT(__type) -# define NSPR_DATA_API(__type) PR_IMPORT_DATA(__type) -# endif - -typedef unsigned char PRUint8; -# if (defined(HPUX) && defined(__cplusplus) \ - && !defined(__GNUC__) && __cplusplus < 199707L) \ - || (defined(SCO) && defined(__cplusplus) \ - && !defined(__GNUC__) && __cplusplus =3D=3D 1L) -typedef char PRInt8; -# else -typedef signed char PRInt8; -# endif - -# define PR_INT8_MAX 127 -# define PR_INT8_MIN (-128) -# define PR_UINT8_MAX 255U - -typedef unsigned short PRUint16; -typedef short PRInt16; - -# define PR_INT16_MAX 32767 -# define PR_INT16_MIN (-32768) -# define PR_UINT16_MAX 65535U - -typedef unsigned int PRUint32; -typedef int PRInt32; -# define PR_INT32(x) x -# define PR_UINT32(x) x ## U - -# define PR_INT32_MAX PR_INT32(2147483647) -# define PR_INT32_MIN (-PR_INT32_MAX - 1) -# define PR_UINT32_MAX PR_UINT32(4294967295) - -typedef long PRInt64; -typedef unsigned long PRUint64; -typedef int PRIntn; -typedef unsigned int PRUintn; - -typedef double PRFloat64; -typedef size_t PRSize; - -typedef ptrdiff_t PRPtrdiff; - -typedef unsigned long PRUptrdiff; - -typedef PRIntn PRBool; - -# define PR_TRUE 1 -# define PR_FALSE 0 - -typedef PRUint8 PRPackedBool; - -/* -** Status code used by some routines that have a single point of failure or -** special status return. -*/ -typedef enum { PR_FAILURE =3D -1, PR_SUCCESS =3D 0 } PRStatus; - -# ifndef __PRUNICHAR__ -# define __PRUNICHAR__ -# if defined(WIN32) || defined(XP_MAC) -typedef wchar_t PRUnichar; -# else -typedef PRUint16 PRUnichar; -# endif -# endif - -typedef long PRWord; -typedef unsigned long PRUword; - -# define nsnull 0 -typedef PRUint32 nsresult; - -# if defined(__GNUC__) && (__GNUC__ > 2) -# define NS_LIKELY(x) (__builtin_expect((x), 1)) -# define NS_UNLIKELY(x) (__builtin_expect((x), 0)) -# else -# define NS_LIKELY(x) (x) -# define NS_UNLIKELY(x) (x) -# endif - -# define NS_FAILED(_nsresult) (NS_UNLIKELY((_nsresult) & 0x80000000)) -# define NS_SUCCEEDED(_nsresult) (NS_LIKELY(!((_nsresult) & 0x80000000))) - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_IntervalNow VBoxNsprPR_IntervalNow -# define PR_TicksPerSecond VBoxNsprPR_TicksPerSecond -# define PR_SecondsToInterval VBoxNsprPR_SecondsToInterval -# define PR_MillisecondsToInterval VBoxNsprPR_MillisecondsToInterval -# define PR_MicrosecondsToInterval VBoxNsprPR_MicrosecondsToInterval -# define PR_IntervalToSeconds VBoxNsprPR_IntervalToSeconds -# define PR_IntervalToMilliseconds VBoxNsprPR_IntervalToMilliseconds -# define PR_IntervalToMicroseconds VBoxNsprPR_IntervalToMicroseconds -# define PR_EnterMonitor VBoxNsprPR_EnterMonitor -# define PR_ExitMonitor VBoxNsprPR_ExitMonitor -# define PR_Notify VBoxNsprPR_Notify -# define PR_NotifyAll VBoxNsprPR_NotifyAll -# define PR_Wait VBoxNsprPR_Wait -# define PR_NewMonitor VBoxNsprPR_NewMonitor -# define PR_DestroyMonitor VBoxNsprPR_DestroyMonitor -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef PRUint32 PRIntervalTime; - -# define PR_INTERVAL_MIN 1000UL -# define PR_INTERVAL_MAX 100000UL -# define PR_INTERVAL_NO_WAIT 0UL -# define PR_INTERVAL_NO_TIMEOUT 0xffffffffUL - -NSPR_API(PRIntervalTime) PR_IntervalNow(void); -NSPR_API(PRUint32) PR_TicksPerSecond(void); -NSPR_API(PRIntervalTime) PR_SecondsToInterval(PRUint32 seconds); -NSPR_API(PRIntervalTime) PR_MillisecondsToInterval(PRUint32 milli); -NSPR_API(PRIntervalTime) PR_MicrosecondsToInterval(PRUint32 micro); -NSPR_API(PRUint32) PR_IntervalToSeconds(PRIntervalTime ticks); -NSPR_API(PRUint32) PR_IntervalToMilliseconds(PRIntervalTime ticks); -NSPR_API(PRUint32) PR_IntervalToMicroseconds(PRIntervalTime ticks); - -typedef struct PRMonitor PRMonitor; - -NSPR_API(PRMonitor*) PR_NewMonitor(void); -NSPR_API(void) PR_DestroyMonitor(PRMonitor *mon); -NSPR_API(void) PR_EnterMonitor(PRMonitor *mon); -NSPR_API(PRStatus) PR_ExitMonitor(PRMonitor *mon); -NSPR_API(PRStatus) PR_Wait(PRMonitor *mon, PRIntervalTime ticks); -NSPR_API(PRStatus) PR_Notify(PRMonitor *mon); -NSPR_API(PRStatus) PR_NotifyAll(PRMonitor *mon); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_CreateThread VBoxNsprPR_CreateThread -# define PR_JoinThread VBoxNsprPR_JoinThread -# define PR_Sleep VBoxNsprPR_Sleep -# define PR_GetCurrentThread VBoxNsprPR_GetCurrentThread -# define PR_GetThreadState VBoxNsprPR_GetThreadState -# define PR_SetThreadPrivate VBoxNsprPR_SetThreadPrivate -# define PR_GetThreadPrivate VBoxNsprPR_GetThreadPrivate -# define PR_NewThreadPrivateIndex VBoxNsprPR_NewThreadPrivateIndex -# define PR_GetThreadPriority VBoxNsprPR_GetThreadPriority -# define PR_SetThreadPriority VBoxNsprPR_SetThreadPriority -# define PR_Interrupt VBoxNsprPR_Interrupt -# define PR_ClearInterrupt VBoxNsprPR_ClearInterrupt -# define PR_BlockInterrupt VBoxNsprPR_BlockInterrupt -# define PR_UnblockInterrupt VBoxNsprPR_UnblockInterrupt -# define PR_GetThreadScope VBoxNsprPR_GetThreadScope -# define PR_GetThreadType VBoxNsprPR_GetThreadType -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRThread PRThread; -typedef struct PRThreadStack PRThreadStack; - -typedef enum PRThreadType { - PR_USER_THREAD, - PR_SYSTEM_THREAD -} PRThreadType; - -typedef enum PRThreadScope { - PR_LOCAL_THREAD, - PR_GLOBAL_THREAD, - PR_GLOBAL_BOUND_THREAD -} PRThreadScope; - -typedef enum PRThreadState { - PR_JOINABLE_THREAD, - PR_UNJOINABLE_THREAD -} PRThreadState; - -typedef enum PRThreadPriority -{ - PR_PRIORITY_FIRST =3D 0, /* just a placeholder */ - PR_PRIORITY_LOW =3D 0, /* the lowest possible priority */ - PR_PRIORITY_NORMAL =3D 1, /* most common expected priority */ - PR_PRIORITY_HIGH =3D 2, /* slightly more aggressive scheduling */ - PR_PRIORITY_URGENT =3D 3, /* it does little good to have more than= one */ - PR_PRIORITY_LAST =3D 3 /* this is just a placeholder */ -} PRThreadPriority; - -NSPR_API(PRThread*) PR_CreateThread(PRThreadType type, - void (PR_CALLBACK *start)(void *arg), - void *arg, - PRThreadPriority priority, - PRThreadScope scope, - PRThreadState state, - PRUint32 stackSize); -NSPR_API(PRStatus) PR_JoinThread(PRThread *thread); -NSPR_API(PRThread*) PR_GetCurrentThread(void); -# ifndef NO_NSPR_10_SUPPORT -# define PR_CurrentThread() PR_GetCurrentThread() /* for nspr1.0 compat.= */ -# endif /* NO_NSPR_10_SUPPORT */ -NSPR_API(PRThreadPriority) PR_GetThreadPriority(const PRThread *thread); -NSPR_API(void) PR_SetThreadPriority(PRThread *thread, PRThreadPriority pri= ority); - -typedef void (PR_CALLBACK *PRThreadPrivateDTOR)(void *priv); - -NSPR_API(PRStatus) PR_NewThreadPrivateIndex( - PRUintn *newIndex, PRThreadPrivateDTOR destructor); -NSPR_API(PRStatus) PR_SetThreadPrivate(PRUintn tpdIndex, void *priv); -NSPR_API(void*) PR_GetThreadPrivate(PRUintn tpdIndex); -NSPR_API(PRStatus) PR_Interrupt(PRThread *thread); -NSPR_API(void) PR_ClearInterrupt(void); -NSPR_API(void) PR_BlockInterrupt(void); -NSPR_API(void) PR_UnblockInterrupt(void); -NSPR_API(PRStatus) PR_Sleep(PRIntervalTime ticks); -NSPR_API(PRThreadScope) PR_GetThreadScope(const PRThread *thread); -NSPR_API(PRThreadType) PR_GetThreadType(const PRThread *thread); -NSPR_API(PRThreadState) PR_GetThreadState(const PRThread *thread); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_DestroyLock VBoxNsprPR_DestroyLock -# define PR_Lock VBoxNsprPR_Lock -# define PR_NewLock VBoxNsprPR_NewLock -# define PR_Unlock VBoxNsprPR_Unlock -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRLock PRLock; - -NSPR_API(PRLock*) PR_NewLock(void); -NSPR_API(void) PR_DestroyLock(PRLock *lock); -NSPR_API(void) PR_Lock(PRLock *lock); -NSPR_API(PRStatus) PR_Unlock(PRLock *lock); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_NewCondVar VBoxNsprPR_NewCondVar -# define PR_DestroyCondVar VBoxNsprPR_DestroyCondVar -# define PR_WaitCondVar VBoxNsprPR_WaitCondVar -# define PR_NotifyCondVar VBoxNsprPR_NotifyCondVar -# define PR_NotifyAllCondVar VBoxNsprPR_NotifyAllCondVar -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRCondVar PRCondVar; - -NSPR_API(PRCondVar*) PR_NewCondVar(PRLock *lock); -NSPR_API(void) PR_DestroyCondVar(PRCondVar *cvar); -NSPR_API(PRStatus) PR_WaitCondVar(PRCondVar *cvar, PRIntervalTime timeout); -NSPR_API(PRStatus) PR_NotifyCondVar(PRCondVar *cvar); -NSPR_API(PRStatus) PR_NotifyAllCondVar(PRCondVar *cvar); - -typedef struct PRCListStr PRCList; - -struct PRCListStr { - PRCList *next; - PRCList *prev; -}; - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PL_DestroyEvent VBoxNsplPL_DestroyEvent -# define PL_HandleEvent VBoxNsplPL_HandleEvent -# define PL_InitEvent VBoxNsplPL_InitEvent -# define PL_CreateEventQueue VBoxNsplPL_CreateEventQueue -# define PL_CreateMonitoredEventQueue VBoxNsplPL_CreateMonitoredEventQue= ue -# define PL_CreateNativeEventQueue VBoxNsplPL_CreateNativeEventQueue -# define PL_DequeueEvent VBoxNsplPL_DequeueEvent -# define PL_DestroyEventQueue VBoxNsplPL_DestroyEventQueue -# define PL_EventAvailable VBoxNsplPL_EventAvailable -# define PL_EventLoop VBoxNsplPL_EventLoop -# define PL_GetEvent VBoxNsplPL_GetEvent -# define PL_GetEventOwner VBoxNsplPL_GetEventOwner -# define PL_GetEventQueueMonitor VBoxNsplPL_GetEventQueueMonitor -# define PL_GetEventQueueSelectFD VBoxNsplPL_GetEventQueueSelectFD -# define PL_MapEvents VBoxNsplPL_MapEvents -# define PL_PostEvent VBoxNsplPL_PostEvent -# define PL_PostSynchronousEvent VBoxNsplPL_PostSynchronousEvent -# define PL_ProcessEventsBeforeID VBoxNsplPL_ProcessEventsBeforeID -# define PL_ProcessPendingEvents VBoxNsplPL_ProcessPendingEvents -# define PL_RegisterEventIDFunc VBoxNsplPL_RegisterEventIDFunc -# define PL_RevokeEvents VBoxNsplPL_RevokeEvents -# define PL_UnregisterEventIDFunc VBoxNsplPL_UnregisterEventIDFunc -# define PL_WaitForEvent VBoxNsplPL_WaitForEvent -# define PL_IsQueueNative VBoxNsplPL_IsQueueNative -# define PL_IsQueueOnCurrentThread VBoxNsplPL_IsQueueOnCurrentThread -# define PL_FavorPerformanceHint VBoxNsplPL_FavorPerformanceHint -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PLEvent PLEvent; -typedef struct PLEventQueue PLEventQueue; - -PR_EXTERN(PLEventQueue*) -PL_CreateEventQueue(const char* name, PRThread* handlerThread); -PR_EXTERN(PLEventQueue *) - PL_CreateNativeEventQueue( - const char *name, - PRThread *handlerThread - ); -PR_EXTERN(PLEventQueue *) - PL_CreateMonitoredEventQueue( - const char *name, - PRThread *handlerThread - ); -PR_EXTERN(void) -PL_DestroyEventQueue(PLEventQueue* self); -PR_EXTERN(PRMonitor*) -PL_GetEventQueueMonitor(PLEventQueue* self); - -# define PL_ENTER_EVENT_QUEUE_MONITOR(queue) \ - PR_EnterMonitor(PL_GetEventQueueMonitor(queue)) - -# define PL_EXIT_EVENT_QUEUE_MONITOR(queue) \ - PR_ExitMonitor(PL_GetEventQueueMonitor(queue)) - -PR_EXTERN(PRStatus) PL_PostEvent(PLEventQueue* self, PLEvent* event); -PR_EXTERN(void*) PL_PostSynchronousEvent(PLEventQueue* self, PLEvent* even= t); -PR_EXTERN(PLEvent*) PL_GetEvent(PLEventQueue* self); -PR_EXTERN(PRBool) PL_EventAvailable(PLEventQueue* self); - -typedef void (PR_CALLBACK *PLEventFunProc)(PLEvent* event, void* data, PLE= ventQueue* queue); - -PR_EXTERN(void) PL_MapEvents(PLEventQueue* self, PLEventFunProc fun, void*= data); -PR_EXTERN(void) PL_RevokeEvents(PLEventQueue* self, void* owner); -PR_EXTERN(void) PL_ProcessPendingEvents(PLEventQueue* self); -PR_EXTERN(PLEvent*) PL_WaitForEvent(PLEventQueue* self); -PR_EXTERN(void) PL_EventLoop(PLEventQueue* self); -PR_EXTERN(PRInt32) PL_GetEventQueueSelectFD(PLEventQueue* self); -PR_EXTERN(PRBool) PL_IsQueueOnCurrentThread( PLEventQueue *queue ); -PR_EXTERN(PRBool) PL_IsQueueNative(PLEventQueue *queue); - -typedef void* (PR_CALLBACK *PLHandleEventProc)(PLEvent* self); -typedef void (PR_CALLBACK *PLDestroyEventProc)(PLEvent* self); -PR_EXTERN(void) -PL_InitEvent(PLEvent* self, void* owner, - PLHandleEventProc handler, - PLDestroyEventProc destructor); -PR_EXTERN(void*) PL_GetEventOwner(PLEvent* self); -PR_EXTERN(void) PL_HandleEvent(PLEvent* self); -PR_EXTERN(void) PL_DestroyEvent(PLEvent* self); -PR_EXTERN(void) PL_DequeueEvent(PLEvent* self, PLEventQueue* queue); -PR_EXTERN(void) PL_FavorPerformanceHint(PRBool favorPerformanceOverEventSt= arvation, PRUint32 starvationDelay); - -struct PLEvent { - PRCList link; - PLHandleEventProc handler; - PLDestroyEventProc destructor; - void* owner; - void* synchronousResult; - PRLock* lock; - PRCondVar* condVar; - PRBool handled; -# ifdef PL_POST_TIMINGS - PRIntervalTime postTime; -# endif -# ifdef XP_UNIX - unsigned long id; -# endif /* XP_UNIX */ - /* other fields follow... */ -}; - -# if defined(XP_WIN) || defined(XP_OS2) - -PR_EXTERN(HWND) - PL_GetNativeEventReceiverWindow( - PLEventQueue *eqp - ); -# endif /* XP_WIN || XP_OS2 */ - -# ifdef XP_UNIX - -PR_EXTERN(PRInt32) -PL_ProcessEventsBeforeID(PLEventQueue *aSelf, unsigned long aID); - -typedef unsigned long (PR_CALLBACK *PLGetEventIDFunc)(void *aClosure); - -PR_EXTERN(void) -PL_RegisterEventIDFunc(PLEventQueue *aSelf, PLGetEventIDFunc aFunc, - void *aClosure); -PR_EXTERN(void) PL_UnregisterEventIDFunc(PLEventQueue *aSelf); - -# endif /* XP_UNIX */ - -/* Standard "it worked" return value */ -# define NS_OK 0 - -# define NS_ERROR_BASE ((nsresult) 0xC1F30000) - -/* Returned when an instance is not initialized */ -# define NS_ERROR_NOT_INITIALIZED (NS_ERROR_BASE + 1) - -/* Returned when an instance is already initialized */ -# define NS_ERROR_ALREADY_INITIALIZED (NS_ERROR_BASE + 2) - -/* Returned by a not implemented function */ -# define NS_ERROR_NOT_IMPLEMENTED ((nsresult) 0x80004001L) - -/* Returned when a given interface is not supported. */ -# define NS_NOINTERFACE ((nsresult) 0x80004002L) -# define NS_ERROR_NO_INTERFACE NS_NOINTERFACE - -# define NS_ERROR_INVALID_POINTER ((nsresult) 0x80004003L) -# define NS_ERROR_NULL_POINTER NS_ERROR_INVALID_POINTER - -/* Returned when a function aborts */ -# define NS_ERROR_ABORT ((nsresult) 0x80004004L) - -/* Returned when a function fails */ -# define NS_ERROR_FAILURE ((nsresult) 0x80004005L) - -/* Returned when an unexpected error occurs */ -# define NS_ERROR_UNEXPECTED ((nsresult) 0x8000ffffL) - -/* Returned when a memory allocation fails */ -# define NS_ERROR_OUT_OF_MEMORY ((nsresult) 0x8007000eL) - -/* Returned when an illegal value is passed */ -# define NS_ERROR_ILLEGAL_VALUE ((nsresult) 0x80070057L) -# define NS_ERROR_INVALID_ARG NS_ERROR_ILLEGAL_VALUE - -/* Returned when a class doesn't allow aggregation */ -# define NS_ERROR_NO_AGGREGATION ((nsresult) 0x80040110L) - -/* Returned when an operation can't complete due to an unavailable resourc= e */ -# define NS_ERROR_NOT_AVAILABLE ((nsresult) 0x80040111L) - -/* Returned when a class is not registered */ -# define NS_ERROR_FACTORY_NOT_REGISTERED ((nsresult) 0x80040154L) - -/* Returned when a class cannot be registered, but may be tried again late= r */ -# define NS_ERROR_FACTORY_REGISTER_AGAIN ((nsresult) 0x80040155L) - -/* Returned when a dynamically loaded factory couldn't be found */ -# define NS_ERROR_FACTORY_NOT_LOADED ((nsresult) 0x800401f8L) - -/* Returned when a factory doesn't support signatures */ -# define NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT \ - (NS_ERROR_BASE + 0x101) - -/* Returned when a factory already is registered */ -# define NS_ERROR_FACTORY_EXISTS (NS_ERROR_BASE + 0x100) - - -/** - * An "interface id" which can be used to uniquely identify a given - * interface. - * A "unique identifier". This is modeled after OSF DCE UUIDs. - */ - -struct nsID { - PRUint32 m0; - PRUint16 m1; - PRUint16 m2; - PRUint8 m3[8]; -}; - -typedef struct nsID nsID; -typedef nsID nsIID; - -struct nsISupports; /* forward declaration */ -struct nsIStackFrame; /* forward declaration */ -struct nsIException; /* forward declaration */ -typedef struct nsISupports nsISupports; /* forward declaration */ -typedef struct nsIStackFrame nsIStackFrame; /* forward declaration */ -typedef struct nsIException nsIException; /* forward declaration */ - -/** - * IID for the nsISupports interface - * {00000000-0000-0000-c000-000000000046} - * - * To maintain binary compatibility with COM's IUnknown, we define the IID - * of nsISupports to be the same as that of COM's IUnknown. - */ -# define NS_ISUPPORTS_IID \ - { 0x00000000, 0x0000, 0x0000, \ - {0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46} } - -/** - * Reference count values - * - * This is the return type for AddRef() and Release() in nsISupports. - * IUnknown of COM returns an unsigned long from equivalent functions. - * The following ifdef exists to maintain binary compatibility with - * IUnknown. - */ - -/** - * Basic component object model interface. Objects which implement - * this interface support runtime interface discovery (QueryInterface) - * and a reference counted memory model (AddRef/Release). This is - * modelled after the win32 IUnknown API. - */ -struct nsISupports_vtbl { - - /** - * @name Methods - */ - - /** - * A run time mechanism for interface discovery. - * @param aIID [in] A requested interface IID - * @param aInstancePtr [out] A pointer to an interface pointer to - * receive the result. - * @return NS_OK if the interface is supported by the associa= ted - * instance, NS_NOINTERFACE if it is not. - * NS_ERROR_INVALID_POINTER if aInstancePtr is NULL. - */ - nsresult PR_COM_METHOD (*QueryInterface)(nsISupports *pThis, const nsID = *iid, void **resultp); - /** - * Increases the reference count for this interface. - * The associated instance will not be deleted unless - * the reference count is returned to zero. - * - * @return The resulting reference count. - */ - nsresult PR_COM_METHOD (*AddRef)(nsISupports *pThis); - - /** - * Decreases the reference count for this interface. - * Generally, if the reference count returns to zero, - * the associated instance is deleted. - * - * @return The resulting reference count. - */ - nsresult PR_COM_METHOD (*Release)(nsISupports *pThis); - -# ifdef WIN32 - /* The MSCOM implementation has some additional methods here. - * So add them here to get correct binary layout of the object. - * In API version 4.x this affects all types. */ - nsresult PR_COM_METHOD (*GetTypeInfoCount)(nsISupports *pThis); - nsresult PR_COM_METHOD (*GetTypeInfo)(nsISupports *pThis); - nsresult PR_COM_METHOD (*GetIDsOfNames)(nsISupports *pThis); - nsresult PR_COM_METHOD (*Invoke)(nsISupports *pThis); -# endif -}; - -struct nsISupports { - struct nsISupports_vtbl *vtbl; -}; - -/* starting interface: nsIException */ -# define NS_IEXCEPTION_IID_STR "f3a8d3b4-c424-4edc-8bf6-8974c983ba78" - -# define NS_IEXCEPTION_IID \ - {0xf3a8d3b4, 0xc424, 0x4edc, \ - { 0x8b, 0xf6, 0x89, 0x74, 0xc9, 0x83, 0xba, 0x78 }} - -struct nsIException_vtbl { - - /* Methods from the Class nsISupports */ - struct nsISupports_vtbl nsisupports; - - /* readonly attribute string message; */ - nsresult PR_COM_METHOD (*GetMessage)(nsIException *pThis, PRUnichar * *a= Message); - - /* readonly attribute nsresult (*result; */ - nsresult PR_COM_METHOD (*GetResult)(nsIException *pThis, nsresult *aResu= lt); - - /* readonly attribute string name; */ - nsresult PR_COM_METHOD (*GetName)(nsIException *pThis, PRUnichar * *aNam= e); - - /* readonly attribute string filename; */ - nsresult PR_COM_METHOD (*GetFilename)(nsIException *pThis, PRUnichar * *= aFilename); - - /* readonly attribute PRUint32 lineNumber; */ - nsresult PR_COM_METHOD (*GetLineNumber)(nsIException *pThis, PRUint32 *a= LineNumber); - - /* readonly attribute PRUint32 columnNumber; */ - nsresult PR_COM_METHOD (*GetColumnNumber)(nsIException *pThis, PRUint32 = *aColumnNumber); - - /* readonly attribute nsIStackFrame location; */ - nsresult PR_COM_METHOD (*GetLocation)(nsIException *pThis, nsIStackFrame= * *aLocation); - - /* readonly attribute nsIException inner; */ - nsresult PR_COM_METHOD (*GetInner)(nsIException *pThis, nsIException * *= aInner); - - /* readonly attribute nsISupports data; */ - nsresult PR_COM_METHOD (*GetData)(nsIException *pThis, nsISupports * *aD= ata); - - /* string toString (); */ - nsresult PR_COM_METHOD (*ToString)(nsIException *pThis, PRUnichar **_ret= val); -}; - -struct nsIException { - struct nsIException_vtbl *vtbl; -}; - -/* starting interface: nsIStackFrame */ -# define NS_ISTACKFRAME_IID_STR "91d82105-7c62-4f8b-9779-154277c0ee90" - -# define NS_ISTACKFRAME_IID \ - {0x91d82105, 0x7c62, 0x4f8b, \ - { 0x97, 0x79, 0x15, 0x42, 0x77, 0xc0, 0xee, 0x90 }} - -struct nsIStackFrame_vtbl { - - /* Methods from the Class nsISupports */ - struct nsISupports_vtbl nsisupports; - - /* readonly attribute PRUint32 language; */ - nsresult PR_COM_METHOD (*GetLanguage)(nsIStackFrame *pThis, PRUint32 *aL= anguage); - - /* readonly attribute string languageName; */ - nsresult PR_COM_METHOD (*GetLanguageName)(nsIStackFrame *pThis, PRUnicha= r * *aLanguageName); - - /* readonly attribute string filename; */ - nsresult PR_COM_METHOD (*GetFilename)(nsIStackFrame *pThis, PRUnichar * = *aFilename); - - /* readonly attribute string name; */ - nsresult PR_COM_METHOD (*GetName)(nsIStackFrame *pThis, PRUnichar * *aNa= me); - - /* readonly attribute PRInt32 lineNumber; */ - nsresult PR_COM_METHOD (*GetLineNumber)(nsIStackFrame *pThis, PRInt32 *a= LineNumber); - - /* readonly attribute string sourceLine; */ - nsresult PR_COM_METHOD (*GetSourceLine)(nsIStackFrame *pThis, PRUnichar = * *aSourceLine); - - /* readonly attribute nsIStackFrame caller; */ - nsresult PR_COM_METHOD (*GetCaller)(nsIStackFrame *pThis, nsIStackFrame = * *aCaller); - - /* string toString (); */ - nsresult PR_COM_METHOD (*ToString)(nsIStackFrame *pThis, PRUnichar **_re= tval); -}; - -struct nsIStackFrame { - struct nsIStackFrame_vtbl *vtbl; -}; - -/* starting interface: nsIEventTarget */ -# define NS_IEVENTTARGET_IID_STR "ea99ad5b-cc67-4efb-97c9-2ef620a59f2a" - -# define NS_IEVENTTARGET_IID \ - {0xea99ad5b, 0xcc67, 0x4efb, \ - { 0x97, 0xc9, 0x2e, 0xf6, 0x20, 0xa5, 0x9f, 0x2a }} - -struct nsIEventTarget; -typedef struct nsIEventTarget nsIEventTarget; - -struct nsIEventTarget_vtbl { - - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*PostEvent)(nsIEventTarget *pThis, PLEvent * a= Event); - - nsresult PR_COM_METHOD (*IsOnCurrentThread)(nsIEventTarget *pThis, PRB= ool *_retval); - -}; - -struct nsIEventTarget { - struct nsIEventTarget_vtbl *vtbl; -}; - -/* starting interface: nsIEventQueue */ -# define NS_IEVENTQUEUE_IID_STR "176afb41-00a4-11d3-9f2a-00400553eef0" - -# define NS_IEVENTQUEUE_IID \ - {0x176afb41, 0x00a4, 0x11d3, \ - { 0x9f, 0x2a, 0x00, 0x40, 0x05, 0x53, 0xee, 0xf0 }} - -struct nsIEventQueue; -typedef struct nsIEventQueue nsIEventQueue; - -struct nsIEventQueue_vtbl { - - struct nsIEventTarget_vtbl nsieventtarget; - - nsresult PR_COM_METHOD (*InitEvent)(nsIEventQueue *pThis, PLEvent * aE= vent, void * owner, PLHandleEventProc handler, PLDestroyEventProc destructo= r); - - nsresult PR_COM_METHOD (*PostSynchronousEvent)(nsIEventQueue *pThis, P= LEvent * aEvent, void * *aResult); - - nsresult PR_COM_METHOD (*PendingEvents)(nsIEventQueue *pThis, PRBool *= _retval); - - nsresult PR_COM_METHOD (*ProcessPendingEvents)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*EventLoop)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*EventAvailable)(nsIEventQueue *pThis, PRBool = *aResult); - - nsresult PR_COM_METHOD (*GetEvent)(nsIEventQueue *pThis, PLEvent * *_r= etval); - - nsresult PR_COM_METHOD (*HandleEvent)(nsIEventQueue *pThis, PLEvent * = aEvent); - - nsresult PR_COM_METHOD (*WaitForEvent)(nsIEventQueue *pThis, PLEvent *= *_retval); - - PRInt32 PR_COM_METHOD (*GetEventQueueSelectFD)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*Init)(nsIEventQueue *pThis, PRBool aNative); - - nsresult PR_COM_METHOD (*InitFromPRThread)(nsIEventQueue *pThis, PRThr= ead * thread, PRBool aNative); - - nsresult PR_COM_METHOD (*InitFromPLQueue)(nsIEventQueue *pThis, PLEven= tQueue * aQueue); - - nsresult PR_COM_METHOD (*EnterMonitor)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*ExitMonitor)(nsIEventQueue *pThis); - - nsresult PR_COM_METHOD (*RevokeEvents)(nsIEventQueue *pThis, void * ow= ner); - - nsresult PR_COM_METHOD (*GetPLEventQueue)(nsIEventQueue *pThis, PLEven= tQueue * *_retval); - - nsresult PR_COM_METHOD (*IsQueueNative)(nsIEventQueue *pThis, PRBool *= _retval); - - nsresult PR_COM_METHOD (*StopAcceptingEvents)(nsIEventQueue *pThis); - -}; - -struct nsIEventQueue { - struct nsIEventQueue_vtbl *vtbl; -}; - - -# 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 - - -struct IVirtualBoxErrorInfo; -struct IDHCPServer; -struct IVirtualBox; -struct IVFSExplorer; -struct IAppliance; -struct IVirtualSystemDescription; -struct IInternalMachineControl; -struct IBIOSSettings; -struct IPCIAddress; -struct IPCIDeviceAttachment; -struct IMachine; -struct IVRDEServerInfo; -struct IConsole; -struct IHostNetworkInterface; -struct IHost; -struct ISystemProperties; -struct IGuestOSType; -struct IAdditionsFacility; -struct IGuestSession; -struct IProcess; -struct IGuestProcess; -struct IDirectory; -struct IGuestDirectory; -struct IFile; -struct IGuestFile; -struct IFsObjInfo; -struct IGuestFsObjInfo; -struct IGuest; -struct IProgress; -struct ISnapshot; -struct IMediumAttachment; -struct IMedium; -struct IMediumFormat; -struct IKeyboard; -struct IMouse; -struct IFramebuffer; -struct IFramebufferOverlay; -struct IDisplay; -struct INetworkAdapter; -struct ISerialPort; -struct IParallelPort; -struct IMachineDebugger; -struct IUSBController; -struct IUSBDevice; -struct IUSBDeviceFilter; -struct IHostUSBDevice; -struct IHostUSBDeviceFilter; -struct IAudioAdapter; -struct IVRDEServer; -struct ISharedFolder; -struct IInternalSessionControl; -struct ISession; -struct IStorageController; -struct IManagedObjectRef; -struct IWebsessionManager; -struct IPerformanceMetric; -struct IPerformanceCollector; -struct INATEngine; -struct IExtPackPlugIn; -struct IExtPackBase; -struct IExtPack; -struct IExtPackFile; -struct IExtPackManager; -struct IBandwidthGroup; -struct IBandwidthControl; -struct IVirtualBoxClient; -struct IEventSource; -struct IEventListener; -struct IEvent; -struct IReusableEvent; -struct IMachineEvent; -struct IMachineStateChangedEvent; -struct IMachineDataChangedEvent; -struct IMediumRegisteredEvent; -struct IMachineRegisteredEvent; -struct ISessionStateChangedEvent; -struct IGuestPropertyChangedEvent; -struct ISnapshotEvent; -struct ISnapshotTakenEvent; -struct ISnapshotDeletedEvent; -struct ISnapshotChangedEvent; -struct IMousePointerShapeChangedEvent; -struct IMouseCapabilityChangedEvent; -struct IKeyboardLedsChangedEvent; -struct IStateChangedEvent; -struct IAdditionsStateChangedEvent; -struct INetworkAdapterChangedEvent; -struct ISerialPortChangedEvent; -struct IParallelPortChangedEvent; -struct IStorageControllerChangedEvent; -struct IMediumChangedEvent; -struct IClipboardModeChangedEvent; -struct IDragAndDropModeChangedEvent; -struct ICPUChangedEvent; -struct ICPUExecutionCapChangedEvent; -struct IGuestKeyboardEvent; -struct IGuestMouseEvent; -struct IVRDEServerChangedEvent; -struct IVRDEServerInfoChangedEvent; -struct IUSBControllerChangedEvent; -struct IUSBDeviceStateChangedEvent; -struct ISharedFolderChangedEvent; -struct IRuntimeErrorEvent; -struct IEventSourceChangedEvent; -struct IExtraDataChangedEvent; -struct IVetoEvent; -struct IExtraDataCanChangeEvent; -struct ICanShowWindowEvent; -struct IShowWindowEvent; -struct INATRedirectEvent; -struct IHostPCIDevicePlugEvent; -struct IVBoxSVCAvailabilityChangedEvent; -struct IBandwidthGroupChangedEvent; -struct IGuestMonitorChangedEvent; -struct IStorageDeviceChangedEvent; - -typedef struct IVirtualBoxErrorInfo IVirtualBoxErrorInfo; -typedef struct IDHCPServer IDHCPServer; -typedef struct IVirtualBox IVirtualBox; -typedef struct IVFSExplorer IVFSExplorer; -typedef struct IAppliance IAppliance; -typedef struct IVirtualSystemDescription IVirtualSystemDescription; -typedef struct IInternalMachineControl IInternalMachineControl; -typedef struct IBIOSSettings IBIOSSettings; -typedef struct IPCIAddress IPCIAddress; -typedef struct IPCIDeviceAttachment IPCIDeviceAttachment; -typedef struct IMachine IMachine; -typedef struct IVRDEServerInfo IVRDEServerInfo; -typedef struct IConsole IConsole; -typedef struct IHostNetworkInterface IHostNetworkInterface; -typedef struct IHost IHost; -typedef struct ISystemProperties ISystemProperties; -typedef struct IGuestOSType IGuestOSType; -typedef struct IAdditionsFacility IAdditionsFacility; -typedef struct IGuestSession IGuestSession; -typedef struct IProcess IProcess; -typedef struct IGuestProcess IGuestProcess; -typedef struct IDirectory IDirectory; -typedef struct IGuestDirectory IGuestDirectory; -typedef struct IFile IFile; -typedef struct IGuestFile IGuestFile; -typedef struct IFsObjInfo IFsObjInfo; -typedef struct IGuestFsObjInfo IGuestFsObjInfo; -typedef struct IGuest IGuest; -typedef struct IProgress IProgress; -typedef struct ISnapshot ISnapshot; -typedef struct IMediumAttachment IMediumAttachment; -typedef struct IMedium IMedium; -typedef struct IMediumFormat IMediumFormat; -typedef struct IKeyboard IKeyboard; -typedef struct IMouse IMouse; -typedef struct IFramebuffer IFramebuffer; -typedef struct IFramebufferOverlay IFramebufferOverlay; -typedef struct IDisplay IDisplay; -typedef struct INetworkAdapter INetworkAdapter; -typedef struct ISerialPort ISerialPort; -typedef struct IParallelPort IParallelPort; -typedef struct IMachineDebugger IMachineDebugger; -typedef struct IUSBController IUSBController; -typedef struct IUSBDevice IUSBDevice; -typedef struct IUSBDeviceFilter IUSBDeviceFilter; -typedef struct IHostUSBDevice IHostUSBDevice; -typedef struct IHostUSBDeviceFilter IHostUSBDeviceFilter; -typedef struct IAudioAdapter IAudioAdapter; -typedef struct IVRDEServer IVRDEServer; -typedef struct ISharedFolder ISharedFolder; -typedef struct IInternalSessionControl IInternalSessionControl; -typedef struct ISession ISession; -typedef struct IStorageController IStorageController; -typedef struct IManagedObjectRef IManagedObjectRef; -typedef struct IWebsessionManager IWebsessionManager; -typedef struct IPerformanceMetric IPerformanceMetric; -typedef struct IPerformanceCollector IPerformanceCollector; -typedef struct INATEngine INATEngine; -typedef struct IExtPackPlugIn IExtPackPlugIn; -typedef struct IExtPackBase IExtPackBase; -typedef struct IExtPack IExtPack; -typedef struct IExtPackFile IExtPackFile; -typedef struct IExtPackManager IExtPackManager; -typedef struct IBandwidthGroup IBandwidthGroup; -typedef struct IBandwidthControl IBandwidthControl; -typedef struct IVirtualBoxClient IVirtualBoxClient; -typedef struct IEventSource IEventSource; -typedef struct IEventListener IEventListener; -typedef struct IEvent IEvent; -typedef struct IReusableEvent IReusableEvent; -typedef struct IMachineEvent IMachineEvent; -typedef struct IMachineStateChangedEvent IMachineStateChangedEvent; -typedef struct IMachineDataChangedEvent IMachineDataChangedEvent; -typedef struct IMediumRegisteredEvent IMediumRegisteredEvent; -typedef struct IMachineRegisteredEvent IMachineRegisteredEvent; -typedef struct ISessionStateChangedEvent ISessionStateChangedEvent; -typedef struct IGuestPropertyChangedEvent IGuestPropertyChangedEvent; -typedef struct ISnapshotEvent ISnapshotEvent; -typedef struct ISnapshotTakenEvent ISnapshotTakenEvent; -typedef struct ISnapshotDeletedEvent ISnapshotDeletedEvent; -typedef struct ISnapshotChangedEvent ISnapshotChangedEvent; -typedef struct IMousePointerShapeChangedEvent IMousePointerShapeChangedEve= nt; -typedef struct IMouseCapabilityChangedEvent IMouseCapabilityChangedEvent; -typedef struct IKeyboardLedsChangedEvent IKeyboardLedsChangedEvent; -typedef struct IStateChangedEvent IStateChangedEvent; -typedef struct IAdditionsStateChangedEvent IAdditionsStateChangedEvent; -typedef struct INetworkAdapterChangedEvent INetworkAdapterChangedEvent; -typedef struct ISerialPortChangedEvent ISerialPortChangedEvent; -typedef struct IParallelPortChangedEvent IParallelPortChangedEvent; -typedef struct IStorageControllerChangedEvent IStorageControllerChangedEve= nt; -typedef struct IMediumChangedEvent IMediumChangedEvent; -typedef struct IClipboardModeChangedEvent IClipboardModeChangedEvent; -typedef struct IDragAndDropModeChangedEvent IDragAndDropModeChangedEvent; -typedef struct ICPUChangedEvent ICPUChangedEvent; -typedef struct ICPUExecutionCapChangedEvent ICPUExecutionCapChangedEvent; -typedef struct IGuestKeyboardEvent IGuestKeyboardEvent; -typedef struct IGuestMouseEvent IGuestMouseEvent; -typedef struct IVRDEServerChangedEvent IVRDEServerChangedEvent; -typedef struct IVRDEServerInfoChangedEvent IVRDEServerInfoChangedEvent; -typedef struct IUSBControllerChangedEvent IUSBControllerChangedEvent; -typedef struct IUSBDeviceStateChangedEvent IUSBDeviceStateChangedEvent; -typedef struct ISharedFolderChangedEvent ISharedFolderChangedEvent; -typedef struct IRuntimeErrorEvent IRuntimeErrorEvent; -typedef struct IEventSourceChangedEvent IEventSourceChangedEvent; -typedef struct IExtraDataChangedEvent IExtraDataChangedEvent; -typedef struct IVetoEvent IVetoEvent; -typedef struct IExtraDataCanChangeEvent IExtraDataCanChangeEvent; -typedef struct ICanShowWindowEvent ICanShowWindowEvent; -typedef struct IShowWindowEvent IShowWindowEvent; -typedef struct INATRedirectEvent INATRedirectEvent; -typedef struct IHostPCIDevicePlugEvent IHostPCIDevicePlugEvent; -typedef struct IVBoxSVCAvailabilityChangedEvent IVBoxSVCAvailabilityChange= dEvent; -typedef struct IBandwidthGroupChangedEvent IBandwidthGroupChangedEvent; -typedef struct IGuestMonitorChangedEvent IGuestMonitorChangedEvent; -typedef struct IStorageDeviceChangedEvent IStorageDeviceChangedEvent; - -/* Start of enum SettingsVersion Declaration */ -# define SETTINGSVERSION_IID_STR "52bd6f5f-1adb-4493-975d-581a9c4b803f" -# define SETTINGSVERSION_IID { \ - 0x52bd6f5f, 0x1adb, 0x4493, \ - { 0x97, 0x5d, 0x58, 0x1a, 0x9c, 0x4b, 0x80, 0x3f } \ -} -enum SettingsVersion -{ - SettingsVersion_Null =3D 0, - SettingsVersion_v1_0 =3D 1, - SettingsVersion_v1_1 =3D 2, - SettingsVersion_v1_2 =3D 3, - SettingsVersion_v1_3pre =3D 4, - SettingsVersion_v1_3 =3D 5, - SettingsVersion_v1_4 =3D 6, - SettingsVersion_v1_5 =3D 7, - SettingsVersion_v1_6 =3D 8, - SettingsVersion_v1_7 =3D 9, - SettingsVersion_v1_8 =3D 10, - SettingsVersion_v1_9 =3D 11, - SettingsVersion_v1_10 =3D 12, - SettingsVersion_v1_11 =3D 13, - SettingsVersion_v1_12 =3D 14, - SettingsVersion_v1_13 =3D 15, - SettingsVersion_Future =3D 99999 -}; -/* End of enum SettingsVersion Declaration */ - - -/* Start of enum AccessMode Declaration */ -# define ACCESSMODE_IID_STR "1da0007c-ddf7-4be8-bcac-d84a1558785f" -# define ACCESSMODE_IID { \ - 0x1da0007c, 0xddf7, 0x4be8, \ - { 0xbc, 0xac, 0xd8, 0x4a, 0x15, 0x58, 0x78, 0x5f } \ -} -enum AccessMode -{ - AccessMode_ReadOnly =3D 1, - AccessMode_ReadWrite =3D 2 -}; -/* End of enum AccessMode Declaration */ - - -/* Start of enum MachineState Declaration */ -# define MACHINESTATE_IID_STR "ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe" -# define MACHINESTATE_IID { \ - 0xec6c6a9e, 0x113d, 0x4ff4, \ - { 0xb4, 0x4f, 0x0b, 0x69, 0xf2, 0x1c, 0x97, 0xfe } \ -} -enum MachineState -{ - MachineState_Null =3D 0, - MachineState_PoweredOff =3D 1, - MachineState_Saved =3D 2, - MachineState_Teleported =3D 3, - MachineState_Aborted =3D 4, - MachineState_Running =3D 5, - MachineState_Paused =3D 6, - MachineState_Stuck =3D 7, - MachineState_Teleporting =3D 8, - MachineState_LiveSnapshotting =3D 9, - MachineState_Starting =3D 10, - MachineState_Stopping =3D 11, - MachineState_Saving =3D 12, - MachineState_Restoring =3D 13, - MachineState_TeleportingPausedVM =3D 14, - MachineState_TeleportingIn =3D 15, - MachineState_FaultTolerantSyncing =3D 16, - MachineState_DeletingSnapshotOnline =3D 17, - MachineState_DeletingSnapshotPaused =3D 18, - MachineState_RestoringSnapshot =3D 19, - MachineState_DeletingSnapshot =3D 20, - MachineState_SettingUp =3D 21, - MachineState_FirstOnline =3D 5, - MachineState_LastOnline =3D 18, - MachineState_FirstTransient =3D 8, - MachineState_LastTransient =3D 21 -}; -/* End of enum MachineState Declaration */ - - -/* Start of enum SessionState Declaration */ -# define SESSIONSTATE_IID_STR "cf2700c0-ea4b-47ae-9725-7810114b94d8" -# define SESSIONSTATE_IID { \ - 0xcf2700c0, 0xea4b, 0x47ae, \ - { 0x97, 0x25, 0x78, 0x10, 0x11, 0x4b, 0x94, 0xd8 } \ -} -enum SessionState -{ - SessionState_Null =3D 0, - SessionState_Unlocked =3D 1, - SessionState_Locked =3D 2, - SessionState_Spawning =3D 3, - SessionState_Unlocking =3D 4 -}; -/* End of enum SessionState Declaration */ - - -/* Start of enum CPUPropertyType Declaration */ -# define CPUPROPERTYTYPE_IID_STR "24d356a6-2f45-4abd-b977-1cbe9c4701f5" -# define CPUPROPERTYTYPE_IID { \ - 0x24d356a6, 0x2f45, 0x4abd, \ - { 0xb9, 0x77, 0x1c, 0xbe, 0x9c, 0x47, 0x01, 0xf5 } \ -} -enum CPUPropertyType -{ - CPUPropertyType_Null =3D 0, - CPUPropertyType_PAE =3D 1, - CPUPropertyType_Synthetic =3D 2 -}; -/* End of enum CPUPropertyType Declaration */ - - -/* Start of enum HWVirtExPropertyType Declaration */ -# define HWVIRTEXPROPERTYTYPE_IID_STR "ce81dfdd-d2b8-4a90-bbea-40ee8b7ffc= ee" -# define HWVIRTEXPROPERTYTYPE_IID { \ - 0xce81dfdd, 0xd2b8, 0x4a90, \ - { 0xbb, 0xea, 0x40, 0xee, 0x8b, 0x7f, 0xfc, 0xee } \ -} -enum HWVirtExPropertyType -{ - HWVirtExPropertyType_Null =3D 0, - HWVirtExPropertyType_Enabled =3D 1, - HWVirtExPropertyType_Exclusive =3D 2, - HWVirtExPropertyType_VPID =3D 3, - HWVirtExPropertyType_NestedPaging =3D 4, - HWVirtExPropertyType_LargePages =3D 5, - HWVirtExPropertyType_Force =3D 6 -}; -/* End of enum HWVirtExPropertyType Declaration */ - - -/* Start of enum FaultToleranceState Declaration */ -# define FAULTTOLERANCESTATE_IID_STR "5124f7ec-6b67-493c-9dee-ee45a44114e= 1" -# define FAULTTOLERANCESTATE_IID { \ - 0x5124f7ec, 0x6b67, 0x493c, \ - { 0x9d, 0xee, 0xee, 0x45, 0xa4, 0x41, 0x14, 0xe1 } \ -} -enum FaultToleranceState -{ - FaultToleranceState_Inactive =3D 1, - FaultToleranceState_Master =3D 2, - FaultToleranceState_Standby =3D 3 -}; -/* End of enum FaultToleranceState Declaration */ - - -/* Start of enum LockType Declaration */ -# define LOCKTYPE_IID_STR "168a6a8e-12fd-4878-a1f9-38a750a56089" -# define LOCKTYPE_IID { \ - 0x168a6a8e, 0x12fd, 0x4878, \ - { 0xa1, 0xf9, 0x38, 0xa7, 0x50, 0xa5, 0x60, 0x89 } \ -} -enum LockType -{ - LockType_Write =3D 2, - LockType_Shared =3D 1, - LockType_VM =3D 3 -}; -/* End of enum LockType Declaration */ - - -/* Start of enum SessionType Declaration */ -# define SESSIONTYPE_IID_STR "A13C02CB-0C2C-421E-8317-AC0E8AAA153A" -# define SESSIONTYPE_IID { \ - 0xA13C02CB, 0x0C2C, 0x421E, \ - { 0x83, 0x17, 0xAC, 0x0E, 0x8A, 0xAA, 0x15, 0x3A } \ -} -enum SessionType -{ - SessionType_Null =3D 0, - SessionType_WriteLock =3D 1, - SessionType_Remote =3D 2, - SessionType_Shared =3D 3 -}; -/* End of enum SessionType Declaration */ - - -/* Start of enum DeviceType Declaration */ -# define DEVICETYPE_IID_STR "6d9420f7-0b56-4636-99f9-7346f1b01e57" -# define DEVICETYPE_IID { \ - 0x6d9420f7, 0x0b56, 0x4636, \ - { 0x99, 0xf9, 0x73, 0x46, 0xf1, 0xb0, 0x1e, 0x57 } \ -} -enum DeviceType -{ - DeviceType_Null =3D 0, - DeviceType_Floppy =3D 1, - DeviceType_DVD =3D 2, - DeviceType_HardDisk =3D 3, - DeviceType_Network =3D 4, - DeviceType_USB =3D 5, - DeviceType_SharedFolder =3D 6 -}; -/* End of enum DeviceType Declaration */ - - -/* Start of enum DeviceActivity Declaration */ -# define DEVICEACTIVITY_IID_STR "6FC8AEAA-130A-4eb5-8954-3F921422D707" -# define DEVICEACTIVITY_IID { \ - 0x6FC8AEAA, 0x130A, 0x4eb5, \ - { 0x89, 0x54, 0x3F, 0x92, 0x14, 0x22, 0xD7, 0x07 } \ -} -enum DeviceActivity -{ - DeviceActivity_Null =3D 0, - DeviceActivity_Idle =3D 1, - DeviceActivity_Reading =3D 2, - DeviceActivity_Writing =3D 3 -}; -/* End of enum DeviceActivity Declaration */ - - -/* Start of enum ClipboardMode Declaration */ -# define CLIPBOARDMODE_IID_STR "33364716-4008-4701-8f14-be0fa3d62950" -# define CLIPBOARDMODE_IID { \ - 0x33364716, 0x4008, 0x4701, \ - { 0x8f, 0x14, 0xbe, 0x0f, 0xa3, 0xd6, 0x29, 0x50 } \ -} -enum ClipboardMode -{ - ClipboardMode_Disabled =3D 0, - ClipboardMode_HostToGuest =3D 1, - ClipboardMode_GuestToHost =3D 2, - ClipboardMode_Bidirectional =3D 3 -}; -/* End of enum ClipboardMode Declaration */ - - -/* Start of enum DragAndDropMode Declaration */ -# define DRAGANDDROPMODE_IID_STR "b618ea0e-b6fb-4f8d-97f7-5e237e49b547" -# define DRAGANDDROPMODE_IID { \ - 0xb618ea0e, 0xb6fb, 0x4f8d, \ - { 0x97, 0xf7, 0x5e, 0x23, 0x7e, 0x49, 0xb5, 0x47 } \ -} -enum DragAndDropMode -{ - DragAndDropMode_Disabled =3D 0, - DragAndDropMode_HostToGuest =3D 1, - DragAndDropMode_GuestToHost =3D 2, - DragAndDropMode_Bidirectional =3D 3 -}; -/* End of enum DragAndDropMode Declaration */ - - -/* Start of enum Scope Declaration */ -# define SCOPE_IID_STR "7c91096e-499e-4eca-9f9b-9001438d7855" -# define SCOPE_IID { \ - 0x7c91096e, 0x499e, 0x4eca, \ - { 0x9f, 0x9b, 0x90, 0x01, 0x43, 0x8d, 0x78, 0x55 } \ -} -enum Scope -{ - Scope_Global =3D 0, - Scope_Machine =3D 1, - Scope_Session =3D 2 -}; -/* End of enum Scope Declaration */ - - -/* Start of enum BIOSBootMenuMode Declaration */ -# define BIOSBOOTMENUMODE_IID_STR "ae4fb9f7-29d2-45b4-b2c7-d579603135d5" -# define BIOSBOOTMENUMODE_IID { \ - 0xae4fb9f7, 0x29d2, 0x45b4, \ - { 0xb2, 0xc7, 0xd5, 0x79, 0x60, 0x31, 0x35, 0xd5 } \ -} -enum BIOSBootMenuMode -{ - BIOSBootMenuMode_Disabled =3D 0, - BIOSBootMenuMode_MenuOnly =3D 1, - BIOSBootMenuMode_MessageAndMenu =3D 2 -}; -/* End of enum BIOSBootMenuMode Declaration */ - - -/* Start of enum ProcessorFeature Declaration */ -# define PROCESSORFEATURE_IID_STR "64c38e6b-8bcf-45ad-ac03-9b406287c5bf" -# define PROCESSORFEATURE_IID { \ - 0x64c38e6b, 0x8bcf, 0x45ad, \ - { 0xac, 0x03, 0x9b, 0x40, 0x62, 0x87, 0xc5, 0xbf } \ -} -enum ProcessorFeature -{ - ProcessorFeature_HWVirtEx =3D 0, - ProcessorFeature_PAE =3D 1, - ProcessorFeature_LongMode =3D 2, - ProcessorFeature_NestedPaging =3D 3 -}; -/* End of enum ProcessorFeature Declaration */ - - -/* Start of enum FirmwareType Declaration */ -# define FIRMWARETYPE_IID_STR "b903f264-c230-483e-ac74-2b37ce60d371" -# define FIRMWARETYPE_IID { \ - 0xb903f264, 0xc230, 0x483e, \ - { 0xac, 0x74, 0x2b, 0x37, 0xce, 0x60, 0xd3, 0x71 } \ -} -enum FirmwareType -{ - FirmwareType_BIOS =3D 1, - FirmwareType_EFI =3D 2, - FirmwareType_EFI32 =3D 3, - FirmwareType_EFI64 =3D 4, - FirmwareType_EFIDUAL =3D 5 -}; -/* End of enum FirmwareType Declaration */ - - -/* Start of enum PointingHIDType Declaration */ -# define POINTINGHIDTYPE_IID_STR "e44b2f7b-72ba-44fb-9e53-2186014f0d17" -# define POINTINGHIDTYPE_IID { \ - 0xe44b2f7b, 0x72ba, 0x44fb, \ - { 0x9e, 0x53, 0x21, 0x86, 0x01, 0x4f, 0x0d, 0x17 } \ -} -enum PointingHIDType -{ - PointingHIDType_None =3D 1, - PointingHIDType_PS2Mouse =3D 2, - PointingHIDType_USBMouse =3D 3, - PointingHIDType_USBTablet =3D 4, - PointingHIDType_ComboMouse =3D 5 -}; -/* End of enum PointingHIDType Declaration */ - - -/* Start of enum KeyboardHIDType Declaration */ -# define KEYBOARDHIDTYPE_IID_STR "383e43d7-5c7c-4ec8-9cb8-eda1bccd6699" -# define KEYBOARDHIDTYPE_IID { \ - 0x383e43d7, 0x5c7c, 0x4ec8, \ - { 0x9c, 0xb8, 0xed, 0xa1, 0xbc, 0xcd, 0x66, 0x99 } \ -} -enum KeyboardHIDType -{ - KeyboardHIDType_None =3D 1, - KeyboardHIDType_PS2Keyboard =3D 2, - KeyboardHIDType_USBKeyboard =3D 3, - KeyboardHIDType_ComboKeyboard =3D 4 -}; -/* End of enum KeyboardHIDType Declaration */ - - -/* Start of enum VFSType Declaration */ -# define VFSTYPE_IID_STR "813999ba-b949-48a8-9230-aadc6285e2f2" -# define VFSTYPE_IID { \ - 0x813999ba, 0xb949, 0x48a8, \ - { 0x92, 0x30, 0xaa, 0xdc, 0x62, 0x85, 0xe2, 0xf2 } \ -} -enum VFSType -{ - VFSType_File =3D 1, - VFSType_Cloud =3D 2, - VFSType_S3 =3D 3, - VFSType_WebDav =3D 4 -}; -/* End of enum VFSType Declaration */ - - -/* Start of enum VFSFileType Declaration */ -# define VFSFILETYPE_IID_STR "714333cd-44e2-415f-a245-d378fa9b1242" -# define VFSFILETYPE_IID { \ - 0x714333cd, 0x44e2, 0x415f, \ - { 0xa2, 0x45, 0xd3, 0x78, 0xfa, 0x9b, 0x12, 0x42 } \ -} -enum VFSFileType -{ - VFSFileType_Unknown =3D 1, - VFSFileType_Fifo =3D 2, - VFSFileType_DevChar =3D 3, - VFSFileType_Directory =3D 4, - VFSFileType_DevBlock =3D 5, - VFSFileType_File =3D 6, - VFSFileType_SymLink =3D 7, - VFSFileType_Socket =3D 8, - VFSFileType_WhiteOut =3D 9 -}; -/* End of enum VFSFileType Declaration */ - - -/* Start of enum ImportOptions Declaration */ -# define IMPORTOPTIONS_IID_STR "0a981523-3b20-4004-8ee3-dfd322202ace" -# define IMPORTOPTIONS_IID { \ - 0x0a981523, 0x3b20, 0x4004, \ - { 0x8e, 0xe3, 0xdf, 0xd3, 0x22, 0x20, 0x2a, 0xce } \ -} -enum ImportOptions -{ - ImportOptions_KeepAllMACs =3D 1, - ImportOptions_KeepNATMACs =3D 2 -}; -/* End of enum ImportOptions Declaration */ - - -/* Start of enum VirtualSystemDescriptionType Declaration */ -# define VIRTUALSYSTEMDESCRIPTIONTYPE_IID_STR "303c0900-a746-4612-8c67-79= 003e91f459" -# define VIRTUALSYSTEMDESCRIPTIONTYPE_IID { \ - 0x303c0900, 0xa746, 0x4612, \ - { 0x8c, 0x67, 0x79, 0x00, 0x3e, 0x91, 0xf4, 0x59 } \ -} -enum VirtualSystemDescriptionType -{ - VirtualSystemDescriptionType_Ignore =3D 1, - VirtualSystemDescriptionType_OS =3D 2, - VirtualSystemDescriptionType_Name =3D 3, - VirtualSystemDescriptionType_Product =3D 4, - VirtualSystemDescriptionType_Vendor =3D 5, - VirtualSystemDescriptionType_Version =3D 6, - VirtualSystemDescriptionType_ProductUrl =3D 7, - VirtualSystemDescriptionType_VendorUrl =3D 8, - VirtualSystemDescriptionType_Description =3D 9, - VirtualSystemDescriptionType_License =3D 10, - VirtualSystemDescriptionType_Miscellaneous =3D 11, - VirtualSystemDescriptionType_CPU =3D 12, - VirtualSystemDescriptionType_Memory =3D 13, - VirtualSystemDescriptionType_HardDiskControllerIDE =3D 14, - VirtualSystemDescriptionType_HardDiskControllerSATA =3D 15, - VirtualSystemDescriptionType_HardDiskControllerSCSI =3D 16, - VirtualSystemDescriptionType_HardDiskControllerSAS =3D 17, - VirtualSystemDescriptionType_HardDiskImage =3D 18, - VirtualSystemDescriptionType_Floppy =3D 19, - VirtualSystemDescriptionType_CDROM =3D 20, - VirtualSystemDescriptionType_NetworkAdapter =3D 21, - VirtualSystemDescriptionType_USBController =3D 22, - VirtualSystemDescriptionType_SoundCard =3D 23, - VirtualSystemDescriptionType_SettingsFile =3D 24 -}; -/* End of enum VirtualSystemDescriptionType Declaration */ - - -/* Start of enum VirtualSystemDescriptionValueType Declaration */ -# define VIRTUALSYSTEMDESCRIPTIONVALUETYPE_IID_STR "56d9403f-3425-4118-99= 19-36f2a9b8c77c" -# define VIRTUALSYSTEMDESCRIPTIONVALUETYPE_IID { \ - 0x56d9403f, 0x3425, 0x4118, \ - { 0x99, 0x19, 0x36, 0xf2, 0xa9, 0xb8, 0xc7, 0x7c } \ -} -enum VirtualSystemDescriptionValueType -{ - VirtualSystemDescriptionValueType_Reference =3D 1, - VirtualSystemDescriptionValueType_Original =3D 2, - VirtualSystemDescriptionValueType_Auto =3D 3, - VirtualSystemDescriptionValueType_ExtraConfig =3D 4 -}; -/* End of enum VirtualSystemDescriptionValueType Declaration */ - - -/* Start of enum CleanupMode Declaration */ -# define CLEANUPMODE_IID_STR "67897c50-7cca-47a9-83f6-ce8fd8eb5441" -# define CLEANUPMODE_IID { \ - 0x67897c50, 0x7cca, 0x47a9, \ - { 0x83, 0xf6, 0xce, 0x8f, 0xd8, 0xeb, 0x54, 0x41 } \ -} -enum CleanupMode -{ - CleanupMode_UnregisterOnly =3D 1, - CleanupMode_DetachAllReturnNone =3D 2, - CleanupMode_DetachAllReturnHardDisksOnly =3D 3, - CleanupMode_Full =3D 4 -}; -/* End of enum CleanupMode Declaration */ - - -/* Start of enum CloneMode Declaration */ -# define CLONEMODE_IID_STR "A7A159FE-5096-4B8D-8C3C-D033CB0B35A8" -# define CLONEMODE_IID { \ - 0xA7A159FE, 0x5096, 0x4B8D, \ - { 0x8C, 0x3C, 0xD0, 0x33, 0xCB, 0x0B, 0x35, 0xA8 } \ -} -enum CloneMode -{ - CloneMode_MachineState =3D 1, - CloneMode_MachineAndChildStates =3D 2, - CloneMode_AllStates =3D 3 -}; -/* End of enum CloneMode Declaration */ - - -/* Start of enum CloneOptions Declaration */ -# define CLONEOPTIONS_IID_STR "22243f8e-96ab-497c-8cf0-f40a566c630b" -# define CLONEOPTIONS_IID { \ - 0x22243f8e, 0x96ab, 0x497c, \ - { 0x8c, 0xf0, 0xf4, 0x0a, 0x56, 0x6c, 0x63, 0x0b } \ -} -enum CloneOptions -{ - CloneOptions_Link =3D 1, - CloneOptions_KeepAllMACs =3D 2, - CloneOptions_KeepNATMACs =3D 3, - CloneOptions_KeepDiskNames =3D 4 -}; -/* End of enum CloneOptions Declaration */ - - -/* Start of enum AutostopType Declaration */ -# define AUTOSTOPTYPE_IID_STR "6bb96740-cf34-470d-aab2-2cd48ea2e10e" -# define AUTOSTOPTYPE_IID { \ - 0x6bb96740, 0xcf34, 0x470d, \ - { 0xaa, 0xb2, 0x2c, 0xd4, 0x8e, 0xa2, 0xe1, 0x0e } \ -} -enum AutostopType -{ - AutostopType_Disabled =3D 1, - AutostopType_SaveState =3D 2, - AutostopType_PowerOff =3D 3, - AutostopType_AcpiShutdown =3D 4 -}; -/* End of enum AutostopType Declaration */ - - -/* Start of enum HostNetworkInterfaceMediumType Declaration */ -# define HOSTNETWORKINTERFACEMEDIUMTYPE_IID_STR "1aa54aaf-2497-45a2-bfb1-= 8eb225e93d5b" -# define HOSTNETWORKINTERFACEMEDIUMTYPE_IID { \ - 0x1aa54aaf, 0x2497, 0x45a2, \ - { 0xbf, 0xb1, 0x8e, 0xb2, 0x25, 0xe9, 0x3d, 0x5b } \ -} -enum HostNetworkInterfaceMediumType -{ - HostNetworkInterfaceMediumType_Unknown =3D 0, - HostNetworkInterfaceMediumType_Ethernet =3D 1, - HostNetworkInterfaceMediumType_PPP =3D 2, - HostNetworkInterfaceMediumType_SLIP =3D 3 -}; -/* End of enum HostNetworkInterfaceMediumType Declaration */ - - -/* Start of enum HostNetworkInterfaceStatus Declaration */ -# define HOSTNETWORKINTERFACESTATUS_IID_STR "CC474A69-2710-434B-8D99-C38E= 5D5A6F41" -# define HOSTNETWORKINTERFACESTATUS_IID { \ - 0xCC474A69, 0x2710, 0x434B, \ - { 0x8D, 0x99, 0xC3, 0x8E, 0x5D, 0x5A, 0x6F, 0x41 } \ -} -enum HostNetworkInterfaceStatus -{ - HostNetworkInterfaceStatus_Unknown =3D 0, - HostNetworkInterfaceStatus_Up =3D 1, - HostNetworkInterfaceStatus_Down =3D 2 -}; -/* End of enum HostNetworkInterfaceStatus Declaration */ - - -/* Start of enum HostNetworkInterfaceType Declaration */ -# define HOSTNETWORKINTERFACETYPE_IID_STR "67431b00-9946-48a2-bc02-b25c59= 19f4f3" -# define HOSTNETWORKINTERFACETYPE_IID { \ - 0x67431b00, 0x9946, 0x48a2, \ - { 0xbc, 0x02, 0xb2, 0x5c, 0x59, 0x19, 0xf4, 0xf3 } \ -} -enum HostNetworkInterfaceType -{ - HostNetworkInterfaceType_Bridged =3D 1, - HostNetworkInterfaceType_HostOnly =3D 2 -}; -/* End of enum HostNetworkInterfaceType Declaration */ - - -/* Start of enum AdditionsFacilityType Declaration */ -# define ADDITIONSFACILITYTYPE_IID_STR "98f7f957-89fb-49b6-a3b1-31e3285eb= 1d8" -# define ADDITIONSFACILITYTYPE_IID { \ - 0x98f7f957, 0x89fb, 0x49b6, \ - { 0xa3, 0xb1, 0x31, 0xe3, 0x28, 0x5e, 0xb1, 0xd8 } \ -} -enum AdditionsFacilityType -{ - AdditionsFacilityType_None =3D 0, - AdditionsFacilityType_VBoxGuestDriver =3D 20, - AdditionsFacilityType_AutoLogon =3D 90, - AdditionsFacilityType_VBoxService =3D 100, - AdditionsFacilityType_VBoxTrayClient =3D 101, - AdditionsFacilityType_Seamless =3D 1000, - AdditionsFacilityType_Graphics =3D 1100, - AdditionsFacilityType_All =3D 2147483646 -}; -/* End of enum AdditionsFacilityType Declaration */ - - -/* Start of enum AdditionsFacilityClass Declaration */ -# define ADDITIONSFACILITYCLASS_IID_STR "446451b2-c88d-4e5d-84c9-91bc7f53= 3f5f" -# define ADDITIONSFACILITYCLASS_IID { \ - 0x446451b2, 0xc88d, 0x4e5d, \ - { 0x84, 0xc9, 0x91, 0xbc, 0x7f, 0x53, 0x3f, 0x5f } \ -} -enum AdditionsFacilityClass -{ - AdditionsFacilityClass_None =3D 0, - AdditionsFacilityClass_Driver =3D 10, - AdditionsFacilityClass_Service =3D 30, - AdditionsFacilityClass_Program =3D 50, - AdditionsFacilityClass_Feature =3D 100, - AdditionsFacilityClass_ThirdParty =3D 999, - AdditionsFacilityClass_All =3D 2147483646 -}; -/* End of enum AdditionsFacilityClass Declaration */ - - -/* Start of enum AdditionsFacilityStatus Declaration */ -# define ADDITIONSFACILITYSTATUS_IID_STR "ce06f9e1-394e-4fe9-9368-5a88c56= 7dbde" -# define ADDITIONSFACILITYSTATUS_IID { \ - 0xce06f9e1, 0x394e, 0x4fe9, \ - { 0x93, 0x68, 0x5a, 0x88, 0xc5, 0x67, 0xdb, 0xde } \ -} -enum AdditionsFacilityStatus -{ - AdditionsFacilityStatus_Inactive =3D 0, - AdditionsFacilityStatus_Paused =3D 1, - AdditionsFacilityStatus_PreInit =3D 20, - AdditionsFacilityStatus_Init =3D 30, - AdditionsFacilityStatus_Active =3D 50, - AdditionsFacilityStatus_Terminating =3D 100, - AdditionsFacilityStatus_Terminated =3D 101, - AdditionsFacilityStatus_Failed =3D 800, - AdditionsFacilityStatus_Unknown =3D 999 -}; -/* End of enum AdditionsFacilityStatus Declaration */ - - -/* Start of enum AdditionsRunLevelType Declaration */ -# define ADDITIONSRUNLEVELTYPE_IID_STR "a25417ee-a9dd-4f5b-b0dc-377860087= 754" -# define ADDITIONSRUNLEVELTYPE_IID { \ - 0xa25417ee, 0xa9dd, 0x4f5b, \ - { 0xb0, 0xdc, 0x37, 0x78, 0x60, 0x08, 0x77, 0x54 } \ -} -enum AdditionsRunLevelType -{ - AdditionsRunLevelType_None =3D 0, - AdditionsRunLevelType_System =3D 1, - AdditionsRunLevelType_Userland =3D 2, - AdditionsRunLevelType_Desktop =3D 3 -}; -/* End of enum AdditionsRunLevelType Declaration */ - - -/* Start of enum AdditionsUpdateFlag Declaration */ -# define ADDITIONSUPDATEFLAG_IID_STR "726a818d-18d6-4389-94e8-3e9e6826171= a" -# define ADDITIONSUPDATEFLAG_IID { \ - 0x726a818d, 0x18d6, 0x4389, \ - { 0x94, 0xe8, 0x3e, 0x9e, 0x68, 0x26, 0x17, 0x1a } \ -} -enum AdditionsUpdateFlag -{ - AdditionsUpdateFlag_None =3D 0, - AdditionsUpdateFlag_WaitForUpdateStartOnly =3D 1 -}; -/* End of enum AdditionsUpdateFlag Declaration */ - - -/* Start of enum FileSeekType Declaration */ -# define FILESEEKTYPE_IID_STR "1b73f4f3-3515-4073-a506-76878d9e2541" -# define FILESEEKTYPE_IID { \ - 0x1b73f4f3, 0x3515, 0x4073, \ - { 0xa5, 0x06, 0x76, 0x87, 0x8d, 0x9e, 0x25, 0x41 } \ -} -enum FileSeekType -{ - FileSeekType_Set =3D 0, - FileSeekType_Current =3D 1 -}; -/* End of enum FileSeekType Declaration */ - - -/* Start of enum ProcessInputFlag Declaration */ -# define PROCESSINPUTFLAG_IID_STR "5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5" -# define PROCESSINPUTFLAG_IID { \ - 0x5d38c1dd, 0x2604, 0x4ddf, \ - { 0x92, 0xe5, 0x0c, 0x0c, 0xdd, 0x3b, 0xdb, 0xd5 } \ -} -enum ProcessInputFlag -{ - ProcessInputFlag_None =3D 0, - ProcessInputFlag_EndOfFile =3D 1 -}; -/* End of enum ProcessInputFlag Declaration */ - - -/* Start of enum ProcessOutputFlag Declaration */ -# define PROCESSOUTPUTFLAG_IID_STR "9979e85a-52bb-40b7-870c-57115e27e0f1" -# define PROCESSOUTPUTFLAG_IID { \ - 0x9979e85a, 0x52bb, 0x40b7, \ - { 0x87, 0x0c, 0x57, 0x11, 0x5e, 0x27, 0xe0, 0xf1 } \ -} -enum ProcessOutputFlag -{ - ProcessOutputFlag_None =3D 0, - ProcessOutputFlag_StdErr =3D 1 -}; -/* End of enum ProcessOutputFlag Declaration */ - - -/* Start of enum ProcessWaitForFlag Declaration */ -# define PROCESSWAITFORFLAG_IID_STR "23b550c7-78e1-437e-98f0-65fd9757bcd2" -# define PROCESSWAITFORFLAG_IID { \ - 0x23b550c7, 0x78e1, 0x437e, \ - { 0x98, 0xf0, 0x65, 0xfd, 0x97, 0x57, 0xbc, 0xd2 } \ -} -enum ProcessWaitForFlag -{ - ProcessWaitForFlag_None =3D 0, - ProcessWaitForFlag_Start =3D 1, - ProcessWaitForFlag_Terminate =3D 2, - ProcessWaitForFlag_StdIn =3D 4, - ProcessWaitForFlag_StdOut =3D 8, - ProcessWaitForFlag_StdErr =3D 16 -}; -/* End of enum ProcessWaitForFlag Declaration */ - - -/* Start of enum ProcessWaitResult Declaration */ -# define PROCESSWAITRESULT_IID_STR "40719cbe-f192-4fe9-a231-6697b3c8e2b4" -# define PROCESSWAITRESULT_IID { \ - 0x40719cbe, 0xf192, 0x4fe9, \ - { 0xa2, 0x31, 0x66, 0x97, 0xb3, 0xc8, 0xe2, 0xb4 } \ -} -enum ProcessWaitResult -{ - ProcessWaitResult_None =3D 0, - ProcessWaitResult_Start =3D 1, - ProcessWaitResult_Terminate =3D 2, - ProcessWaitResult_Status =3D 3, - ProcessWaitResult_Error =3D 4, - ProcessWaitResult_Timeout =3D 5, - ProcessWaitResult_StdIn =3D 6, - ProcessWaitResult_StdOut =3D 7, - ProcessWaitResult_StdErr =3D 8, - ProcessWaitResult_WaitFlagNotSupported =3D 9 -}; -/* End of enum ProcessWaitResult Declaration */ - - -/* Start of enum CopyFileFlag Declaration */ -# define COPYFILEFLAG_IID_STR "23f79fdf-738a-493d-b80b-42d607c9b916" -# define COPYFILEFLAG_IID { \ - 0x23f79fdf, 0x738a, 0x493d, \ - { 0xb8, 0x0b, 0x42, 0xd6, 0x07, 0xc9, 0xb9, 0x16 } \ -} -enum CopyFileFlag -{ - CopyFileFlag_None =3D 0, - CopyFileFlag_Recursive =3D 1, - CopyFileFlag_Update =3D 2, - CopyFileFlag_FollowLinks =3D 4 -}; -/* End of enum CopyFileFlag Declaration */ - - -/* Start of enum DirectoryCreateFlag Declaration */ -# define DIRECTORYCREATEFLAG_IID_STR "bd721b0e-ced5-4f79-b368-249897c32a3= 6" -# define DIRECTORYCREATEFLAG_IID { \ - 0xbd721b0e, 0xced5, 0x4f79, \ - { 0xb3, 0x68, 0x24, 0x98, 0x97, 0xc3, 0x2a, 0x36 } \ -} -enum DirectoryCreateFlag -{ - DirectoryCreateFlag_None =3D 0, - DirectoryCreateFlag_Parents =3D 1 -}; -/* End of enum DirectoryCreateFlag Declaration */ - - -/* Start of enum DirectoryRemoveRecFlag Declaration */ -# define DIRECTORYREMOVERECFLAG_IID_STR "455aabf0-7692-48f6-9061-f21579b6= 5769" -# define DIRECTORYREMOVERECFLAG_IID { \ - 0x455aabf0, 0x7692, 0x48f6, \ - { 0x90, 0x61, 0xf2, 0x15, 0x79, 0xb6, 0x57, 0x69 } \ -} -enum DirectoryRemoveRecFlag -{ - DirectoryRemoveRecFlag_None =3D 0, - DirectoryRemoveRecFlag_ContentAndDir =3D 1, - DirectoryRemoveRecFlag_ContentOnly =3D 2 -}; -/* End of enum DirectoryRemoveRecFlag Declaration */ - - -/* Start of enum PathRenameFlag Declaration */ -# define PATHRENAMEFLAG_IID_STR "f3baa09f-c758-453d-b91c-c7787d76351d" -# define PATHRENAMEFLAG_IID { \ - 0xf3baa09f, 0xc758, 0x453d, \ - { 0xb9, 0x1c, 0xc7, 0x78, 0x7d, 0x76, 0x35, 0x1d } \ -} -enum PathRenameFlag -{ - PathRenameFlag_None =3D 0, - PathRenameFlag_NoReplace =3D 1, - PathRenameFlag_Replace =3D 2, - PathRenameFlag_NoSymlinks =3D 4 -}; -/* End of enum PathRenameFlag Declaration */ - - -/* Start of enum ProcessCreateFlag Declaration */ -# define PROCESSCREATEFLAG_IID_STR "35192799-bfde-405d-9bea-c735ab9998e4" -# define PROCESSCREATEFLAG_IID { \ - 0x35192799, 0xbfde, 0x405d, \ - { 0x9b, 0xea, 0xc7, 0x35, 0xab, 0x99, 0x98, 0xe4 } \ -} -enum ProcessCreateFlag -{ - ProcessCreateFlag_None =3D 0, - ProcessCreateFlag_WaitForProcessStartOnly =3D 1, - ProcessCreateFlag_IgnoreOrphanedProcesses =3D 2, - ProcessCreateFlag_Hidden =3D 4, - ProcessCreateFlag_NoProfile =3D 8, - ProcessCreateFlag_WaitForStdOut =3D 16, - ProcessCreateFlag_WaitForStdErr =3D 32, - ProcessCreateFlag_ExpandArguments =3D 64 -}; -/* End of enum ProcessCreateFlag Declaration */ - - -/* Start of enum ProcessPriority Declaration */ -# define PROCESSPRIORITY_IID_STR "ee8cac50-e232-49fe-806b-d1214d9c2e49" -# define PROCESSPRIORITY_IID { \ - 0xee8cac50, 0xe232, 0x49fe, \ - { 0x80, 0x6b, 0xd1, 0x21, 0x4d, 0x9c, 0x2e, 0x49 } \ -} -enum ProcessPriority -{ - ProcessPriority_Invalid =3D 0, - ProcessPriority_Default =3D 1 -}; -/* End of enum ProcessPriority Declaration */ - - -/* Start of enum SymlinkType Declaration */ -# define SYMLINKTYPE_IID_STR "37794668-f8f1-4714-98a5-6f8fa2ed0118" -# define SYMLINKTYPE_IID { \ - 0x37794668, 0xf8f1, 0x4714, \ - { 0x98, 0xa5, 0x6f, 0x8f, 0xa2, 0xed, 0x01, 0x18 } \ -} -enum SymlinkType -{ - SymlinkType_Unknown =3D 0, - SymlinkType_Directory =3D 1, - SymlinkType_File =3D 2 -}; -/* End of enum SymlinkType Declaration */ - - -/* Start of enum SymlinkReadFlag Declaration */ -# define SYMLINKREADFLAG_IID_STR "b7fe2b9d-790e-4b25-8adf-1ca33026931f" -# define SYMLINKREADFLAG_IID { \ - 0xb7fe2b9d, 0x790e, 0x4b25, \ - { 0x8a, 0xdf, 0x1c, 0xa3, 0x30, 0x26, 0x93, 0x1f } \ -} -enum SymlinkReadFlag -{ - SymlinkReadFlag_None =3D 0, - SymlinkReadFlag_NoSymlinks =3D 1 -}; -/* End of enum SymlinkReadFlag Declaration */ - - -/* Start of enum ProcessStatus Declaration */ -# define PROCESSSTATUS_IID_STR "4d52368f-5b48-4bfe-b486-acf89139b52f" -# define PROCESSSTATUS_IID { \ - 0x4d52368f, 0x5b48, 0x4bfe, \ - { 0xb4, 0x86, 0xac, 0xf8, 0x91, 0x39, 0xb5, 0x2f } \ -} -enum ProcessStatus -{ - ProcessStatus_Undefined =3D 0, - ProcessStatus_Starting =3D 10, - ProcessStatus_Started =3D 100, - ProcessStatus_Paused =3D 110, - ProcessStatus_Terminating =3D 480, - ProcessStatus_TerminatedNormally =3D 500, - ProcessStatus_TerminatedSignal =3D 510, - ProcessStatus_TerminatedAbnormally =3D 511, - ProcessStatus_TimedOutKilled =3D 512, - ProcessStatus_TimedOutAbnormally =3D 513, - ProcessStatus_Down =3D 600, - ProcessStatus_Error =3D 800 -}; -/* End of enum ProcessStatus Declaration */ - - -/* Start of enum FsObjType Declaration */ -# define FSOBJTYPE_IID_STR "a1ed437c-b3c3-4ca2-b19c-4239d658d5e8" -# define FSOBJTYPE_IID { \ - 0xa1ed437c, 0xb3c3, 0x4ca2, \ - { 0xb1, 0x9c, 0x42, 0x39, 0xd6, 0x58, 0xd5, 0xe8 } \ -} -enum FsObjType -{ - FsObjType_Undefined =3D 0, - FsObjType_FIFO =3D 1, - FsObjType_DevChar =3D 10, - FsObjType_DevBlock =3D 11, - FsObjType_Directory =3D 50, - FsObjType_File =3D 80, - FsObjType_Symlink =3D 100, - FsObjType_Socket =3D 200, - FsObjType_Whiteout =3D 400 -}; -/* End of enum FsObjType Declaration */ - - -/* Start of enum DragAndDropAction Declaration */ -# define DRAGANDDROPACTION_IID_STR "47f3b162-c107-4fcd-bfa7-54b8135c441e" -# define DRAGANDDROPACTION_IID { \ - 0x47f3b162, 0xc107, 0x4fcd, \ - { 0xbf, 0xa7, 0x54, 0xb8, 0x13, 0x5c, 0x44, 0x1e } \ -} -enum DragAndDropAction -{ - DragAndDropAction_Ignore =3D 0, - DragAndDropAction_Copy =3D 1, - DragAndDropAction_Move =3D 2, - DragAndDropAction_Link =3D 3 -}; -/* End of enum DragAndDropAction Declaration */ - - -/* Start of enum DirectoryOpenFlag Declaration */ -# define DIRECTORYOPENFLAG_IID_STR "5138837a-8fd2-4194-a1b0-08f7bc3949d0" -# define DIRECTORYOPENFLAG_IID { \ - 0x5138837a, 0x8fd2, 0x4194, \ - { 0xa1, 0xb0, 0x08, 0xf7, 0xbc, 0x39, 0x49, 0xd0 } \ -} -enum DirectoryOpenFlag -{ - DirectoryOpenFlag_None =3D 0, - DirectoryOpenFlag_NoSymlinks =3D 1 -}; -/* End of enum DirectoryOpenFlag Declaration */ - - -/* Start of enum MediumState Declaration */ -# define MEDIUMSTATE_IID_STR "ef41e980-e012-43cd-9dea-479d4ef14d13" -# define MEDIUMSTATE_IID { \ - 0xef41e980, 0xe012, 0x43cd, \ - { 0x9d, 0xea, 0x47, 0x9d, 0x4e, 0xf1, 0x4d, 0x13 } \ -} -enum MediumState -{ - MediumState_NotCreated =3D 0, - MediumState_Created =3D 1, - MediumState_LockedRead =3D 2, - MediumState_LockedWrite =3D 3, - MediumState_Inaccessible =3D 4, - MediumState_Creating =3D 5, - MediumState_Deleting =3D 6 -}; -/* End of enum MediumState Declaration */ - - -/* Start of enum MediumType Declaration */ -# define MEDIUMTYPE_IID_STR "fe663fb5-c244-4e1b-9d81-c628b417dd04" -# define MEDIUMTYPE_IID { \ - 0xfe663fb5, 0xc244, 0x4e1b, \ - { 0x9d, 0x81, 0xc6, 0x28, 0xb4, 0x17, 0xdd, 0x04 } \ -} -enum MediumType -{ - MediumType_Normal =3D 0, - MediumType_Immutable =3D 1, - MediumType_Writethrough =3D 2, - MediumType_Shareable =3D 3, - MediumType_Readonly =3D 4, - MediumType_MultiAttach =3D 5 -}; -/* End of enum MediumType Declaration */ - - -/* Start of enum MediumVariant Declaration */ -# define MEDIUMVARIANT_IID_STR "80685b6b-e42f-497d-8271-e77bf3c61ada" -# define MEDIUMVARIANT_IID { \ - 0x80685b6b, 0xe42f, 0x497d, \ - { 0x82, 0x71, 0xe7, 0x7b, 0xf3, 0xc6, 0x1a, 0xda } \ -} -enum MediumVariant -{ - MediumVariant_Standard =3D 0, - MediumVariant_VmdkSplit2G =3D 0x01, - MediumVariant_VmdkRawDisk =3D 0x02, - MediumVariant_VmdkStreamOptimized =3D 0x04, - MediumVariant_VmdkESX =3D 0x08, - MediumVariant_Fixed =3D 0x10000, - MediumVariant_Diff =3D 0x20000, - MediumVariant_NoCreateDir =3D 0x40000000 -}; -/* End of enum MediumVariant Declaration */ - - -/* Start of enum DataType Declaration */ -# define DATATYPE_IID_STR "d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7" -# define DATATYPE_IID { \ - 0xd90ea51e, 0xa3f1, 0x4a01, \ - { 0xbe, 0xb1, 0xc1, 0x72, 0x3c, 0x0d, 0x3b, 0xa7 } \ -} -enum DataType -{ - DataType_Int32 =3D 0, - DataType_Int8 =3D 1, - DataType_String =3D 2 -}; -/* End of enum DataType Declaration */ - - -/* Start of enum DataFlags Declaration */ -# define DATAFLAGS_IID_STR "86884dcf-1d6b-4f1b-b4bf-f5aa44959d60" -# define DATAFLAGS_IID { \ - 0x86884dcf, 0x1d6b, 0x4f1b, \ - { 0xb4, 0xbf, 0xf5, 0xaa, 0x44, 0x95, 0x9d, 0x60 } \ -} -enum DataFlags -{ - DataFlags_None =3D 0x00, - DataFlags_Mandatory =3D 0x01, - DataFlags_Expert =3D 0x02, - DataFlags_Array =3D 0x04, - DataFlags_FlagMask =3D 0x07 -}; -/* End of enum DataFlags Declaration */ - - -/* Start of enum MediumFormatCapabilities Declaration */ -# define MEDIUMFORMATCAPABILITIES_IID_STR "7342ba79-7ce0-4d94-8f86-5ed5a1= 85d9bd" -# define MEDIUMFORMATCAPABILITIES_IID { \ - 0x7342ba79, 0x7ce0, 0x4d94, \ - { 0x8f, 0x86, 0x5e, 0xd5, 0xa1, 0x85, 0xd9, 0xbd } \ -} -enum MediumFormatCapabilities -{ - MediumFormatCapabilities_Uuid =3D 0x01, - MediumFormatCapabilities_CreateFixed =3D 0x02, - MediumFormatCapabilities_CreateDynamic =3D 0x04, - MediumFormatCapabilities_CreateSplit2G =3D 0x08, - MediumFormatCapabilities_Differencing =3D 0x10, - MediumFormatCapabilities_Asynchronous =3D 0x20, - MediumFormatCapabilities_File =3D 0x40, - MediumFormatCapabilities_Properties =3D 0x80, - MediumFormatCapabilities_TcpNetworking =3D 0x100, - MediumFormatCapabilities_VFS =3D 0x200, - MediumFormatCapabilities_CapabilityMask =3D 0x3FF -}; -/* End of enum MediumFormatCapabilities Declaration */ - - -/* Start of enum MouseButtonState Declaration */ -# define MOUSEBUTTONSTATE_IID_STR "9ee094b8-b28a-4d56-a166-973cb588d7f8" -# define MOUSEBUTTONSTATE_IID { \ - 0x9ee094b8, 0xb28a, 0x4d56, \ - { 0xa1, 0x66, 0x97, 0x3c, 0xb5, 0x88, 0xd7, 0xf8 } \ -} -enum MouseButtonState -{ - MouseButtonState_LeftButton =3D 0x01, - MouseButtonState_RightButton =3D 0x02, - MouseButtonState_MiddleButton =3D 0x04, - MouseButtonState_WheelUp =3D 0x08, - MouseButtonState_WheelDown =3D 0x10, - MouseButtonState_XButton1 =3D 0x20, - MouseButtonState_XButton2 =3D 0x40, - MouseButtonState_MouseStateMask =3D 0x7F -}; -/* End of enum MouseButtonState Declaration */ - - -/* Start of enum FramebufferPixelFormat Declaration */ -# define FRAMEBUFFERPIXELFORMAT_IID_STR "7acfd5ed-29e3-45e3-8136-73c9224f= 3d2d" -# define FRAMEBUFFERPIXELFORMAT_IID { \ - 0x7acfd5ed, 0x29e3, 0x45e3, \ - { 0x81, 0x36, 0x73, 0xc9, 0x22, 0x4f, 0x3d, 0x2d } \ -} -enum FramebufferPixelFormat -{ - FramebufferPixelFormat_Opaque =3D 0, - FramebufferPixelFormat_FOURCC_RGB =3D 0x32424752 -}; -/* End of enum FramebufferPixelFormat Declaration */ - - -/* Start of enum NetworkAttachmentType Declaration */ -# define NETWORKATTACHMENTTYPE_IID_STR "2ac4bc71-6b82-417a-acd1-f7426d257= 0d6" -# define NETWORKATTACHMENTTYPE_IID { \ - 0x2ac4bc71, 0x6b82, 0x417a, \ - { 0xac, 0xd1, 0xf7, 0x42, 0x6d, 0x25, 0x70, 0xd6 } \ -} -enum NetworkAttachmentType -{ - NetworkAttachmentType_Null =3D 0, - NetworkAttachmentType_NAT =3D 1, - NetworkAttachmentType_Bridged =3D 2, - NetworkAttachmentType_Internal =3D 3, - NetworkAttachmentType_HostOnly =3D 4, - NetworkAttachmentType_Generic =3D 5 -}; -/* End of enum NetworkAttachmentType Declaration */ - - -/* Start of enum NetworkAdapterType Declaration */ -# define NETWORKADAPTERTYPE_IID_STR "3c2281e4-d952-4e87-8c7d-24379cb6a81c" -# define NETWORKADAPTERTYPE_IID { \ - 0x3c2281e4, 0xd952, 0x4e87, \ - { 0x8c, 0x7d, 0x24, 0x37, 0x9c, 0xb6, 0xa8, 0x1c } \ -} -enum NetworkAdapterType -{ - NetworkAdapterType_Null =3D 0, - NetworkAdapterType_Am79C970A =3D 1, - NetworkAdapterType_Am79C973 =3D 2, - NetworkAdapterType_I82540EM =3D 3, - NetworkAdapterType_I82543GC =3D 4, - NetworkAdapterType_I82545EM =3D 5, - NetworkAdapterType_Virtio =3D 6 -}; -/* End of enum NetworkAdapterType Declaration */ - - -/* Start of enum NetworkAdapterPromiscModePolicy Declaration */ -# define NETWORKADAPTERPROMISCMODEPOLICY_IID_STR "c963768a-376f-4c85-8d84= -d8ced4b7269e" -# define NETWORKADAPTERPROMISCMODEPOLICY_IID { \ - 0xc963768a, 0x376f, 0x4c85, \ - { 0x8d, 0x84, 0xd8, 0xce, 0xd4, 0xb7, 0x26, 0x9e } \ -} -enum NetworkAdapterPromiscModePolicy -{ - NetworkAdapterPromiscModePolicy_Deny =3D 1, - NetworkAdapterPromiscModePolicy_AllowNetwork =3D 2, - NetworkAdapterPromiscModePolicy_AllowAll =3D 3 -}; -/* End of enum NetworkAdapterPromiscModePolicy Declaration */ - - -/* Start of enum PortMode Declaration */ -# define PORTMODE_IID_STR "533b5fe3-0185-4197-86a7-17e37dd39d76" -# define PORTMODE_IID { \ - 0x533b5fe3, 0x0185, 0x4197, \ - { 0x86, 0xa7, 0x17, 0xe3, 0x7d, 0xd3, 0x9d, 0x76 } \ -} -enum PortMode -{ - PortMode_Disconnected =3D 0, - PortMode_HostPipe =3D 1, - PortMode_HostDevice =3D 2, - PortMode_RawFile =3D 3 -}; -/* End of enum PortMode Declaration */ - - -/* Start of enum USBDeviceState Declaration */ -# define USBDEVICESTATE_IID_STR "b99a2e65-67fb-4882-82fd-f3e5e8193ab4" -# define USBDEVICESTATE_IID { \ - 0xb99a2e65, 0x67fb, 0x4882, \ - { 0x82, 0xfd, 0xf3, 0xe5, 0xe8, 0x19, 0x3a, 0xb4 } \ -} -enum USBDeviceState -{ - USBDeviceState_NotSupported =3D 0, - USBDeviceState_Unavailable =3D 1, - USBDeviceState_Busy =3D 2, - USBDeviceState_Available =3D 3, - USBDeviceState_Held =3D 4, - USBDeviceState_Captured =3D 5 -}; -/* End of enum USBDeviceState Declaration */ - - -/* Start of enum USBDeviceFilterAction Declaration */ -# define USBDEVICEFILTERACTION_IID_STR "cbc30a49-2f4e-43b5-9da6-121320475= 933" -# define USBDEVICEFILTERACTION_IID { \ - 0xcbc30a49, 0x2f4e, 0x43b5, \ - { 0x9d, 0xa6, 0x12, 0x13, 0x20, 0x47, 0x59, 0x33 } \ -} -enum USBDeviceFilterAction -{ - USBDeviceFilterAction_Null =3D 0, - USBDeviceFilterAction_Ignore =3D 1, - USBDeviceFilterAction_Hold =3D 2 -}; -/* End of enum USBDeviceFilterAction Declaration */ - - -/* Start of enum AudioDriverType Declaration */ -# define AUDIODRIVERTYPE_IID_STR "4bcc3d73-c2fe-40db-b72f-0c2ca9d68496" -# define AUDIODRIVERTYPE_IID { \ - 0x4bcc3d73, 0xc2fe, 0x40db, \ - { 0xb7, 0x2f, 0x0c, 0x2c, 0xa9, 0xd6, 0x84, 0x96 } \ -} -enum AudioDriverType -{ - AudioDriverType_Null =3D 0, - AudioDriverType_WinMM =3D 1, - AudioDriverType_OSS =3D 2, - AudioDriverType_ALSA =3D 3, - AudioDriverType_DirectSound =3D 4, - AudioDriverType_CoreAudio =3D 5, - AudioDriverType_MMPM =3D 6, - AudioDriverType_Pulse =3D 7, - AudioDriverType_SolAudio =3D 8 -}; -/* End of enum AudioDriverType Declaration */ - - -/* Start of enum AudioControllerType Declaration */ -# define AUDIOCONTROLLERTYPE_IID_STR "7afd395c-42c3-444e-8788-3ce80292f36= c" -# define AUDIOCONTROLLERTYPE_IID { \ - 0x7afd395c, 0x42c3, 0x444e, \ - { 0x87, 0x88, 0x3c, 0xe8, 0x02, 0x92, 0xf3, 0x6c } \ -} -enum AudioControllerType -{ - AudioControllerType_AC97 =3D 0, - AudioControllerType_SB16 =3D 1, - AudioControllerType_HDA =3D 2 -}; -/* End of enum AudioControllerType Declaration */ - - -/* Start of enum AuthType Declaration */ -# define AUTHTYPE_IID_STR "7eef6ef6-98c2-4dc2-ab35-10d2b292028d" -# define AUTHTYPE_IID { \ - 0x7eef6ef6, 0x98c2, 0x4dc2, \ - { 0xab, 0x35, 0x10, 0xd2, 0xb2, 0x92, 0x02, 0x8d } \ -} -enum AuthType -{ - AuthType_Null =3D 0, - AuthType_External =3D 1, - AuthType_Guest =3D 2 -}; -/* End of enum AuthType Declaration */ - - -/* Start of enum Reason Declaration */ -# define REASON_IID_STR "e7e8e097-299d-4e98-8bbc-c31c2d47d0cc" -# define REASON_IID { \ - 0xe7e8e097, 0x299d, 0x4e98, \ - { 0x8b, 0xbc, 0xc3, 0x1c, 0x2d, 0x47, 0xd0, 0xcc } \ -} -enum Reason -{ - Reason_Unspecified =3D 0, - Reason_HostSuspend =3D 1, - Reason_HostResume =3D 2, - Reason_HostBatteryLow =3D 3 -}; -/* End of enum Reason Declaration */ - - -/* Start of enum StorageBus Declaration */ -# define STORAGEBUS_IID_STR "eee67ab3-668d-4ef5-91e0-7025fe4a0d7a" -# define STORAGEBUS_IID { \ - 0xeee67ab3, 0x668d, 0x4ef5, \ - { 0x91, 0xe0, 0x70, 0x25, 0xfe, 0x4a, 0x0d, 0x7a } \ -} -enum StorageBus -{ - StorageBus_Null =3D 0, - StorageBus_IDE =3D 1, - StorageBus_SATA =3D 2, - StorageBus_SCSI =3D 3, - StorageBus_Floppy =3D 4, - StorageBus_SAS =3D 5 -}; -/* End of enum StorageBus Declaration */ - - -/* Start of enum StorageControllerType Declaration */ -# define STORAGECONTROLLERTYPE_IID_STR "8a412b8a-f43e-4456-bd37-b474f0879= a58" -# define STORAGECONTROLLERTYPE_IID { \ - 0x8a412b8a, 0xf43e, 0x4456, \ - { 0xbd, 0x37, 0xb4, 0x74, 0xf0, 0x87, 0x9a, 0x58 } \ -} -enum StorageControllerType -{ - StorageControllerType_Null =3D 0, - StorageControllerType_LsiLogic =3D 1, - StorageControllerType_BusLogic =3D 2, - StorageControllerType_IntelAhci =3D 3, - StorageControllerType_PIIX3 =3D 4, - StorageControllerType_PIIX4 =3D 5, - StorageControllerType_ICH6 =3D 6, - StorageControllerType_I82078 =3D 7, - StorageControllerType_LsiLogicSas =3D 8 -}; -/* End of enum StorageControllerType Declaration */ - - -/* Start of enum ChipsetType Declaration */ -# define CHIPSETTYPE_IID_STR "8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394" -# define CHIPSETTYPE_IID { \ - 0x8b4096a8, 0xa7c3, 0x4d3b, \ - { 0xbb, 0xb1, 0x05, 0xa0, 0xa5, 0x1e, 0xc3, 0x94 } \ -} -enum ChipsetType -{ - ChipsetType_Null =3D 0, - ChipsetType_PIIX3 =3D 1, - ChipsetType_ICH9 =3D 2 -}; -/* End of enum ChipsetType Declaration */ - - -/* Start of enum NATAliasMode Declaration */ -# define NATALIASMODE_IID_STR "67772168-50d9-11df-9669-7fb714ee4fa1" -# define NATALIASMODE_IID { \ - 0x67772168, 0x50d9, 0x11df, \ - { 0x96, 0x69, 0x7f, 0xb7, 0x14, 0xee, 0x4f, 0xa1 } \ -} -enum NATAliasMode -{ - NATAliasMode_AliasLog =3D 0x1, - NATAliasMode_AliasProxyOnly =3D 0x02, - NATAliasMode_AliasUseSamePorts =3D 0x04 -}; -/* End of enum NATAliasMode Declaration */ - - -/* Start of enum NATProtocol Declaration */ -# define NATPROTOCOL_IID_STR "e90164be-eb03-11de-94af-fff9b1c1b19f" -# define NATPROTOCOL_IID { \ - 0xe90164be, 0xeb03, 0x11de, \ - { 0x94, 0xaf, 0xff, 0xf9, 0xb1, 0xc1, 0xb1, 0x9f } \ -} -enum NATProtocol -{ - NATProtocol_UDP =3D 0, - NATProtocol_TCP =3D 1 -}; -/* End of enum NATProtocol Declaration */ - - -/* Start of enum BandwidthGroupType Declaration */ -# define BANDWIDTHGROUPTYPE_IID_STR "1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e" -# define BANDWIDTHGROUPTYPE_IID { \ - 0x1d92b67d, 0xdc69, 0x4be9, \ - { 0xad, 0x4c, 0x93, 0xa0, 0x1e, 0x1e, 0x0c, 0x8e } \ -} -enum BandwidthGroupType -{ - BandwidthGroupType_Null =3D 0, - BandwidthGroupType_Disk =3D 1, - BandwidthGroupType_Network =3D 2 -}; -/* End of enum BandwidthGroupType Declaration */ - - -/* Start of enum VBoxEventType Declaration */ -# define VBOXEVENTTYPE_IID_STR "0d67e79e-b7b1-4919-aab3-b36866075515" -# define VBOXEVENTTYPE_IID { \ - 0x0d67e79e, 0xb7b1, 0x4919, \ - { 0xaa, 0xb3, 0xb3, 0x68, 0x66, 0x07, 0x55, 0x15 } \ -} -enum VBoxEventType -{ - VBoxEventType_Invalid =3D 0, - VBoxEventType_Any =3D 1, - VBoxEventType_Vetoable =3D 2, - VBoxEventType_MachineEvent =3D 3, - VBoxEventType_SnapshotEvent =3D 4, - VBoxEventType_InputEvent =3D 5, - VBoxEventType_LastWildcard =3D 31, - VBoxEventType_OnMachineStateChanged =3D 32, - VBoxEventType_OnMachineDataChanged =3D 33, - VBoxEventType_OnExtraDataChanged =3D 34, - VBoxEventType_OnExtraDataCanChange =3D 35, - VBoxEventType_OnMediumRegistered =3D 36, - VBoxEventType_OnMachineRegistered =3D 37, - VBoxEventType_OnSessionStateChanged =3D 38, - VBoxEventType_OnSnapshotTaken =3D 39, - VBoxEventType_OnSnapshotDeleted =3D 40, - VBoxEventType_OnSnapshotChanged =3D 41, - VBoxEventType_OnGuestPropertyChanged =3D 42, - VBoxEventType_OnMousePointerShapeChanged =3D 43, - VBoxEventType_OnMouseCapabilityChanged =3D 44, - VBoxEventType_OnKeyboardLedsChanged =3D 45, - VBoxEventType_OnStateChanged =3D 46, - VBoxEventType_OnAdditionsStateChanged =3D 47, - VBoxEventType_OnNetworkAdapterChanged =3D 48, - VBoxEventType_OnSerialPortChanged =3D 49, - VBoxEventType_OnParallelPortChanged =3D 50, - VBoxEventType_OnStorageControllerChanged =3D 51, - VBoxEventType_OnMediumChanged =3D 52, - VBoxEventType_OnVRDEServerChanged =3D 53, - VBoxEventType_OnUSBControllerChanged =3D 54, - VBoxEventType_OnUSBDeviceStateChanged =3D 55, - VBoxEventType_OnSharedFolderChanged =3D 56, - VBoxEventType_OnRuntimeError =3D 57, - VBoxEventType_OnCanShowWindow =3D 58, - VBoxEventType_OnShowWindow =3D 59, - VBoxEventType_OnCPUChanged =3D 60, - VBoxEventType_OnVRDEServerInfoChanged =3D 61, - VBoxEventType_OnEventSourceChanged =3D 62, - VBoxEventType_OnCPUExecutionCapChanged =3D 63, - VBoxEventType_OnGuestKeyboard =3D 64, - VBoxEventType_OnGuestMouse =3D 65, - VBoxEventType_OnNATRedirect =3D 66, - VBoxEventType_OnHostPCIDevicePlug =3D 67, - VBoxEventType_OnVBoxSVCAvailabilityChanged =3D 68, - VBoxEventType_OnBandwidthGroupChanged =3D 69, - VBoxEventType_OnGuestMonitorChanged =3D 70, - VBoxEventType_OnStorageDeviceChanged =3D 71, - VBoxEventType_OnClipboardModeChanged =3D 72, - VBoxEventType_OnDragAndDropModeChanged =3D 73, - VBoxEventType_Last =3D 74 -}; -/* End of enum VBoxEventType Declaration */ - - -/* Start of enum GuestMonitorChangedEventType Declaration */ -# define GUESTMONITORCHANGEDEVENTTYPE_IID_STR "ef172985-7e36-4297-95be-e4= 6396968d66" -# define GUESTMONITORCHANGEDEVENTTYPE_IID { \ - 0xef172985, 0x7e36, 0x4297, \ - { 0x95, 0xbe, 0xe4, 0x63, 0x96, 0x96, 0x8d, 0x66 } \ -} -enum GuestMonitorChangedEventType -{ - GuestMonitorChangedEventType_Enabled =3D 0, - GuestMonitorChangedEventType_Disabled =3D 1, - GuestMonitorChangedEventType_NewOrigin =3D 2 -}; -/* End of enum GuestMonitorChangedEventType Declaration */ - - -/* Start of struct IVirtualBoxErrorInfo Declaration */ -# define IVIRTUALBOXERRORINFO_IID_STR "f91e6e91-49e1-4fd2-b21e-269003350d= 06" -# define IVIRTUALBOXERRORINFO_IID { \ - 0xf91e6e91, 0x49e1, 0x4fd2, \ - { 0xb2, 0x1e, 0x26, 0x90, 0x03, 0x35, 0x0d, 0x06 } \ -} -struct IVirtualBoxErrorInfo_vtbl -{ - struct nsIException_vtbl nsiexception; - - nsresult PR_COM_METHOD (*GetResultCode)(IVirtualBoxErrorInfo *pThis, P= RInt32 *resultCode); - - nsresult PR_COM_METHOD (*GetInterfaceID)(IVirtualBoxErrorInfo *pThis, = PRUnichar * *interfaceID); - - nsresult PR_COM_METHOD (*GetComponent)(IVirtualBoxErrorInfo *pThis, PR= Unichar * *component); - - nsresult PR_COM_METHOD (*GetText)(IVirtualBoxErrorInfo *pThis, PRUnich= ar * *text); - - nsresult PR_COM_METHOD (*GetNext)(IVirtualBoxErrorInfo *pThis, IVirtua= lBoxErrorInfo * *next); - -}; - -struct IVirtualBoxErrorInfo -{ - struct IVirtualBoxErrorInfo_vtbl *vtbl; -}; -/* End of struct IVirtualBoxErrorInfo Declaration */ - - -/* Start of struct IDHCPServer Declaration */ -# define IDHCPSERVER_IID_STR "6cfe387c-74fb-4ca7-bff6-973bec8af7a3" -# define IDHCPSERVER_IID { \ - 0x6cfe387c, 0x74fb, 0x4ca7, \ - { 0xbf, 0xf6, 0x97, 0x3b, 0xec, 0x8a, 0xf7, 0xa3 } \ -} -struct IDHCPServer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IDHCPServer *pThis, PRBool *enabl= ed); - nsresult PR_COM_METHOD (*SetEnabled)(IDHCPServer *pThis, PRBool enable= d); - - nsresult PR_COM_METHOD (*GetIPAddress)(IDHCPServer *pThis, PRUnichar *= *IPAddress); - - nsresult PR_COM_METHOD (*GetNetworkMask)(IDHCPServer *pThis, PRUnichar= * *networkMask); - - nsresult PR_COM_METHOD (*GetNetworkName)(IDHCPServer *pThis, PRUnichar= * *networkName); - - nsresult PR_COM_METHOD (*GetLowerIP)(IDHCPServer *pThis, PRUnichar * *= lowerIP); - - nsresult PR_COM_METHOD (*GetUpperIP)(IDHCPServer *pThis, PRUnichar * *= upperIP); - - nsresult PR_COM_METHOD (*SetConfiguration)( - IDHCPServer *pThis, - PRUnichar * IPAddress, - PRUnichar * networkMask, - PRUnichar * FromIPAddress, - PRUnichar * ToIPAddress - ); - - nsresult PR_COM_METHOD (*Start)( - IDHCPServer *pThis, - PRUnichar * networkName, - PRUnichar * trunkName, - PRUnichar * trunkType - ); - - nsresult PR_COM_METHOD (*Stop)(IDHCPServer *pThis ); - -}; - -struct IDHCPServer -{ - struct IDHCPServer_vtbl *vtbl; -}; -/* End of struct IDHCPServer Declaration */ - - -/* Start of struct IVirtualBox Declaration */ -# define IVIRTUALBOX_IID_STR "3b2f08eb-b810-4715-bee0-bb06b9880ad2" -# define IVIRTUALBOX_IID { \ - 0x3b2f08eb, 0xb810, 0x4715, \ - { 0xbe, 0xe0, 0xbb, 0x06, 0xb9, 0x88, 0x0a, 0xd2 } \ -} -struct IVirtualBox_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetVersion)(IVirtualBox *pThis, PRUnichar * *= version); - - nsresult PR_COM_METHOD (*GetVersionNormalized)(IVirtualBox *pThis, PRU= nichar * *versionNormalized); - - nsresult PR_COM_METHOD (*GetRevision)(IVirtualBox *pThis, PRUint32 *re= vision); - - nsresult PR_COM_METHOD (*GetPackageType)(IVirtualBox *pThis, PRUnichar= * *packageType); - - nsresult PR_COM_METHOD (*GetAPIVersion)(IVirtualBox *pThis, PRUnichar = * *APIVersion); - - nsresult PR_COM_METHOD (*GetHomeFolder)(IVirtualBox *pThis, PRUnichar = * *homeFolder); - - nsresult PR_COM_METHOD (*GetSettingsFilePath)(IVirtualBox *pThis, PRUn= ichar * *settingsFilePath); - - nsresult PR_COM_METHOD (*GetHost)(IVirtualBox *pThis, IHost * *host); - - nsresult PR_COM_METHOD (*GetSystemProperties)(IVirtualBox *pThis, ISys= temProperties * *systemProperties); - - nsresult PR_COM_METHOD (*GetMachines)(IVirtualBox *pThis, PRUint32 *ma= chinesSize, IMachine * **machines); - - nsresult PR_COM_METHOD (*GetMachineGroups)(IVirtualBox *pThis, PRUint3= 2 *machineGroupsSize, PRUnichar * **machineGroups); - - nsresult PR_COM_METHOD (*GetHardDisks)(IVirtualBox *pThis, PRUint32 *h= ardDisksSize, IMedium * **hardDisks); - - nsresult PR_COM_METHOD (*GetDVDImages)(IVirtualBox *pThis, PRUint32 *D= VDImagesSize, IMedium * **DVDImages); - - nsresult PR_COM_METHOD (*GetFloppyImages)(IVirtualBox *pThis, PRUint32= *floppyImagesSize, IMedium * **floppyImages); - - nsresult PR_COM_METHOD (*GetProgressOperations)(IVirtualBox *pThis, PR= Uint32 *progressOperationsSize, IProgress * **progressOperations); - - nsresult PR_COM_METHOD (*GetGuestOSTypes)(IVirtualBox *pThis, PRUint32= *guestOSTypesSize, IGuestOSType * **guestOSTypes); - - nsresult PR_COM_METHOD (*GetSharedFolders)(IVirtualBox *pThis, PRUint3= 2 *sharedFoldersSize, ISharedFolder * **sharedFolders); - - nsresult PR_COM_METHOD (*GetPerformanceCollector)(IVirtualBox *pThis, = IPerformanceCollector * *performanceCollector); - - nsresult PR_COM_METHOD (*GetDHCPServers)(IVirtualBox *pThis, PRUint32 = *DHCPServersSize, IDHCPServer * **DHCPServers); - - nsresult PR_COM_METHOD (*GetEventSource)(IVirtualBox *pThis, IEventSou= rce * *eventSource); - - nsresult PR_COM_METHOD (*GetExtensionPackManager)(IVirtualBox *pThis, = IExtPackManager * *extensionPackManager); - - nsresult PR_COM_METHOD (*GetInternalNetworks)(IVirtualBox *pThis, PRUi= nt32 *internalNetworksSize, PRUnichar * **internalNetworks); - - nsresult PR_COM_METHOD (*GetGenericNetworkDrivers)(IVirtualBox *pThis,= PRUint32 *genericNetworkDriversSize, PRUnichar * **genericNetworkDrivers); - - nsresult PR_COM_METHOD (*ComposeMachineFilename)( - IVirtualBox *pThis, - PRUnichar * name, - PRUnichar * group, - PRUnichar * createFlags, - PRUnichar * baseFolder, - PRUnichar * * file - ); - - nsresult PR_COM_METHOD (*CreateMachine)( - IVirtualBox *pThis, - PRUnichar * settingsFile, - PRUnichar * name, - PRUint32 groupsSize, - PRUnichar ** groups, - PRUnichar * osTypeId, - PRUnichar * flags, - IMachine * * machine - ); - - nsresult PR_COM_METHOD (*OpenMachine)( - IVirtualBox *pThis, - PRUnichar * settingsFile, - IMachine * * machine - ); - - nsresult PR_COM_METHOD (*RegisterMachine)( - IVirtualBox *pThis, - IMachine * machine - ); - - nsresult PR_COM_METHOD (*FindMachine)( - IVirtualBox *pThis, - PRUnichar * nameOrId, - IMachine * * machine - ); - - nsresult PR_COM_METHOD (*GetMachinesByGroups)( - IVirtualBox *pThis, - PRUint32 groupsSize, - PRUnichar ** groups, - PRUint32 *machinesSize, - IMachine *** machines - ); - - nsresult PR_COM_METHOD (*GetMachineStates)( - IVirtualBox *pThis, - PRUint32 machinesSize, - IMachine ** machines, - PRUint32 *statesSize, - PRUint32** states - ); - - nsresult PR_COM_METHOD (*CreateAppliance)( - IVirtualBox *pThis, - IAppliance * * appliance - ); - - nsresult PR_COM_METHOD (*CreateHardDisk)( - IVirtualBox *pThis, - PRUnichar * format, - PRUnichar * location, - IMedium * * medium - ); - - nsresult PR_COM_METHOD (*OpenMedium)( - IVirtualBox *pThis, - PRUnichar * location, - PRUint32 deviceType, - PRUint32 accessMode, - PRBool forceNewUuid, - IMedium * * medium - ); - - nsresult PR_COM_METHOD (*GetGuestOSType)( - IVirtualBox *pThis, - PRUnichar * id, - IGuestOSType * * type - ); - - nsresult PR_COM_METHOD (*CreateSharedFolder)( - IVirtualBox *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult PR_COM_METHOD (*RemoveSharedFolder)( - IVirtualBox *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*GetExtraDataKeys)( - IVirtualBox *pThis, - PRUint32 *valueSize, - PRUnichar *** value - ); - - nsresult PR_COM_METHOD (*GetExtraData)( - IVirtualBox *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetExtraData)( - IVirtualBox *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*SetSettingsSecret)( - IVirtualBox *pThis, - PRUnichar * password - ); - - nsresult PR_COM_METHOD (*CreateDHCPServer)( - IVirtualBox *pThis, - PRUnichar * name, - IDHCPServer * * server - ); - - nsresult PR_COM_METHOD (*FindDHCPServerByNetworkName)( - IVirtualBox *pThis, - PRUnichar * name, - IDHCPServer * * server - ); - - nsresult PR_COM_METHOD (*RemoveDHCPServer)( - IVirtualBox *pThis, - IDHCPServer * server - ); - - nsresult PR_COM_METHOD (*CheckFirmwarePresent)( - IVirtualBox *pThis, - PRUint32 firmwareType, - PRUnichar * version, - PRUnichar * * url, - PRUnichar * * file, - PRBool * result - ); - -}; - -struct IVirtualBox -{ - struct IVirtualBox_vtbl *vtbl; -}; -/* End of struct IVirtualBox Declaration */ - - -/* Start of struct IVFSExplorer Declaration */ -# define IVFSEXPLORER_IID_STR "003d7f92-d38e-487f-b790-8c5e8631cb2f" -# define IVFSEXPLORER_IID { \ - 0x003d7f92, 0xd38e, 0x487f, \ - { 0xb7, 0x90, 0x8c, 0x5e, 0x86, 0x31, 0xcb, 0x2f } \ -} -struct IVFSExplorer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetPath)(IVFSExplorer *pThis, PRUnichar * *pa= th); - - nsresult PR_COM_METHOD (*GetType)(IVFSExplorer *pThis, PRUint32 *type); - - nsresult PR_COM_METHOD (*Update)( - IVFSExplorer *pThis, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*Cd)( - IVFSExplorer *pThis, - PRUnichar * aDir, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*CdUp)( - IVFSExplorer *pThis, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*EntryList)( - IVFSExplorer *pThis, - PRUint32 *aNamesSize, - PRUnichar *** aNames, - PRUint32 *aTypesSize, - PRUint32** aTypes, - PRUint32 *aSizesSize, - PRUint32** aSizes, - PRUint32 *aModesSize, - PRUint32** aModes - ); - - nsresult PR_COM_METHOD (*Exists)( - IVFSExplorer *pThis, - PRUint32 aNamesSize, - PRUnichar ** aNames, - PRUint32 *aExistsSize, - PRUnichar *** aExists - ); - - nsresult PR_COM_METHOD (*Remove)( - IVFSExplorer *pThis, - PRUint32 aNamesSize, - PRUnichar ** aNames, - IProgress * * aProgress - ); - -}; - -struct IVFSExplorer -{ - struct IVFSExplorer_vtbl *vtbl; -}; -/* End of struct IVFSExplorer Declaration */ - - -/* Start of struct IAppliance Declaration */ -# define IAPPLIANCE_IID_STR "3059cf9e-25c7-4f0b-9fa5-3c42e441670b" -# define IAPPLIANCE_IID { \ - 0x3059cf9e, 0x25c7, 0x4f0b, \ - { 0x9f, 0xa5, 0x3c, 0x42, 0xe4, 0x41, 0x67, 0x0b } \ -} -struct IAppliance_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetPath)(IAppliance *pThis, PRUnichar * *path= ); - - nsresult PR_COM_METHOD (*GetDisks)(IAppliance *pThis, PRUint32 *disksS= ize, PRUnichar * **disks); - - nsresult PR_COM_METHOD (*GetVirtualSystemDescriptions)(IAppliance *pTh= is, PRUint32 *virtualSystemDescriptionsSize, IVirtualSystemDescription * **= virtualSystemDescriptions); - - nsresult PR_COM_METHOD (*GetMachines)(IAppliance *pThis, PRUint32 *mac= hinesSize, PRUnichar * **machines); - - nsresult PR_COM_METHOD (*Read)( - IAppliance *pThis, - PRUnichar * file, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*Interpret)(IAppliance *pThis ); - - nsresult PR_COM_METHOD (*ImportMachines)( - IAppliance *pThis, - PRUint32 optionsSize, - PRUint32* options, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*CreateVFSExplorer)( - IAppliance *pThis, - PRUnichar * aUri, - IVFSExplorer * * aExplorer - ); - - nsresult PR_COM_METHOD (*Write)( - IAppliance *pThis, - PRUnichar * format, - PRBool manifest, - PRUnichar * path, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*GetWarnings)( - IAppliance *pThis, - PRUint32 *aWarningsSize, - PRUnichar *** aWarnings - ); - -}; - -struct IAppliance -{ - struct IAppliance_vtbl *vtbl; -}; -/* End of struct IAppliance Declaration */ - - -/* Start of struct IVirtualSystemDescription Declaration */ -# define IVIRTUALSYSTEMDESCRIPTION_IID_STR "d7525e6c-531a-4c51-8e04-41235= 083a3d8" -# define IVIRTUALSYSTEMDESCRIPTION_IID { \ - 0xd7525e6c, 0x531a, 0x4c51, \ - { 0x8e, 0x04, 0x41, 0x23, 0x50, 0x83, 0xa3, 0xd8 } \ -} -struct IVirtualSystemDescription_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetCount)(IVirtualSystemDescription *pThis, P= RUint32 *count); - - nsresult PR_COM_METHOD (*GetDescription)( - IVirtualSystemDescription *pThis, - PRUint32 *aTypesSize, - PRUint32** aTypes, - PRUint32 *aRefsSize, - PRUnichar *** aRefs, - PRUint32 *aOvfValuesSize, - PRUnichar *** aOvfValues, - PRUint32 *aVBoxValuesSize, - PRUnichar *** aVBoxValues, - PRUint32 *aExtraConfigValuesSize, - PRUnichar *** aExtraConfigValues - ); - - nsresult PR_COM_METHOD (*GetDescriptionByType)( - IVirtualSystemDescription *pThis, - PRUint32 aType, - PRUint32 *aTypesSize, - PRUint32** aTypes, - PRUint32 *aRefsSize, - PRUnichar *** aRefs, - PRUint32 *aOvfValuesSize, - PRUnichar *** aOvfValues, - PRUint32 *aVBoxValuesSize, - PRUnichar *** aVBoxValues, - PRUint32 *aExtraConfigValuesSize, - PRUnichar *** aExtraConfigValues - ); - - nsresult PR_COM_METHOD (*GetValuesByType)( - IVirtualSystemDescription *pThis, - PRUint32 aType, - PRUint32 aWhich, - PRUint32 *aValuesSize, - PRUnichar *** aValues - ); - - nsresult PR_COM_METHOD (*SetFinalValues)( - IVirtualSystemDescription *pThis, - PRUint32 aEnabledSize, - PRBool* aEnabled, - PRUint32 aVBoxValuesSize, - PRUnichar ** aVBoxValues, - PRUint32 aExtraConfigValuesSize, - PRUnichar ** aExtraConfigValues - ); - - nsresult PR_COM_METHOD (*AddDescription)( - IVirtualSystemDescription *pThis, - PRUint32 aType, - PRUnichar * aVBoxValue, - PRUnichar * aExtraConfigValue - ); - -}; - -struct IVirtualSystemDescription -{ - struct IVirtualSystemDescription_vtbl *vtbl; -}; -/* End of struct IVirtualSystemDescription Declaration */ - - -/* Start of struct IInternalMachineControl Declaration */ -# define IINTERNALMACHINECONTROL_IID_STR "dca36a92-703c-4649-98a4-f40c1ef= 0c336" -# define IINTERNALMACHINECONTROL_IID { \ - 0xdca36a92, 0x703c, 0x4649, \ - { 0x98, 0xa4, 0xf4, 0x0c, 0x1e, 0xf0, 0xc3, 0x36 } \ -} -struct IInternalMachineControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*SetRemoveSavedStateFile)( - IInternalMachineControl *pThis, - PRBool aRemove - ); - - nsresult PR_COM_METHOD (*UpdateState)( - IInternalMachineControl *pThis, - PRUint32 state - ); - - nsresult PR_COM_METHOD (*GetIPCId)( - IInternalMachineControl *pThis, - PRUnichar * * id - ); - - nsresult PR_COM_METHOD (*BeginPowerUp)( - IInternalMachineControl *pThis, - IProgress * aProgress - ); - - nsresult PR_COM_METHOD (*EndPowerUp)( - IInternalMachineControl *pThis, - PRInt32 result - ); - - nsresult PR_COM_METHOD (*BeginPoweringDown)( - IInternalMachineControl *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*EndPoweringDown)( - IInternalMachineControl *pThis, - PRInt32 result, - PRUnichar * errMsg - ); - - nsresult PR_COM_METHOD (*RunUSBDeviceFilters)( - IInternalMachineControl *pThis, - IUSBDevice * device, - PRBool * matched, - PRUint32 * maskedInterfaces - ); - - nsresult PR_COM_METHOD (*CaptureUSBDevice)( - IInternalMachineControl *pThis, - PRUnichar * id - ); - - nsresult PR_COM_METHOD (*DetachUSBDevice)( - IInternalMachineControl *pThis, - PRUnichar * id, - PRBool done - ); - - nsresult PR_COM_METHOD (*AutoCaptureUSBDevices)(IInternalMachineContro= l *pThis ); - - nsresult PR_COM_METHOD (*DetachAllUSBDevices)( - IInternalMachineControl *pThis, - PRBool done - ); - - nsresult PR_COM_METHOD (*OnSessionEnd)( - IInternalMachineControl *pThis, - ISession * session, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*BeginSavingState)( - IInternalMachineControl *pThis, - IProgress * * progress, - PRUnichar * * stateFilePath - ); - - nsresult PR_COM_METHOD (*EndSavingState)( - IInternalMachineControl *pThis, - PRInt32 result, - PRUnichar * errMsg - ); - - nsresult PR_COM_METHOD (*AdoptSavedState)( - IInternalMachineControl *pThis, - PRUnichar * savedStateFile - ); - - nsresult PR_COM_METHOD (*BeginTakingSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - PRUnichar * name, - PRUnichar * description, - IProgress * consoleProgress, - PRBool fTakingSnapshotOnline, - PRUnichar * * stateFilePath - ); - - nsresult PR_COM_METHOD (*EndTakingSnapshot)( - IInternalMachineControl *pThis, - PRBool success - ); - - nsresult PR_COM_METHOD (*DeleteSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - PRUnichar * startId, - PRUnichar * endId, - PRBool deleteAllChildren, - PRUint32 * machineState, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*FinishOnlineMergeMedium)( - IInternalMachineControl *pThis, - IMediumAttachment * mediumAttachment, - IMedium * source, - IMedium * target, - PRBool mergeForward, - IMedium * parentForTarget, - PRUint32 childrenToReparentSize, - IMedium ** childrenToReparent - ); - - nsresult PR_COM_METHOD (*RestoreSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - ISnapshot * snapshot, - PRUint32 * machineState, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*PullGuestProperties)( - IInternalMachineControl *pThis, - PRUint32 *nameSize, - PRUnichar *** name, - PRUint32 *valueSize, - PRUnichar *** value, - PRUint32 *timestampSize, - PRInt64** timestamp, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult PR_COM_METHOD (*PushGuestProperty)( - IInternalMachineControl *pThis, - PRUnichar * name, - PRUnichar * value, - PRInt64 timestamp, - PRUnichar * flags - ); - - nsresult PR_COM_METHOD (*LockMedia)(IInternalMachineControl *pThis ); - - nsresult PR_COM_METHOD (*UnlockMedia)(IInternalMachineControl *pThis ); - - nsresult PR_COM_METHOD (*EjectMedium)( - IInternalMachineControl *pThis, - IMediumAttachment * attachment, - IMediumAttachment * * newAttachment - ); - - nsresult PR_COM_METHOD (*ReportVmStatistics)( - IInternalMachineControl *pThis, - PRUint32 validStats, - PRUint32 cpuUser, - PRUint32 cpuKernel, - PRUint32 cpuIdle, - PRUint32 memTotal, - PRUint32 memFree, - PRUint32 memBalloon, - PRUint32 memShared, - PRUint32 memCache, - PRUint32 pagedTotal, - PRUint32 memAllocTotal, - PRUint32 memFreeTotal, - PRUint32 memBalloonTotal, - PRUint32 memSharedTotal, - PRUint32 vmNetRx, - PRUint32 vmNetTx - ); - -}; - -struct IInternalMachineControl -{ - struct IInternalMachineControl_vtbl *vtbl; -}; -/* End of struct IInternalMachineControl Declaration */ - - -/* Start of struct IBIOSSettings Declaration */ -# define IBIOSSETTINGS_IID_STR "38b54279-dc35-4f5e-a431-835b867c6b5e" -# define IBIOSSETTINGS_IID { \ - 0x38b54279, 0xdc35, 0x4f5e, \ - { 0xa4, 0x31, 0x83, 0x5b, 0x86, 0x7c, 0x6b, 0x5e } \ -} -struct IBIOSSettings_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetLogoFadeIn)(IBIOSSettings *pThis, PRBool *= logoFadeIn); - nsresult PR_COM_METHOD (*SetLogoFadeIn)(IBIOSSettings *pThis, PRBool l= ogoFadeIn); - - nsresult PR_COM_METHOD (*GetLogoFadeOut)(IBIOSSettings *pThis, PRBool = *logoFadeOut); - nsresult PR_COM_METHOD (*SetLogoFadeOut)(IBIOSSettings *pThis, PRBool = logoFadeOut); - - nsresult PR_COM_METHOD (*GetLogoDisplayTime)(IBIOSSettings *pThis, PRU= int32 *logoDisplayTime); - nsresult PR_COM_METHOD (*SetLogoDisplayTime)(IBIOSSettings *pThis, PRU= int32 logoDisplayTime); - - nsresult PR_COM_METHOD (*GetLogoImagePath)(IBIOSSettings *pThis, PRUni= char * *logoImagePath); - nsresult PR_COM_METHOD (*SetLogoImagePath)(IBIOSSettings *pThis, PRUni= char * logoImagePath); - - nsresult PR_COM_METHOD (*GetBootMenuMode)(IBIOSSettings *pThis, PRUint= 32 *bootMenuMode); - nsresult PR_COM_METHOD (*SetBootMenuMode)(IBIOSSettings *pThis, PRUint= 32 bootMenuMode); - - nsresult PR_COM_METHOD (*GetACPIEnabled)(IBIOSSettings *pThis, PRBool = *ACPIEnabled); - nsresult PR_COM_METHOD (*SetACPIEnabled)(IBIOSSettings *pThis, PRBool = ACPIEnabled); - - nsresult PR_COM_METHOD (*GetIOAPICEnabled)(IBIOSSettings *pThis, PRBoo= l *IOAPICEnabled); - nsresult PR_COM_METHOD (*SetIOAPICEnabled)(IBIOSSettings *pThis, PRBoo= l IOAPICEnabled); - - nsresult PR_COM_METHOD (*GetTimeOffset)(IBIOSSettings *pThis, PRInt64 = *timeOffset); - nsresult PR_COM_METHOD (*SetTimeOffset)(IBIOSSettings *pThis, PRInt64 = timeOffset); - - nsresult PR_COM_METHOD (*GetPXEDebugEnabled)(IBIOSSettings *pThis, PRB= ool *PXEDebugEnabled); - nsresult PR_COM_METHOD (*SetPXEDebugEnabled)(IBIOSSettings *pThis, PRB= ool PXEDebugEnabled); - -}; - -struct IBIOSSettings -{ - struct IBIOSSettings_vtbl *vtbl; -}; -/* End of struct IBIOSSettings Declaration */ - - -/* Start of struct IPCIAddress Declaration */ -# define IPCIADDRESS_IID_STR "D88B324F-DB19-4D3B-A1A9-BF5B127199A8" -# define IPCIADDRESS_IID { \ - 0xD88B324F, 0xDB19, 0x4D3B, \ - { 0xA1, 0xA9, 0xBF, 0x5B, 0x12, 0x71, 0x99, 0xA8 } \ -} -struct IPCIAddress_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetBus)(IPCIAddress *pThis, PRInt16 *bus); - nsresult PR_COM_METHOD (*SetBus)(IPCIAddress *pThis, PRInt16 bus); - - nsresult PR_COM_METHOD (*GetDevice)(IPCIAddress *pThis, PRInt16 *devic= e); - nsresult PR_COM_METHOD (*SetDevice)(IPCIAddress *pThis, PRInt16 device= ); - - nsresult PR_COM_METHOD (*GetDevFunction)(IPCIAddress *pThis, PRInt16 *= devFunction); - nsresult PR_COM_METHOD (*SetDevFunction)(IPCIAddress *pThis, PRInt16 d= evFunction); - - nsresult PR_COM_METHOD (*AsLong)( - IPCIAddress *pThis, - PRInt32 * result - ); - - nsresult PR_COM_METHOD (*FromLong)( - IPCIAddress *pThis, - PRInt32 number - ); - -}; - -struct IPCIAddress -{ - struct IPCIAddress_vtbl *vtbl; -}; -/* End of struct IPCIAddress Declaration */ - - -/* Start of struct IPCIDeviceAttachment Declaration */ -# define IPCIDEVICEATTACHMENT_IID_STR "91f33d6f-e621-4f70-a77e-15f0e3c714= d5" -# define IPCIDEVICEATTACHMENT_IID { \ - 0x91f33d6f, 0xe621, 0x4f70, \ - { 0xa7, 0x7e, 0x15, 0xf0, 0xe3, 0xc7, 0x14, 0xd5 } \ -} -struct IPCIDeviceAttachment_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IPCIDeviceAttachment *pThis, PRUnich= ar * *name); - - nsresult PR_COM_METHOD (*GetIsPhysicalDevice)(IPCIDeviceAttachment *pT= his, PRBool *isPhysicalDevice); - - nsresult PR_COM_METHOD (*GetHostAddress)(IPCIDeviceAttachment *pThis, = PRInt32 *hostAddress); - - nsresult PR_COM_METHOD (*GetGuestAddress)(IPCIDeviceAttachment *pThis,= PRInt32 *guestAddress); - -}; - -struct IPCIDeviceAttachment -{ - struct IPCIDeviceAttachment_vtbl *vtbl; -}; -/* End of struct IPCIDeviceAttachment Declaration */ - - -/* Start of struct IMachine Declaration */ -# define IMACHINE_IID_STR "22781af3-1c96-4126-9edf-67a020e0e858" -# define IMACHINE_IID { \ - 0x22781af3, 0x1c96, 0x4126, \ - { 0x9e, 0xdf, 0x67, 0xa0, 0x20, 0xe0, 0xe8, 0x58 } \ -} -struct IMachine_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetParent)(IMachine *pThis, IVirtualBox * *pa= rent); - - nsresult PR_COM_METHOD (*GetAccessible)(IMachine *pThis, PRBool *acces= sible); - - nsresult PR_COM_METHOD (*GetAccessError)(IMachine *pThis, IVirtualBoxE= rrorInfo * *accessError); - - nsresult PR_COM_METHOD (*GetName)(IMachine *pThis, PRUnichar * *name); - nsresult PR_COM_METHOD (*SetName)(IMachine *pThis, PRUnichar * name); - - nsresult PR_COM_METHOD (*GetDescription)(IMachine *pThis, PRUnichar * = *description); - nsresult PR_COM_METHOD (*SetDescription)(IMachine *pThis, PRUnichar * = description); - - nsresult PR_COM_METHOD (*GetId)(IMachine *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetGroups)(IMachine *pThis, PRUint32 *groupsS= ize, PRUnichar * **groups); - nsresult PR_COM_METHOD (*SetGroups)(IMachine *pThis, PRUint32 groupsSi= ze, PRUnichar * *groups); - - nsresult PR_COM_METHOD (*GetOSTypeId)(IMachine *pThis, PRUnichar * *OS= TypeId); - nsresult PR_COM_METHOD (*SetOSTypeId)(IMachine *pThis, PRUnichar * OST= ypeId); - - nsresult PR_COM_METHOD (*GetHardwareVersion)(IMachine *pThis, PRUnicha= r * *hardwareVersion); - nsresult PR_COM_METHOD (*SetHardwareVersion)(IMachine *pThis, PRUnicha= r * hardwareVersion); - - nsresult PR_COM_METHOD (*GetHardwareUUID)(IMachine *pThis, PRUnichar *= *hardwareUUID); - nsresult PR_COM_METHOD (*SetHardwareUUID)(IMachine *pThis, PRUnichar *= hardwareUUID); - - nsresult PR_COM_METHOD (*GetCPUCount)(IMachine *pThis, PRUint32 *CPUCo= unt); - nsresult PR_COM_METHOD (*SetCPUCount)(IMachine *pThis, PRUint32 CPUCou= nt); - - nsresult PR_COM_METHOD (*GetCPUHotPlugEnabled)(IMachine *pThis, PRBool= *CPUHotPlugEnabled); - nsresult PR_COM_METHOD (*SetCPUHotPlugEnabled)(IMachine *pThis, PRBool= CPUHotPlugEnabled); - - nsresult PR_COM_METHOD (*GetCPUExecutionCap)(IMachine *pThis, PRUint32= *CPUExecutionCap); - nsresult PR_COM_METHOD (*SetCPUExecutionCap)(IMachine *pThis, PRUint32= CPUExecutionCap); - - nsresult PR_COM_METHOD (*GetMemorySize)(IMachine *pThis, PRUint32 *mem= orySize); - nsresult PR_COM_METHOD (*SetMemorySize)(IMachine *pThis, PRUint32 memo= rySize); - - nsresult PR_COM_METHOD (*GetMemoryBalloonSize)(IMachine *pThis, PRUint= 32 *memoryBalloonSize); - nsresult PR_COM_METHOD (*SetMemoryBalloonSize)(IMachine *pThis, PRUint= 32 memoryBalloonSize); - - nsresult PR_COM_METHOD (*GetPageFusionEnabled)(IMachine *pThis, PRBool= *pageFusionEnabled); - nsresult PR_COM_METHOD (*SetPageFusionEnabled)(IMachine *pThis, PRBool= pageFusionEnabled); - - nsresult PR_COM_METHOD (*GetVRAMSize)(IMachine *pThis, PRUint32 *VRAMS= ize); - nsresult PR_COM_METHOD (*SetVRAMSize)(IMachine *pThis, PRUint32 VRAMSi= ze); - - nsresult PR_COM_METHOD (*GetAccelerate3DEnabled)(IMachine *pThis, PRBo= ol *accelerate3DEnabled); - nsresult PR_COM_METHOD (*SetAccelerate3DEnabled)(IMachine *pThis, PRBo= ol accelerate3DEnabled); - - nsresult PR_COM_METHOD (*GetAccelerate2DVideoEnabled)(IMachine *pThis,= PRBool *accelerate2DVideoEnabled); - nsresult PR_COM_METHOD (*SetAccelerate2DVideoEnabled)(IMachine *pThis,= PRBool accelerate2DVideoEnabled); - - nsresult PR_COM_METHOD (*GetMonitorCount)(IMachine *pThis, PRUint32 *m= onitorCount); - nsresult PR_COM_METHOD (*SetMonitorCount)(IMachine *pThis, PRUint32 mo= nitorCount); - - nsresult PR_COM_METHOD (*GetVideoCaptureEnabled)(IMachine *pThis, PRBo= ol *VideoCaptureEnabled); - nsresult PR_COM_METHOD (*SetVideoCaptureEnabled)(IMachine *pThis, PRBo= ol VideoCaptureEnabled); - - nsresult PR_COM_METHOD (*GetVideoCaptureFile)(IMachine *pThis, PRUnich= ar * *VideoCaptureFile); - nsresult PR_COM_METHOD (*SetVideoCaptureFile)(IMachine *pThis, PRUnich= ar * VideoCaptureFile); - - nsresult PR_COM_METHOD (*GetVideoCaptureWidth)(IMachine *pThis, PRUint= 32 *VideoCaptureWidth); - nsresult PR_COM_METHOD (*SetVideoCaptureWidth)(IMachine *pThis, PRUint= 32 VideoCaptureWidth); - - nsresult PR_COM_METHOD (*GetVideoCaptureHeight)(IMachine *pThis, PRUin= t32 *VideoCaptureHeight); - nsresult PR_COM_METHOD (*SetVideoCaptureHeight)(IMachine *pThis, PRUin= t32 VideoCaptureHeight); - - nsresult PR_COM_METHOD (*GetBIOSSettings)(IMachine *pThis, IBIOSSettin= gs * *BIOSSettings); - - nsresult PR_COM_METHOD (*GetFirmwareType)(IMachine *pThis, PRUint32 *f= irmwareType); - nsresult PR_COM_METHOD (*SetFirmwareType)(IMachine *pThis, PRUint32 fi= rmwareType); - - nsresult PR_COM_METHOD (*GetPointingHIDType)(IMachine *pThis, PRUint32= *pointingHIDType); - nsresult PR_COM_METHOD (*SetPointingHIDType)(IMachine *pThis, PRUint32= pointingHIDType); - - nsresult PR_COM_METHOD (*GetKeyboardHIDType)(IMachine *pThis, PRUint32= *keyboardHIDType); - nsresult PR_COM_METHOD (*SetKeyboardHIDType)(IMachine *pThis, PRUint32= keyboardHIDType); - - nsresult PR_COM_METHOD (*GetHPETEnabled)(IMachine *pThis, PRBool *HPET= Enabled); - nsresult PR_COM_METHOD (*SetHPETEnabled)(IMachine *pThis, PRBool HPETE= nabled); - - nsresult PR_COM_METHOD (*GetChipsetType)(IMachine *pThis, PRUint32 *ch= ipsetType); - nsresult PR_COM_METHOD (*SetChipsetType)(IMachine *pThis, PRUint32 chi= psetType); - - nsresult PR_COM_METHOD (*GetSnapshotFolder)(IMachine *pThis, PRUnichar= * *snapshotFolder); - nsresult PR_COM_METHOD (*SetSnapshotFolder)(IMachine *pThis, PRUnichar= * snapshotFolder); - - nsresult PR_COM_METHOD (*GetVRDEServer)(IMachine *pThis, IVRDEServer *= *VRDEServer); - - nsresult PR_COM_METHOD (*GetEmulatedUSBWebcameraEnabled)(IMachine *pTh= is, PRBool *emulatedUSBWebcameraEnabled); - nsresult PR_COM_METHOD (*SetEmulatedUSBWebcameraEnabled)(IMachine *pTh= is, PRBool emulatedUSBWebcameraEnabled); - - nsresult PR_COM_METHOD (*GetEmulatedUSBCardReaderEnabled)(IMachine *pT= his, PRBool *emulatedUSBCardReaderEnabled); - nsresult PR_COM_METHOD (*SetEmulatedUSBCardReaderEnabled)(IMachine *pT= his, PRBool emulatedUSBCardReaderEnabled); - - nsresult PR_COM_METHOD (*GetMediumAttachments)(IMachine *pThis, PRUint= 32 *mediumAttachmentsSize, IMediumAttachment * **mediumAttachments); - - nsresult PR_COM_METHOD (*GetUSBController)(IMachine *pThis, IUSBContro= ller * *USBController); - - nsresult PR_COM_METHOD (*GetAudioAdapter)(IMachine *pThis, IAudioAdapt= er * *audioAdapter); - - nsresult PR_COM_METHOD (*GetStorageControllers)(IMachine *pThis, PRUin= t32 *storageControllersSize, IStorageController * **storageControllers); - - nsresult PR_COM_METHOD (*GetSettingsFilePath)(IMachine *pThis, PRUnich= ar * *settingsFilePath); - - nsresult PR_COM_METHOD (*GetSettingsModified)(IMachine *pThis, PRBool = *settingsModified); - - nsresult PR_COM_METHOD (*GetSessionState)(IMachine *pThis, PRUint32 *s= essionState); - - nsresult PR_COM_METHOD (*GetSessionType)(IMachine *pThis, PRUnichar * = *sessionType); - - nsresult PR_COM_METHOD (*GetSessionPID)(IMachine *pThis, PRUint32 *ses= sionPID); - - nsresult PR_COM_METHOD (*GetState)(IMachine *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetLastStateChange)(IMachine *pThis, PRInt64 = *lastStateChange); - - nsresult PR_COM_METHOD (*GetStateFilePath)(IMachine *pThis, PRUnichar = * *stateFilePath); - - nsresult PR_COM_METHOD (*GetLogFolder)(IMachine *pThis, PRUnichar * *l= ogFolder); - - nsresult PR_COM_METHOD (*GetCurrentSnapshot)(IMachine *pThis, ISnapsho= t * *currentSnapshot); - - nsresult PR_COM_METHOD (*GetSnapshotCount)(IMachine *pThis, PRUint32 *= snapshotCount); - - nsresult PR_COM_METHOD (*GetCurrentStateModified)(IMachine *pThis, PRB= ool *currentStateModified); - - nsresult PR_COM_METHOD (*GetSharedFolders)(IMachine *pThis, PRUint32 *= sharedFoldersSize, ISharedFolder * **sharedFolders); - - nsresult PR_COM_METHOD (*GetClipboardMode)(IMachine *pThis, PRUint32 *= clipboardMode); - nsresult PR_COM_METHOD (*SetClipboardMode)(IMachine *pThis, PRUint32 c= lipboardMode); - - nsresult PR_COM_METHOD (*GetDragAndDropMode)(IMachine *pThis, PRUint32= *dragAndDropMode); - nsresult PR_COM_METHOD (*SetDragAndDropMode)(IMachine *pThis, PRUint32= dragAndDropMode); - - nsresult PR_COM_METHOD (*GetGuestPropertyNotificationPatterns)(IMachin= e *pThis, PRUnichar * *guestPropertyNotificationPatterns); - nsresult PR_COM_METHOD (*SetGuestPropertyNotificationPatterns)(IMachin= e *pThis, PRUnichar * guestPropertyNotificationPatterns); - - nsresult PR_COM_METHOD (*GetTeleporterEnabled)(IMachine *pThis, PRBool= *teleporterEnabled); - nsresult PR_COM_METHOD (*SetTeleporterEnabled)(IMachine *pThis, PRBool= teleporterEnabled); - - nsresult PR_COM_METHOD (*GetTeleporterPort)(IMachine *pThis, PRUint32 = *teleporterPort); - nsresult PR_COM_METHOD (*SetTeleporterPort)(IMachine *pThis, PRUint32 = teleporterPort); - - nsresult PR_COM_METHOD (*GetTeleporterAddress)(IMachine *pThis, PRUnic= har * *teleporterAddress); - nsresult PR_COM_METHOD (*SetTeleporterAddress)(IMachine *pThis, PRUnic= har * teleporterAddress); - - nsresult PR_COM_METHOD (*GetTeleporterPassword)(IMachine *pThis, PRUni= char * *teleporterPassword); - nsresult PR_COM_METHOD (*SetTeleporterPassword)(IMachine *pThis, PRUni= char * teleporterPassword); - - nsresult PR_COM_METHOD (*GetFaultToleranceState)(IMachine *pThis, PRUi= nt32 *faultToleranceState); - nsresult PR_COM_METHOD (*SetFaultToleranceState)(IMachine *pThis, PRUi= nt32 faultToleranceState); - - nsresult PR_COM_METHOD (*GetFaultTolerancePort)(IMachine *pThis, PRUin= t32 *faultTolerancePort); - nsresult PR_COM_METHOD (*SetFaultTolerancePort)(IMachine *pThis, PRUin= t32 faultTolerancePort); - - nsresult PR_COM_METHOD (*GetFaultToleranceAddress)(IMachine *pThis, PR= Unichar * *faultToleranceAddress); - nsresult PR_COM_METHOD (*SetFaultToleranceAddress)(IMachine *pThis, PR= Unichar * faultToleranceAddress); - - nsresult PR_COM_METHOD (*GetFaultTolerancePassword)(IMachine *pThis, P= RUnichar * *faultTolerancePassword); - nsresult PR_COM_METHOD (*SetFaultTolerancePassword)(IMachine *pThis, P= RUnichar * faultTolerancePassword); - - nsresult PR_COM_METHOD (*GetFaultToleranceSyncInterval)(IMachine *pThi= s, PRUint32 *faultToleranceSyncInterval); - nsresult PR_COM_METHOD (*SetFaultToleranceSyncInterval)(IMachine *pThi= s, PRUint32 faultToleranceSyncInterval); - - nsresult PR_COM_METHOD (*GetRTCUseUTC)(IMachine *pThis, PRBool *RTCUse= UTC); - nsresult PR_COM_METHOD (*SetRTCUseUTC)(IMachine *pThis, PRBool RTCUseU= TC); - - nsresult PR_COM_METHOD (*GetIOCacheEnabled)(IMachine *pThis, PRBool *I= OCacheEnabled); - nsresult PR_COM_METHOD (*SetIOCacheEnabled)(IMachine *pThis, PRBool IO= CacheEnabled); - - nsresult PR_COM_METHOD (*GetIOCacheSize)(IMachine *pThis, PRUint32 *IO= CacheSize); - nsresult PR_COM_METHOD (*SetIOCacheSize)(IMachine *pThis, PRUint32 IOC= acheSize); - - nsresult PR_COM_METHOD (*GetPCIDeviceAssignments)(IMachine *pThis, PRU= int32 *PCIDeviceAssignmentsSize, IPCIDeviceAttachment * **PCIDeviceAssignme= nts); - - nsresult PR_COM_METHOD (*GetBandwidthControl)(IMachine *pThis, IBandwi= dthControl * *bandwidthControl); - - nsresult PR_COM_METHOD (*GetTracingEnabled)(IMachine *pThis, PRBool *t= racingEnabled); - nsresult PR_COM_METHOD (*SetTracingEnabled)(IMachine *pThis, PRBool tr= acingEnabled); - - nsresult PR_COM_METHOD (*GetTracingConfig)(IMachine *pThis, PRUnichar = * *tracingConfig); - nsresult PR_COM_METHOD (*SetTracingConfig)(IMachine *pThis, PRUnichar = * tracingConfig); - - nsresult PR_COM_METHOD (*GetAllowTracingToAccessVM)(IMachine *pThis, P= RBool *allowTracingToAccessVM); - nsresult PR_COM_METHOD (*SetAllowTracingToAccessVM)(IMachine *pThis, P= RBool allowTracingToAccessVM); - - nsresult PR_COM_METHOD (*GetAutostartEnabled)(IMachine *pThis, PRBool = *autostartEnabled); - nsresult PR_COM_METHOD (*SetAutostartEnabled)(IMachine *pThis, PRBool = autostartEnabled); - - nsresult PR_COM_METHOD (*GetAutostartDelay)(IMachine *pThis, PRUint32 = *autostartDelay); - nsresult PR_COM_METHOD (*SetAutostartDelay)(IMachine *pThis, PRUint32 = autostartDelay); - - nsresult PR_COM_METHOD (*GetAutostopType)(IMachine *pThis, PRUint32 *a= utostopType); - nsresult PR_COM_METHOD (*SetAutostopType)(IMachine *pThis, PRUint32 au= tostopType); - - nsresult PR_COM_METHOD (*LockMachine)( - IMachine *pThis, - ISession * session, - PRUint32 lockType - ); - - nsresult PR_COM_METHOD (*LaunchVMProcess)( - IMachine *pThis, - ISession * session, - PRUnichar * type, - PRUnichar * environment, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*SetBootOrder)( - IMachine *pThis, - PRUint32 position, - PRUint32 device - ); - - nsresult PR_COM_METHOD (*GetBootOrder)( - IMachine *pThis, - PRUint32 position, - PRUint32 * device - ); - - nsresult PR_COM_METHOD (*AttachDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRUint32 type, - IMedium * medium - ); - - nsresult PR_COM_METHOD (*AttachDeviceWithoutMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRUint32 type - ); - - nsresult PR_COM_METHOD (*DetachDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device - ); - - nsresult PR_COM_METHOD (*PassthroughDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool passthrough - ); - - nsresult PR_COM_METHOD (*TemporaryEjectDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool temporaryEject - ); - - nsresult PR_COM_METHOD (*NonRotationalDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool nonRotational - ); - - nsresult PR_COM_METHOD (*SetAutoDiscardForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool discard - ); - - nsresult PR_COM_METHOD (*SetBandwidthGroupForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IBandwidthGroup * bandwidthGroup - ); - - nsresult PR_COM_METHOD (*SetNoBandwidthGroupForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device - ); - - nsresult PR_COM_METHOD (*UnmountMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool force - ); - - nsresult PR_COM_METHOD (*MountMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMedium * medium, - PRBool force - ); - - nsresult PR_COM_METHOD (*GetMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMedium * * medium - ); - - nsresult PR_COM_METHOD (*GetMediumAttachmentsOfController)( - IMachine *pThis, - PRUnichar * name, - PRUint32 *mediumAttachmentsSize, - IMediumAttachment *** mediumAttachments - ); - - nsresult PR_COM_METHOD (*GetMediumAttachment)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMediumAttachment * * attachment - ); - - nsresult PR_COM_METHOD (*AttachHostPCIDevice)( - IMachine *pThis, - PRInt32 hostAddress, - PRInt32 desiredGuestAddress, - PRBool tryToUnbind - ); - - nsresult PR_COM_METHOD (*DetachHostPCIDevice)( - IMachine *pThis, - PRInt32 hostAddress - ); - - nsresult PR_COM_METHOD (*GetNetworkAdapter)( - IMachine *pThis, - PRUint32 slot, - INetworkAdapter * * adapter - ); - - nsresult PR_COM_METHOD (*AddStorageController)( - IMachine *pThis, - PRUnichar * name, - PRUint32 connectionType, - IStorageController * * controller - ); - - nsresult PR_COM_METHOD (*GetStorageControllerByName)( - IMachine *pThis, - PRUnichar * name, - IStorageController * * storageController - ); - - nsresult PR_COM_METHOD (*GetStorageControllerByInstance)( - IMachine *pThis, - PRUint32 instance, - IStorageController * * storageController - ); - - nsresult PR_COM_METHOD (*RemoveStorageController)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*SetStorageControllerBootable)( - IMachine *pThis, - PRUnichar * name, - PRBool bootable - ); - - nsresult PR_COM_METHOD (*GetSerialPort)( - IMachine *pThis, - PRUint32 slot, - ISerialPort * * port - ); - - nsresult PR_COM_METHOD (*GetParallelPort)( - IMachine *pThis, - PRUint32 slot, - IParallelPort * * port - ); - - nsresult PR_COM_METHOD (*GetExtraDataKeys)( - IMachine *pThis, - PRUint32 *valueSize, - PRUnichar *** value - ); - - nsresult PR_COM_METHOD (*GetExtraData)( - IMachine *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetExtraData)( - IMachine *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetCPUProperty)( - IMachine *pThis, - PRUint32 property, - PRBool * value - ); - - nsresult PR_COM_METHOD (*SetCPUProperty)( - IMachine *pThis, - PRUint32 property, - PRBool value - ); - - nsresult PR_COM_METHOD (*GetCPUIDLeaf)( - IMachine *pThis, - PRUint32 id, - PRUint32 * valEax, - PRUint32 * valEbx, - PRUint32 * valEcx, - PRUint32 * valEdx - ); - - nsresult PR_COM_METHOD (*SetCPUIDLeaf)( - IMachine *pThis, - PRUint32 id, - PRUint32 valEax, - PRUint32 valEbx, - PRUint32 valEcx, - PRUint32 valEdx - ); - - nsresult PR_COM_METHOD (*RemoveCPUIDLeaf)( - IMachine *pThis, - PRUint32 id - ); - - nsresult PR_COM_METHOD (*RemoveAllCPUIDLeaves)(IMachine *pThis ); - - nsresult PR_COM_METHOD (*GetHWVirtExProperty)( - IMachine *pThis, - PRUint32 property, - PRBool * value - ); - - nsresult PR_COM_METHOD (*SetHWVirtExProperty)( - IMachine *pThis, - PRUint32 property, - PRBool value - ); - - nsresult PR_COM_METHOD (*SaveSettings)(IMachine *pThis ); - - nsresult PR_COM_METHOD (*DiscardSettings)(IMachine *pThis ); - - nsresult PR_COM_METHOD (*Unregister)( - IMachine *pThis, - PRUint32 cleanupMode, - PRUint32 *aMediaSize, - IMedium *** aMedia - ); - - nsresult PR_COM_METHOD (*Delete)( - IMachine *pThis, - PRUint32 aMediaSize, - IMedium ** aMedia, - IProgress * * aProgress - ); - - nsresult PR_COM_METHOD (*Export)( - IMachine *pThis, - IAppliance * aAppliance, - PRUnichar * location, - IVirtualSystemDescription * * aDescription - ); - - nsresult PR_COM_METHOD (*FindSnapshot)( - IMachine *pThis, - PRUnichar * nameOrId, - ISnapshot * * snapshot - ); - - nsresult PR_COM_METHOD (*CreateSharedFolder)( - IMachine *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult PR_COM_METHOD (*RemoveSharedFolder)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*CanShowConsoleWindow)( - IMachine *pThis, - PRBool * canShow - ); - - nsresult PR_COM_METHOD (*ShowConsoleWindow)( - IMachine *pThis, - PRInt64 * winId - ); - - nsresult PR_COM_METHOD (*GetGuestProperty)( - IMachine *pThis, - PRUnichar * name, - PRUnichar * * value, - PRInt64 * timestamp, - PRUnichar * * flags - ); - - nsresult PR_COM_METHOD (*GetGuestPropertyValue)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*GetGuestPropertyTimestamp)( - IMachine *pThis, - PRUnichar * property, - PRInt64 * value - ); - - nsresult PR_COM_METHOD (*SetGuestProperty)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * value, - PRUnichar * flags - ); - - nsresult PR_COM_METHOD (*SetGuestPropertyValue)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*DeleteGuestProperty)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*EnumerateGuestProperties)( - IMachine *pThis, - PRUnichar * patterns, - PRUint32 *nameSize, - PRUnichar *** name, - PRUint32 *valueSize, - PRUnichar *** value, - PRUint32 *timestampSize, - PRInt64** timestamp, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult PR_COM_METHOD (*QuerySavedGuestScreenInfo)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * originX, - PRUint32 * originY, - PRUint32 * width, - PRUint32 * height, - PRBool * enabled - ); - - nsresult PR_COM_METHOD (*QuerySavedThumbnailSize)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * size, - PRUint32 * width, - PRUint32 * height - ); - - nsresult PR_COM_METHOD (*ReadSavedThumbnailToArray)( - IMachine *pThis, - PRUint32 screenId, - PRBool BGR, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*ReadSavedThumbnailPNGToArray)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*QuerySavedScreenshotPNGSize)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * size, - PRUint32 * width, - PRUint32 * height - ); - - nsresult PR_COM_METHOD (*ReadSavedScreenshotPNGToArray)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*HotPlugCPU)( - IMachine *pThis, - PRUint32 cpu - ); - - nsresult PR_COM_METHOD (*HotUnplugCPU)( - IMachine *pThis, - PRUint32 cpu - ); - - nsresult PR_COM_METHOD (*GetCPUStatus)( - IMachine *pThis, - PRUint32 cpu, - PRBool * attached - ); - - nsresult PR_COM_METHOD (*QueryLogFilename)( - IMachine *pThis, - PRUint32 idx, - PRUnichar * * filename - ); - - nsresult PR_COM_METHOD (*ReadLog)( - IMachine *pThis, - PRUint32 idx, - PRInt64 offset, - PRInt64 size, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*CloneTo)( - IMachine *pThis, - IMachine * target, - PRUint32 mode, - PRUint32 optionsSize, - PRUint32* options, - IProgress * * progress - ); - -}; - -struct IMachine -{ - struct IMachine_vtbl *vtbl; -}; -/* End of struct IMachine Declaration */ - - -/* Start of struct IVRDEServerInfo Declaration */ -# define IVRDESERVERINFO_IID_STR "714434a1-58c3-4aab-9049-7652c5df113b" -# define IVRDESERVERINFO_IID { \ - 0x714434a1, 0x58c3, 0x4aab, \ - { 0x90, 0x49, 0x76, 0x52, 0xc5, 0xdf, 0x11, 0x3b } \ -} -struct IVRDEServerInfo_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetActive)(IVRDEServerInfo *pThis, PRBool *ac= tive); - - nsresult PR_COM_METHOD (*GetPort)(IVRDEServerInfo *pThis, PRInt32 *por= t); - - nsresult PR_COM_METHOD (*GetNumberOfClients)(IVRDEServerInfo *pThis, P= RUint32 *numberOfClients); - - nsresult PR_COM_METHOD (*GetBeginTime)(IVRDEServerInfo *pThis, PRInt64= *beginTime); - - nsresult PR_COM_METHOD (*GetEndTime)(IVRDEServerInfo *pThis, PRInt64 *= endTime); - - nsresult PR_COM_METHOD (*GetBytesSent)(IVRDEServerInfo *pThis, PRInt64= *bytesSent); - - nsresult PR_COM_METHOD (*GetBytesSentTotal)(IVRDEServerInfo *pThis, PR= Int64 *bytesSentTotal); - - nsresult PR_COM_METHOD (*GetBytesReceived)(IVRDEServerInfo *pThis, PRI= nt64 *bytesReceived); - - nsresult PR_COM_METHOD (*GetBytesReceivedTotal)(IVRDEServerInfo *pThis= , PRInt64 *bytesReceivedTotal); - - nsresult PR_COM_METHOD (*GetUser)(IVRDEServerInfo *pThis, PRUnichar * = *user); - - nsresult PR_COM_METHOD (*GetDomain)(IVRDEServerInfo *pThis, PRUnichar = * *domain); - - nsresult PR_COM_METHOD (*GetClientName)(IVRDEServerInfo *pThis, PRUnic= har * *clientName); - - nsresult PR_COM_METHOD (*GetClientIP)(IVRDEServerInfo *pThis, PRUnicha= r * *clientIP); - - nsresult PR_COM_METHOD (*GetClientVersion)(IVRDEServerInfo *pThis, PRU= int32 *clientVersion); - - nsresult PR_COM_METHOD (*GetEncryptionStyle)(IVRDEServerInfo *pThis, P= RUint32 *encryptionStyle); - -}; - -struct IVRDEServerInfo -{ - struct IVRDEServerInfo_vtbl *vtbl; -}; -/* End of struct IVRDEServerInfo Declaration */ - - -/* Start of struct IConsole Declaration */ -# define ICONSOLE_IID_STR "db7ab4ca-2a3f-4183-9243-c1208da92392" -# define ICONSOLE_IID { \ - 0xdb7ab4ca, 0x2a3f, 0x4183, \ - { 0x92, 0x43, 0xc1, 0x20, 0x8d, 0xa9, 0x23, 0x92 } \ -} -struct IConsole_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMachine)(IConsole *pThis, IMachine * *mach= ine); - - nsresult PR_COM_METHOD (*GetState)(IConsole *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetGuest)(IConsole *pThis, IGuest * *guest); - - nsresult PR_COM_METHOD (*GetKeyboard)(IConsole *pThis, IKeyboard * *ke= yboard); - - nsresult PR_COM_METHOD (*GetMouse)(IConsole *pThis, IMouse * *mouse); - - nsresult PR_COM_METHOD (*GetDisplay)(IConsole *pThis, IDisplay * *disp= lay); - - nsresult PR_COM_METHOD (*GetDebugger)(IConsole *pThis, IMachineDebugge= r * *debugger); - - nsresult PR_COM_METHOD (*GetUSBDevices)(IConsole *pThis, PRUint32 *USB= DevicesSize, IUSBDevice * **USBDevices); - - nsresult PR_COM_METHOD (*GetRemoteUSBDevices)(IConsole *pThis, PRUint3= 2 *remoteUSBDevicesSize, IHostUSBDevice * **remoteUSBDevices); - - nsresult PR_COM_METHOD (*GetSharedFolders)(IConsole *pThis, PRUint32 *= sharedFoldersSize, ISharedFolder * **sharedFolders); - - nsresult PR_COM_METHOD (*GetVRDEServerInfo)(IConsole *pThis, IVRDEServ= erInfo * *VRDEServerInfo); - - nsresult PR_COM_METHOD (*GetEventSource)(IConsole *pThis, IEventSource= * *eventSource); - - nsresult PR_COM_METHOD (*GetAttachedPCIDevices)(IConsole *pThis, PRUin= t32 *attachedPCIDevicesSize, IPCIDeviceAttachment * **attachedPCIDevices); - - nsresult PR_COM_METHOD (*GetUseHostClipboard)(IConsole *pThis, PRBool = *useHostClipboard); - nsresult PR_COM_METHOD (*SetUseHostClipboard)(IConsole *pThis, PRBool = useHostClipboard); - - nsresult PR_COM_METHOD (*PowerUp)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*PowerUpPaused)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*PowerDown)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Reset)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*Pause)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*Resume)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*PowerButton)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*SleepButton)(IConsole *pThis ); - - nsresult PR_COM_METHOD (*GetPowerButtonHandled)( - IConsole *pThis, - PRBool * handled - ); - - nsresult PR_COM_METHOD (*GetGuestEnteredACPIMode)( - IConsole *pThis, - PRBool * entered - ); - - nsresult PR_COM_METHOD (*SaveState)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*AdoptSavedState)( - IConsole *pThis, - PRUnichar * savedStateFile - ); - - nsresult PR_COM_METHOD (*DiscardSavedState)( - IConsole *pThis, - PRBool fRemoveFile - ); - - nsresult PR_COM_METHOD (*GetDeviceActivity)( - IConsole *pThis, - PRUint32 type, - PRUint32 * activity - ); - - nsresult PR_COM_METHOD (*AttachUSBDevice)( - IConsole *pThis, - PRUnichar * id - ); - - nsresult PR_COM_METHOD (*DetachUSBDevice)( - IConsole *pThis, - PRUnichar * id, - IUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceByAddress)( - IConsole *pThis, - PRUnichar * name, - IUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceById)( - IConsole *pThis, - PRUnichar * id, - IUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*CreateSharedFolder)( - IConsole *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult PR_COM_METHOD (*RemoveSharedFolder)( - IConsole *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*TakeSnapshot)( - IConsole *pThis, - PRUnichar * name, - PRUnichar * description, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DeleteSnapshot)( - IConsole *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DeleteSnapshotAndAllChildren)( - IConsole *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DeleteSnapshotRange)( - IConsole *pThis, - PRUnichar * startId, - PRUnichar * endId, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*RestoreSnapshot)( - IConsole *pThis, - ISnapshot * snapshot, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Teleport)( - IConsole *pThis, - PRUnichar * hostname, - PRUint32 tcpport, - PRUnichar * password, - PRUint32 maxDowntime, - IProgress * * progress - ); - -}; - -struct IConsole -{ - struct IConsole_vtbl *vtbl; -}; -/* End of struct IConsole Declaration */ - - -/* Start of struct IHostNetworkInterface Declaration */ -# define IHOSTNETWORKINTERFACE_IID_STR "87a4153d-6889-4dd6-9654-2e9ff0ae8= dec" -# define IHOSTNETWORKINTERFACE_IID { \ - 0x87a4153d, 0x6889, 0x4dd6, \ - { 0x96, 0x54, 0x2e, 0x9f, 0xf0, 0xae, 0x8d, 0xec } \ -} -struct IHostNetworkInterface_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IHostNetworkInterface *pThis, PRUnic= har * *name); - - nsresult PR_COM_METHOD (*GetId)(IHostNetworkInterface *pThis, PRUnicha= r * *id); - - nsresult PR_COM_METHOD (*GetNetworkName)(IHostNetworkInterface *pThis,= PRUnichar * *networkName); - - nsresult PR_COM_METHOD (*GetDHCPEnabled)(IHostNetworkInterface *pThis,= PRBool *DHCPEnabled); - - nsresult PR_COM_METHOD (*GetIPAddress)(IHostNetworkInterface *pThis, P= RUnichar * *IPAddress); - - nsresult PR_COM_METHOD (*GetNetworkMask)(IHostNetworkInterface *pThis,= PRUnichar * *networkMask); - - nsresult PR_COM_METHOD (*GetIPV6Supported)(IHostNetworkInterface *pThi= s, PRBool *IPV6Supported); - - nsresult PR_COM_METHOD (*GetIPV6Address)(IHostNetworkInterface *pThis,= PRUnichar * *IPV6Address); - - nsresult PR_COM_METHOD (*GetIPV6NetworkMaskPrefixLength)(IHostNetworkI= nterface *pThis, PRUint32 *IPV6NetworkMaskPrefixLength); - - nsresult PR_COM_METHOD (*GetHardwareAddress)(IHostNetworkInterface *pT= his, PRUnichar * *hardwareAddress); - - nsresult PR_COM_METHOD (*GetMediumType)(IHostNetworkInterface *pThis, = PRUint32 *mediumType); - - nsresult PR_COM_METHOD (*GetStatus)(IHostNetworkInterface *pThis, PRUi= nt32 *status); - - nsresult PR_COM_METHOD (*GetInterfaceType)(IHostNetworkInterface *pThi= s, PRUint32 *interfaceType); - - nsresult PR_COM_METHOD (*EnableStaticIPConfig)( - IHostNetworkInterface *pThis, - PRUnichar * IPAddress, - PRUnichar * networkMask - ); - - nsresult PR_COM_METHOD (*EnableStaticIPConfigV6)( - IHostNetworkInterface *pThis, - PRUnichar * IPV6Address, - PRUint32 IPV6NetworkMaskPrefixLength - ); - - nsresult PR_COM_METHOD (*EnableDynamicIPConfig)(IHostNetworkInterface = *pThis ); - - nsresult PR_COM_METHOD (*DHCPRediscover)(IHostNetworkInterface *pThis = ); - -}; - -struct IHostNetworkInterface -{ - struct IHostNetworkInterface_vtbl *vtbl; -}; -/* End of struct IHostNetworkInterface Declaration */ - - -/* Start of struct IHost Declaration */ -# define IHOST_IID_STR "30678943-32df-4830-b413-931b25ac86a0" -# define IHOST_IID { \ - 0x30678943, 0x32df, 0x4830, \ - { 0xb4, 0x13, 0x93, 0x1b, 0x25, 0xac, 0x86, 0xa0 } \ -} -struct IHost_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetDVDDrives)(IHost *pThis, PRUint32 *DVDDriv= esSize, IMedium * **DVDDrives); - - nsresult PR_COM_METHOD (*GetFloppyDrives)(IHost *pThis, PRUint32 *flop= pyDrivesSize, IMedium * **floppyDrives); - - nsresult PR_COM_METHOD (*GetUSBDevices)(IHost *pThis, PRUint32 *USBDev= icesSize, IHostUSBDevice * **USBDevices); - - nsresult PR_COM_METHOD (*GetUSBDeviceFilters)(IHost *pThis, PRUint32 *= USBDeviceFiltersSize, IHostUSBDeviceFilter * **USBDeviceFilters); - - nsresult PR_COM_METHOD (*GetNetworkInterfaces)(IHost *pThis, PRUint32 = *networkInterfacesSize, IHostNetworkInterface * **networkInterfaces); - - nsresult PR_COM_METHOD (*GetProcessorCount)(IHost *pThis, PRUint32 *pr= ocessorCount); - - nsresult PR_COM_METHOD (*GetProcessorOnlineCount)(IHost *pThis, PRUint= 32 *processorOnlineCount); - - nsresult PR_COM_METHOD (*GetProcessorCoreCount)(IHost *pThis, PRUint32= *processorCoreCount); - - nsresult PR_COM_METHOD (*GetMemorySize)(IHost *pThis, PRUint32 *memory= Size); - - nsresult PR_COM_METHOD (*GetMemoryAvailable)(IHost *pThis, PRUint32 *m= emoryAvailable); - - nsresult PR_COM_METHOD (*GetOperatingSystem)(IHost *pThis, PRUnichar *= *operatingSystem); - - nsresult PR_COM_METHOD (*GetOSVersion)(IHost *pThis, PRUnichar * *OSVe= rsion); - - nsresult PR_COM_METHOD (*GetUTCTime)(IHost *pThis, PRInt64 *UTCTime); - - nsresult PR_COM_METHOD (*GetAcceleration3DAvailable)(IHost *pThis, PRB= ool *acceleration3DAvailable); - - nsresult PR_COM_METHOD (*GetProcessorSpeed)( - IHost *pThis, - PRUint32 cpuId, - PRUint32 * speed - ); - - nsresult PR_COM_METHOD (*GetProcessorFeature)( - IHost *pThis, - PRUint32 feature, - PRBool * supported - ); - - nsresult PR_COM_METHOD (*GetProcessorDescription)( - IHost *pThis, - PRUint32 cpuId, - PRUnichar * * description - ); - - nsresult PR_COM_METHOD (*GetProcessorCPUIDLeaf)( - IHost *pThis, - PRUint32 cpuId, - PRUint32 leaf, - PRUint32 subLeaf, - PRUint32 * valEax, - PRUint32 * valEbx, - PRUint32 * valEcx, - PRUint32 * valEdx - ); - - nsresult PR_COM_METHOD (*CreateHostOnlyNetworkInterface)( - IHost *pThis, - IHostNetworkInterface * * hostInterface, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*RemoveHostOnlyNetworkInterface)( - IHost *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CreateUSBDeviceFilter)( - IHost *pThis, - PRUnichar * name, - IHostUSBDeviceFilter * * filter - ); - - nsresult PR_COM_METHOD (*InsertUSBDeviceFilter)( - IHost *pThis, - PRUint32 position, - IHostUSBDeviceFilter * filter - ); - - nsresult PR_COM_METHOD (*RemoveUSBDeviceFilter)( - IHost *pThis, - PRUint32 position - ); - - nsresult PR_COM_METHOD (*FindHostDVDDrive)( - IHost *pThis, - PRUnichar * name, - IMedium * * drive - ); - - nsresult PR_COM_METHOD (*FindHostFloppyDrive)( - IHost *pThis, - PRUnichar * name, - IMedium * * drive - ); - - nsresult PR_COM_METHOD (*FindHostNetworkInterfaceByName)( - IHost *pThis, - PRUnichar * name, - IHostNetworkInterface * * networkInterface - ); - - nsresult PR_COM_METHOD (*FindHostNetworkInterfaceById)( - IHost *pThis, - PRUnichar * id, - IHostNetworkInterface * * networkInterface - ); - - nsresult PR_COM_METHOD (*FindHostNetworkInterfacesOfType)( - IHost *pThis, - PRUint32 type, - PRUint32 *networkInterfacesSize, - IHostNetworkInterface *** networkInterfaces - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceById)( - IHost *pThis, - PRUnichar * id, - IHostUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*FindUSBDeviceByAddress)( - IHost *pThis, - PRUnichar * name, - IHostUSBDevice * * device - ); - - nsresult PR_COM_METHOD (*GenerateMACAddress)( - IHost *pThis, - PRUnichar * * address - ); - -}; - -struct IHost -{ - struct IHost_vtbl *vtbl; -}; -/* End of struct IHost Declaration */ - - -/* Start of struct ISystemProperties Declaration */ -# define ISYSTEMPROPERTIES_IID_STR "1d7aca29-97f0-4287-9874-a60ec4f80ea6" -# define ISYSTEMPROPERTIES_IID { \ - 0x1d7aca29, 0x97f0, 0x4287, \ - { 0x98, 0x74, 0xa6, 0x0e, 0xc4, 0xf8, 0x0e, 0xa6 } \ -} -struct ISystemProperties_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMinGuestRAM)(ISystemProperties *pThis, PRU= int32 *minGuestRAM); - - nsresult PR_COM_METHOD (*GetMaxGuestRAM)(ISystemProperties *pThis, PRU= int32 *maxGuestRAM); - - nsresult PR_COM_METHOD (*GetMinGuestVRAM)(ISystemProperties *pThis, PR= Uint32 *minGuestVRAM); - - nsresult PR_COM_METHOD (*GetMaxGuestVRAM)(ISystemProperties *pThis, PR= Uint32 *maxGuestVRAM); - - nsresult PR_COM_METHOD (*GetMinGuestCPUCount)(ISystemProperties *pThis= , PRUint32 *minGuestCPUCount); - - nsresult PR_COM_METHOD (*GetMaxGuestCPUCount)(ISystemProperties *pThis= , PRUint32 *maxGuestCPUCount); - - nsresult PR_COM_METHOD (*GetMaxGuestMonitors)(ISystemProperties *pThis= , PRUint32 *maxGuestMonitors); - - nsresult PR_COM_METHOD (*GetInfoVDSize)(ISystemProperties *pThis, PRIn= t64 *infoVDSize); - - nsresult PR_COM_METHOD (*GetSerialPortCount)(ISystemProperties *pThis,= PRUint32 *serialPortCount); - - nsresult PR_COM_METHOD (*GetParallelPortCount)(ISystemProperties *pThi= s, PRUint32 *parallelPortCount); - - nsresult PR_COM_METHOD (*GetMaxBootPosition)(ISystemProperties *pThis,= PRUint32 *maxBootPosition); - - nsresult PR_COM_METHOD (*GetDefaultMachineFolder)(ISystemProperties *p= This, PRUnichar * *defaultMachineFolder); - nsresult PR_COM_METHOD (*SetDefaultMachineFolder)(ISystemProperties *p= This, PRUnichar * defaultMachineFolder); - - nsresult PR_COM_METHOD (*GetMediumFormats)(ISystemProperties *pThis, P= RUint32 *mediumFormatsSize, IMediumFormat * **mediumFormats); - - nsresult PR_COM_METHOD (*GetDefaultHardDiskFormat)(ISystemProperties *= pThis, PRUnichar * *defaultHardDiskFormat); - nsresult PR_COM_METHOD (*SetDefaultHardDiskFormat)(ISystemProperties *= pThis, PRUnichar * defaultHardDiskFormat); - - nsresult PR_COM_METHOD (*GetFreeDiskSpaceWarning)(ISystemProperties *p= This, PRInt64 *freeDiskSpaceWarning); - nsresult PR_COM_METHOD (*SetFreeDiskSpaceWarning)(ISystemProperties *p= This, PRInt64 freeDiskSpaceWarning); - - nsresult PR_COM_METHOD (*GetFreeDiskSpacePercentWarning)(ISystemProper= ties *pThis, PRUint32 *freeDiskSpacePercentWarning); - nsresult PR_COM_METHOD (*SetFreeDiskSpacePercentWarning)(ISystemProper= ties *pThis, PRUint32 freeDiskSpacePercentWarning); - - nsresult PR_COM_METHOD (*GetFreeDiskSpaceError)(ISystemProperties *pTh= is, PRInt64 *freeDiskSpaceError); - nsresult PR_COM_METHOD (*SetFreeDiskSpaceError)(ISystemProperties *pTh= is, PRInt64 freeDiskSpaceError); - - nsresult PR_COM_METHOD (*GetFreeDiskSpacePercentError)(ISystemProperti= es *pThis, PRUint32 *freeDiskSpacePercentError); - nsresult PR_COM_METHOD (*SetFreeDiskSpacePercentError)(ISystemProperti= es *pThis, PRUint32 freeDiskSpacePercentError); - - nsresult PR_COM_METHOD (*GetVRDEAuthLibrary)(ISystemProperties *pThis,= PRUnichar * *VRDEAuthLibrary); - nsresult PR_COM_METHOD (*SetVRDEAuthLibrary)(ISystemProperties *pThis,= PRUnichar * VRDEAuthLibrary); - - nsresult PR_COM_METHOD (*GetWebServiceAuthLibrary)(ISystemProperties *= pThis, PRUnichar * *webServiceAuthLibrary); - nsresult PR_COM_METHOD (*SetWebServiceAuthLibrary)(ISystemProperties *= pThis, PRUnichar * webServiceAuthLibrary); - - nsresult PR_COM_METHOD (*GetDefaultVRDEExtPack)(ISystemProperties *pTh= is, PRUnichar * *defaultVRDEExtPack); - nsresult PR_COM_METHOD (*SetDefaultVRDEExtPack)(ISystemProperties *pTh= is, PRUnichar * defaultVRDEExtPack); - - nsresult PR_COM_METHOD (*GetLogHistoryCount)(ISystemProperties *pThis,= PRUint32 *logHistoryCount); - nsresult PR_COM_METHOD (*SetLogHistoryCount)(ISystemProperties *pThis,= PRUint32 logHistoryCount); - - nsresult PR_COM_METHOD (*GetDefaultAudioDriver)(ISystemProperties *pTh= is, PRUint32 *defaultAudioDriver); - - nsresult PR_COM_METHOD (*GetAutostartDatabasePath)(ISystemProperties *= pThis, PRUnichar * *autostartDatabasePath); - nsresult PR_COM_METHOD (*SetAutostartDatabasePath)(ISystemProperties *= pThis, PRUnichar * autostartDatabasePath); - - nsresult PR_COM_METHOD (*GetDefaultAdditionsISO)(ISystemProperties *pT= his, PRUnichar * *defaultAdditionsISO); - nsresult PR_COM_METHOD (*SetDefaultAdditionsISO)(ISystemProperties *pT= his, PRUnichar * defaultAdditionsISO); - - nsresult PR_COM_METHOD (*GetMaxNetworkAdapters)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 * maxNetworkAdapters - ); - - nsresult PR_COM_METHOD (*GetMaxNetworkAdaptersOfType)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 type, - PRUint32 * maxNetworkAdapters - ); - - nsresult PR_COM_METHOD (*GetMaxDevicesPerPortForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * maxDevicesPerPort - ); - - nsresult PR_COM_METHOD (*GetMinPortCountForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * minPortCount - ); - - nsresult PR_COM_METHOD (*GetMaxPortCountForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * maxPortCount - ); - - nsresult PR_COM_METHOD (*GetMaxInstancesOfStorageBus)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 bus, - PRUint32 * maxInstances - ); - - nsresult PR_COM_METHOD (*GetDeviceTypesForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 *deviceTypesSize, - PRUint32** deviceTypes - ); - - nsresult PR_COM_METHOD (*GetDefaultIoCacheSettingForStorageController)( - ISystemProperties *pThis, - PRUint32 controllerType, - PRBool * enabled - ); - -}; - -struct ISystemProperties -{ - struct ISystemProperties_vtbl *vtbl; -}; -/* End of struct ISystemProperties Declaration */ - - -/* Start of struct IGuestOSType Declaration */ -# define IGUESTOSTYPE_IID_STR "6d968f9a-858b-4c50-bf17-241f069e94c2" -# define IGUESTOSTYPE_IID { \ - 0x6d968f9a, 0x858b, 0x4c50, \ - { 0xbf, 0x17, 0x24, 0x1f, 0x06, 0x9e, 0x94, 0xc2 } \ -} -struct IGuestOSType_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetFamilyId)(IGuestOSType *pThis, PRUnichar *= *familyId); - - nsresult PR_COM_METHOD (*GetFamilyDescription)(IGuestOSType *pThis, PR= Unichar * *familyDescription); - - nsresult PR_COM_METHOD (*GetId)(IGuestOSType *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetDescription)(IGuestOSType *pThis, PRUnicha= r * *description); - - nsresult PR_COM_METHOD (*GetIs64Bit)(IGuestOSType *pThis, PRBool *is64= Bit); - - nsresult PR_COM_METHOD (*GetRecommendedIOAPIC)(IGuestOSType *pThis, PR= Bool *recommendedIOAPIC); - - nsresult PR_COM_METHOD (*GetRecommendedVirtEx)(IGuestOSType *pThis, PR= Bool *recommendedVirtEx); - - nsresult PR_COM_METHOD (*GetRecommendedRAM)(IGuestOSType *pThis, PRUin= t32 *recommendedRAM); - - nsresult PR_COM_METHOD (*GetRecommendedVRAM)(IGuestOSType *pThis, PRUi= nt32 *recommendedVRAM); - - nsresult PR_COM_METHOD (*GetRecommended2DVideoAcceleration)(IGuestOSTy= pe *pThis, PRBool *recommended2DVideoAcceleration); - - nsresult PR_COM_METHOD (*GetRecommended3DAcceleration)(IGuestOSType *p= This, PRBool *recommended3DAcceleration); - - nsresult PR_COM_METHOD (*GetRecommendedHDD)(IGuestOSType *pThis, PRInt= 64 *recommendedHDD); - - nsresult PR_COM_METHOD (*GetAdapterType)(IGuestOSType *pThis, PRUint32= *adapterType); - - nsresult PR_COM_METHOD (*GetRecommendedPAE)(IGuestOSType *pThis, PRBoo= l *recommendedPAE); - - nsresult PR_COM_METHOD (*GetRecommendedDVDStorageController)(IGuestOST= ype *pThis, PRUint32 *recommendedDVDStorageController); - - nsresult PR_COM_METHOD (*GetRecommendedDVDStorageBus)(IGuestOSType *pT= his, PRUint32 *recommendedDVDStorageBus); - - nsresult PR_COM_METHOD (*GetRecommendedHDStorageController)(IGuestOSTy= pe *pThis, PRUint32 *recommendedHDStorageController); - - nsresult PR_COM_METHOD (*GetRecommendedHDStorageBus)(IGuestOSType *pTh= is, PRUint32 *recommendedHDStorageBus); - - nsresult PR_COM_METHOD (*GetRecommendedFirmware)(IGuestOSType *pThis, = PRUint32 *recommendedFirmware); - - nsresult PR_COM_METHOD (*GetRecommendedUSBHID)(IGuestOSType *pThis, PR= Bool *recommendedUSBHID); - - nsresult PR_COM_METHOD (*GetRecommendedHPET)(IGuestOSType *pThis, PRBo= ol *recommendedHPET); - - nsresult PR_COM_METHOD (*GetRecommendedUSBTablet)(IGuestOSType *pThis,= PRBool *recommendedUSBTablet); - - nsresult PR_COM_METHOD (*GetRecommendedRTCUseUTC)(IGuestOSType *pThis,= PRBool *recommendedRTCUseUTC); - - nsresult PR_COM_METHOD (*GetRecommendedChipset)(IGuestOSType *pThis, P= RUint32 *recommendedChipset); - - nsresult PR_COM_METHOD (*GetRecommendedAudioController)(IGuestOSType *= pThis, PRUint32 *recommendedAudioController); - - nsresult PR_COM_METHOD (*GetRecommendedFloppy)(IGuestOSType *pThis, PR= Bool *recommendedFloppy); - - nsresult PR_COM_METHOD (*GetRecommendedUSB)(IGuestOSType *pThis, PRBoo= l *recommendedUSB); - -}; - -struct IGuestOSType -{ - struct IGuestOSType_vtbl *vtbl; -}; -/* End of struct IGuestOSType Declaration */ - - -/* Start of struct IAdditionsFacility Declaration */ -# define IADDITIONSFACILITY_IID_STR "54992946-6af1-4e49-98ec-58b558b7291e" -# define IADDITIONSFACILITY_IID { \ - 0x54992946, 0x6af1, 0x4e49, \ - { 0x98, 0xec, 0x58, 0xb5, 0x58, 0xb7, 0x29, 0x1e } \ -} -struct IAdditionsFacility_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetClassType)(IAdditionsFacility *pThis, PRUi= nt32 *classType); - - nsresult PR_COM_METHOD (*GetLastUpdated)(IAdditionsFacility *pThis, PR= Int64 *lastUpdated); - - nsresult PR_COM_METHOD (*GetName)(IAdditionsFacility *pThis, PRUnichar= * *name); - - nsresult PR_COM_METHOD (*GetStatus)(IAdditionsFacility *pThis, PRUint3= 2 *status); - - nsresult PR_COM_METHOD (*GetType)(IAdditionsFacility *pThis, PRUint32 = *type); - -}; - -struct IAdditionsFacility -{ - struct IAdditionsFacility_vtbl *vtbl; -}; -/* End of struct IAdditionsFacility Declaration */ - - -/* Start of struct IGuestSession Declaration */ -# define IGUESTSESSION_IID_STR "57eb82a8-822b-42c1-9d1c-5c54bc3d3250" -# define IGUESTSESSION_IID { \ - 0x57eb82a8, 0x822b, 0x42c1, \ - { 0x9d, 0x1c, 0x5c, 0x54, 0xbc, 0x3d, 0x32, 0x50 } \ -} -struct IGuestSession_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetUser)(IGuestSession *pThis, PRUnichar * *u= ser); - - nsresult PR_COM_METHOD (*GetDomain)(IGuestSession *pThis, PRUnichar * = *domain); - - nsresult PR_COM_METHOD (*GetName)(IGuestSession *pThis, PRUnichar * *n= ame); - - nsresult PR_COM_METHOD (*GetId)(IGuestSession *pThis, PRUint32 *id); - - nsresult PR_COM_METHOD (*GetTimeout)(IGuestSession *pThis, PRUint32 *t= imeout); - nsresult PR_COM_METHOD (*SetTimeout)(IGuestSession *pThis, PRUint32 ti= meout); - - nsresult PR_COM_METHOD (*GetEnvironment)(IGuestSession *pThis, PRUint3= 2 *environmentSize, PRUnichar * **environment); - nsresult PR_COM_METHOD (*SetEnvironment)(IGuestSession *pThis, PRUint3= 2 environmentSize, PRUnichar * *environment); - - nsresult PR_COM_METHOD (*GetProcesses)(IGuestSession *pThis, PRUint32 = *processesSize, IGuestProcess * **processes); - - nsresult PR_COM_METHOD (*GetDirectories)(IGuestSession *pThis, PRUint3= 2 *directoriesSize, IGuestDirectory * **directories); - - nsresult PR_COM_METHOD (*GetFiles)(IGuestSession *pThis, PRUint32 *fil= esSize, IGuestFile * **files); - - nsresult PR_COM_METHOD (*Close)(IGuestSession *pThis ); - - nsresult PR_COM_METHOD (*CopyFrom)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CopyTo)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DirectoryCreate)( - IGuestSession *pThis, - PRUnichar * path, - PRUint32 mode, - PRUint32 flagsSize, - PRUint32* flags - ); - - nsresult PR_COM_METHOD (*DirectoryCreateTemp)( - IGuestSession *pThis, - PRUnichar * templateName, - PRUint32 mode, - PRUnichar * path, - PRBool secure, - PRUnichar * * directory - ); - - nsresult PR_COM_METHOD (*DirectoryExists)( - IGuestSession *pThis, - PRUnichar * path, - PRBool * exists - ); - - nsresult PR_COM_METHOD (*DirectoryOpen)( - IGuestSession *pThis, - PRUnichar * path, - PRUnichar * filter, - PRUint32 flagsSize, - PRUint32* flags, - IGuestDirectory * * directory - ); - - nsresult PR_COM_METHOD (*DirectoryQueryInfo)( - IGuestSession *pThis, - PRUnichar * path, - IGuestFsObjInfo * * info - ); - - nsresult PR_COM_METHOD (*DirectoryRemove)( - IGuestSession *pThis, - PRUnichar * path - ); - - nsresult PR_COM_METHOD (*DirectoryRemoveRecursive)( - IGuestSession *pThis, - PRUnichar * path, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DirectoryRename)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags - ); - - nsresult PR_COM_METHOD (*DirectorySetACL)( - IGuestSession *pThis, - PRUnichar * path, - PRUnichar * acl - ); - - nsresult PR_COM_METHOD (*EnvironmentClear)(IGuestSession *pThis ); - - nsresult PR_COM_METHOD (*EnvironmentGet)( - IGuestSession *pThis, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*EnvironmentSet)( - IGuestSession *pThis, - PRUnichar * name, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*EnvironmentUnset)( - IGuestSession *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*FileCreateTemp)( - IGuestSession *pThis, - PRUnichar * templateName, - PRUint32 mode, - PRUnichar * path, - PRBool secure, - IGuestFile * * file - ); - - nsresult PR_COM_METHOD (*FileExists)( - IGuestSession *pThis, - PRUnichar * path, - PRBool * exists - ); - - nsresult PR_COM_METHOD (*FileRemove)( - IGuestSession *pThis, - PRUnichar * path - ); - - nsresult PR_COM_METHOD (*FileOpen)( - IGuestSession *pThis, - PRUnichar * path, - PRUnichar * openMode, - PRUnichar * disposition, - PRUint32 creationMode, - PRInt64 offset, - IGuestFile * * file - ); - - nsresult PR_COM_METHOD (*FileQueryInfo)( - IGuestSession *pThis, - PRUnichar * path, - IGuestFsObjInfo * * info - ); - - nsresult PR_COM_METHOD (*FileQuerySize)( - IGuestSession *pThis, - PRUnichar * path, - PRInt64 * size - ); - - nsresult PR_COM_METHOD (*FileRename)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags - ); - - nsresult PR_COM_METHOD (*FileSetACL)( - IGuestSession *pThis, - PRUnichar * file, - PRUnichar * acl - ); - - nsresult PR_COM_METHOD (*ProcessCreate)( - IGuestSession *pThis, - PRUnichar * command, - PRUint32 argumentsSize, - PRUnichar ** arguments, - PRUint32 environmentSize, - PRUnichar ** environment, - PRUint32 flagsSize, - PRUint32* flags, - PRUint32 timeoutMS, - IGuestProcess * * guestProcess - ); - - nsresult PR_COM_METHOD (*ProcessCreateEx)( - IGuestSession *pThis, - PRUnichar * command, - PRUint32 argumentsSize, - PRUnichar ** arguments, - PRUint32 environmentSize, - PRUnichar ** environment, - PRUint32 flagsSize, - PRUint32* flags, - PRUint32 timeoutMS, - PRUint32 priority, - PRUint32 affinitySize, - PRInt32* affinity, - IGuestProcess * * guestProcess - ); - - nsresult PR_COM_METHOD (*ProcessGet)( - IGuestSession *pThis, - PRUint32 pid, - IGuestProcess * * guestProcess - ); - - nsresult PR_COM_METHOD (*SymlinkCreate)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * target, - PRUint32 type - ); - - nsresult PR_COM_METHOD (*SymlinkExists)( - IGuestSession *pThis, - PRUnichar * symlink, - PRBool * exists - ); - - nsresult PR_COM_METHOD (*SymlinkRead)( - IGuestSession *pThis, - PRUnichar * symlink, - PRUint32 flagsSize, - PRUint32* flags, - PRUnichar * * target - ); - - nsresult PR_COM_METHOD (*SymlinkRemoveDirectory)( - IGuestSession *pThis, - PRUnichar * path - ); - - nsresult PR_COM_METHOD (*SymlinkRemoveFile)( - IGuestSession *pThis, - PRUnichar * file - ); - -}; - -struct IGuestSession -{ - struct IGuestSession_vtbl *vtbl; -}; -/* End of struct IGuestSession Declaration */ - - -/* Start of struct IProcess Declaration */ -# define IPROCESS_IID_STR "08864d56-96ab-418b-adbc-5a679532aeb0" -# define IPROCESS_IID { \ - 0x08864d56, 0x96ab, 0x418b, \ - { 0xad, 0xbc, 0x5a, 0x67, 0x95, 0x32, 0xae, 0xb0 } \ -} -struct IProcess_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetPID)(IProcess *pThis, PRUint32 *PID); - - nsresult PR_COM_METHOD (*GetStatus)(IProcess *pThis, PRUint32 *status); - - nsresult PR_COM_METHOD (*GetExitCode)(IProcess *pThis, PRInt32 *exitCo= de); - - nsresult PR_COM_METHOD (*GetEnvironment)(IProcess *pThis, PRUint32 *en= vironmentSize, PRUnichar * **environment); - - nsresult PR_COM_METHOD (*GetArguments)(IProcess *pThis, PRUint32 *argu= mentsSize, PRUnichar * **arguments); - - nsresult PR_COM_METHOD (*GetExecutablePath)(IProcess *pThis, PRUnichar= * *executablePath); - - nsresult PR_COM_METHOD (*GetName)(IProcess *pThis, PRUnichar * *name); - - nsresult PR_COM_METHOD (*WaitFor)( - IProcess *pThis, - PRUint32 waitFor, - PRUint32 timeoutMS, - PRUint32 * reason - ); - - nsresult PR_COM_METHOD (*WaitForArray)( - IProcess *pThis, - PRUint32 waitForSize, - PRUint32* waitFor, - PRUint32 timeoutMS, - PRUint32 * reason - ); - - nsresult PR_COM_METHOD (*Read)( - IProcess *pThis, - PRUint32 handle, - PRUint32 toRead, - PRUint32 timeoutMS, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*Write)( - IProcess *pThis, - PRUint32 handle, - PRUint32 flags, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - - nsresult PR_COM_METHOD (*WriteArray)( - IProcess *pThis, - PRUint32 handle, - PRUint32 flagsSize, - PRUint32* flags, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - - nsresult PR_COM_METHOD (*Terminate)(IProcess *pThis ); - -}; - -struct IProcess -{ - struct IProcess_vtbl *vtbl; -}; -/* End of struct IProcess Declaration */ - - -/* Start of struct IGuestProcess Declaration */ -# define IGUESTPROCESS_IID_STR "dfa39a36-5d43-4840-a025-67ea956b3111" -# define IGUESTPROCESS_IID { \ - 0xdfa39a36, 0x5d43, 0x4840, \ - { 0xa0, 0x25, 0x67, 0xea, 0x95, 0x6b, 0x31, 0x11 } \ -} -struct IGuestProcess_vtbl -{ - struct IProcess_vtbl iprocess; - -}; - -struct IGuestProcess -{ - struct IGuestProcess_vtbl *vtbl; -}; -/* End of struct IGuestProcess Declaration */ - - -/* Start of struct IDirectory Declaration */ -# define IDIRECTORY_IID_STR "1b70dd03-26d7-483a-8877-89bbb0f87b70" -# define IDIRECTORY_IID { \ - 0x1b70dd03, 0x26d7, 0x483a, \ - { 0x88, 0x77, 0x89, 0xbb, 0xb0, 0xf8, 0x7b, 0x70 } \ -} -struct IDirectory_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetDirectoryName)(IDirectory *pThis, PRUnicha= r * *directoryName); - - nsresult PR_COM_METHOD (*GetFilter)(IDirectory *pThis, PRUnichar * *fi= lter); - - nsresult PR_COM_METHOD (*Close)(IDirectory *pThis ); - - nsresult PR_COM_METHOD (*Read)( - IDirectory *pThis, - IFsObjInfo * * objInfo - ); - -}; - -struct IDirectory -{ - struct IDirectory_vtbl *vtbl; -}; -/* End of struct IDirectory Declaration */ - - -/* Start of struct IGuestDirectory Declaration */ -# define IGUESTDIRECTORY_IID_STR "af4a8ce0-0725-42b7-8826-46e3c7ba7357" -# define IGUESTDIRECTORY_IID { \ - 0xaf4a8ce0, 0x0725, 0x42b7, \ - { 0x88, 0x26, 0x46, 0xe3, 0xc7, 0xba, 0x73, 0x57 } \ -} -struct IGuestDirectory_vtbl -{ - struct IDirectory_vtbl idirectory; - -}; - -struct IGuestDirectory -{ - struct IGuestDirectory_vtbl *vtbl; -}; -/* End of struct IGuestDirectory Declaration */ - - -/* Start of struct IFile Declaration */ -# define IFILE_IID_STR "b702a560-6139-4a8e-a892-bbf14b97bf97" -# define IFILE_IID { \ - 0xb702a560, 0x6139, 0x4a8e, \ - { 0xa8, 0x92, 0xbb, 0xf1, 0x4b, 0x97, 0xbf, 0x97 } \ -} -struct IFile_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetCreationMode)(IFile *pThis, PRUint32 *crea= tionMode); - - nsresult PR_COM_METHOD (*GetDisposition)(IFile *pThis, PRUint32 *dispo= sition); - - nsresult PR_COM_METHOD (*GetFileName)(IFile *pThis, PRUnichar * *fileN= ame); - - nsresult PR_COM_METHOD (*GetInitialSize)(IFile *pThis, PRInt64 *initia= lSize); - - nsresult PR_COM_METHOD (*GetOpenMode)(IFile *pThis, PRUint32 *openMode= ); - - nsresult PR_COM_METHOD (*GetOffset)(IFile *pThis, PRInt64 *offset); - - nsresult PR_COM_METHOD (*Close)(IFile *pThis ); - - nsresult PR_COM_METHOD (*QueryInfo)( - IFile *pThis, - IFsObjInfo * * objInfo - ); - - nsresult PR_COM_METHOD (*Read)( - IFile *pThis, - PRUint32 toRead, - PRUint32 timeoutMS, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*ReadAt)( - IFile *pThis, - PRInt64 offset, - PRUint32 toRead, - PRUint32 timeoutMS, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*Seek)( - IFile *pThis, - PRInt64 offset, - PRUint32 whence - ); - - nsresult PR_COM_METHOD (*SetACL)( - IFile *pThis, - PRUnichar * acl - ); - - nsresult PR_COM_METHOD (*Write)( - IFile *pThis, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - - nsresult PR_COM_METHOD (*WriteAt)( - IFile *pThis, - PRInt64 offset, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - -}; - -struct IFile -{ - struct IFile_vtbl *vtbl; -}; -/* End of struct IFile Declaration */ - - -/* Start of struct IGuestFile Declaration */ -# define IGUESTFILE_IID_STR "60661aec-145f-4d11-b80e-8ea151598093" -# define IGUESTFILE_IID { \ - 0x60661aec, 0x145f, 0x4d11, \ - { 0xb8, 0x0e, 0x8e, 0xa1, 0x51, 0x59, 0x80, 0x93 } \ -} -struct IGuestFile_vtbl -{ - struct IFile_vtbl ifile; - -}; - -struct IGuestFile -{ - struct IGuestFile_vtbl *vtbl; -}; -/* End of struct IGuestFile Declaration */ - - -/* Start of struct IFsObjInfo Declaration */ -# define IFSOBJINFO_IID_STR "4047ba30-7006-4966-ae86-94164e5e20eb" -# define IFSOBJINFO_IID { \ - 0x4047ba30, 0x7006, 0x4966, \ - { 0xae, 0x86, 0x94, 0x16, 0x4e, 0x5e, 0x20, 0xeb } \ -} -struct IFsObjInfo_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetAccessTime)(IFsObjInfo *pThis, PRInt64 *ac= cessTime); - - nsresult PR_COM_METHOD (*GetAllocatedSize)(IFsObjInfo *pThis, PRInt64 = *allocatedSize); - - nsresult PR_COM_METHOD (*GetBirthTime)(IFsObjInfo *pThis, PRInt64 *bir= thTime); - - nsresult PR_COM_METHOD (*GetChangeTime)(IFsObjInfo *pThis, PRInt64 *ch= angeTime); - - nsresult PR_COM_METHOD (*GetDeviceNumber)(IFsObjInfo *pThis, PRUint32 = *deviceNumber); - - nsresult PR_COM_METHOD (*GetFileAttributes)(IFsObjInfo *pThis, PRUnich= ar * *fileAttributes); - - nsresult PR_COM_METHOD (*GetGenerationId)(IFsObjInfo *pThis, PRUint32 = *generationId); - - nsresult PR_COM_METHOD (*GetGID)(IFsObjInfo *pThis, PRUint32 *GID); - - nsresult PR_COM_METHOD (*GetGroupName)(IFsObjInfo *pThis, PRUnichar * = *groupName); - - nsresult PR_COM_METHOD (*GetHardLinks)(IFsObjInfo *pThis, PRUint32 *ha= rdLinks); - - nsresult PR_COM_METHOD (*GetModificationTime)(IFsObjInfo *pThis, PRInt= 64 *modificationTime); - - nsresult PR_COM_METHOD (*GetName)(IFsObjInfo *pThis, PRUnichar * *name= ); - - nsresult PR_COM_METHOD (*GetNodeId)(IFsObjInfo *pThis, PRInt64 *nodeId= ); - - nsresult PR_COM_METHOD (*GetNodeIdDevice)(IFsObjInfo *pThis, PRUint32 = *nodeIdDevice); - - nsresult PR_COM_METHOD (*GetObjectSize)(IFsObjInfo *pThis, PRInt64 *ob= jectSize); - - nsresult PR_COM_METHOD (*GetType)(IFsObjInfo *pThis, PRUint32 *type); - - nsresult PR_COM_METHOD (*GetUID)(IFsObjInfo *pThis, PRUint32 *UID); - - nsresult PR_COM_METHOD (*GetUserFlags)(IFsObjInfo *pThis, PRUint32 *us= erFlags); - - nsresult PR_COM_METHOD (*GetUserName)(IFsObjInfo *pThis, PRUnichar * *= userName); - -}; - -struct IFsObjInfo -{ - struct IFsObjInfo_vtbl *vtbl; -}; -/* End of struct IFsObjInfo Declaration */ - - -/* Start of struct IGuestFsObjInfo Declaration */ -# define IGUESTFSOBJINFO_IID_STR "d5cf678e-3484-4e4a-ac55-329e15462e18" -# define IGUESTFSOBJINFO_IID { \ - 0xd5cf678e, 0x3484, 0x4e4a, \ - { 0xac, 0x55, 0x32, 0x9e, 0x15, 0x46, 0x2e, 0x18 } \ -} -struct IGuestFsObjInfo_vtbl -{ - struct IFsObjInfo_vtbl ifsobjinfo; - -}; - -struct IGuestFsObjInfo -{ - struct IGuestFsObjInfo_vtbl *vtbl; -}; -/* End of struct IGuestFsObjInfo Declaration */ - - -/* Start of struct IGuest Declaration */ -# define IGUEST_IID_STR "19c32350-0618-4ede-b0c3-2b4311bf0d9b" -# define IGUEST_IID { \ - 0x19c32350, 0x0618, 0x4ede, \ - { 0xb0, 0xc3, 0x2b, 0x43, 0x11, 0xbf, 0x0d, 0x9b } \ -} -struct IGuest_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetOSTypeId)(IGuest *pThis, PRUnichar * *OSTy= peId); - - nsresult PR_COM_METHOD (*GetAdditionsRunLevel)(IGuest *pThis, PRUint32= *additionsRunLevel); - - nsresult PR_COM_METHOD (*GetAdditionsVersion)(IGuest *pThis, PRUnichar= * *additionsVersion); - - nsresult PR_COM_METHOD (*GetAdditionsRevision)(IGuest *pThis, PRUint32= *additionsRevision); - - nsresult PR_COM_METHOD (*GetFacilities)(IGuest *pThis, PRUint32 *facil= itiesSize, IAdditionsFacility * **facilities); - - nsresult PR_COM_METHOD (*GetSessions)(IGuest *pThis, PRUint32 *session= sSize, IGuestSession * **sessions); - - nsresult PR_COM_METHOD (*GetMemoryBalloonSize)(IGuest *pThis, PRUint32= *memoryBalloonSize); - nsresult PR_COM_METHOD (*SetMemoryBalloonSize)(IGuest *pThis, PRUint32= memoryBalloonSize); - - nsresult PR_COM_METHOD (*GetStatisticsUpdateInterval)(IGuest *pThis, P= RUint32 *statisticsUpdateInterval); - nsresult PR_COM_METHOD (*SetStatisticsUpdateInterval)(IGuest *pThis, P= RUint32 statisticsUpdateInterval); - - nsresult PR_COM_METHOD (*InternalGetStatistics)( - IGuest *pThis, - PRUint32 * cpuUser, - PRUint32 * cpuKernel, - PRUint32 * cpuIdle, - PRUint32 * memTotal, - PRUint32 * memFree, - PRUint32 * memBalloon, - PRUint32 * memShared, - PRUint32 * memCache, - PRUint32 * pagedTotal, - PRUint32 * memAllocTotal, - PRUint32 * memFreeTotal, - PRUint32 * memBalloonTotal, - PRUint32 * memSharedTotal - ); - - nsresult PR_COM_METHOD (*GetFacilityStatus)( - IGuest *pThis, - PRUint32 facility, - PRInt64 * timestamp, - PRUint32 * status - ); - - nsresult PR_COM_METHOD (*GetAdditionsStatus)( - IGuest *pThis, - PRUint32 level, - PRBool * active - ); - - nsresult PR_COM_METHOD (*SetCredentials)( - IGuest *pThis, - PRUnichar * userName, - PRUnichar * password, - PRUnichar * domain, - PRBool allowInteractiveLogon - ); - - nsresult PR_COM_METHOD (*DragHGEnter)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 y, - PRUint32 x, - PRUint32 defaultAction, - PRUint32 allowedActionsSize, - PRUint32* allowedActions, - PRUint32 formatsSize, - PRUnichar ** formats, - PRUint32 * resultAction - ); - - nsresult PR_COM_METHOD (*DragHGMove)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 x, - PRUint32 y, - PRUint32 defaultAction, - PRUint32 allowedActionsSize, - PRUint32* allowedActions, - PRUint32 formatsSize, - PRUnichar ** formats, - PRUint32 * resultAction - ); - - nsresult PR_COM_METHOD (*DragHGLeave)( - IGuest *pThis, - PRUint32 screenId - ); - - nsresult PR_COM_METHOD (*DragHGDrop)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 x, - PRUint32 y, - PRUint32 defaultAction, - PRUint32 allowedActionsSize, - PRUint32* allowedActions, - PRUint32 formatsSize, - PRUnichar ** formats, - PRUnichar * * format, - PRUint32 * resultAction - ); - - nsresult PR_COM_METHOD (*DragHGPutData)( - IGuest *pThis, - PRUint32 screenId, - PRUnichar * format, - PRUint32 dataSize, - PRUint8* data, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DragGHPending)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 *formatSize, - PRUnichar *** format, - PRUint32 *allowedActionsSize, - PRUint32** allowedActions, - PRUint32 * defaultAction - ); - - nsresult PR_COM_METHOD (*DragGHDropped)( - IGuest *pThis, - PRUnichar * format, - PRUint32 action, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DragGHGetData)( - IGuest *pThis, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult PR_COM_METHOD (*CreateSession)( - IGuest *pThis, - PRUnichar * user, - PRUnichar * password, - PRUnichar * domain, - PRUnichar * sessionName, - IGuestSession * * guestSession - ); - - nsresult PR_COM_METHOD (*FindSession)( - IGuest *pThis, - PRUnichar * sessionName, - PRUint32 *sessionsSize, - IGuestSession *** sessions - ); - - nsresult PR_COM_METHOD (*UpdateGuestAdditions)( - IGuest *pThis, - PRUnichar * source, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - -}; - -struct IGuest -{ - struct IGuest_vtbl *vtbl; -}; -/* End of struct IGuest Declaration */ - - -/* Start of struct IProgress Declaration */ -# define IPROGRESS_IID_STR "c20238e4-3221-4d3f-8891-81ce92d9f913" -# define IPROGRESS_IID { \ - 0xc20238e4, 0x3221, 0x4d3f, \ - { 0x88, 0x91, 0x81, 0xce, 0x92, 0xd9, 0xf9, 0x13 } \ -} -struct IProgress_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IProgress *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetDescription)(IProgress *pThis, PRUnichar *= *description); - - nsresult PR_COM_METHOD (*GetInitiator)(IProgress *pThis, nsISupports *= *initiator); - - nsresult PR_COM_METHOD (*GetCancelable)(IProgress *pThis, PRBool *canc= elable); - - nsresult PR_COM_METHOD (*GetPercent)(IProgress *pThis, PRUint32 *perce= nt); - - nsresult PR_COM_METHOD (*GetTimeRemaining)(IProgress *pThis, PRInt32 *= timeRemaining); - - nsresult PR_COM_METHOD (*GetCompleted)(IProgress *pThis, PRBool *compl= eted); - - nsresult PR_COM_METHOD (*GetCanceled)(IProgress *pThis, PRBool *cancel= ed); - - nsresult PR_COM_METHOD (*GetResultCode)(IProgress *pThis, PRInt32 *res= ultCode); - - nsresult PR_COM_METHOD (*GetErrorInfo)(IProgress *pThis, IVirtualBoxEr= rorInfo * *errorInfo); - - nsresult PR_COM_METHOD (*GetOperationCount)(IProgress *pThis, PRUint32= *operationCount); - - nsresult PR_COM_METHOD (*GetOperation)(IProgress *pThis, PRUint32 *ope= ration); - - nsresult PR_COM_METHOD (*GetOperationDescription)(IProgress *pThis, PR= Unichar * *operationDescription); - - nsresult PR_COM_METHOD (*GetOperationPercent)(IProgress *pThis, PRUint= 32 *operationPercent); - - nsresult PR_COM_METHOD (*GetOperationWeight)(IProgress *pThis, PRUint3= 2 *operationWeight); - - nsresult PR_COM_METHOD (*GetTimeout)(IProgress *pThis, PRUint32 *timeo= ut); - nsresult PR_COM_METHOD (*SetTimeout)(IProgress *pThis, PRUint32 timeou= t); - - nsresult PR_COM_METHOD (*SetCurrentOperationProgress)( - IProgress *pThis, - PRUint32 percent - ); - - nsresult PR_COM_METHOD (*SetNextOperation)( - IProgress *pThis, - PRUnichar * nextOperationDescription, - PRUint32 nextOperationsWeight - ); - - nsresult PR_COM_METHOD (*WaitForCompletion)( - IProgress *pThis, - PRInt32 timeout - ); - - nsresult PR_COM_METHOD (*WaitForOperationCompletion)( - IProgress *pThis, - PRUint32 operation, - PRInt32 timeout - ); - - nsresult PR_COM_METHOD (*WaitForAsyncProgressCompletion)( - IProgress *pThis, - IProgress * pProgressAsync - ); - - nsresult PR_COM_METHOD (*Cancel)(IProgress *pThis ); - -}; - -struct IProgress -{ - struct IProgress_vtbl *vtbl; -}; -/* End of struct IProgress Declaration */ - - -/* Start of struct ISnapshot Declaration */ -# define ISNAPSHOT_IID_STR "0472823b-c6e7-472a-8e9f-d732e86b8463" -# define ISNAPSHOT_IID { \ - 0x0472823b, 0xc6e7, 0x472a, \ - { 0x8e, 0x9f, 0xd7, 0x32, 0xe8, 0x6b, 0x84, 0x63 } \ -} -struct ISnapshot_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(ISnapshot *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetName)(ISnapshot *pThis, PRUnichar * *name); - nsresult PR_COM_METHOD (*SetName)(ISnapshot *pThis, PRUnichar * name); - - nsresult PR_COM_METHOD (*GetDescription)(ISnapshot *pThis, PRUnichar *= *description); - nsresult PR_COM_METHOD (*SetDescription)(ISnapshot *pThis, PRUnichar *= description); - - nsresult PR_COM_METHOD (*GetTimeStamp)(ISnapshot *pThis, PRInt64 *time= Stamp); - - nsresult PR_COM_METHOD (*GetOnline)(ISnapshot *pThis, PRBool *online); - - nsresult PR_COM_METHOD (*GetMachine)(ISnapshot *pThis, IMachine * *mac= hine); - - nsresult PR_COM_METHOD (*GetParent)(ISnapshot *pThis, ISnapshot * *par= ent); - - nsresult PR_COM_METHOD (*GetChildren)(ISnapshot *pThis, PRUint32 *chil= drenSize, ISnapshot * **children); - - nsresult PR_COM_METHOD (*GetChildrenCount)( - ISnapshot *pThis, - PRUint32 * childrenCount - ); - -}; - -struct ISnapshot -{ - struct ISnapshot_vtbl *vtbl; -}; -/* End of struct ISnapshot Declaration */ - - -/* Start of struct IMediumAttachment Declaration */ -# define IMEDIUMATTACHMENT_IID_STR "5ee464d6-0613-4331-b154-7ce12170ef9f" -# define IMEDIUMATTACHMENT_IID { \ - 0x5ee464d6, 0x0613, 0x4331, \ - { 0xb1, 0x54, 0x7c, 0xe1, 0x21, 0x70, 0xef, 0x9f } \ -} -struct IMediumAttachment_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMedium)(IMediumAttachment *pThis, IMedium = * *medium); - - nsresult PR_COM_METHOD (*GetController)(IMediumAttachment *pThis, PRUn= ichar * *controller); - - nsresult PR_COM_METHOD (*GetPort)(IMediumAttachment *pThis, PRInt32 *p= ort); - - nsresult PR_COM_METHOD (*GetDevice)(IMediumAttachment *pThis, PRInt32 = *device); - - nsresult PR_COM_METHOD (*GetType)(IMediumAttachment *pThis, PRUint32 *= type); - - nsresult PR_COM_METHOD (*GetPassthrough)(IMediumAttachment *pThis, PRB= ool *passthrough); - - nsresult PR_COM_METHOD (*GetTemporaryEject)(IMediumAttachment *pThis, = PRBool *temporaryEject); - - nsresult PR_COM_METHOD (*GetIsEjected)(IMediumAttachment *pThis, PRBoo= l *isEjected); - - nsresult PR_COM_METHOD (*GetNonRotational)(IMediumAttachment *pThis, P= RBool *nonRotational); - - nsresult PR_COM_METHOD (*GetDiscard)(IMediumAttachment *pThis, PRBool = *discard); - - nsresult PR_COM_METHOD (*GetBandwidthGroup)(IMediumAttachment *pThis, = IBandwidthGroup * *bandwidthGroup); - -}; - -struct IMediumAttachment -{ - struct IMediumAttachment_vtbl *vtbl; -}; -/* End of struct IMediumAttachment Declaration */ - - -/* Start of struct IMedium Declaration */ -# define IMEDIUM_IID_STR "29989373-b111-4654-8493-2e1176cba890" -# define IMEDIUM_IID { \ - 0x29989373, 0xb111, 0x4654, \ - { 0x84, 0x93, 0x2e, 0x11, 0x76, 0xcb, 0xa8, 0x90 } \ -} -struct IMedium_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IMedium *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetDescription)(IMedium *pThis, PRUnichar * *= description); - nsresult PR_COM_METHOD (*SetDescription)(IMedium *pThis, PRUnichar * d= escription); - - nsresult PR_COM_METHOD (*GetState)(IMedium *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetVariant)(IMedium *pThis, PRUint32 *variant= ); - - nsresult PR_COM_METHOD (*GetLocation)(IMedium *pThis, PRUnichar * *loc= ation); - nsresult PR_COM_METHOD (*SetLocation)(IMedium *pThis, PRUnichar * loca= tion); - - nsresult PR_COM_METHOD (*GetName)(IMedium *pThis, PRUnichar * *name); - - nsresult PR_COM_METHOD (*GetDeviceType)(IMedium *pThis, PRUint32 *devi= ceType); - - nsresult PR_COM_METHOD (*GetHostDrive)(IMedium *pThis, PRBool *hostDri= ve); - - nsresult PR_COM_METHOD (*GetSize)(IMedium *pThis, PRInt64 *size); - - nsresult PR_COM_METHOD (*GetFormat)(IMedium *pThis, PRUnichar * *forma= t); - - nsresult PR_COM_METHOD (*GetMediumFormat)(IMedium *pThis, IMediumForma= t * *mediumFormat); - - nsresult PR_COM_METHOD (*GetType)(IMedium *pThis, PRUint32 *type); - nsresult PR_COM_METHOD (*SetType)(IMedium *pThis, PRUint32 type); - - nsresult PR_COM_METHOD (*GetAllowedTypes)(IMedium *pThis, PRUint32 *al= lowedTypesSize, PRUint32 **allowedTypes); - - nsresult PR_COM_METHOD (*GetParent)(IMedium *pThis, IMedium * *parent); - - nsresult PR_COM_METHOD (*GetChildren)(IMedium *pThis, PRUint32 *childr= enSize, IMedium * **children); - - nsresult PR_COM_METHOD (*GetBase)(IMedium *pThis, IMedium * *base); - - nsresult PR_COM_METHOD (*GetReadOnly)(IMedium *pThis, PRBool *readOnly= ); - - nsresult PR_COM_METHOD (*GetLogicalSize)(IMedium *pThis, PRInt64 *logi= calSize); - - nsresult PR_COM_METHOD (*GetAutoReset)(IMedium *pThis, PRBool *autoRes= et); - nsresult PR_COM_METHOD (*SetAutoReset)(IMedium *pThis, PRBool autoRese= t); - - nsresult PR_COM_METHOD (*GetLastAccessError)(IMedium *pThis, PRUnichar= * *lastAccessError); - - nsresult PR_COM_METHOD (*GetMachineIds)(IMedium *pThis, PRUint32 *mach= ineIdsSize, PRUnichar * **machineIds); - - nsresult PR_COM_METHOD (*SetIds)( - IMedium *pThis, - PRBool setImageId, - PRUnichar * imageId, - PRBool setParentId, - PRUnichar * parentId - ); - - nsresult PR_COM_METHOD (*RefreshState)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*GetSnapshotIds)( - IMedium *pThis, - PRUnichar * machineId, - PRUint32 *snapshotIdsSize, - PRUnichar *** snapshotIds - ); - - nsresult PR_COM_METHOD (*LockRead)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*UnlockRead)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*LockWrite)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*UnlockWrite)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult PR_COM_METHOD (*Close)(IMedium *pThis ); - - nsresult PR_COM_METHOD (*GetProperty)( - IMedium *pThis, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetProperty)( - IMedium *pThis, - PRUnichar * name, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetProperties)( - IMedium *pThis, - PRUnichar * names, - PRUint32 *returnNamesSize, - PRUnichar *** returnNames, - PRUint32 *returnValuesSize, - PRUnichar *** returnValues - ); - - nsresult PR_COM_METHOD (*SetProperties)( - IMedium *pThis, - PRUint32 namesSize, - PRUnichar ** names, - PRUint32 valuesSize, - PRUnichar ** values - ); - - nsresult PR_COM_METHOD (*CreateBaseStorage)( - IMedium *pThis, - PRInt64 logicalSize, - PRUint32 variant, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*DeleteStorage)( - IMedium *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CreateDiffStorage)( - IMedium *pThis, - IMedium * target, - PRUint32 variant, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*MergeTo)( - IMedium *pThis, - IMedium * target, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CloneTo)( - IMedium *pThis, - IMedium * target, - PRUint32 variant, - IMedium * parent, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*CloneToBase)( - IMedium *pThis, - IMedium * target, - PRUint32 variant, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Compact)( - IMedium *pThis, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Resize)( - IMedium *pThis, - PRInt64 logicalSize, - IProgress * * progress - ); - - nsresult PR_COM_METHOD (*Reset)( - IMedium *pThis, - IProgress * * progress - ); - -}; - -struct IMedium -{ - struct IMedium_vtbl *vtbl; -}; -/* End of struct IMedium Declaration */ - - -/* Start of struct IMediumFormat Declaration */ -# define IMEDIUMFORMAT_IID_STR "9bd5b655-ea47-4637-99f3-aad0948be35b" -# define IMEDIUMFORMAT_IID { \ - 0x9bd5b655, 0xea47, 0x4637, \ - { 0x99, 0xf3, 0xaa, 0xd0, 0x94, 0x8b, 0xe3, 0x5b } \ -} -struct IMediumFormat_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IMediumFormat *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetName)(IMediumFormat *pThis, PRUnichar * *n= ame); - - nsresult PR_COM_METHOD (*GetCapabilities)(IMediumFormat *pThis, PRUint= 32 *capabilities); - - nsresult PR_COM_METHOD (*DescribeFileExtensions)( - IMediumFormat *pThis, - PRUint32 *extensionsSize, - PRUnichar *** extensions, - PRUint32 *typeSize, - PRUint32** type - ); - - nsresult PR_COM_METHOD (*DescribeProperties)( - IMediumFormat *pThis, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *descriptionSize, - PRUnichar *** description, - PRUint32 *typesSize, - PRUint32** types, - PRUint32 *flagsSize, - PRUint32** flags, - PRUint32 *defaultsSize, - PRUnichar *** defaults - ); - -}; - -struct IMediumFormat -{ - struct IMediumFormat_vtbl *vtbl; -}; -/* End of struct IMediumFormat Declaration */ - - -/* Start of struct IKeyboard Declaration */ -# define IKEYBOARD_IID_STR "f6916ec5-a881-4237-898f-7de58cf88672" -# define IKEYBOARD_IID { \ - 0xf6916ec5, 0xa881, 0x4237, \ - { 0x89, 0x8f, 0x7d, 0xe5, 0x8c, 0xf8, 0x86, 0x72 } \ -} -struct IKeyboard_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEventSource)(IKeyboard *pThis, IEventSourc= e * *eventSource); - - nsresult PR_COM_METHOD (*PutScancode)( - IKeyboard *pThis, - PRInt32 scancode - ); - - nsresult PR_COM_METHOD (*PutScancodes)( - IKeyboard *pThis, - PRUint32 scancodesSize, - PRInt32* scancodes, - PRUint32 * codesStored - ); - - nsresult PR_COM_METHOD (*PutCAD)(IKeyboard *pThis ); - -}; - -struct IKeyboard -{ - struct IKeyboard_vtbl *vtbl; -}; -/* End of struct IKeyboard Declaration */ - - -/* Start of struct IMouse Declaration */ -# define IMOUSE_IID_STR "05044a52-7811-4f00-ae3a-0ab7ff707b10" -# define IMOUSE_IID { \ - 0x05044a52, 0x7811, 0x4f00, \ - { 0xae, 0x3a, 0x0a, 0xb7, 0xff, 0x70, 0x7b, 0x10 } \ -} -struct IMouse_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetAbsoluteSupported)(IMouse *pThis, PRBool *= absoluteSupported); - - nsresult PR_COM_METHOD (*GetRelativeSupported)(IMouse *pThis, PRBool *= relativeSupported); - - nsresult PR_COM_METHOD (*GetNeedsHostCursor)(IMouse *pThis, PRBool *ne= edsHostCursor); - - nsresult PR_COM_METHOD (*GetEventSource)(IMouse *pThis, IEventSource *= *eventSource); - - nsresult PR_COM_METHOD (*PutMouseEvent)( - IMouse *pThis, - PRInt32 dx, - PRInt32 dy, - PRInt32 dz, - PRInt32 dw, - PRInt32 buttonState - ); - - nsresult PR_COM_METHOD (*PutMouseEventAbsolute)( - IMouse *pThis, - PRInt32 x, - PRInt32 y, - PRInt32 dz, - PRInt32 dw, - PRInt32 buttonState - ); - -}; - -struct IMouse -{ - struct IMouse_vtbl *vtbl; -}; -/* End of struct IMouse Declaration */ - - -/* Start of struct IFramebuffer Declaration */ -# define IFRAMEBUFFER_IID_STR "b7ed347a-5765-40a0-ae1c-f543eb4ddeaf" -# define IFRAMEBUFFER_IID { \ - 0xb7ed347a, 0x5765, 0x40a0, \ - { 0xae, 0x1c, 0xf5, 0x43, 0xeb, 0x4d, 0xde, 0xaf } \ -} -struct IFramebuffer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetAddress)(IFramebuffer *pThis, PRUint8 * *a= ddress); - - nsresult PR_COM_METHOD (*GetWidth)(IFramebuffer *pThis, PRUint32 *widt= h); - - nsresult PR_COM_METHOD (*GetHeight)(IFramebuffer *pThis, PRUint32 *hei= ght); - - nsresult PR_COM_METHOD (*GetBitsPerPixel)(IFramebuffer *pThis, PRUint3= 2 *bitsPerPixel); - - nsresult PR_COM_METHOD (*GetBytesPerLine)(IFramebuffer *pThis, PRUint3= 2 *bytesPerLine); - - nsresult PR_COM_METHOD (*GetPixelFormat)(IFramebuffer *pThis, PRUint32= *pixelFormat); - - nsresult PR_COM_METHOD (*GetUsesGuestVRAM)(IFramebuffer *pThis, PRBool= *usesGuestVRAM); - - nsresult PR_COM_METHOD (*GetHeightReduction)(IFramebuffer *pThis, PRUi= nt32 *heightReduction); - - nsresult PR_COM_METHOD (*GetOverlay)(IFramebuffer *pThis, IFramebuffer= Overlay * *overlay); - - nsresult PR_COM_METHOD (*GetWinId)(IFramebuffer *pThis, PRInt64 *winId= ); - - nsresult PR_COM_METHOD (*Lock)(IFramebuffer *pThis ); - - nsresult PR_COM_METHOD (*Unlock)(IFramebuffer *pThis ); - - nsresult PR_COM_METHOD (*NotifyUpdate)( - IFramebuffer *pThis, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - - nsresult PR_COM_METHOD (*RequestResize)( - IFramebuffer *pThis, - PRUint32 screenId, - PRUint32 pixelFormat, - PRUint8 * VRAM, - PRUint32 bitsPerPixel, - PRUint32 bytesPerLine, - PRUint32 width, - PRUint32 height, - PRBool * finished - ); - - nsresult PR_COM_METHOD (*VideoModeSupported)( - IFramebuffer *pThis, - PRUint32 width, - PRUint32 height, - PRUint32 bpp, - PRBool * supported - ); - - nsresult PR_COM_METHOD (*GetVisibleRegion)( - IFramebuffer *pThis, - PRUint8 * rectangles, - PRUint32 count, - PRUint32 * countCopied - ); - - nsresult PR_COM_METHOD (*SetVisibleRegion)( - IFramebuffer *pThis, - PRUint8 * rectangles, - PRUint32 count - ); - - nsresult PR_COM_METHOD (*ProcessVHWACommand)( - IFramebuffer *pThis, - PRUint8 * command - ); - -}; - -struct IFramebuffer -{ - struct IFramebuffer_vtbl *vtbl; -}; -/* End of struct IFramebuffer Declaration */ - - -/* Start of struct IFramebufferOverlay Declaration */ -# define IFRAMEBUFFEROVERLAY_IID_STR "0bcc1c7e-e415-47d2-bfdb-e4c705fb0f4= 7" -# define IFRAMEBUFFEROVERLAY_IID { \ - 0x0bcc1c7e, 0xe415, 0x47d2, \ - { 0xbf, 0xdb, 0xe4, 0xc7, 0x05, 0xfb, 0x0f, 0x47 } \ -} -struct IFramebufferOverlay_vtbl -{ - struct IFramebuffer_vtbl iframebuffer; - - nsresult PR_COM_METHOD (*GetX)(IFramebufferOverlay *pThis, PRUint32 *x= ); - - nsresult PR_COM_METHOD (*GetY)(IFramebufferOverlay *pThis, PRUint32 *y= ); - - nsresult PR_COM_METHOD (*GetVisible)(IFramebufferOverlay *pThis, PRBoo= l *visible); - nsresult PR_COM_METHOD (*SetVisible)(IFramebufferOverlay *pThis, PRBoo= l visible); - - nsresult PR_COM_METHOD (*GetAlpha)(IFramebufferOverlay *pThis, PRUint3= 2 *alpha); - nsresult PR_COM_METHOD (*SetAlpha)(IFramebufferOverlay *pThis, PRUint3= 2 alpha); - - nsresult PR_COM_METHOD (*Move)( - IFramebufferOverlay *pThis, - PRUint32 x, - PRUint32 y - ); - -}; - -struct IFramebufferOverlay -{ - struct IFramebufferOverlay_vtbl *vtbl; -}; -/* End of struct IFramebufferOverlay Declaration */ - - -/* Start of struct IDisplay Declaration */ -# define IDISPLAY_IID_STR "b83ee395-8679-40ca-8d60-1a0cbe724930" -# define IDISPLAY_IID { \ - 0xb83ee395, 0x8679, 0x40ca, \ - { 0x8d, 0x60, 0x1a, 0x0c, 0xbe, 0x72, 0x49, 0x30 } \ -} -struct IDisplay_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetScreenResolution)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 * bitsPerPixel - ); - - nsresult PR_COM_METHOD (*SetFramebuffer)( - IDisplay *pThis, - PRUint32 screenId, - IFramebuffer * framebuffer - ); - - nsresult PR_COM_METHOD (*GetFramebuffer)( - IDisplay *pThis, - PRUint32 screenId, - IFramebuffer * * framebuffer, - PRInt32 * xOrigin, - PRInt32 * yOrigin - ); - - nsresult PR_COM_METHOD (*SetVideoModeHint)( - IDisplay *pThis, - PRUint32 display, - PRBool enabled, - PRBool changeOrigin, - PRInt32 originX, - PRInt32 originY, - PRUint32 width, - PRUint32 height, - PRUint32 bitsPerPixel - ); - - nsresult PR_COM_METHOD (*SetSeamlessMode)( - IDisplay *pThis, - PRBool enabled - ); - - nsresult PR_COM_METHOD (*TakeScreenShot)( - IDisplay *pThis, - PRUint32 screenId, - PRUint8 * address, - PRUint32 width, - PRUint32 height - ); - - nsresult PR_COM_METHOD (*TakeScreenShotToArray)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 width, - PRUint32 height, - PRUint32 *screenDataSize, - PRUint8** screenData - ); - - nsresult PR_COM_METHOD (*TakeScreenShotPNGToArray)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 width, - PRUint32 height, - PRUint32 *screenDataSize, - PRUint8** screenData - ); - - nsresult PR_COM_METHOD (*DrawToScreen)( - IDisplay *pThis, - PRUint32 screenId, - PRUint8 * address, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - - nsresult PR_COM_METHOD (*InvalidateAndUpdate)(IDisplay *pThis ); - - nsresult PR_COM_METHOD (*ResizeCompleted)( - IDisplay *pThis, - PRUint32 screenId - ); - - nsresult PR_COM_METHOD (*CompleteVHWACommand)( - IDisplay *pThis, - PRUint8 * command - ); - - nsresult PR_COM_METHOD (*ViewportChanged)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - -}; - -struct IDisplay -{ - struct IDisplay_vtbl *vtbl; -}; -/* End of struct IDisplay Declaration */ - - -/* Start of struct INetworkAdapter Declaration */ -# define INETWORKADAPTER_IID_STR "efa0f965-63c7-4c60-afdf-b1cc9943b9c0" -# define INETWORKADAPTER_IID { \ - 0xefa0f965, 0x63c7, 0x4c60, \ - { 0xaf, 0xdf, 0xb1, 0xcc, 0x99, 0x43, 0xb9, 0xc0 } \ -} -struct INetworkAdapter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetAdapterType)(INetworkAdapter *pThis, PRUin= t32 *adapterType); - nsresult PR_COM_METHOD (*SetAdapterType)(INetworkAdapter *pThis, PRUin= t32 adapterType); - - nsresult PR_COM_METHOD (*GetSlot)(INetworkAdapter *pThis, PRUint32 *sl= ot); - - nsresult PR_COM_METHOD (*GetEnabled)(INetworkAdapter *pThis, PRBool *e= nabled); - nsresult PR_COM_METHOD (*SetEnabled)(INetworkAdapter *pThis, PRBool en= abled); - - nsresult PR_COM_METHOD (*GetMACAddress)(INetworkAdapter *pThis, PRUnic= har * *MACAddress); - nsresult PR_COM_METHOD (*SetMACAddress)(INetworkAdapter *pThis, PRUnic= har * MACAddress); - - nsresult PR_COM_METHOD (*GetAttachmentType)(INetworkAdapter *pThis, PR= Uint32 *attachmentType); - nsresult PR_COM_METHOD (*SetAttachmentType)(INetworkAdapter *pThis, PR= Uint32 attachmentType); - - nsresult PR_COM_METHOD (*GetBridgedInterface)(INetworkAdapter *pThis, = PRUnichar * *bridgedInterface); - nsresult PR_COM_METHOD (*SetBridgedInterface)(INetworkAdapter *pThis, = PRUnichar * bridgedInterface); - - nsresult PR_COM_METHOD (*GetHostOnlyInterface)(INetworkAdapter *pThis,= PRUnichar * *hostOnlyInterface); - nsresult PR_COM_METHOD (*SetHostOnlyInterface)(INetworkAdapter *pThis,= PRUnichar * hostOnlyInterface); - - nsresult PR_COM_METHOD (*GetInternalNetwork)(INetworkAdapter *pThis, P= RUnichar * *internalNetwork); - nsresult PR_COM_METHOD (*SetInternalNetwork)(INetworkAdapter *pThis, P= RUnichar * internalNetwork); - - nsresult PR_COM_METHOD (*GetNATNetwork)(INetworkAdapter *pThis, PRUnic= har * *NATNetwork); - nsresult PR_COM_METHOD (*SetNATNetwork)(INetworkAdapter *pThis, PRUnic= har * NATNetwork); - - nsresult PR_COM_METHOD (*GetGenericDriver)(INetworkAdapter *pThis, PRU= nichar * *genericDriver); - nsresult PR_COM_METHOD (*SetGenericDriver)(INetworkAdapter *pThis, PRU= nichar * genericDriver); - - nsresult PR_COM_METHOD (*GetCableConnected)(INetworkAdapter *pThis, PR= Bool *cableConnected); - nsresult PR_COM_METHOD (*SetCableConnected)(INetworkAdapter *pThis, PR= Bool cableConnected); - - nsresult PR_COM_METHOD (*GetLineSpeed)(INetworkAdapter *pThis, PRUint3= 2 *lineSpeed); - nsresult PR_COM_METHOD (*SetLineSpeed)(INetworkAdapter *pThis, PRUint3= 2 lineSpeed); - - nsresult PR_COM_METHOD (*GetPromiscModePolicy)(INetworkAdapter *pThis,= PRUint32 *promiscModePolicy); - nsresult PR_COM_METHOD (*SetPromiscModePolicy)(INetworkAdapter *pThis,= PRUint32 promiscModePolicy); - - nsresult PR_COM_METHOD (*GetTraceEnabled)(INetworkAdapter *pThis, PRBo= ol *traceEnabled); - nsresult PR_COM_METHOD (*SetTraceEnabled)(INetworkAdapter *pThis, PRBo= ol traceEnabled); - - nsresult PR_COM_METHOD (*GetTraceFile)(INetworkAdapter *pThis, PRUnich= ar * *traceFile); - nsresult PR_COM_METHOD (*SetTraceFile)(INetworkAdapter *pThis, PRUnich= ar * traceFile); - - nsresult PR_COM_METHOD (*GetNATEngine)(INetworkAdapter *pThis, INATEng= ine * *NATEngine); - - nsresult PR_COM_METHOD (*GetBootPriority)(INetworkAdapter *pThis, PRUi= nt32 *bootPriority); - nsresult PR_COM_METHOD (*SetBootPriority)(INetworkAdapter *pThis, PRUi= nt32 bootPriority); - - nsresult PR_COM_METHOD (*GetBandwidthGroup)(INetworkAdapter *pThis, IB= andwidthGroup * *bandwidthGroup); - nsresult PR_COM_METHOD (*SetBandwidthGroup)(INetworkAdapter *pThis, IB= andwidthGroup * bandwidthGroup); - - nsresult PR_COM_METHOD (*GetProperty)( - INetworkAdapter *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*SetProperty)( - INetworkAdapter *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetProperties)( - INetworkAdapter *pThis, - PRUnichar * names, - PRUint32 *returnNamesSize, - PRUnichar *** returnNames, - PRUint32 *returnValuesSize, - PRUnichar *** returnValues - ); - -}; - -struct INetworkAdapter -{ - struct INetworkAdapter_vtbl *vtbl; -}; -/* End of struct INetworkAdapter Declaration */ - - -/* Start of struct ISerialPort Declaration */ -# define ISERIALPORT_IID_STR "937f6970-5103-4745-b78e-d28dcf1479a8" -# define ISERIALPORT_IID { \ - 0x937f6970, 0x5103, 0x4745, \ - { 0xb7, 0x8e, 0xd2, 0x8d, 0xcf, 0x14, 0x79, 0xa8 } \ -} -struct ISerialPort_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetSlot)(ISerialPort *pThis, PRUint32 *slot); - - nsresult PR_COM_METHOD (*GetEnabled)(ISerialPort *pThis, PRBool *enabl= ed); - nsresult PR_COM_METHOD (*SetEnabled)(ISerialPort *pThis, PRBool enable= d); - - nsresult PR_COM_METHOD (*GetIOBase)(ISerialPort *pThis, PRUint32 *IOBa= se); - nsresult PR_COM_METHOD (*SetIOBase)(ISerialPort *pThis, PRUint32 IOBas= e); - - nsresult PR_COM_METHOD (*GetIRQ)(ISerialPort *pThis, PRUint32 *IRQ); - nsresult PR_COM_METHOD (*SetIRQ)(ISerialPort *pThis, PRUint32 IRQ); - - nsresult PR_COM_METHOD (*GetHostMode)(ISerialPort *pThis, PRUint32 *ho= stMode); - nsresult PR_COM_METHOD (*SetHostMode)(ISerialPort *pThis, PRUint32 hos= tMode); - - nsresult PR_COM_METHOD (*GetServer)(ISerialPort *pThis, PRBool *server= ); - nsresult PR_COM_METHOD (*SetServer)(ISerialPort *pThis, PRBool server); - - nsresult PR_COM_METHOD (*GetPath)(ISerialPort *pThis, PRUnichar * *pat= h); - nsresult PR_COM_METHOD (*SetPath)(ISerialPort *pThis, PRUnichar * path= ); - -}; - -struct ISerialPort -{ - struct ISerialPort_vtbl *vtbl; -}; -/* End of struct ISerialPort Declaration */ - - -/* Start of struct IParallelPort Declaration */ -# define IPARALLELPORT_IID_STR "0c925f06-dd10-4b77-8de8-294d738c3214" -# define IPARALLELPORT_IID { \ - 0x0c925f06, 0xdd10, 0x4b77, \ - { 0x8d, 0xe8, 0x29, 0x4d, 0x73, 0x8c, 0x32, 0x14 } \ -} -struct IParallelPort_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetSlot)(IParallelPort *pThis, PRUint32 *slot= ); - - nsresult PR_COM_METHOD (*GetEnabled)(IParallelPort *pThis, PRBool *ena= bled); - nsresult PR_COM_METHOD (*SetEnabled)(IParallelPort *pThis, PRBool enab= led); - - nsresult PR_COM_METHOD (*GetIOBase)(IParallelPort *pThis, PRUint32 *IO= Base); - nsresult PR_COM_METHOD (*SetIOBase)(IParallelPort *pThis, PRUint32 IOB= ase); - - nsresult PR_COM_METHOD (*GetIRQ)(IParallelPort *pThis, PRUint32 *IRQ); - nsresult PR_COM_METHOD (*SetIRQ)(IParallelPort *pThis, PRUint32 IRQ); - - nsresult PR_COM_METHOD (*GetPath)(IParallelPort *pThis, PRUnichar * *p= ath); - nsresult PR_COM_METHOD (*SetPath)(IParallelPort *pThis, PRUnichar * pa= th); - -}; - -struct IParallelPort -{ - struct IParallelPort_vtbl *vtbl; -}; -/* End of struct IParallelPort Declaration */ - - -/* Start of struct IMachineDebugger Declaration */ -# define IMACHINEDEBUGGER_IID_STR "a9abbb7c-d678-43b2-bed2-19ec0e32303d" -# define IMACHINEDEBUGGER_IID { \ - 0xa9abbb7c, 0xd678, 0x43b2, \ - { 0xbe, 0xd2, 0x19, 0xec, 0x0e, 0x32, 0x30, 0x3d } \ -} -struct IMachineDebugger_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetSingleStep)(IMachineDebugger *pThis, PRBoo= l *singleStep); - nsresult PR_COM_METHOD (*SetSingleStep)(IMachineDebugger *pThis, PRBoo= l singleStep); - - nsresult PR_COM_METHOD (*GetRecompileUser)(IMachineDebugger *pThis, PR= Bool *recompileUser); - nsresult PR_COM_METHOD (*SetRecompileUser)(IMachineDebugger *pThis, PR= Bool recompileUser); - - nsresult PR_COM_METHOD (*GetRecompileSupervisor)(IMachineDebugger *pTh= is, PRBool *recompileSupervisor); - nsresult PR_COM_METHOD (*SetRecompileSupervisor)(IMachineDebugger *pTh= is, PRBool recompileSupervisor); - - nsresult PR_COM_METHOD (*GetPATMEnabled)(IMachineDebugger *pThis, PRBo= ol *PATMEnabled); - nsresult PR_COM_METHOD (*SetPATMEnabled)(IMachineDebugger *pThis, PRBo= ol PATMEnabled); - - nsresult PR_COM_METHOD (*GetCSAMEnabled)(IMachineDebugger *pThis, PRBo= ol *CSAMEnabled); - nsresult PR_COM_METHOD (*SetCSAMEnabled)(IMachineDebugger *pThis, PRBo= ol CSAMEnabled); - - nsresult PR_COM_METHOD (*GetLogEnabled)(IMachineDebugger *pThis, PRBoo= l *logEnabled); - nsresult PR_COM_METHOD (*SetLogEnabled)(IMachineDebugger *pThis, PRBoo= l logEnabled); - - nsresult PR_COM_METHOD (*GetLogDbgFlags)(IMachineDebugger *pThis, PRUn= ichar * *logDbgFlags); - - nsresult PR_COM_METHOD (*GetLogDbgGroups)(IMachineDebugger *pThis, PRU= nichar * *logDbgGroups); - - nsresult PR_COM_METHOD (*GetLogDbgDestinations)(IMachineDebugger *pThi= s, PRUnichar * *logDbgDestinations); - - nsresult PR_COM_METHOD (*GetLogRelFlags)(IMachineDebugger *pThis, PRUn= ichar * *logRelFlags); - - nsresult PR_COM_METHOD (*GetLogRelGroups)(IMachineDebugger *pThis, PRU= nichar * *logRelGroups); - - nsresult PR_COM_METHOD (*GetLogRelDestinations)(IMachineDebugger *pThi= s, PRUnichar * *logRelDestinations); - - nsresult PR_COM_METHOD (*GetHWVirtExEnabled)(IMachineDebugger *pThis, = PRBool *HWVirtExEnabled); - - nsresult PR_COM_METHOD (*GetHWVirtExNestedPagingEnabled)(IMachineDebug= ger *pThis, PRBool *HWVirtExNestedPagingEnabled); - - nsresult PR_COM_METHOD (*GetHWVirtExVPIDEnabled)(IMachineDebugger *pTh= is, PRBool *HWVirtExVPIDEnabled); - - nsresult PR_COM_METHOD (*GetOSName)(IMachineDebugger *pThis, PRUnichar= * *OSName); - - nsresult PR_COM_METHOD (*GetOSVersion)(IMachineDebugger *pThis, PRUnic= har * *OSVersion); - - nsresult PR_COM_METHOD (*GetPAEEnabled)(IMachineDebugger *pThis, PRBoo= l *PAEEnabled); - - nsresult PR_COM_METHOD (*GetVirtualTimeRate)(IMachineDebugger *pThis, = PRUint32 *virtualTimeRate); - nsresult PR_COM_METHOD (*SetVirtualTimeRate)(IMachineDebugger *pThis, = PRUint32 virtualTimeRate); - - nsresult PR_COM_METHOD (*GetVM)(IMachineDebugger *pThis, PRInt64 *VM); - - nsresult PR_COM_METHOD (*DumpGuestCore)( - IMachineDebugger *pThis, - PRUnichar * filename, - PRUnichar * compression - ); - - nsresult PR_COM_METHOD (*DumpHostProcessCore)( - IMachineDebugger *pThis, - PRUnichar * filename, - PRUnichar * compression - ); - - nsresult PR_COM_METHOD (*Info)( - IMachineDebugger *pThis, - PRUnichar * name, - PRUnichar * args, - PRUnichar * * info - ); - - nsresult PR_COM_METHOD (*InjectNMI)(IMachineDebugger *pThis ); - - nsresult PR_COM_METHOD (*ModifyLogGroups)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult PR_COM_METHOD (*ModifyLogFlags)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult PR_COM_METHOD (*ModifyLogDestinations)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult PR_COM_METHOD (*ReadPhysicalMemory)( - IMachineDebugger *pThis, - PRInt64 address, - PRUint32 size, - PRUint32 *bytesSize, - PRUint8** bytes - ); - - nsresult PR_COM_METHOD (*WritePhysicalMemory)( - IMachineDebugger *pThis, - PRInt64 address, - PRUint32 size, - PRUint32 bytesSize, - PRUint8* bytes - ); - - nsresult PR_COM_METHOD (*ReadVirtualMemory)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRInt64 address, - PRUint32 size, - PRUint32 *bytesSize, - PRUint8** bytes - ); - - nsresult PR_COM_METHOD (*WriteVirtualMemory)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRInt64 address, - PRUint32 size, - PRUint32 bytesSize, - PRUint8* bytes - ); - - nsresult PR_COM_METHOD (*DetectOS)( - IMachineDebugger *pThis, - PRUnichar * * os - ); - - nsresult PR_COM_METHOD (*GetRegister)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult PR_COM_METHOD (*GetRegisters)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *valuesSize, - PRUnichar *** values - ); - - nsresult PR_COM_METHOD (*SetRegister)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * name, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*SetRegisters)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUint32 namesSize, - PRUnichar ** names, - PRUint32 valuesSize, - PRUnichar ** values - ); - - nsresult PR_COM_METHOD (*DumpGuestStack)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * * stack - ); - - nsresult PR_COM_METHOD (*ResetStats)( - IMachineDebugger *pThis, - PRUnichar * pattern - ); - - nsresult PR_COM_METHOD (*DumpStats)( - IMachineDebugger *pThis, - PRUnichar * pattern - ); - - nsresult PR_COM_METHOD (*GetStats)( - IMachineDebugger *pThis, - PRUnichar * pattern, - PRBool withDescriptions, - PRUnichar * * stats - ); - -}; - -struct IMachineDebugger -{ - struct IMachineDebugger_vtbl *vtbl; -}; -/* End of struct IMachineDebugger Declaration */ - - -/* Start of struct IUSBController Declaration */ -# define IUSBCONTROLLER_IID_STR "01e6f13a-0580-452f-a40f-74e32a5e4921" -# define IUSBCONTROLLER_IID { \ - 0x01e6f13a, 0x0580, 0x452f, \ - { 0xa4, 0x0f, 0x74, 0xe3, 0x2a, 0x5e, 0x49, 0x21 } \ -} -struct IUSBController_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IUSBController *pThis, PRBool *en= abled); - nsresult PR_COM_METHOD (*SetEnabled)(IUSBController *pThis, PRBool ena= bled); - - nsresult PR_COM_METHOD (*GetEnabledEHCI)(IUSBController *pThis, PRBool= *enabledEHCI); - nsresult PR_COM_METHOD (*SetEnabledEHCI)(IUSBController *pThis, PRBool= enabledEHCI); - - nsresult PR_COM_METHOD (*GetProxyAvailable)(IUSBController *pThis, PRB= ool *proxyAvailable); - - nsresult PR_COM_METHOD (*GetUSBStandard)(IUSBController *pThis, PRUint= 16 *USBStandard); - - nsresult PR_COM_METHOD (*GetDeviceFilters)(IUSBController *pThis, PRUi= nt32 *deviceFiltersSize, IUSBDeviceFilter * **deviceFilters); - - nsresult PR_COM_METHOD (*CreateDeviceFilter)( - IUSBController *pThis, - PRUnichar * name, - IUSBDeviceFilter * * filter - ); - - nsresult PR_COM_METHOD (*InsertDeviceFilter)( - IUSBController *pThis, - PRUint32 position, - IUSBDeviceFilter * filter - ); - - nsresult PR_COM_METHOD (*RemoveDeviceFilter)( - IUSBController *pThis, - PRUint32 position, - IUSBDeviceFilter * * filter - ); - -}; - -struct IUSBController -{ - struct IUSBController_vtbl *vtbl; -}; -/* End of struct IUSBController Declaration */ - - -/* Start of struct IUSBDevice Declaration */ -# define IUSBDEVICE_IID_STR "f8967b0b-4483-400f-92b5-8b675d98a85b" -# define IUSBDEVICE_IID { \ - 0xf8967b0b, 0x4483, 0x400f, \ - { 0x92, 0xb5, 0x8b, 0x67, 0x5d, 0x98, 0xa8, 0x5b } \ -} -struct IUSBDevice_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetId)(IUSBDevice *pThis, PRUnichar * *id); - - nsresult PR_COM_METHOD (*GetVendorId)(IUSBDevice *pThis, PRUint16 *ven= dorId); - - nsresult PR_COM_METHOD (*GetProductId)(IUSBDevice *pThis, PRUint16 *pr= oductId); - - nsresult PR_COM_METHOD (*GetRevision)(IUSBDevice *pThis, PRUint16 *rev= ision); - - nsresult PR_COM_METHOD (*GetManufacturer)(IUSBDevice *pThis, PRUnichar= * *manufacturer); - - nsresult PR_COM_METHOD (*GetProduct)(IUSBDevice *pThis, PRUnichar * *p= roduct); - - nsresult PR_COM_METHOD (*GetSerialNumber)(IUSBDevice *pThis, PRUnichar= * *serialNumber); - - nsresult PR_COM_METHOD (*GetAddress)(IUSBDevice *pThis, PRUnichar * *a= ddress); - - nsresult PR_COM_METHOD (*GetPort)(IUSBDevice *pThis, PRUint16 *port); - - nsresult PR_COM_METHOD (*GetVersion)(IUSBDevice *pThis, PRUint16 *vers= ion); - - nsresult PR_COM_METHOD (*GetPortVersion)(IUSBDevice *pThis, PRUint16 *= portVersion); - - nsresult PR_COM_METHOD (*GetRemote)(IUSBDevice *pThis, PRBool *remote); - -}; - -struct IUSBDevice -{ - struct IUSBDevice_vtbl *vtbl; -}; -/* End of struct IUSBDevice Declaration */ - - -/* Start of struct IUSBDeviceFilter Declaration */ -# define IUSBDEVICEFILTER_IID_STR "d6831fb4-1a94-4c2c-96ef-8d0d6192066d" -# define IUSBDEVICEFILTER_IID { \ - 0xd6831fb4, 0x1a94, 0x4c2c, \ - { 0x96, 0xef, 0x8d, 0x0d, 0x61, 0x92, 0x06, 0x6d } \ -} -struct IUSBDeviceFilter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IUSBDeviceFilter *pThis, PRUnichar *= *name); - nsresult PR_COM_METHOD (*SetName)(IUSBDeviceFilter *pThis, PRUnichar *= name); - - nsresult PR_COM_METHOD (*GetActive)(IUSBDeviceFilter *pThis, PRBool *a= ctive); - nsresult PR_COM_METHOD (*SetActive)(IUSBDeviceFilter *pThis, PRBool ac= tive); - - nsresult PR_COM_METHOD (*GetVendorId)(IUSBDeviceFilter *pThis, PRUnich= ar * *vendorId); - nsresult PR_COM_METHOD (*SetVendorId)(IUSBDeviceFilter *pThis, PRUnich= ar * vendorId); - - nsresult PR_COM_METHOD (*GetProductId)(IUSBDeviceFilter *pThis, PRUnic= har * *productId); - nsresult PR_COM_METHOD (*SetProductId)(IUSBDeviceFilter *pThis, PRUnic= har * productId); - - nsresult PR_COM_METHOD (*GetRevision)(IUSBDeviceFilter *pThis, PRUnich= ar * *revision); - nsresult PR_COM_METHOD (*SetRevision)(IUSBDeviceFilter *pThis, PRUnich= ar * revision); - - nsresult PR_COM_METHOD (*GetManufacturer)(IUSBDeviceFilter *pThis, PRU= nichar * *manufacturer); - nsresult PR_COM_METHOD (*SetManufacturer)(IUSBDeviceFilter *pThis, PRU= nichar * manufacturer); - - nsresult PR_COM_METHOD (*GetProduct)(IUSBDeviceFilter *pThis, PRUnicha= r * *product); - nsresult PR_COM_METHOD (*SetProduct)(IUSBDeviceFilter *pThis, PRUnicha= r * product); - - nsresult PR_COM_METHOD (*GetSerialNumber)(IUSBDeviceFilter *pThis, PRU= nichar * *serialNumber); - nsresult PR_COM_METHOD (*SetSerialNumber)(IUSBDeviceFilter *pThis, PRU= nichar * serialNumber); - - nsresult PR_COM_METHOD (*GetPort)(IUSBDeviceFilter *pThis, PRUnichar *= *port); - nsresult PR_COM_METHOD (*SetPort)(IUSBDeviceFilter *pThis, PRUnichar *= port); - - nsresult PR_COM_METHOD (*GetRemote)(IUSBDeviceFilter *pThis, PRUnichar= * *remote); - nsresult PR_COM_METHOD (*SetRemote)(IUSBDeviceFilter *pThis, PRUnichar= * remote); - - nsresult PR_COM_METHOD (*GetMaskedInterfaces)(IUSBDeviceFilter *pThis,= PRUint32 *maskedInterfaces); - nsresult PR_COM_METHOD (*SetMaskedInterfaces)(IUSBDeviceFilter *pThis,= PRUint32 maskedInterfaces); - -}; - -struct IUSBDeviceFilter -{ - struct IUSBDeviceFilter_vtbl *vtbl; -}; -/* End of struct IUSBDeviceFilter Declaration */ - - -/* Start of struct IHostUSBDevice Declaration */ -# define IHOSTUSBDEVICE_IID_STR "173b4b44-d268-4334-a00d-b6521c9a740a" -# define IHOSTUSBDEVICE_IID { \ - 0x173b4b44, 0xd268, 0x4334, \ - { 0xa0, 0x0d, 0xb6, 0x52, 0x1c, 0x9a, 0x74, 0x0a } \ -} -struct IHostUSBDevice_vtbl -{ - struct IUSBDevice_vtbl iusbdevice; - - nsresult PR_COM_METHOD (*GetState)(IHostUSBDevice *pThis, PRUint32 *st= ate); - -}; - -struct IHostUSBDevice -{ - struct IHostUSBDevice_vtbl *vtbl; -}; -/* End of struct IHostUSBDevice Declaration */ - - -/* Start of struct IHostUSBDeviceFilter Declaration */ -# define IHOSTUSBDEVICEFILTER_IID_STR "4cc70246-d74a-400f-8222-3900489c03= 74" -# define IHOSTUSBDEVICEFILTER_IID { \ - 0x4cc70246, 0xd74a, 0x400f, \ - { 0x82, 0x22, 0x39, 0x00, 0x48, 0x9c, 0x03, 0x74 } \ -} -struct IHostUSBDeviceFilter_vtbl -{ - struct IUSBDeviceFilter_vtbl iusbdevicefilter; - - nsresult PR_COM_METHOD (*GetAction)(IHostUSBDeviceFilter *pThis, PRUin= t32 *action); - nsresult PR_COM_METHOD (*SetAction)(IHostUSBDeviceFilter *pThis, PRUin= t32 action); - -}; - -struct IHostUSBDeviceFilter -{ - struct IHostUSBDeviceFilter_vtbl *vtbl; -}; -/* End of struct IHostUSBDeviceFilter Declaration */ - - -/* Start of struct IAudioAdapter Declaration */ -# define IAUDIOADAPTER_IID_STR "921873db-5f3f-4b69-91f9-7be9e535a2cb" -# define IAUDIOADAPTER_IID { \ - 0x921873db, 0x5f3f, 0x4b69, \ - { 0x91, 0xf9, 0x7b, 0xe9, 0xe5, 0x35, 0xa2, 0xcb } \ -} -struct IAudioAdapter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IAudioAdapter *pThis, PRBool *ena= bled); - nsresult PR_COM_METHOD (*SetEnabled)(IAudioAdapter *pThis, PRBool enab= led); - - nsresult PR_COM_METHOD (*GetAudioController)(IAudioAdapter *pThis, PRU= int32 *audioController); - nsresult PR_COM_METHOD (*SetAudioController)(IAudioAdapter *pThis, PRU= int32 audioController); - - nsresult PR_COM_METHOD (*GetAudioDriver)(IAudioAdapter *pThis, PRUint3= 2 *audioDriver); - nsresult PR_COM_METHOD (*SetAudioDriver)(IAudioAdapter *pThis, PRUint3= 2 audioDriver); - -}; - -struct IAudioAdapter -{ - struct IAudioAdapter_vtbl *vtbl; -}; -/* End of struct IAudioAdapter Declaration */ - - -/* Start of struct IVRDEServer Declaration */ -# define IVRDESERVER_IID_STR "d38de40a-c2c1-4e95-b5a4-167b05f5694c" -# define IVRDESERVER_IID { \ - 0xd38de40a, 0xc2c1, 0x4e95, \ - { 0xb5, 0xa4, 0x16, 0x7b, 0x05, 0xf5, 0x69, 0x4c } \ -} -struct IVRDEServer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetEnabled)(IVRDEServer *pThis, PRBool *enabl= ed); - nsresult PR_COM_METHOD (*SetEnabled)(IVRDEServer *pThis, PRBool enable= d); - - nsresult PR_COM_METHOD (*GetAuthType)(IVRDEServer *pThis, PRUint32 *au= thType); - nsresult PR_COM_METHOD (*SetAuthType)(IVRDEServer *pThis, PRUint32 aut= hType); - - nsresult PR_COM_METHOD (*GetAuthTimeout)(IVRDEServer *pThis, PRUint32 = *authTimeout); - nsresult PR_COM_METHOD (*SetAuthTimeout)(IVRDEServer *pThis, PRUint32 = authTimeout); - - nsresult PR_COM_METHOD (*GetAllowMultiConnection)(IVRDEServer *pThis, = PRBool *allowMultiConnection); - nsresult PR_COM_METHOD (*SetAllowMultiConnection)(IVRDEServer *pThis, = PRBool allowMultiConnection); - - nsresult PR_COM_METHOD (*GetReuseSingleConnection)(IVRDEServer *pThis,= PRBool *reuseSingleConnection); - nsresult PR_COM_METHOD (*SetReuseSingleConnection)(IVRDEServer *pThis,= PRBool reuseSingleConnection); - - nsresult PR_COM_METHOD (*GetVRDEExtPack)(IVRDEServer *pThis, PRUnichar= * *VRDEExtPack); - nsresult PR_COM_METHOD (*SetVRDEExtPack)(IVRDEServer *pThis, PRUnichar= * VRDEExtPack); - - nsresult PR_COM_METHOD (*GetAuthLibrary)(IVRDEServer *pThis, PRUnichar= * *authLibrary); - nsresult PR_COM_METHOD (*SetAuthLibrary)(IVRDEServer *pThis, PRUnichar= * authLibrary); - - nsresult PR_COM_METHOD (*GetVRDEProperties)(IVRDEServer *pThis, PRUint= 32 *VRDEPropertiesSize, PRUnichar * **VRDEProperties); - - nsresult PR_COM_METHOD (*SetVRDEProperty)( - IVRDEServer *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult PR_COM_METHOD (*GetVRDEProperty)( - IVRDEServer *pThis, - PRUnichar * key, - PRUnichar * * value - ); - -}; - -struct IVRDEServer -{ - struct IVRDEServer_vtbl *vtbl; -}; -/* End of struct IVRDEServer Declaration */ - - -/* Start of struct ISharedFolder Declaration */ -# define ISHAREDFOLDER_IID_STR "8388da11-b559-4574-a5b7-2bd7acd5cef8" -# define ISHAREDFOLDER_IID { \ - 0x8388da11, 0xb559, 0x4574, \ - { 0xa5, 0xb7, 0x2b, 0xd7, 0xac, 0xd5, 0xce, 0xf8 } \ -} -struct ISharedFolder_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(ISharedFolder *pThis, PRUnichar * *n= ame); - - nsresult PR_COM_METHOD (*GetHostPath)(ISharedFolder *pThis, PRUnichar = * *hostPath); - - nsresult PR_COM_METHOD (*GetAccessible)(ISharedFolder *pThis, PRBool *= accessible); - - nsresult PR_COM_METHOD (*GetWritable)(ISharedFolder *pThis, PRBool *wr= itable); - - nsresult PR_COM_METHOD (*GetAutoMount)(ISharedFolder *pThis, PRBool *a= utoMount); - - nsresult PR_COM_METHOD (*GetLastAccessError)(ISharedFolder *pThis, PRU= nichar * *lastAccessError); - -}; - -struct ISharedFolder -{ - struct ISharedFolder_vtbl *vtbl; -}; -/* End of struct ISharedFolder Declaration */ - - -/* Start of struct IInternalSessionControl Declaration */ -# define IINTERNALSESSIONCONTROL_IID_STR "cddf451c-a006-4c33-8245-63b3c9a= e6586" -# define IINTERNALSESSIONCONTROL_IID { \ - 0xcddf451c, 0xa006, 0x4c33, \ - { 0x82, 0x45, 0x63, 0xb3, 0xc9, 0xae, 0x65, 0x86 } \ -} -struct IInternalSessionControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetPID)( - IInternalSessionControl *pThis, - PRUint32 * pid - ); - - nsresult PR_COM_METHOD (*GetRemoteConsole)( - IInternalSessionControl *pThis, - IConsole * * console - ); - - nsresult PR_COM_METHOD (*AssignMachine)( - IInternalSessionControl *pThis, - IMachine * machine, - PRUint32 lockType - ); - - nsresult PR_COM_METHOD (*AssignRemoteMachine)( - IInternalSessionControl *pThis, - IMachine * machine, - IConsole * console - ); - - nsresult PR_COM_METHOD (*UpdateMachineState)( - IInternalSessionControl *pThis, - PRUint32 aMachineState - ); - - nsresult PR_COM_METHOD (*Uninitialize)(IInternalSessionControl *pThis = ); - - nsresult PR_COM_METHOD (*OnNetworkAdapterChange)( - IInternalSessionControl *pThis, - INetworkAdapter * networkAdapter, - PRBool changeAdapter - ); - - nsresult PR_COM_METHOD (*OnSerialPortChange)( - IInternalSessionControl *pThis, - ISerialPort * serialPort - ); - - nsresult PR_COM_METHOD (*OnParallelPortChange)( - IInternalSessionControl *pThis, - IParallelPort * parallelPort - ); - - nsresult PR_COM_METHOD (*OnStorageControllerChange)(IInternalSessionCo= ntrol *pThis ); - - nsresult PR_COM_METHOD (*OnMediumChange)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRBool force - ); - - nsresult PR_COM_METHOD (*OnStorageDeviceChange)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRBool remove, - PRBool silent - ); - - nsresult PR_COM_METHOD (*OnClipboardModeChange)( - IInternalSessionControl *pThis, - PRUint32 clipboardMode - ); - - nsresult PR_COM_METHOD (*OnDragAndDropModeChange)( - IInternalSessionControl *pThis, - PRUint32 dragAndDropMode - ); - - nsresult PR_COM_METHOD (*OnCPUChange)( - IInternalSessionControl *pThis, - PRUint32 cpu, - PRBool add - ); - - nsresult PR_COM_METHOD (*OnCPUExecutionCapChange)( - IInternalSessionControl *pThis, - PRUint32 executionCap - ); - - nsresult PR_COM_METHOD (*OnVRDEServerChange)( - IInternalSessionControl *pThis, - PRBool restart - ); - - nsresult PR_COM_METHOD (*OnUSBControllerChange)(IInternalSessionContro= l *pThis ); - - nsresult PR_COM_METHOD (*OnSharedFolderChange)( - IInternalSessionControl *pThis, - PRBool global - ); - - nsresult PR_COM_METHOD (*OnUSBDeviceAttach)( - IInternalSessionControl *pThis, - IUSBDevice * device, - IVirtualBoxErrorInfo * error, - PRUint32 maskedInterfaces - ); - - nsresult PR_COM_METHOD (*OnUSBDeviceDetach)( - IInternalSessionControl *pThis, - PRUnichar * id, - IVirtualBoxErrorInfo * error - ); - - nsresult PR_COM_METHOD (*OnShowWindow)( - IInternalSessionControl *pThis, - PRBool check, - PRBool * canShow, - PRInt64 * winId - ); - - nsresult PR_COM_METHOD (*OnBandwidthGroupChange)( - IInternalSessionControl *pThis, - IBandwidthGroup * bandwidthGroup - ); - - nsresult PR_COM_METHOD (*AccessGuestProperty)( - IInternalSessionControl *pThis, - PRUnichar * name, - PRUnichar * value, - PRUnichar * flags, - PRBool isSetter, - PRUnichar * * retValue, - PRInt64 * retTimestamp, - PRUnichar * * retFlags - ); - - nsresult PR_COM_METHOD (*EnumerateGuestProperties)( - IInternalSessionControl *pThis, - PRUnichar * patterns, - PRUint32 *keySize, - PRUnichar *** key, - PRUint32 *valueSize, - PRUnichar *** value, - PRUint32 *timestampSize, - PRInt64** timestamp, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult PR_COM_METHOD (*OnlineMergeMedium)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRUint32 sourceIdx, - PRUint32 targetIdx, - IMedium * source, - IMedium * target, - PRBool mergeForward, - IMedium * parentForTarget, - PRUint32 childrenToReparentSize, - IMedium ** childrenToReparent, - IProgress * progress - ); - - nsresult PR_COM_METHOD (*EnableVMMStatistics)( - IInternalSessionControl *pThis, - PRBool enable - ); - - nsresult PR_COM_METHOD (*PauseWithReason)( - IInternalSessionControl *pThis, - PRUint32 reason - ); - - nsresult PR_COM_METHOD (*ResumeWithReason)( - IInternalSessionControl *pThis, - PRUint32 reason - ); - - nsresult PR_COM_METHOD (*SaveStateWithReason)( - IInternalSessionControl *pThis, - PRUint32 reason, - IProgress * * progress - ); - -}; - -struct IInternalSessionControl -{ - struct IInternalSessionControl_vtbl *vtbl; -}; -/* End of struct IInternalSessionControl Declaration */ - - -/* Start of struct ISession Declaration */ -# define ISESSION_IID_STR "12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D" -# define ISESSION_IID { \ - 0x12F4DCDB, 0x12B2, 0x4EC1, \ - { 0xB7, 0xCD, 0xDD, 0xD9, 0xF6, 0xC5, 0xBF, 0x4D } \ -} -struct ISession_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetState)(ISession *pThis, PRUint32 *state); - - nsresult PR_COM_METHOD (*GetType)(ISession *pThis, PRUint32 *type); - - nsresult PR_COM_METHOD (*GetMachine)(ISession *pThis, IMachine * *mach= ine); - - nsresult PR_COM_METHOD (*GetConsole)(ISession *pThis, IConsole * *cons= ole); - - nsresult PR_COM_METHOD (*UnlockMachine)(ISession *pThis ); - -}; - -struct ISession -{ - struct ISession_vtbl *vtbl; -}; -/* End of struct ISession Declaration */ - - -/* Start of struct IStorageController Declaration */ -# define ISTORAGECONTROLLER_IID_STR "a1556333-09b6-46d9-bfb7-fc239b7fbe1e" -# define ISTORAGECONTROLLER_IID { \ - 0xa1556333, 0x09b6, 0x46d9, \ - { 0xbf, 0xb7, 0xfc, 0x23, 0x9b, 0x7f, 0xbe, 0x1e } \ -} -struct IStorageController_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IStorageController *pThis, PRUnichar= * *name); - - nsresult PR_COM_METHOD (*GetMaxDevicesPerPortCount)(IStorageController= *pThis, PRUint32 *maxDevicesPerPortCount); - - nsresult PR_COM_METHOD (*GetMinPortCount)(IStorageController *pThis, P= RUint32 *minPortCount); - - nsresult PR_COM_METHOD (*GetMaxPortCount)(IStorageController *pThis, P= RUint32 *maxPortCount); - - nsresult PR_COM_METHOD (*GetInstance)(IStorageController *pThis, PRUin= t32 *instance); - nsresult PR_COM_METHOD (*SetInstance)(IStorageController *pThis, PRUin= t32 instance); - - nsresult PR_COM_METHOD (*GetPortCount)(IStorageController *pThis, PRUi= nt32 *portCount); - nsresult PR_COM_METHOD (*SetPortCount)(IStorageController *pThis, PRUi= nt32 portCount); - - nsresult PR_COM_METHOD (*GetBus)(IStorageController *pThis, PRUint32 *= bus); - - nsresult PR_COM_METHOD (*GetControllerType)(IStorageController *pThis,= PRUint32 *controllerType); - nsresult PR_COM_METHOD (*SetControllerType)(IStorageController *pThis,= PRUint32 controllerType); - - nsresult PR_COM_METHOD (*GetUseHostIOCache)(IStorageController *pThis,= PRBool *useHostIOCache); - nsresult PR_COM_METHOD (*SetUseHostIOCache)(IStorageController *pThis,= PRBool useHostIOCache); - - nsresult PR_COM_METHOD (*GetBootable)(IStorageController *pThis, PRBoo= l *bootable); - -}; - -struct IStorageController -{ - struct IStorageController_vtbl *vtbl; -}; -/* End of struct IStorageController Declaration */ - - -/* Start of struct IPerformanceMetric Declaration */ -# define IPERFORMANCEMETRIC_IID_STR "2a1a60ae-9345-4019-ad53-d34ba41cbfe9" -# define IPERFORMANCEMETRIC_IID { \ - 0x2a1a60ae, 0x9345, 0x4019, \ - { 0xad, 0x53, 0xd3, 0x4b, 0xa4, 0x1c, 0xbf, 0xe9 } \ -} -struct IPerformanceMetric_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMetricName)(IPerformanceMetric *pThis, PRU= nichar * *metricName); - - nsresult PR_COM_METHOD (*GetObject)(IPerformanceMetric *pThis, nsISupp= orts * *object); - - nsresult PR_COM_METHOD (*GetDescription)(IPerformanceMetric *pThis, PR= Unichar * *description); - - nsresult PR_COM_METHOD (*GetPeriod)(IPerformanceMetric *pThis, PRUint3= 2 *period); - - nsresult PR_COM_METHOD (*GetCount)(IPerformanceMetric *pThis, PRUint32= *count); - - nsresult PR_COM_METHOD (*GetUnit)(IPerformanceMetric *pThis, PRUnichar= * *unit); - - nsresult PR_COM_METHOD (*GetMinimumValue)(IPerformanceMetric *pThis, P= RInt32 *minimumValue); - - nsresult PR_COM_METHOD (*GetMaximumValue)(IPerformanceMetric *pThis, P= RInt32 *maximumValue); - -}; - -struct IPerformanceMetric -{ - struct IPerformanceMetric_vtbl *vtbl; -}; -/* End of struct IPerformanceMetric Declaration */ - - -/* Start of struct IPerformanceCollector Declaration */ -# define IPERFORMANCECOLLECTOR_IID_STR "e22e1acb-ac4a-43bb-a31c-17321659b= 0c6" -# define IPERFORMANCECOLLECTOR_IID { \ - 0xe22e1acb, 0xac4a, 0x43bb, \ - { 0xa3, 0x1c, 0x17, 0x32, 0x16, 0x59, 0xb0, 0xc6 } \ -} -struct IPerformanceCollector_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetMetricNames)(IPerformanceCollector *pThis,= PRUint32 *metricNamesSize, PRUnichar * **metricNames); - - nsresult PR_COM_METHOD (*GetMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *metricsSize, - IPerformanceMetric *** metrics - ); - - nsresult PR_COM_METHOD (*SetupMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 period, - PRUint32 count, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult PR_COM_METHOD (*EnableMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult PR_COM_METHOD (*DisableMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult PR_COM_METHOD (*QueryMetricsData)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *returnMetricNamesSize, - PRUnichar *** returnMetricNames, - PRUint32 *returnObjectsSize, - nsISupports *** returnObjects, - PRUint32 *returnUnitsSize, - PRUnichar *** returnUnits, - PRUint32 *returnScalesSize, - PRUint32** returnScales, - PRUint32 *returnSequenceNumbersSize, - PRUint32** returnSequenceNumbers, - PRUint32 *returnDataIndicesSize, - PRUint32** returnDataIndices, - PRUint32 *returnDataLengthsSize, - PRUint32** returnDataLengths, - PRUint32 *returnDataSize, - PRInt32** returnData - ); - -}; - -struct IPerformanceCollector -{ - struct IPerformanceCollector_vtbl *vtbl; -}; -/* End of struct IPerformanceCollector Declaration */ - - -/* Start of struct INATEngine Declaration */ -# define INATENGINE_IID_STR "26451b99-3b2d-4dcb-8e4b-d63654218175" -# define INATENGINE_IID { \ - 0x26451b99, 0x3b2d, 0x4dcb, \ - { 0x8e, 0x4b, 0xd6, 0x36, 0x54, 0x21, 0x81, 0x75 } \ -} -struct INATEngine_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetNetwork)(INATEngine *pThis, PRUnichar * *n= etwork); - nsresult PR_COM_METHOD (*SetNetwork)(INATEngine *pThis, PRUnichar * ne= twork); - - nsresult PR_COM_METHOD (*GetHostIP)(INATEngine *pThis, PRUnichar * *ho= stIP); - nsresult PR_COM_METHOD (*SetHostIP)(INATEngine *pThis, PRUnichar * hos= tIP); - - nsresult PR_COM_METHOD (*GetTFTPPrefix)(INATEngine *pThis, PRUnichar *= *TFTPPrefix); - nsresult PR_COM_METHOD (*SetTFTPPrefix)(INATEngine *pThis, PRUnichar *= TFTPPrefix); - - nsresult PR_COM_METHOD (*GetTFTPBootFile)(INATEngine *pThis, PRUnichar= * *TFTPBootFile); - nsresult PR_COM_METHOD (*SetTFTPBootFile)(INATEngine *pThis, PRUnichar= * TFTPBootFile); - - nsresult PR_COM_METHOD (*GetTFTPNextServer)(INATEngine *pThis, PRUnich= ar * *TFTPNextServer); - nsresult PR_COM_METHOD (*SetTFTPNextServer)(INATEngine *pThis, PRUnich= ar * TFTPNextServer); - - nsresult PR_COM_METHOD (*GetAliasMode)(INATEngine *pThis, PRUint32 *al= iasMode); - nsresult PR_COM_METHOD (*SetAliasMode)(INATEngine *pThis, PRUint32 ali= asMode); - - nsresult PR_COM_METHOD (*GetDNSPassDomain)(INATEngine *pThis, PRBool *= DNSPassDomain); - nsresult PR_COM_METHOD (*SetDNSPassDomain)(INATEngine *pThis, PRBool D= NSPassDomain); - - nsresult PR_COM_METHOD (*GetDNSProxy)(INATEngine *pThis, PRBool *DNSPr= oxy); - nsresult PR_COM_METHOD (*SetDNSProxy)(INATEngine *pThis, PRBool DNSPro= xy); - - nsresult PR_COM_METHOD (*GetDNSUseHostResolver)(INATEngine *pThis, PRB= ool *DNSUseHostResolver); - nsresult PR_COM_METHOD (*SetDNSUseHostResolver)(INATEngine *pThis, PRB= ool DNSUseHostResolver); - - nsresult PR_COM_METHOD (*GetRedirects)(INATEngine *pThis, PRUint32 *re= directsSize, PRUnichar * **redirects); - - nsresult PR_COM_METHOD (*SetNetworkSettings)( - INATEngine *pThis, - PRUint32 mtu, - PRUint32 sockSnd, - PRUint32 sockRcv, - PRUint32 TcpWndSnd, - PRUint32 TcpWndRcv - ); - - nsresult PR_COM_METHOD (*GetNetworkSettings)( - INATEngine *pThis, - PRUint32 * mtu, - PRUint32 * sockSnd, - PRUint32 * sockRcv, - PRUint32 * TcpWndSnd, - PRUint32 * TcpWndRcv - ); - - nsresult PR_COM_METHOD (*AddRedirect)( - INATEngine *pThis, - PRUnichar * name, - PRUint32 proto, - PRUnichar * hostIP, - PRUint16 hostPort, - PRUnichar * guestIP, - PRUint16 guestPort - ); - - nsresult PR_COM_METHOD (*RemoveRedirect)( - INATEngine *pThis, - PRUnichar * name - ); - -}; - -struct INATEngine -{ - struct INATEngine_vtbl *vtbl; -}; -/* End of struct INATEngine Declaration */ - - -/* Start of struct IExtPackPlugIn Declaration */ -# define IEXTPACKPLUGIN_IID_STR "58000040-e718-4746-bbce-4b86d96da461" -# define IEXTPACKPLUGIN_IID { \ - 0x58000040, 0xe718, 0x4746, \ - { 0xbb, 0xce, 0x4b, 0x86, 0xd9, 0x6d, 0xa4, 0x61 } \ -} -struct IExtPackPlugIn_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IExtPackPlugIn *pThis, PRUnichar * *= name); - - nsresult PR_COM_METHOD (*GetDescription)(IExtPackPlugIn *pThis, PRUnic= har * *description); - - nsresult PR_COM_METHOD (*GetFrontend)(IExtPackPlugIn *pThis, PRUnichar= * *frontend); - - nsresult PR_COM_METHOD (*GetModulePath)(IExtPackPlugIn *pThis, PRUnich= ar * *modulePath); - -}; - -struct IExtPackPlugIn -{ - struct IExtPackPlugIn_vtbl *vtbl; -}; -/* End of struct IExtPackPlugIn Declaration */ - - -/* Start of struct IExtPackBase Declaration */ -# define IEXTPACKBASE_IID_STR "f79b75d8-2890-4f34-ffff-ffffa144e82c" -# define IEXTPACKBASE_IID { \ - 0xf79b75d8, 0x2890, 0x4f34, \ - { 0xff, 0xff, 0xff, 0xff, 0xa1, 0x44, 0xe8, 0x2c } \ -} -struct IExtPackBase_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IExtPackBase *pThis, PRUnichar * *na= me); - - nsresult PR_COM_METHOD (*GetDescription)(IExtPackBase *pThis, PRUnicha= r * *description); - - nsresult PR_COM_METHOD (*GetVersion)(IExtPackBase *pThis, PRUnichar * = *version); - - nsresult PR_COM_METHOD (*GetRevision)(IExtPackBase *pThis, PRUint32 *r= evision); - - nsresult PR_COM_METHOD (*GetEdition)(IExtPackBase *pThis, PRUnichar * = *edition); - - nsresult PR_COM_METHOD (*GetVRDEModule)(IExtPackBase *pThis, PRUnichar= * *VRDEModule); - - nsresult PR_COM_METHOD (*GetPlugIns)(IExtPackBase *pThis, PRUint32 *pl= ugInsSize, IExtPackPlugIn * **plugIns); - - nsresult PR_COM_METHOD (*GetUsable)(IExtPackBase *pThis, PRBool *usabl= e); - - nsresult PR_COM_METHOD (*GetWhyUnusable)(IExtPackBase *pThis, PRUnicha= r * *whyUnusable); - - nsresult PR_COM_METHOD (*GetShowLicense)(IExtPackBase *pThis, PRBool *= showLicense); - - nsresult PR_COM_METHOD (*GetLicense)(IExtPackBase *pThis, PRUnichar * = *license); - - nsresult PR_COM_METHOD (*QueryLicense)( - IExtPackBase *pThis, - PRUnichar * preferredLocale, - PRUnichar * preferredLanguage, - PRUnichar * format, - PRUnichar * * licenseText - ); - -}; - -struct IExtPackBase -{ - struct IExtPackBase_vtbl *vtbl; -}; -/* End of struct IExtPackBase Declaration */ - - -/* Start of struct IExtPack Declaration */ -# define IEXTPACK_IID_STR "431685da-3618-4ebc-b038-833ba829b4b2" -# define IEXTPACK_IID { \ - 0x431685da, 0x3618, 0x4ebc, \ - { 0xb0, 0x38, 0x83, 0x3b, 0xa8, 0x29, 0xb4, 0xb2 } \ -} -struct IExtPack_vtbl -{ - struct IExtPackBase_vtbl iextpackbase; - - nsresult PR_COM_METHOD (*QueryObject)( - IExtPack *pThis, - PRUnichar * objUuid, - nsISupports * * returnInterface - ); - -}; - -struct IExtPack -{ - struct IExtPack_vtbl *vtbl; -}; -/* End of struct IExtPack Declaration */ - - -/* Start of struct IExtPackFile Declaration */ -# define IEXTPACKFILE_IID_STR "b6b49f55-efcc-4f08-b486-56e8d8afb10b" -# define IEXTPACKFILE_IID { \ - 0xb6b49f55, 0xefcc, 0x4f08, \ - { 0xb4, 0x86, 0x56, 0xe8, 0xd8, 0xaf, 0xb1, 0x0b } \ -} -struct IExtPackFile_vtbl -{ - struct IExtPackBase_vtbl iextpackbase; - - nsresult PR_COM_METHOD (*GetFilePath)(IExtPackFile *pThis, PRUnichar *= *filePath); - - nsresult PR_COM_METHOD (*Install)( - IExtPackFile *pThis, - PRBool replace, - PRUnichar * displayInfo, - IProgress * * progess - ); - -}; - -struct IExtPackFile -{ - struct IExtPackFile_vtbl *vtbl; -}; -/* End of struct IExtPackFile Declaration */ - - -/* Start of struct IExtPackManager Declaration */ -# define IEXTPACKMANAGER_IID_STR "3295e6ce-b051-47b2-9514-2c588bfe7554" -# define IEXTPACKMANAGER_IID { \ - 0x3295e6ce, 0xb051, 0x47b2, \ - { 0x95, 0x14, 0x2c, 0x58, 0x8b, 0xfe, 0x75, 0x54 } \ -} -struct IExtPackManager_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetInstalledExtPacks)(IExtPackManager *pThis,= PRUint32 *installedExtPacksSize, IExtPack * **installedExtPacks); - - nsresult PR_COM_METHOD (*Find)( - IExtPackManager *pThis, - PRUnichar * name, - IExtPack * * returnData - ); - - nsresult PR_COM_METHOD (*OpenExtPackFile)( - IExtPackManager *pThis, - PRUnichar * path, - IExtPackFile * * file - ); - - nsresult PR_COM_METHOD (*Uninstall)( - IExtPackManager *pThis, - PRUnichar * name, - PRBool forcedRemoval, - PRUnichar * displayInfo, - IProgress * * progess - ); - - nsresult PR_COM_METHOD (*Cleanup)(IExtPackManager *pThis ); - - nsresult PR_COM_METHOD (*QueryAllPlugInsForFrontend)( - IExtPackManager *pThis, - PRUnichar * frontendName, - PRUint32 *plugInModulesSize, - PRUnichar *** plugInModules - ); - - nsresult PR_COM_METHOD (*IsExtPackUsable)( - IExtPackManager *pThis, - PRUnichar * name, - PRBool * usable - ); - -}; - -struct IExtPackManager -{ - struct IExtPackManager_vtbl *vtbl; -}; -/* End of struct IExtPackManager Declaration */ - - -/* Start of struct IBandwidthGroup Declaration */ -# define IBANDWIDTHGROUP_IID_STR "badea2d7-0261-4146-89f0-6a57cc34833d" -# define IBANDWIDTHGROUP_IID { \ - 0xbadea2d7, 0x0261, 0x4146, \ - { 0x89, 0xf0, 0x6a, 0x57, 0xcc, 0x34, 0x83, 0x3d } \ -} -struct IBandwidthGroup_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetName)(IBandwidthGroup *pThis, PRUnichar * = *name); - - nsresult PR_COM_METHOD (*GetType)(IBandwidthGroup *pThis, PRUint32 *ty= pe); - - nsresult PR_COM_METHOD (*GetReference)(IBandwidthGroup *pThis, PRUint3= 2 *reference); - - nsresult PR_COM_METHOD (*GetMaxBytesPerSec)(IBandwidthGroup *pThis, PR= Int64 *maxBytesPerSec); - nsresult PR_COM_METHOD (*SetMaxBytesPerSec)(IBandwidthGroup *pThis, PR= Int64 maxBytesPerSec); - -}; - -struct IBandwidthGroup -{ - struct IBandwidthGroup_vtbl *vtbl; -}; -/* End of struct IBandwidthGroup Declaration */ - - -/* Start of struct IBandwidthControl Declaration */ -# define IBANDWIDTHCONTROL_IID_STR "e2eb3930-d2f4-4f87-be17-0707e30f019f" -# define IBANDWIDTHCONTROL_IID { \ - 0xe2eb3930, 0xd2f4, 0x4f87, \ - { 0xbe, 0x17, 0x07, 0x07, 0xe3, 0x0f, 0x01, 0x9f } \ -} -struct IBandwidthControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetNumGroups)(IBandwidthControl *pThis, PRUin= t32 *numGroups); - - nsresult PR_COM_METHOD (*CreateBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name, - PRUint32 type, - PRInt64 maxBytesPerSec - ); - - nsresult PR_COM_METHOD (*DeleteBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name - ); - - nsresult PR_COM_METHOD (*GetBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name, - IBandwidthGroup * * bandwidthGroup - ); - - nsresult PR_COM_METHOD (*GetAllBandwidthGroups)( - IBandwidthControl *pThis, - PRUint32 *bandwidthGroupsSize, - IBandwidthGroup *** bandwidthGroups - ); - -}; - -struct IBandwidthControl -{ - struct IBandwidthControl_vtbl *vtbl; -}; -/* End of struct IBandwidthControl Declaration */ - - -/* Start of struct IVirtualBoxClient Declaration */ -# define IVIRTUALBOXCLIENT_IID_STR "5fe0bd48-1181-40d1-991f-3b02f269a823" -# define IVIRTUALBOXCLIENT_IID { \ - 0x5fe0bd48, 0x1181, 0x40d1, \ - { 0x99, 0x1f, 0x3b, 0x02, 0xf2, 0x69, 0xa8, 0x23 } \ -} -struct IVirtualBoxClient_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetVirtualBox)(IVirtualBoxClient *pThis, IVir= tualBox * *virtualBox); - - nsresult PR_COM_METHOD (*GetSession)(IVirtualBoxClient *pThis, ISessio= n * *session); - - nsresult PR_COM_METHOD (*GetEventSource)(IVirtualBoxClient *pThis, IEv= entSource * *eventSource); - -}; - -struct IVirtualBoxClient -{ - struct IVirtualBoxClient_vtbl *vtbl; -}; -/* End of struct IVirtualBoxClient Declaration */ - - -/* Start of struct IEventSource Declaration */ -# define IEVENTSOURCE_IID_STR "9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538" -# define IEVENTSOURCE_IID { \ - 0x9b6e1aee, 0x35f3, 0x4f4d, \ - { 0xb5, 0xbb, 0xed, 0x0e, 0xce, 0xfd, 0x85, 0x38 } \ -} -struct IEventSource_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*CreateListener)( - IEventSource *pThis, - IEventListener * * listener - ); - - nsresult PR_COM_METHOD (*CreateAggregator)( - IEventSource *pThis, - PRUint32 subordinatesSize, - IEventSource ** subordinates, - IEventSource * * result - ); - - nsresult PR_COM_METHOD (*RegisterListener)( - IEventSource *pThis, - IEventListener * listener, - PRUint32 interestingSize, - PRUint32* interesting, - PRBool active - ); - - nsresult PR_COM_METHOD (*UnregisterListener)( - IEventSource *pThis, - IEventListener * listener - ); - - nsresult PR_COM_METHOD (*FireEvent)( - IEventSource *pThis, - IEvent * event, - PRInt32 timeout, - PRBool * result - ); - - nsresult PR_COM_METHOD (*GetEvent)( - IEventSource *pThis, - IEventListener * listener, - PRInt32 timeout, - IEvent * * event - ); - - nsresult PR_COM_METHOD (*EventProcessed)( - IEventSource *pThis, - IEventListener * listener, - IEvent * event - ); - -}; - -struct IEventSource -{ - struct IEventSource_vtbl *vtbl; -}; -/* End of struct IEventSource Declaration */ - - -/* Start of struct IEventListener Declaration */ -# define IEVENTLISTENER_IID_STR "67099191-32e7-4f6c-85ee-422304c71b90" -# define IEVENTLISTENER_IID { \ - 0x67099191, 0x32e7, 0x4f6c, \ - { 0x85, 0xee, 0x42, 0x23, 0x04, 0xc7, 0x1b, 0x90 } \ -} -struct IEventListener_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*HandleEvent)( - IEventListener *pThis, - IEvent * event - ); - -}; - -struct IEventListener -{ - struct IEventListener_vtbl *vtbl; -}; -/* End of struct IEventListener Declaration */ - - -/* Start of struct IEvent Declaration */ -# define IEVENT_IID_STR "0ca2adba-8f30-401b-a8cd-fe31dbe839c0" -# define IEVENT_IID { \ - 0x0ca2adba, 0x8f30, 0x401b, \ - { 0xa8, 0xcd, 0xfe, 0x31, 0xdb, 0xe8, 0x39, 0xc0 } \ -} -struct IEvent_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult PR_COM_METHOD (*GetType)(IEvent *pThis, PRUint32 *type); - - nsresult PR_COM_METHOD (*GetSource)(IEvent *pThis, IEventSource * *sou= rce); - - nsresult PR_COM_METHOD (*GetWaitable)(IEvent *pThis, PRBool *waitable); - - nsresult PR_COM_METHOD (*SetProcessed)(IEvent *pThis ); - - nsresult PR_COM_METHOD (*WaitProcessed)( - IEvent *pThis, - PRInt32 timeout, - PRBool * result - ); - -}; - -struct IEvent -{ - struct IEvent_vtbl *vtbl; -}; -/* End of struct IEvent Declaration */ - - -/* Start of struct IReusableEvent Declaration */ -# define IREUSABLEEVENT_IID_STR "69bfb134-80f6-4266-8e20-16371f68fa25" -# define IREUSABLEEVENT_IID { \ - 0x69bfb134, 0x80f6, 0x4266, \ - { 0x8e, 0x20, 0x16, 0x37, 0x1f, 0x68, 0xfa, 0x25 } \ -} -struct IReusableEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetGeneration)(IReusableEvent *pThis, PRUint3= 2 *generation); - - nsresult PR_COM_METHOD (*Reuse)(IReusableEvent *pThis ); - -}; - -struct IReusableEvent -{ - struct IReusableEvent_vtbl *vtbl; -}; -/* End of struct IReusableEvent Declaration */ - - -/* Start of struct IMachineEvent Declaration */ -# define IMACHINEEVENT_IID_STR "92ed7b1a-0d96-40ed-ae46-a564d484325e" -# define IMACHINEEVENT_IID { \ - 0x92ed7b1a, 0x0d96, 0x40ed, \ - { 0xae, 0x46, 0xa5, 0x64, 0xd4, 0x84, 0x32, 0x5e } \ -} -struct IMachineEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMachineId)(IMachineEvent *pThis, PRUnichar= * *machineId); - -}; - -struct IMachineEvent -{ - struct IMachineEvent_vtbl *vtbl; -}; -/* End of struct IMachineEvent Declaration */ - - -/* Start of struct IMachineStateChangedEvent Declaration */ -# define IMACHINESTATECHANGEDEVENT_IID_STR "5748F794-48DF-438D-85EB-98FFD= 70D18C9" -# define IMACHINESTATECHANGEDEVENT_IID { \ - 0x5748F794, 0x48DF, 0x438D, \ - { 0x85, 0xEB, 0x98, 0xFF, 0xD7, 0x0D, 0x18, 0xC9 } \ -} -struct IMachineStateChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetState)(IMachineStateChangedEvent *pThis, P= RUint32 *state); - -}; - -struct IMachineStateChangedEvent -{ - struct IMachineStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IMachineStateChangedEvent Declaration */ - - -/* Start of struct IMachineDataChangedEvent Declaration */ -# define IMACHINEDATACHANGEDEVENT_IID_STR "abe94809-2e88-4436-83d7-50f3e6= 4d0503" -# define IMACHINEDATACHANGEDEVENT_IID { \ - 0xabe94809, 0x2e88, 0x4436, \ - { 0x83, 0xd7, 0x50, 0xf3, 0xe6, 0x4d, 0x05, 0x03 } \ -} -struct IMachineDataChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetTemporary)(IMachineDataChangedEvent *pThis= , PRBool *temporary); - -}; - -struct IMachineDataChangedEvent -{ - struct IMachineDataChangedEvent_vtbl *vtbl; -}; -/* End of struct IMachineDataChangedEvent Declaration */ - - -/* Start of struct IMediumRegisteredEvent Declaration */ -# define IMEDIUMREGISTEREDEVENT_IID_STR "53fac49a-b7f1-4a5a-a4ef-a11dd9c2= a458" -# define IMEDIUMREGISTEREDEVENT_IID { \ - 0x53fac49a, 0xb7f1, 0x4a5a, \ - { 0xa4, 0xef, 0xa1, 0x1d, 0xd9, 0xc2, 0xa4, 0x58 } \ -} -struct IMediumRegisteredEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMediumId)(IMediumRegisteredEvent *pThis, P= RUnichar * *mediumId); - - nsresult PR_COM_METHOD (*GetMediumType)(IMediumRegisteredEvent *pThis,= PRUint32 *mediumType); - - nsresult PR_COM_METHOD (*GetRegistered)(IMediumRegisteredEvent *pThis,= PRBool *registered); - -}; - -struct IMediumRegisteredEvent -{ - struct IMediumRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IMediumRegisteredEvent Declaration */ - - -/* Start of struct IMachineRegisteredEvent Declaration */ -# define IMACHINEREGISTEREDEVENT_IID_STR "c354a762-3ff2-4f2e-8f09-07382ee= 25088" -# define IMACHINEREGISTEREDEVENT_IID { \ - 0xc354a762, 0x3ff2, 0x4f2e, \ - { 0x8f, 0x09, 0x07, 0x38, 0x2e, 0xe2, 0x50, 0x88 } \ -} -struct IMachineRegisteredEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetRegistered)(IMachineRegisteredEvent *pThis= , PRBool *registered); - -}; - -struct IMachineRegisteredEvent -{ - struct IMachineRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IMachineRegisteredEvent Declaration */ - - -/* Start of struct ISessionStateChangedEvent Declaration */ -# define ISESSIONSTATECHANGEDEVENT_IID_STR "714a3eef-799a-4489-86cd-fe8e4= 5b2ff8e" -# define ISESSIONSTATECHANGEDEVENT_IID { \ - 0x714a3eef, 0x799a, 0x4489, \ - { 0x86, 0xcd, 0xfe, 0x8e, 0x45, 0xb2, 0xff, 0x8e } \ -} -struct ISessionStateChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetState)(ISessionStateChangedEvent *pThis, P= RUint32 *state); - -}; - -struct ISessionStateChangedEvent -{ - struct ISessionStateChangedEvent_vtbl *vtbl; -}; -/* End of struct ISessionStateChangedEvent Declaration */ - - -/* Start of struct IGuestPropertyChangedEvent Declaration */ -# define IGUESTPROPERTYCHANGEDEVENT_IID_STR "3f63597a-26f1-4edb-8dd2-6bdd= d0912368" -# define IGUESTPROPERTYCHANGEDEVENT_IID { \ - 0x3f63597a, 0x26f1, 0x4edb, \ - { 0x8d, 0xd2, 0x6b, 0xdd, 0xd0, 0x91, 0x23, 0x68 } \ -} -struct IGuestPropertyChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetName)(IGuestPropertyChangedEvent *pThis, P= RUnichar * *name); - - nsresult PR_COM_METHOD (*GetValue)(IGuestPropertyChangedEvent *pThis, = PRUnichar * *value); - - nsresult PR_COM_METHOD (*GetFlags)(IGuestPropertyChangedEvent *pThis, = PRUnichar * *flags); - -}; - -struct IGuestPropertyChangedEvent -{ - struct IGuestPropertyChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestPropertyChangedEvent Declaration */ - - -/* Start of struct ISnapshotEvent Declaration */ -# define ISNAPSHOTEVENT_IID_STR "21637b0e-34b8-42d3-acfb-7e96daf77c22" -# define ISNAPSHOTEVENT_IID { \ - 0x21637b0e, 0x34b8, 0x42d3, \ - { 0xac, 0xfb, 0x7e, 0x96, 0xda, 0xf7, 0x7c, 0x22 } \ -} -struct ISnapshotEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetSnapshotId)(ISnapshotEvent *pThis, PRUnich= ar * *snapshotId); - -}; - -struct ISnapshotEvent -{ - struct ISnapshotEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotEvent Declaration */ - - -/* Start of struct ISnapshotTakenEvent Declaration */ -# define ISNAPSHOTTAKENEVENT_IID_STR "d27c0b3d-6038-422c-b45e-6d4a0503d9f= 1" -# define ISNAPSHOTTAKENEVENT_IID { \ - 0xd27c0b3d, 0x6038, 0x422c, \ - { 0xb4, 0x5e, 0x6d, 0x4a, 0x05, 0x03, 0xd9, 0xf1 } \ -} -struct ISnapshotTakenEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotTakenEvent -{ - struct ISnapshotTakenEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotTakenEvent Declaration */ - - -/* Start of struct ISnapshotDeletedEvent Declaration */ -# define ISNAPSHOTDELETEDEVENT_IID_STR "c48f3401-4a9e-43f4-b7a7-54bd285e2= 2f4" -# define ISNAPSHOTDELETEDEVENT_IID { \ - 0xc48f3401, 0x4a9e, 0x43f4, \ - { 0xb7, 0xa7, 0x54, 0xbd, 0x28, 0x5e, 0x22, 0xf4 } \ -} -struct ISnapshotDeletedEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotDeletedEvent -{ - struct ISnapshotDeletedEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotDeletedEvent Declaration */ - - -/* Start of struct ISnapshotChangedEvent Declaration */ -# define ISNAPSHOTCHANGEDEVENT_IID_STR "07541941-8079-447a-a33e-47a69c798= 0db" -# define ISNAPSHOTCHANGEDEVENT_IID { \ - 0x07541941, 0x8079, 0x447a, \ - { 0xa3, 0x3e, 0x47, 0xa6, 0x9c, 0x79, 0x80, 0xdb } \ -} -struct ISnapshotChangedEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotChangedEvent -{ - struct ISnapshotChangedEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotChangedEvent Declaration */ - - -/* Start of struct IMousePointerShapeChangedEvent Declaration */ -# define IMOUSEPOINTERSHAPECHANGEDEVENT_IID_STR "a6dcf6e8-416b-4181-8c4a-= 45ec95177aef" -# define IMOUSEPOINTERSHAPECHANGEDEVENT_IID { \ - 0xa6dcf6e8, 0x416b, 0x4181, \ - { 0x8c, 0x4a, 0x45, 0xec, 0x95, 0x17, 0x7a, 0xef } \ -} -struct IMousePointerShapeChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetVisible)(IMousePointerShapeChangedEvent *p= This, PRBool *visible); - - nsresult PR_COM_METHOD (*GetAlpha)(IMousePointerShapeChangedEvent *pTh= is, PRBool *alpha); - - nsresult PR_COM_METHOD (*GetXhot)(IMousePointerShapeChangedEvent *pThi= s, PRUint32 *xhot); - - nsresult PR_COM_METHOD (*GetYhot)(IMousePointerShapeChangedEvent *pThi= s, PRUint32 *yhot); - - nsresult PR_COM_METHOD (*GetWidth)(IMousePointerShapeChangedEvent *pTh= is, PRUint32 *width); - - nsresult PR_COM_METHOD (*GetHeight)(IMousePointerShapeChangedEvent *pT= his, PRUint32 *height); - - nsresult PR_COM_METHOD (*GetShape)(IMousePointerShapeChangedEvent *pTh= is, PRUint32 *shapeSize, PRUint8 **shape); - -}; - -struct IMousePointerShapeChangedEvent -{ - struct IMousePointerShapeChangedEvent_vtbl *vtbl; -}; -/* End of struct IMousePointerShapeChangedEvent Declaration */ - - -/* Start of struct IMouseCapabilityChangedEvent Declaration */ -# define IMOUSECAPABILITYCHANGEDEVENT_IID_STR "d633ad48-820c-4207-b46c-6b= d3596640d5" -# define IMOUSECAPABILITYCHANGEDEVENT_IID { \ - 0xd633ad48, 0x820c, 0x4207, \ - { 0xb4, 0x6c, 0x6b, 0xd3, 0x59, 0x66, 0x40, 0xd5 } \ -} -struct IMouseCapabilityChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetSupportsAbsolute)(IMouseCapabilityChangedE= vent *pThis, PRBool *supportsAbsolute); - - nsresult PR_COM_METHOD (*GetSupportsRelative)(IMouseCapabilityChangedE= vent *pThis, PRBool *supportsRelative); - - nsresult PR_COM_METHOD (*GetNeedsHostCursor)(IMouseCapabilityChangedEv= ent *pThis, PRBool *needsHostCursor); - -}; - -struct IMouseCapabilityChangedEvent -{ - struct IMouseCapabilityChangedEvent_vtbl *vtbl; -}; -/* End of struct IMouseCapabilityChangedEvent Declaration */ - - -/* Start of struct IKeyboardLedsChangedEvent Declaration */ -# define IKEYBOARDLEDSCHANGEDEVENT_IID_STR "6DDEF35E-4737-457B-99FC-BC52C= 851A44F" -# define IKEYBOARDLEDSCHANGEDEVENT_IID { \ - 0x6DDEF35E, 0x4737, 0x457B, \ - { 0x99, 0xFC, 0xBC, 0x52, 0xC8, 0x51, 0xA4, 0x4F } \ -} -struct IKeyboardLedsChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetNumLock)(IKeyboardLedsChangedEvent *pThis,= PRBool *numLock); - - nsresult PR_COM_METHOD (*GetCapsLock)(IKeyboardLedsChangedEvent *pThis= , PRBool *capsLock); - - nsresult PR_COM_METHOD (*GetScrollLock)(IKeyboardLedsChangedEvent *pTh= is, PRBool *scrollLock); - -}; - -struct IKeyboardLedsChangedEvent -{ - struct IKeyboardLedsChangedEvent_vtbl *vtbl; -}; -/* End of struct IKeyboardLedsChangedEvent Declaration */ - - -/* Start of struct IStateChangedEvent Declaration */ -# define ISTATECHANGEDEVENT_IID_STR "4376693C-CF37-453B-9289-3B0F521CAF27" -# define ISTATECHANGEDEVENT_IID { \ - 0x4376693C, 0xCF37, 0x453B, \ - { 0x92, 0x89, 0x3B, 0x0F, 0x52, 0x1C, 0xAF, 0x27 } \ -} -struct IStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetState)(IStateChangedEvent *pThis, PRUint32= *state); - -}; - -struct IStateChangedEvent -{ - struct IStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IStateChangedEvent Declaration */ - - -/* Start of struct IAdditionsStateChangedEvent Declaration */ -# define IADDITIONSSTATECHANGEDEVENT_IID_STR "D70F7915-DA7C-44C8-A7AC-9F1= 73490446A" -# define IADDITIONSSTATECHANGEDEVENT_IID { \ - 0xD70F7915, 0xDA7C, 0x44C8, \ - { 0xA7, 0xAC, 0x9F, 0x17, 0x34, 0x90, 0x44, 0x6A } \ -} -struct IAdditionsStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IAdditionsStateChangedEvent -{ - struct IAdditionsStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IAdditionsStateChangedEvent Declaration */ - - -/* Start of struct INetworkAdapterChangedEvent Declaration */ -# define INETWORKADAPTERCHANGEDEVENT_IID_STR "08889892-1EC6-4883-801D-77F= 56CFD0103" -# define INETWORKADAPTERCHANGEDEVENT_IID { \ - 0x08889892, 0x1EC6, 0x4883, \ - { 0x80, 0x1D, 0x77, 0xF5, 0x6C, 0xFD, 0x01, 0x03 } \ -} -struct INetworkAdapterChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetNetworkAdapter)(INetworkAdapterChangedEven= t *pThis, INetworkAdapter * *networkAdapter); - -}; - -struct INetworkAdapterChangedEvent -{ - struct INetworkAdapterChangedEvent_vtbl *vtbl; -}; -/* End of struct INetworkAdapterChangedEvent Declaration */ - - -/* Start of struct ISerialPortChangedEvent Declaration */ -# define ISERIALPORTCHANGEDEVENT_IID_STR "3BA329DC-659C-488B-835C-4ECA7AE= 71C6C" -# define ISERIALPORTCHANGEDEVENT_IID { \ - 0x3BA329DC, 0x659C, 0x488B, \ - { 0x83, 0x5C, 0x4E, 0xCA, 0x7A, 0xE7, 0x1C, 0x6C } \ -} -struct ISerialPortChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetSerialPort)(ISerialPortChangedEvent *pThis= , ISerialPort * *serialPort); - -}; - -struct ISerialPortChangedEvent -{ - struct ISerialPortChangedEvent_vtbl *vtbl; -}; -/* End of struct ISerialPortChangedEvent Declaration */ - - -/* Start of struct IParallelPortChangedEvent Declaration */ -# define IPARALLELPORTCHANGEDEVENT_IID_STR "813C99FC-9849-4F47-813E-24A75= DC85615" -# define IPARALLELPORTCHANGEDEVENT_IID { \ - 0x813C99FC, 0x9849, 0x4F47, \ - { 0x81, 0x3E, 0x24, 0xA7, 0x5D, 0xC8, 0x56, 0x15 } \ -} -struct IParallelPortChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetParallelPort)(IParallelPortChangedEvent *p= This, IParallelPort * *parallelPort); - -}; - -struct IParallelPortChangedEvent -{ - struct IParallelPortChangedEvent_vtbl *vtbl; -}; -/* End of struct IParallelPortChangedEvent Declaration */ - - -/* Start of struct IStorageControllerChangedEvent Declaration */ -# define ISTORAGECONTROLLERCHANGEDEVENT_IID_STR "715212BF-DA59-426E-8230-= 3831FAA52C56" -# define ISTORAGECONTROLLERCHANGEDEVENT_IID { \ - 0x715212BF, 0xDA59, 0x426E, \ - { 0x82, 0x30, 0x38, 0x31, 0xFA, 0xA5, 0x2C, 0x56 } \ -} -struct IStorageControllerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IStorageControllerChangedEvent -{ - struct IStorageControllerChangedEvent_vtbl *vtbl; -}; -/* End of struct IStorageControllerChangedEvent Declaration */ - - -/* Start of struct IMediumChangedEvent Declaration */ -# define IMEDIUMCHANGEDEVENT_IID_STR "0FE2DA40-5637-472A-9736-72019EABD7D= E" -# define IMEDIUMCHANGEDEVENT_IID { \ - 0x0FE2DA40, 0x5637, 0x472A, \ - { 0x97, 0x36, 0x72, 0x01, 0x9E, 0xAB, 0xD7, 0xDE } \ -} -struct IMediumChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMediumAttachment)(IMediumChangedEvent *pTh= is, IMediumAttachment * *mediumAttachment); - -}; - -struct IMediumChangedEvent -{ - struct IMediumChangedEvent_vtbl *vtbl; -}; -/* End of struct IMediumChangedEvent Declaration */ - - -/* Start of struct IClipboardModeChangedEvent Declaration */ -# define ICLIPBOARDMODECHANGEDEVENT_IID_STR "cac21692-7997-4595-a731-3a50= 9db604e5" -# define ICLIPBOARDMODECHANGEDEVENT_IID { \ - 0xcac21692, 0x7997, 0x4595, \ - { 0xa7, 0x31, 0x3a, 0x50, 0x9d, 0xb6, 0x04, 0xe5 } \ -} -struct IClipboardModeChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetClipboardMode)(IClipboardModeChangedEvent = *pThis, PRUint32 *clipboardMode); - -}; - -struct IClipboardModeChangedEvent -{ - struct IClipboardModeChangedEvent_vtbl *vtbl; -}; -/* End of struct IClipboardModeChangedEvent Declaration */ - - -/* Start of struct IDragAndDropModeChangedEvent Declaration */ -# define IDRAGANDDROPMODECHANGEDEVENT_IID_STR "e90b8850-ac8e-4dff-8059-41= 00ae2c3c3d" -# define IDRAGANDDROPMODECHANGEDEVENT_IID { \ - 0xe90b8850, 0xac8e, 0x4dff, \ - { 0x80, 0x59, 0x41, 0x00, 0xae, 0x2c, 0x3c, 0x3d } \ -} -struct IDragAndDropModeChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetDragAndDropMode)(IDragAndDropModeChangedEv= ent *pThis, PRUint32 *dragAndDropMode); - -}; - -struct IDragAndDropModeChangedEvent -{ - struct IDragAndDropModeChangedEvent_vtbl *vtbl; -}; -/* End of struct IDragAndDropModeChangedEvent Declaration */ - - -/* Start of struct ICPUChangedEvent Declaration */ -# define ICPUCHANGEDEVENT_IID_STR "4da2dec7-71b2-4817-9a64-4ed12c17388e" -# define ICPUCHANGEDEVENT_IID { \ - 0x4da2dec7, 0x71b2, 0x4817, \ - { 0x9a, 0x64, 0x4e, 0xd1, 0x2c, 0x17, 0x38, 0x8e } \ -} -struct ICPUChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetCPU)(ICPUChangedEvent *pThis, PRUint32 *CP= U); - - nsresult PR_COM_METHOD (*GetAdd)(ICPUChangedEvent *pThis, PRBool *add); - -}; - -struct ICPUChangedEvent -{ - struct ICPUChangedEvent_vtbl *vtbl; -}; -/* End of struct ICPUChangedEvent Declaration */ - - -/* Start of struct ICPUExecutionCapChangedEvent Declaration */ -# define ICPUEXECUTIONCAPCHANGEDEVENT_IID_STR "dfa7e4f5-b4a4-44ce-85a8-12= 7ac5eb59dc" -# define ICPUEXECUTIONCAPCHANGEDEVENT_IID { \ - 0xdfa7e4f5, 0xb4a4, 0x44ce, \ - { 0x85, 0xa8, 0x12, 0x7a, 0xc5, 0xeb, 0x59, 0xdc } \ -} -struct ICPUExecutionCapChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetExecutionCap)(ICPUExecutionCapChangedEvent= *pThis, PRUint32 *executionCap); - -}; - -struct ICPUExecutionCapChangedEvent -{ - struct ICPUExecutionCapChangedEvent_vtbl *vtbl; -}; -/* End of struct ICPUExecutionCapChangedEvent Declaration */ - - -/* Start of struct IGuestKeyboardEvent Declaration */ -# define IGUESTKEYBOARDEVENT_IID_STR "88394258-7006-40d4-b339-472ee380184= 4" -# define IGUESTKEYBOARDEVENT_IID { \ - 0x88394258, 0x7006, 0x40d4, \ - { 0xb3, 0x39, 0x47, 0x2e, 0xe3, 0x80, 0x18, 0x44 } \ -} -struct IGuestKeyboardEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetScancodes)(IGuestKeyboardEvent *pThis, PRU= int32 *scancodesSize, PRInt32 **scancodes); - -}; - -struct IGuestKeyboardEvent -{ - struct IGuestKeyboardEvent_vtbl *vtbl; -}; -/* End of struct IGuestKeyboardEvent Declaration */ - - -/* Start of struct IGuestMouseEvent Declaration */ -# define IGUESTMOUSEEVENT_IID_STR "1f85d35c-c524-40ff-8e98-307000df0992" -# define IGUESTMOUSEEVENT_IID { \ - 0x1f85d35c, 0xc524, 0x40ff, \ - { 0x8e, 0x98, 0x30, 0x70, 0x00, 0xdf, 0x09, 0x92 } \ -} -struct IGuestMouseEvent_vtbl -{ - struct IReusableEvent_vtbl ireusableevent; - - nsresult PR_COM_METHOD (*GetAbsolute)(IGuestMouseEvent *pThis, PRBool = *absolute); - - nsresult PR_COM_METHOD (*GetX)(IGuestMouseEvent *pThis, PRInt32 *x); - - nsresult PR_COM_METHOD (*GetY)(IGuestMouseEvent *pThis, PRInt32 *y); - - nsresult PR_COM_METHOD (*GetZ)(IGuestMouseEvent *pThis, PRInt32 *z); - - nsresult PR_COM_METHOD (*GetW)(IGuestMouseEvent *pThis, PRInt32 *w); - - nsresult PR_COM_METHOD (*GetButtons)(IGuestMouseEvent *pThis, PRInt32 = *buttons); - -}; - -struct IGuestMouseEvent -{ - struct IGuestMouseEvent_vtbl *vtbl; -}; -/* End of struct IGuestMouseEvent Declaration */ - - -/* Start of struct IVRDEServerChangedEvent Declaration */ -# define IVRDESERVERCHANGEDEVENT_IID_STR "a06fd66a-3188-4c8c-8756-1395e8c= b691c" -# define IVRDESERVERCHANGEDEVENT_IID { \ - 0xa06fd66a, 0x3188, 0x4c8c, \ - { 0x87, 0x56, 0x13, 0x95, 0xe8, 0xcb, 0x69, 0x1c } \ -} -struct IVRDEServerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IVRDEServerChangedEvent -{ - struct IVRDEServerChangedEvent_vtbl *vtbl; -}; -/* End of struct IVRDEServerChangedEvent Declaration */ - - -/* Start of struct IVRDEServerInfoChangedEvent Declaration */ -# define IVRDESERVERINFOCHANGEDEVENT_IID_STR "dd6a1080-e1b7-4339-a549-f08= 78115596e" -# define IVRDESERVERINFOCHANGEDEVENT_IID { \ - 0xdd6a1080, 0xe1b7, 0x4339, \ - { 0xa5, 0x49, 0xf0, 0x87, 0x81, 0x15, 0x59, 0x6e } \ -} -struct IVRDEServerInfoChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IVRDEServerInfoChangedEvent -{ - struct IVRDEServerInfoChangedEvent_vtbl *vtbl; -}; -/* End of struct IVRDEServerInfoChangedEvent Declaration */ - - -/* Start of struct IUSBControllerChangedEvent Declaration */ -# define IUSBCONTROLLERCHANGEDEVENT_IID_STR "93BADC0C-61D9-4940-A084-E6BB= 29AF3D83" -# define IUSBCONTROLLERCHANGEDEVENT_IID { \ - 0x93BADC0C, 0x61D9, 0x4940, \ - { 0xA0, 0x84, 0xE6, 0xBB, 0x29, 0xAF, 0x3D, 0x83 } \ -} -struct IUSBControllerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IUSBControllerChangedEvent -{ - struct IUSBControllerChangedEvent_vtbl *vtbl; -}; -/* End of struct IUSBControllerChangedEvent Declaration */ - - -/* Start of struct IUSBDeviceStateChangedEvent Declaration */ -# define IUSBDEVICESTATECHANGEDEVENT_IID_STR "806da61b-6679-422a-b629-51b= 06b0c6d93" -# define IUSBDEVICESTATECHANGEDEVENT_IID { \ - 0x806da61b, 0x6679, 0x422a, \ - { 0xb6, 0x29, 0x51, 0xb0, 0x6b, 0x0c, 0x6d, 0x93 } \ -} -struct IUSBDeviceStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetDevice)(IUSBDeviceStateChangedEvent *pThis= , IUSBDevice * *device); - - nsresult PR_COM_METHOD (*GetAttached)(IUSBDeviceStateChangedEvent *pTh= is, PRBool *attached); - - nsresult PR_COM_METHOD (*GetError)(IUSBDeviceStateChangedEvent *pThis,= IVirtualBoxErrorInfo * *error); - -}; - -struct IUSBDeviceStateChangedEvent -{ - struct IUSBDeviceStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IUSBDeviceStateChangedEvent Declaration */ - - -/* Start of struct ISharedFolderChangedEvent Declaration */ -# define ISHAREDFOLDERCHANGEDEVENT_IID_STR "B66349B5-3534-4239-B2DE-8E153= 5D94C0B" -# define ISHAREDFOLDERCHANGEDEVENT_IID { \ - 0xB66349B5, 0x3534, 0x4239, \ - { 0xB2, 0xDE, 0x8E, 0x15, 0x35, 0xD9, 0x4C, 0x0B } \ -} -struct ISharedFolderChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetScope)(ISharedFolderChangedEvent *pThis, P= RUint32 *scope); - -}; - -struct ISharedFolderChangedEvent -{ - struct ISharedFolderChangedEvent_vtbl *vtbl; -}; -/* End of struct ISharedFolderChangedEvent Declaration */ - - -/* Start of struct IRuntimeErrorEvent Declaration */ -# define IRUNTIMEERROREVENT_IID_STR "883DD18B-0721-4CDE-867C-1A82ABAF914C" -# define IRUNTIMEERROREVENT_IID { \ - 0x883DD18B, 0x0721, 0x4CDE, \ - { 0x86, 0x7C, 0x1A, 0x82, 0xAB, 0xAF, 0x91, 0x4C } \ -} -struct IRuntimeErrorEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetFatal)(IRuntimeErrorEvent *pThis, PRBool *= fatal); - - nsresult PR_COM_METHOD (*GetId)(IRuntimeErrorEvent *pThis, PRUnichar *= *id); - - nsresult PR_COM_METHOD (*GetMessage)(IRuntimeErrorEvent *pThis, PRUnic= har * *message); - -}; - -struct IRuntimeErrorEvent -{ - struct IRuntimeErrorEvent_vtbl *vtbl; -}; -/* End of struct IRuntimeErrorEvent Declaration */ - - -/* Start of struct IEventSourceChangedEvent Declaration */ -# define IEVENTSOURCECHANGEDEVENT_IID_STR "e7932cb8-f6d4-4ab6-9cbf-558eb8= 959a6a" -# define IEVENTSOURCECHANGEDEVENT_IID { \ - 0xe7932cb8, 0xf6d4, 0x4ab6, \ - { 0x9c, 0xbf, 0x55, 0x8e, 0xb8, 0x95, 0x9a, 0x6a } \ -} -struct IEventSourceChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetListener)(IEventSourceChangedEvent *pThis,= IEventListener * *listener); - - nsresult PR_COM_METHOD (*GetAdd)(IEventSourceChangedEvent *pThis, PRBo= ol *add); - -}; - -struct IEventSourceChangedEvent -{ - struct IEventSourceChangedEvent_vtbl *vtbl; -}; -/* End of struct IEventSourceChangedEvent Declaration */ - - -/* Start of struct IExtraDataChangedEvent Declaration */ -# define IEXTRADATACHANGEDEVENT_IID_STR "024F00CE-6E0B-492A-A8D0-968472A9= 4DC7" -# define IEXTRADATACHANGEDEVENT_IID { \ - 0x024F00CE, 0x6E0B, 0x492A, \ - { 0xA8, 0xD0, 0x96, 0x84, 0x72, 0xA9, 0x4D, 0xC7 } \ -} -struct IExtraDataChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetMachineId)(IExtraDataChangedEvent *pThis, = PRUnichar * *machineId); - - nsresult PR_COM_METHOD (*GetKey)(IExtraDataChangedEvent *pThis, PRUnic= har * *key); - - nsresult PR_COM_METHOD (*GetValue)(IExtraDataChangedEvent *pThis, PRUn= ichar * *value); - -}; - -struct IExtraDataChangedEvent -{ - struct IExtraDataChangedEvent_vtbl *vtbl; -}; -/* End of struct IExtraDataChangedEvent Declaration */ - - -/* Start of struct IVetoEvent Declaration */ -# define IVETOEVENT_IID_STR "9a1a4130-69fe-472f-ac10-c6fa25d75007" -# define IVETOEVENT_IID { \ - 0x9a1a4130, 0x69fe, 0x472f, \ - { 0xac, 0x10, 0xc6, 0xfa, 0x25, 0xd7, 0x50, 0x07 } \ -} -struct IVetoEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*AddVeto)( - IVetoEvent *pThis, - PRUnichar * reason - ); - - nsresult PR_COM_METHOD (*IsVetoed)( - IVetoEvent *pThis, - PRBool * result - ); - - nsresult PR_COM_METHOD (*GetVetos)( - IVetoEvent *pThis, - PRUint32 *resultSize, - PRUnichar *** result - ); - -}; - -struct IVetoEvent -{ - struct IVetoEvent_vtbl *vtbl; -}; -/* End of struct IVetoEvent Declaration */ - - -/* Start of struct IExtraDataCanChangeEvent Declaration */ -# define IEXTRADATACANCHANGEEVENT_IID_STR "245d88bd-800a-40f8-87a6-170d02= 249a55" -# define IEXTRADATACANCHANGEEVENT_IID { \ - 0x245d88bd, 0x800a, 0x40f8, \ - { 0x87, 0xa6, 0x17, 0x0d, 0x02, 0x24, 0x9a, 0x55 } \ -} -struct IExtraDataCanChangeEvent_vtbl -{ - struct IVetoEvent_vtbl ivetoevent; - - nsresult PR_COM_METHOD (*GetMachineId)(IExtraDataCanChangeEvent *pThis= , PRUnichar * *machineId); - - nsresult PR_COM_METHOD (*GetKey)(IExtraDataCanChangeEvent *pThis, PRUn= ichar * *key); - - nsresult PR_COM_METHOD (*GetValue)(IExtraDataCanChangeEvent *pThis, PR= Unichar * *value); - -}; - -struct IExtraDataCanChangeEvent -{ - struct IExtraDataCanChangeEvent_vtbl *vtbl; -}; -/* End of struct IExtraDataCanChangeEvent Declaration */ - - -/* Start of struct ICanShowWindowEvent Declaration */ -# define ICANSHOWWINDOWEVENT_IID_STR "adf292b0-92c9-4a77-9d35-e058b39fe0b= 9" -# define ICANSHOWWINDOWEVENT_IID { \ - 0xadf292b0, 0x92c9, 0x4a77, \ - { 0x9d, 0x35, 0xe0, 0x58, 0xb3, 0x9f, 0xe0, 0xb9 } \ -} -struct ICanShowWindowEvent_vtbl -{ - struct IVetoEvent_vtbl ivetoevent; - -}; - -struct ICanShowWindowEvent -{ - struct ICanShowWindowEvent_vtbl *vtbl; -}; -/* End of struct ICanShowWindowEvent Declaration */ - - -/* Start of struct IShowWindowEvent Declaration */ -# define ISHOWWINDOWEVENT_IID_STR "B0A0904D-2F05-4D28-855F-488F96BAD2B2" -# define ISHOWWINDOWEVENT_IID { \ - 0xB0A0904D, 0x2F05, 0x4D28, \ - { 0x85, 0x5F, 0x48, 0x8F, 0x96, 0xBA, 0xD2, 0xB2 } \ -} -struct IShowWindowEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetWinId)(IShowWindowEvent *pThis, PRInt64 *w= inId); - nsresult PR_COM_METHOD (*SetWinId)(IShowWindowEvent *pThis, PRInt64 wi= nId); - -}; - -struct IShowWindowEvent -{ - struct IShowWindowEvent_vtbl *vtbl; -}; -/* End of struct IShowWindowEvent Declaration */ - - -/* Start of struct INATRedirectEvent Declaration */ -# define INATREDIRECTEVENT_IID_STR "24eef068-c380-4510-bc7c-19314a7352f1" -# define INATREDIRECTEVENT_IID { \ - 0x24eef068, 0xc380, 0x4510, \ - { 0xbc, 0x7c, 0x19, 0x31, 0x4a, 0x73, 0x52, 0xf1 } \ -} -struct INATRedirectEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetSlot)(INATRedirectEvent *pThis, PRUint32 *= slot); - - nsresult PR_COM_METHOD (*GetRemove)(INATRedirectEvent *pThis, PRBool *= remove); - - nsresult PR_COM_METHOD (*GetName)(INATRedirectEvent *pThis, PRUnichar = * *name); - - nsresult PR_COM_METHOD (*GetProto)(INATRedirectEvent *pThis, PRUint32 = *proto); - - nsresult PR_COM_METHOD (*GetHostIP)(INATRedirectEvent *pThis, PRUnicha= r * *hostIP); - - nsresult PR_COM_METHOD (*GetHostPort)(INATRedirectEvent *pThis, PRInt3= 2 *hostPort); - - nsresult PR_COM_METHOD (*GetGuestIP)(INATRedirectEvent *pThis, PRUnich= ar * *guestIP); - - nsresult PR_COM_METHOD (*GetGuestPort)(INATRedirectEvent *pThis, PRInt= 32 *guestPort); - -}; - -struct INATRedirectEvent -{ - struct INATRedirectEvent_vtbl *vtbl; -}; -/* End of struct INATRedirectEvent Declaration */ - - -/* Start of struct IHostPCIDevicePlugEvent Declaration */ -# define IHOSTPCIDEVICEPLUGEVENT_IID_STR "a0bad6df-d612-47d3-89d4-db39925= 33948" -# define IHOSTPCIDEVICEPLUGEVENT_IID { \ - 0xa0bad6df, 0xd612, 0x47d3, \ - { 0x89, 0xd4, 0xdb, 0x39, 0x92, 0x53, 0x39, 0x48 } \ -} -struct IHostPCIDevicePlugEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult PR_COM_METHOD (*GetPlugged)(IHostPCIDevicePlugEvent *pThis, P= RBool *plugged); - - nsresult PR_COM_METHOD (*GetSuccess)(IHostPCIDevicePlugEvent *pThis, P= RBool *success); - - nsresult PR_COM_METHOD (*GetAttachment)(IHostPCIDevicePlugEvent *pThis= , IPCIDeviceAttachment * *attachment); - - nsresult PR_COM_METHOD (*GetMessage)(IHostPCIDevicePlugEvent *pThis, P= RUnichar * *message); - -}; - -struct IHostPCIDevicePlugEvent -{ - struct IHostPCIDevicePlugEvent_vtbl *vtbl; -}; -/* End of struct IHostPCIDevicePlugEvent Declaration */ - - -/* Start of struct IVBoxSVCAvailabilityChangedEvent Declaration */ -# define IVBOXSVCAVAILABILITYCHANGEDEVENT_IID_STR "97c78fcd-d4fc-485f-861= 3-5af88bfcfcdc" -# define IVBOXSVCAVAILABILITYCHANGEDEVENT_IID { \ - 0x97c78fcd, 0xd4fc, 0x485f, \ - { 0x86, 0x13, 0x5a, 0xf8, 0x8b, 0xfc, 0xfc, 0xdc } \ -} -struct IVBoxSVCAvailabilityChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetAvailable)(IVBoxSVCAvailabilityChangedEven= t *pThis, PRBool *available); - -}; - -struct IVBoxSVCAvailabilityChangedEvent -{ - struct IVBoxSVCAvailabilityChangedEvent_vtbl *vtbl; -}; -/* End of struct IVBoxSVCAvailabilityChangedEvent Declaration */ - - -/* Start of struct IBandwidthGroupChangedEvent Declaration */ -# define IBANDWIDTHGROUPCHANGEDEVENT_IID_STR "334df94a-7556-4cbc-8c04-043= 096b02d82" -# define IBANDWIDTHGROUPCHANGEDEVENT_IID { \ - 0x334df94a, 0x7556, 0x4cbc, \ - { 0x8c, 0x04, 0x04, 0x30, 0x96, 0xb0, 0x2d, 0x82 } \ -} -struct IBandwidthGroupChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetBandwidthGroup)(IBandwidthGroupChangedEven= t *pThis, IBandwidthGroup * *bandwidthGroup); - -}; - -struct IBandwidthGroupChangedEvent -{ - struct IBandwidthGroupChangedEvent_vtbl *vtbl; -}; -/* End of struct IBandwidthGroupChangedEvent Declaration */ - - -/* Start of struct IGuestMonitorChangedEvent Declaration */ -# define IGUESTMONITORCHANGEDEVENT_IID_STR "0f7b8a22-c71f-4a36-8e5f-a77d0= 1d76090" -# define IGUESTMONITORCHANGEDEVENT_IID { \ - 0x0f7b8a22, 0xc71f, 0x4a36, \ - { 0x8e, 0x5f, 0xa7, 0x7d, 0x01, 0xd7, 0x60, 0x90 } \ -} -struct IGuestMonitorChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetChangeType)(IGuestMonitorChangedEvent *pTh= is, PRUint32 *changeType); - - nsresult PR_COM_METHOD (*GetScreenId)(IGuestMonitorChangedEvent *pThis= , PRUint32 *screenId); - - nsresult PR_COM_METHOD (*GetOriginX)(IGuestMonitorChangedEvent *pThis,= PRUint32 *originX); - - nsresult PR_COM_METHOD (*GetOriginY)(IGuestMonitorChangedEvent *pThis,= PRUint32 *originY); - - nsresult PR_COM_METHOD (*GetWidth)(IGuestMonitorChangedEvent *pThis, P= RUint32 *width); - - nsresult PR_COM_METHOD (*GetHeight)(IGuestMonitorChangedEvent *pThis, = PRUint32 *height); - -}; - -struct IGuestMonitorChangedEvent -{ - struct IGuestMonitorChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestMonitorChangedEvent Declaration */ - - -/* Start of struct IStorageDeviceChangedEvent Declaration */ -# define ISTORAGEDEVICECHANGEDEVENT_IID_STR "8a5c2dce-e341-49d4-afce-c959= 79f7d70c" -# define ISTORAGEDEVICECHANGEDEVENT_IID { \ - 0x8a5c2dce, 0xe341, 0x49d4, \ - { 0xaf, 0xce, 0xc9, 0x59, 0x79, 0xf7, 0xd7, 0x0c } \ -} -struct IStorageDeviceChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult PR_COM_METHOD (*GetStorageDevice)(IStorageDeviceChangedEvent = *pThis, IMediumAttachment * *storageDevice); - - nsresult PR_COM_METHOD (*GetRemoved)(IStorageDeviceChangedEvent *pThis= , PRBool *removed); - -}; - -struct IStorageDeviceChangedEvent -{ - struct IStorageDeviceChangedEvent_vtbl *vtbl; -}; -/* End of struct IStorageDeviceChangedEvent Declaration */ - - - -# define NS_VIRTUALBOX_CID { \ - 0xB1A7A4F2, 0x47B9, 0x4A1E, \ - { 0x82, 0xB2, 0x07, 0xCC, 0xD5, 0x32, 0x3C, 0x3F } \ -} -# define NS_VIRTUALBOX_CONTRACTID "@virtualbox.org/VirtualBox;1" -/* for compatibility with Win32 */ -# define CLSID_VirtualBox (nsCID) NS_VIRTUALBOX_CID - - - -# define NS_VIRTUALBOXCLIENT_CID { \ - 0xdd3fc71d, 0x26c0, 0x4fe1, \ - { 0xbf, 0x6f, 0x67, 0xf6, 0x33, 0x26, 0x5b, 0xba } \ -} -# define NS_VIRTUALBOXCLIENT_CONTRACTID "@virtualbox.org/VirtualBoxClient= ;1" -/* for compatibility with Win32 */ -# define CLSID_VirtualBoxClient (nsCID) NS_VIRTUALBOXCLIENT_CID - - - -# define NS_SESSION_CID { \ - 0x3C02F46D, 0xC9D2, 0x4F11, \ - { 0xA3, 0x84, 0x53, 0xF0, 0xCF, 0x91, 0x72, 0x14 } \ -} -# define NS_SESSION_CONTRACTID "@virtualbox.org/Session;1" -/* for compatibility with Win32 */ -# define CLSID_Session (nsCID) NS_SESSION_CID - - - -# endif /* !__cplusplus */ - -# ifdef IN_VBOXXPCOMC -# define VBOXXPCOMC_DECL(type) PR_EXPORT(type) -# else -# define VBOXXPCOMC_DECL(type) PR_IMPORT(type) -# endif - -# ifdef __cplusplus -extern "C" { -# endif - - -/** - * Function table for dynamic linking. - * Use VBoxGetFunctions() to obtain the pointer to it. - */ -typedef struct VBOXXPCOMC -{ - /** The size of the structure. */ - unsigned cb; - /** The structure version. */ - unsigned uVersion; - - /** Gets the VirtualBox version, major * 1000000 + minor * 1000 + patc= h. */ - unsigned int (*pfnGetVersion)(void); - - /** Gets the VirtualBox API version, major * 1000 + minor, e.g. 4003. = */ - unsigned int (*pfnGetAPIVersion)(void); - - /** - * New and preferred way to initialize the C bindings for an API clien= t. - * - * This way is much more flexible, as it can easily handle multiple - * sessions (important with more complicated API clients, including - * multithreaded ones), and even VBoxSVC crashes can be detected and - * processed appropriately by listening for events from the associated - * event source in VirtualBoxClient. It is completely up to the client - * to decide what to do (terminate or continue after getting new - * object references to server-side objects). Must be called in the - * primary thread of the client, later API use can be done in any - * thread. - * - * Note that the returned reference is owned by the caller, and thus i= t's - * the caller's responsibility to handle the reference count appropria= tely. - * - * @param pszVirtualBoxClientIID pass IVIRTUALBOXCLIENT_IID_STR - * @param ppVirtualBoxClient output parameter for VirtualBoxCli= ent - * reference, handled as usual with XPCOM. - * @returns XPCOM error code - */ - nsresult PR_COM_METHOD (*pfnClientInitialize)(const char *pszVirtualBo= xClientIID, - IVirtualBoxClient **ppVirtualBoxClient= ); - /** - * Uninitialize the C bindings for an API client. - * - * Should be called when the API client is about to terminate and does - * not want to use the C bindings any more. It will invalidate all - * object references. It is possible, however, to change one's mind, - * and call pfnClientInitialize again to continue using the API, as lo= ng - * as none of the object references from before the re-initialization - * are used. Must be called from the primary thread of the client. - */ - void (*pfnClientUninitialize)(void); - - /** - * Deprecated way to initialize the C bindings and getting important - * object references. Kept for backwards compatibility. - * - * If any returned reference is NULL then the initialization failed. - * Note that the returned references are owned by the C bindings. The - * number of calls to Release in the client code must match the number - * of calls to AddRef, and additionally at no point in time there can - * be more Release calls than AddRef calls. - * - * @param pszVirtualBoxIID pass IVIRTUALBOX_IID_STR - * @param ppVirtualBox output parameter for VirtualBox refere= nce, - * owned by C bindings - * @param pszSessionIID pass ISESSION_IID_STR - * @param ppSession output parameter for Session reference, - * owned by C bindings - */ - void (*pfnComInitialize)(const char *pszVirtualBoxIID, - IVirtualBox **ppVirtualBox, - const char *pszSessionIID, - ISession **ppSession); - /** - * Deprecated way to uninitialize the C bindings for an API client. - * Kept for backwards compatibility and must be used if the C bindings - * were initialized using pfnComInitialize. */ - void (*pfnComUninitialize)(void); - - /** - * Free memory managed by XPCOM. - * - * @param pv pointer to memory block to be freed - */ - void (*pfnComUnallocMem)(void *pv); - - /** - * Convert string from UTF-16 encoding to UTF-8 encoding. - * - * @param pwszString input string - * @param ppszString output string - * @returns IPRT status code - */ - int (*pfnUtf16ToUtf8)(const PRUnichar *pwszString, char **ppszString= ); - /** - * Convert string from UTF-8 encoding to UTF-16 encoding. - * - * @param pszString input string - * @param ppwszString output string - * @returns IPRT status code - */ - int (*pfnUtf8ToUtf16)(const char *pszString, PRUnichar **ppwszString= ); - /** - * Free memory returned by pfnUtf16ToUtf8. Do not use for anything els= e. - * - * @param pszString string to be freed. - */ - void (*pfnUtf8Free)(char *pszString); - /** - * Free memory returned by pfnUtf8ToUtf16. Do not use for anything els= e. - * - * @param pwszString string to be freed. - */ - void (*pfnUtf16Free)(PRUnichar *pwszString); - - /** - * Get main XPCOM event queue. - * - * @param ppEventQueue output parameter for nsIEventQueue referen= ce, - * owned by C bindings. - */ - void (*pfnGetEventQueue)(nsIEventQueue **ppEventQueue); - - /** - * Get current XPCOM exception. - * - * @param ppException output parameter for nsIException referenc= e, - * may be @c NULL if no exception object has been created= by - * a previous XPCOM call. - * @returns XPCOM error code - */ - nsresult PR_COM_METHOD (*pfnGetException)(nsIException **ppException); - /** - * Clears current XPCOM exception. - * - * @returns XPCOM error code - */ - nsresult PR_COM_METHOD (*pfnClearException)(void); - - /** Tail version, same as uVersion. */ - unsigned uEndVersion; -} VBOXXPCOMC; -/** Pointer to a const VBoxXPCOMC function table. */ -typedef VBOXXPCOMC const *PCVBOXXPCOM; - -/** The current interface version. - * For use with VBoxGetXPCOMCFunctions and to be found in - * VBOXXPCOMC::uVersion. */ -# define VBOX_XPCOMC_VERSION 0x00030000U - -VBOXXPCOMC_DECL(PCVBOXXPCOM) VBoxGetXPCOMCFunctions(unsigned uVersion); -/** Typedef for VBoxGetXPCOMCFunctions. */ -typedef PCVBOXXPCOM (*PFNVBOXGETXPCOMCFUNCTIONS)(unsigned uVersion); - -/** The symbol name of VBoxGetXPCOMCFunctions. */ -# if defined(__OS2__) -# define VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME "_VBoxGetXPCOMCFunctions" -# else -# define VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME "VBoxGetXPCOMCFunctions" -# endif - - -# ifdef __cplusplus -} -# endif - -#endif /* !___VirtualBox_CXPCOM_h */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri Apr 26 20:41:27 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555074147; cv=none; d=zoho.com; s=zohoarc; b=Unwg4cZsaBkgzim4At0EuwfFkntyTLaVJtiooOw+NYPfY0Veo+txuvT7y62CwcmDJqonGCAwzTdpEyalT002T8b+V+QtmabKWEJZt/bid2gp/173KUUGg4FZnpVwufJQgxcN+SDwoaYjl+pomLGcKSxwpNCjtjJlrp6fTJgPZ9U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555074147; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=XYXDfR5lcIBqaChwTxwZECP5UM/cjpZZUj0zEA/kmwQ=; b=GeoEAfRnd3bjrxacM/Lk/AcV2XQvhFNooyDAtAZbgnHloHLYDQcPwQoT+yRp/jnJBhIUNJvpZHhRD5kX39FWHMixll/HdhZdTzWIa2Y/BvWh//5nr+3F9p3cNsetxVKIkrqKaQ0eBAO7DbWaeNzUgzUEVdmSu7rYjBVu2ZSKH3E= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1555074147807801.3361162719503; Fri, 12 Apr 2019 06:02:27 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 42E163089519; Fri, 12 Apr 2019 13:02:25 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0F3C619728; Fri, 12 Apr 2019 13:02:25 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B6444181AC45; Fri, 12 Apr 2019 13:02:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3CD1E8F031846 for ; Fri, 12 Apr 2019 09:01:14 -0400 Received: by smtp.corp.redhat.com (Postfix) id B54C016D26; Fri, 12 Apr 2019 13:01:14 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-27.ams2.redhat.com [10.36.112.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id A0BBC19747; Fri, 12 Apr 2019 13:01:13 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Fri, 12 Apr 2019 14:00:39 +0100 Message-Id: <20190412130040.21306-7-berrange@redhat.com> In-Reply-To: <20190412130040.21306-1-berrange@redhat.com> References: <20190412130040.21306-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-Mailman-Approved-At: Fri, 12 Apr 2019 09:02:22 -0400 Subject: [libvirt] [PATCH v2 6/7] vbox: drop C API definition for release 4.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.47]); Fri, 12 Apr 2019 13:02:26 +0000 (UTC) Support for compiling this version was dropped in an earlier commit. Signed-off-by: Daniel P. Berrang=C3=A9 --- src/vbox/Makefile.inc.am | 1 - src/vbox/vbox_CAPI_v4_3.h | 10210 ------------------------------------ 2 files changed, 10211 deletions(-) delete mode 100644 src/vbox/vbox_CAPI_v4_3.h diff --git a/src/vbox/Makefile.inc.am b/src/vbox/Makefile.inc.am index 4c1546d077..d6b82f2f02 100644 --- a/src/vbox/Makefile.inc.am +++ b/src/vbox/Makefile.inc.am @@ -5,7 +5,6 @@ VBOX_DRIVER_SOURCES =3D \ vbox/vbox_driver.h \ vbox/vbox_snapshot_conf.c \ vbox/vbox_snapshot_conf.h \ - vbox/vbox_CAPI_v4_3.h \ vbox/vbox_CAPI_v4_3_4.h \ vbox/vbox_V5_0.c \ vbox/vbox_CAPI_v5_0.h \ diff --git a/src/vbox/vbox_CAPI_v4_3.h b/src/vbox/vbox_CAPI_v4_3.h deleted file mode 100644 index c28f9902a1..0000000000 --- a/src/vbox/vbox_CAPI_v4_3.h +++ /dev/null @@ -1,10210 +0,0 @@ -/* - * Libvirt notice: this file is derived from the VirtualBox SDK, with - * libvirt edits (fixing preprocessor indentation by cppi); do not - * regenerate in the context of libvirt. - */ -/* - * DO NOT EDIT! This is a generated file. - * - * XPCOM IDL (XPIDL) definition for VirtualBox Main API (COM interfaces) - * generated from XIDL (XML interface definition). - * - * Source : src/VBox/Main/idl/VirtualBox.xidl - * Generator : src/VBox/Main/idl/xpcidl.xsl - * - * This file contains portions from the following Mozilla XPCOM files: - * xpcom/include/xpcom/nsID.h - * xpcom/include/nsIException.h - * xpcom/include/nsprpub/prtypes.h - * xpcom/include/xpcom/nsISupportsBase.h - * - * These files were originally triple-licensed (MPL/GPL2/LGPL2.1). Oracle - * elects to distribute this derived work under the LGPL2.1 only. - */ - -/* - * Copyright (C) 2008-2012 Oracle Corporation - * - * This file is part of a free software library; you can redistribute - * it and/or modify it under the terms of the GNU Lesser General - * Public License version 2.1 as published by the Free Software - * Foundation and shipped in the "COPYING.LESSER" file with this library. - * The library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY of any kind. - * - * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if - * any license choice other than GPL or LGPL is available it will - * apply instead, Oracle elects to use only the Lesser General Public - * License version 2.1 (LGPLv2) at this time for any software where - * a choice of LGPL license versions is made available with the - * language indicating that LGPLv2 or any later version may be used, - * or where a choice of which version of the LGPL is applied is - * otherwise unspecified. - */ - -#ifndef ___VirtualBox_CXPCOM_h -# define ___VirtualBox_CXPCOM_h - -# ifdef __cplusplus -# include "VirtualBox_XPCOM.h" -# else /* !__cplusplus */ - -# include -# include "wchar.h" - -# if defined(WIN32) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) __declspec(dllimport) __type -# define PR_IMPORT_DATA(__type) __declspec(dllimport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_BEOS) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) extern __declspec(dllexport) __type -# define PR_IMPORT_DATA(__type) extern __declspec(dllexport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(WIN16) - -# define PR_CALLBACK_DECL __cdecl - -# if defined(_WINDLL) -# define PR_EXPORT(__type) extern __type _cdecl _export _loadds -# define PR_IMPORT(__type) extern __type _cdecl _export _loadds -# define PR_EXPORT_DATA(__type) extern __type _export -# define PR_IMPORT_DATA(__type) extern __type _export - -# define PR_EXTERN(__type) extern __type _cdecl _export _loadds -# define PR_IMPLEMENT(__type) __type _cdecl _export _loadds -# define PR_EXTERN_DATA(__type) extern __type _export -# define PR_IMPLEMENT_DATA(__type) __type _export - -# define PR_CALLBACK __cdecl __loadds -# define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK - -# else /* this must be .EXE */ -# define PR_EXPORT(__type) extern __type _cdecl _export -# define PR_IMPORT(__type) extern __type _cdecl _export -# define PR_EXPORT_DATA(__type) extern __type _export -# define PR_IMPORT_DATA(__type) extern __type _export - -# define PR_EXTERN(__type) extern __type _cdecl _export -# define PR_IMPLEMENT(__type) __type _cdecl _export -# define PR_EXTERN_DATA(__type) extern __type _export -# define PR_IMPLEMENT_DATA(__type) __type _export - -# define PR_CALLBACK __cdecl __loadds -# define PR_STATIC_CALLBACK(__x) __x PR_CALLBACK -# endif /* _WINDLL */ - -# elif defined(XP_MAC) - -# define PR_EXPORT(__type) extern __declspec(export) __type -# define PR_EXPORT_DATA(__type) extern __declspec(export) __type -# define PR_IMPORT(__type) extern __declspec(export) __type -# define PR_IMPORT_DATA(__type) extern __declspec(export) __type - -# define PR_EXTERN(__type) extern __declspec(export) __type -# define PR_IMPLEMENT(__type) __declspec(export) __type -# define PR_EXTERN_DATA(__type) extern __declspec(export) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(export) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_OS2) && defined(__declspec) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) __declspec(dllimport) __type -# define PR_IMPORT_DATA(__type) __declspec(dllimport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_OS2_VACPP) - -# define PR_EXPORT(__type) extern __type -# define PR_EXPORT_DATA(__type) extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type - -# define PR_EXTERN(__type) extern __type -# define PR_IMPLEMENT(__type) __type -# define PR_EXTERN_DATA(__type) extern __type -# define PR_IMPLEMENT_DATA(__type) __type -# define PR_CALLBACK _Optlink -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK - -# else /* Unix */ - -# ifdef VBOX_HAVE_VISIBILITY_HIDDEN -# define PR_EXPORT(__type) __attribute__((visibility("default"))) exter= n __type -# define PR_EXPORT_DATA(__type) __attribute__((visibility("default"))) = extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type -# define PR_EXTERN(__type) __attribute__((visibility("default"))) exter= n __type -# define PR_IMPLEMENT(__type) __attribute__((visibility("default"))) __= type -# define PR_EXTERN_DATA(__type) __attribute__((visibility("default"))) = extern __type -# define PR_IMPLEMENT_DATA(__type) __attribute__((visibility("default")= )) __type -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x -# else -# define PR_EXPORT(__type) extern __type -# define PR_EXPORT_DATA(__type) extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type -# define PR_EXTERN(__type) extern __type -# define PR_IMPLEMENT(__type) __type -# define PR_EXTERN_DATA(__type) extern __type -# define PR_IMPLEMENT_DATA(__type) __type -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x -# endif -# endif - -# if defined(_NSPR_BUILD_) -# define NSPR_API(__type) PR_EXPORT(__type) -# define NSPR_DATA_API(__type) PR_EXPORT_DATA(__type) -# else -# define NSPR_API(__type) PR_IMPORT(__type) -# define NSPR_DATA_API(__type) PR_IMPORT_DATA(__type) -# endif - -typedef unsigned char PRUint8; -# if (defined(HPUX) && defined(__cplusplus) \ - && !defined(__GNUC__) && __cplusplus < 199707L) \ - || (defined(SCO) && defined(__cplusplus) \ - && !defined(__GNUC__) && __cplusplus =3D=3D 1L) -typedef char PRInt8; -# else -typedef signed char PRInt8; -# endif - -# define PR_INT8_MAX 127 -# define PR_INT8_MIN (-128) -# define PR_UINT8_MAX 255U - -typedef unsigned short PRUint16; -typedef short PRInt16; - -# define PR_INT16_MAX 32767 -# define PR_INT16_MIN (-32768) -# define PR_UINT16_MAX 65535U - -typedef unsigned int PRUint32; -typedef int PRInt32; -# define PR_INT32(x) x -# define PR_UINT32(x) x ## U - -# define PR_INT32_MAX PR_INT32(2147483647) -# define PR_INT32_MIN (-PR_INT32_MAX - 1) -# define PR_UINT32_MAX PR_UINT32(4294967295) - -typedef long PRInt64; -typedef unsigned long PRUint64; -typedef int PRIntn; -typedef unsigned int PRUintn; - -typedef double PRFloat64; -typedef size_t PRSize; - -typedef ptrdiff_t PRPtrdiff; - -typedef unsigned long PRUptrdiff; - -typedef PRIntn PRBool; - -# define PR_TRUE 1 -# define PR_FALSE 0 - -typedef PRUint8 PRPackedBool; - -/* -** Status code used by some routines that have a single point of failure or -** special status return. -*/ -typedef enum { PR_FAILURE =3D -1, PR_SUCCESS =3D 0 } PRStatus; - -# ifndef __PRUNICHAR__ -# define __PRUNICHAR__ -# if defined(WIN32) || defined(XP_MAC) -typedef wchar_t PRUnichar; -# else -typedef PRUint16 PRUnichar; -# endif -# endif - -typedef long PRWord; -typedef unsigned long PRUword; - -# define nsnull 0 -typedef PRUint32 nsresult; - -# if defined(__GNUC__) && (__GNUC__ > 2) -# define NS_LIKELY(x) (__builtin_expect((x), 1)) -# define NS_UNLIKELY(x) (__builtin_expect((x), 0)) -# else -# define NS_LIKELY(x) (x) -# define NS_UNLIKELY(x) (x) -# endif - -# define NS_FAILED(_nsresult) (NS_UNLIKELY((_nsresult) & 0x80000000)) -# define NS_SUCCEEDED(_nsresult) (NS_LIKELY(!((_nsresult) & 0x80000000))) - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_IntervalNow VBoxNsprPR_IntervalNow -# define PR_TicksPerSecond VBoxNsprPR_TicksPerSecond -# define PR_SecondsToInterval VBoxNsprPR_SecondsToInterval -# define PR_MillisecondsToInterval VBoxNsprPR_MillisecondsToInterval -# define PR_MicrosecondsToInterval VBoxNsprPR_MicrosecondsToInterval -# define PR_IntervalToSeconds VBoxNsprPR_IntervalToSeconds -# define PR_IntervalToMilliseconds VBoxNsprPR_IntervalToMilliseconds -# define PR_IntervalToMicroseconds VBoxNsprPR_IntervalToMicroseconds -# define PR_EnterMonitor VBoxNsprPR_EnterMonitor -# define PR_ExitMonitor VBoxNsprPR_ExitMonitor -# define PR_Notify VBoxNsprPR_Notify -# define PR_NotifyAll VBoxNsprPR_NotifyAll -# define PR_Wait VBoxNsprPR_Wait -# define PR_NewMonitor VBoxNsprPR_NewMonitor -# define PR_DestroyMonitor VBoxNsprPR_DestroyMonitor -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef PRUint32 PRIntervalTime; - -# define PR_INTERVAL_MIN 1000UL -# define PR_INTERVAL_MAX 100000UL -# define PR_INTERVAL_NO_WAIT 0UL -# define PR_INTERVAL_NO_TIMEOUT 0xffffffffUL - -NSPR_API(PRIntervalTime) PR_IntervalNow(void); -NSPR_API(PRUint32) PR_TicksPerSecond(void); -NSPR_API(PRIntervalTime) PR_SecondsToInterval(PRUint32 seconds); -NSPR_API(PRIntervalTime) PR_MillisecondsToInterval(PRUint32 milli); -NSPR_API(PRIntervalTime) PR_MicrosecondsToInterval(PRUint32 micro); -NSPR_API(PRUint32) PR_IntervalToSeconds(PRIntervalTime ticks); -NSPR_API(PRUint32) PR_IntervalToMilliseconds(PRIntervalTime ticks); -NSPR_API(PRUint32) PR_IntervalToMicroseconds(PRIntervalTime ticks); - -typedef struct PRMonitor PRMonitor; - -NSPR_API(PRMonitor*) PR_NewMonitor(void); -NSPR_API(void) PR_DestroyMonitor(PRMonitor *mon); -NSPR_API(void) PR_EnterMonitor(PRMonitor *mon); -NSPR_API(PRStatus) PR_ExitMonitor(PRMonitor *mon); -NSPR_API(PRStatus) PR_Wait(PRMonitor *mon, PRIntervalTime ticks); -NSPR_API(PRStatus) PR_Notify(PRMonitor *mon); -NSPR_API(PRStatus) PR_NotifyAll(PRMonitor *mon); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_CreateThread VBoxNsprPR_CreateThread -# define PR_JoinThread VBoxNsprPR_JoinThread -# define PR_Sleep VBoxNsprPR_Sleep -# define PR_GetCurrentThread VBoxNsprPR_GetCurrentThread -# define PR_GetThreadState VBoxNsprPR_GetThreadState -# define PR_SetThreadPrivate VBoxNsprPR_SetThreadPrivate -# define PR_GetThreadPrivate VBoxNsprPR_GetThreadPrivate -# define PR_NewThreadPrivateIndex VBoxNsprPR_NewThreadPrivateIndex -# define PR_GetThreadPriority VBoxNsprPR_GetThreadPriority -# define PR_SetThreadPriority VBoxNsprPR_SetThreadPriority -# define PR_Interrupt VBoxNsprPR_Interrupt -# define PR_ClearInterrupt VBoxNsprPR_ClearInterrupt -# define PR_BlockInterrupt VBoxNsprPR_BlockInterrupt -# define PR_UnblockInterrupt VBoxNsprPR_UnblockInterrupt -# define PR_GetThreadScope VBoxNsprPR_GetThreadScope -# define PR_GetThreadType VBoxNsprPR_GetThreadType -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRThread PRThread; -typedef struct PRThreadStack PRThreadStack; - -typedef enum PRThreadType { - PR_USER_THREAD, - PR_SYSTEM_THREAD -} PRThreadType; - -typedef enum PRThreadScope { - PR_LOCAL_THREAD, - PR_GLOBAL_THREAD, - PR_GLOBAL_BOUND_THREAD -} PRThreadScope; - -typedef enum PRThreadState { - PR_JOINABLE_THREAD, - PR_UNJOINABLE_THREAD -} PRThreadState; - -typedef enum PRThreadPriority -{ - PR_PRIORITY_FIRST =3D 0, /* just a placeholder */ - PR_PRIORITY_LOW =3D 0, /* the lowest possible priority */ - PR_PRIORITY_NORMAL =3D 1, /* most common expected priority */ - PR_PRIORITY_HIGH =3D 2, /* slightly more aggressive scheduling */ - PR_PRIORITY_URGENT =3D 3, /* it does little good to have more than= one */ - PR_PRIORITY_LAST =3D 3 /* this is just a placeholder */ -} PRThreadPriority; - -NSPR_API(PRThread*) PR_CreateThread(PRThreadType type, - void (PR_CALLBACK *start)(void *arg), - void *arg, - PRThreadPriority priority, - PRThreadScope scope, - PRThreadState state, - PRUint32 stackSize); -NSPR_API(PRStatus) PR_JoinThread(PRThread *thread); -NSPR_API(PRThread*) PR_GetCurrentThread(void); -# ifndef NO_NSPR_10_SUPPORT -# define PR_CurrentThread() PR_GetCurrentThread() /* for nspr1.0 compat.= */ -# endif /* NO_NSPR_10_SUPPORT */ -NSPR_API(PRThreadPriority) PR_GetThreadPriority(const PRThread *thread); -NSPR_API(void) PR_SetThreadPriority(PRThread *thread, PRThreadPriority pri= ority); - -typedef void (PR_CALLBACK *PRThreadPrivateDTOR)(void *priv); - -NSPR_API(PRStatus) PR_NewThreadPrivateIndex( - PRUintn *newIndex, PRThreadPrivateDTOR destructor); -NSPR_API(PRStatus) PR_SetThreadPrivate(PRUintn tpdIndex, void *priv); -NSPR_API(void*) PR_GetThreadPrivate(PRUintn tpdIndex); -NSPR_API(PRStatus) PR_Interrupt(PRThread *thread); -NSPR_API(void) PR_ClearInterrupt(void); -NSPR_API(void) PR_BlockInterrupt(void); -NSPR_API(void) PR_UnblockInterrupt(void); -NSPR_API(PRStatus) PR_Sleep(PRIntervalTime ticks); -NSPR_API(PRThreadScope) PR_GetThreadScope(const PRThread *thread); -NSPR_API(PRThreadType) PR_GetThreadType(const PRThread *thread); -NSPR_API(PRThreadState) PR_GetThreadState(const PRThread *thread); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_DestroyLock VBoxNsprPR_DestroyLock -# define PR_Lock VBoxNsprPR_Lock -# define PR_NewLock VBoxNsprPR_NewLock -# define PR_Unlock VBoxNsprPR_Unlock -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRLock PRLock; - -NSPR_API(PRLock*) PR_NewLock(void); -NSPR_API(void) PR_DestroyLock(PRLock *lock); -NSPR_API(void) PR_Lock(PRLock *lock); -NSPR_API(PRStatus) PR_Unlock(PRLock *lock); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_NewCondVar VBoxNsprPR_NewCondVar -# define PR_DestroyCondVar VBoxNsprPR_DestroyCondVar -# define PR_WaitCondVar VBoxNsprPR_WaitCondVar -# define PR_NotifyCondVar VBoxNsprPR_NotifyCondVar -# define PR_NotifyAllCondVar VBoxNsprPR_NotifyAllCondVar -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRCondVar PRCondVar; - -NSPR_API(PRCondVar*) PR_NewCondVar(PRLock *lock); -NSPR_API(void) PR_DestroyCondVar(PRCondVar *cvar); -NSPR_API(PRStatus) PR_WaitCondVar(PRCondVar *cvar, PRIntervalTime timeout); -NSPR_API(PRStatus) PR_NotifyCondVar(PRCondVar *cvar); -NSPR_API(PRStatus) PR_NotifyAllCondVar(PRCondVar *cvar); - -typedef struct PRCListStr PRCList; - -struct PRCListStr { - PRCList *next; - PRCList *prev; -}; - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PL_DestroyEvent VBoxNsplPL_DestroyEvent -# define PL_HandleEvent VBoxNsplPL_HandleEvent -# define PL_InitEvent VBoxNsplPL_InitEvent -# define PL_CreateEventQueue VBoxNsplPL_CreateEventQueue -# define PL_CreateMonitoredEventQueue VBoxNsplPL_CreateMonitoredEventQue= ue -# define PL_CreateNativeEventQueue VBoxNsplPL_CreateNativeEventQueue -# define PL_DequeueEvent VBoxNsplPL_DequeueEvent -# define PL_DestroyEventQueue VBoxNsplPL_DestroyEventQueue -# define PL_EventAvailable VBoxNsplPL_EventAvailable -# define PL_EventLoop VBoxNsplPL_EventLoop -# define PL_GetEvent VBoxNsplPL_GetEvent -# define PL_GetEventOwner VBoxNsplPL_GetEventOwner -# define PL_GetEventQueueMonitor VBoxNsplPL_GetEventQueueMonitor -# define PL_GetEventQueueSelectFD VBoxNsplPL_GetEventQueueSelectFD -# define PL_MapEvents VBoxNsplPL_MapEvents -# define PL_PostEvent VBoxNsplPL_PostEvent -# define PL_PostSynchronousEvent VBoxNsplPL_PostSynchronousEvent -# define PL_ProcessEventsBeforeID VBoxNsplPL_ProcessEventsBeforeID -# define PL_ProcessPendingEvents VBoxNsplPL_ProcessPendingEvents -# define PL_RegisterEventIDFunc VBoxNsplPL_RegisterEventIDFunc -# define PL_RevokeEvents VBoxNsplPL_RevokeEvents -# define PL_UnregisterEventIDFunc VBoxNsplPL_UnregisterEventIDFunc -# define PL_WaitForEvent VBoxNsplPL_WaitForEvent -# define PL_IsQueueNative VBoxNsplPL_IsQueueNative -# define PL_IsQueueOnCurrentThread VBoxNsplPL_IsQueueOnCurrentThread -# define PL_FavorPerformanceHint VBoxNsplPL_FavorPerformanceHint -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PLEvent PLEvent; -typedef struct PLEventQueue PLEventQueue; - -PR_EXTERN(PLEventQueue*) -PL_CreateEventQueue(const char* name, PRThread* handlerThread); -PR_EXTERN(PLEventQueue *) - PL_CreateNativeEventQueue( - const char *name, - PRThread *handlerThread - ); -PR_EXTERN(PLEventQueue *) - PL_CreateMonitoredEventQueue( - const char *name, - PRThread *handlerThread - ); -PR_EXTERN(void) -PL_DestroyEventQueue(PLEventQueue* self); -PR_EXTERN(PRMonitor*) -PL_GetEventQueueMonitor(PLEventQueue* self); - -# define PL_ENTER_EVENT_QUEUE_MONITOR(queue) \ - PR_EnterMonitor(PL_GetEventQueueMonitor(queue)) - -# define PL_EXIT_EVENT_QUEUE_MONITOR(queue) \ - PR_ExitMonitor(PL_GetEventQueueMonitor(queue)) - -PR_EXTERN(PRStatus) PL_PostEvent(PLEventQueue* self, PLEvent* event); -PR_EXTERN(void*) PL_PostSynchronousEvent(PLEventQueue* self, PLEvent* even= t); -PR_EXTERN(PLEvent*) PL_GetEvent(PLEventQueue* self); -PR_EXTERN(PRBool) PL_EventAvailable(PLEventQueue* self); - -typedef void (PR_CALLBACK *PLEventFunProc)(PLEvent* event, void* data, PLE= ventQueue* queue); - -PR_EXTERN(void) PL_MapEvents(PLEventQueue* self, PLEventFunProc fun, void*= data); -PR_EXTERN(void) PL_RevokeEvents(PLEventQueue* self, void* owner); -PR_EXTERN(void) PL_ProcessPendingEvents(PLEventQueue* self); -PR_EXTERN(PLEvent*) PL_WaitForEvent(PLEventQueue* self); -PR_EXTERN(void) PL_EventLoop(PLEventQueue* self); -PR_EXTERN(PRInt32) PL_GetEventQueueSelectFD(PLEventQueue* self); -PR_EXTERN(PRBool) PL_IsQueueOnCurrentThread( PLEventQueue *queue ); -PR_EXTERN(PRBool) PL_IsQueueNative(PLEventQueue *queue); - -typedef void* (PR_CALLBACK *PLHandleEventProc)(PLEvent* self); -typedef void (PR_CALLBACK *PLDestroyEventProc)(PLEvent* self); -PR_EXTERN(void) -PL_InitEvent(PLEvent* self, void* owner, - PLHandleEventProc handler, - PLDestroyEventProc destructor); -PR_EXTERN(void*) PL_GetEventOwner(PLEvent* self); -PR_EXTERN(void) PL_HandleEvent(PLEvent* self); -PR_EXTERN(void) PL_DestroyEvent(PLEvent* self); -PR_EXTERN(void) PL_DequeueEvent(PLEvent* self, PLEventQueue* queue); -PR_EXTERN(void) PL_FavorPerformanceHint(PRBool favorPerformanceOverEventSt= arvation, PRUint32 starvationDelay); - -struct PLEvent { - PRCList link; - PLHandleEventProc handler; - PLDestroyEventProc destructor; - void* owner; - void* synchronousResult; - PRLock* lock; - PRCondVar* condVar; - PRBool handled; -# ifdef PL_POST_TIMINGS - PRIntervalTime postTime; -# endif -# ifdef XP_UNIX - unsigned long id; -# endif /* XP_UNIX */ - /* other fields follow... */ -}; - -# if defined(XP_WIN) || defined(XP_OS2) - -PR_EXTERN(HWND) - PL_GetNativeEventReceiverWindow( - PLEventQueue *eqp - ); -# endif /* XP_WIN || XP_OS2 */ - -# ifdef XP_UNIX - -PR_EXTERN(PRInt32) -PL_ProcessEventsBeforeID(PLEventQueue *aSelf, unsigned long aID); - -typedef unsigned long (PR_CALLBACK *PLGetEventIDFunc)(void *aClosure); - -PR_EXTERN(void) -PL_RegisterEventIDFunc(PLEventQueue *aSelf, PLGetEventIDFunc aFunc, - void *aClosure); -PR_EXTERN(void) PL_UnregisterEventIDFunc(PLEventQueue *aSelf); - -# endif /* XP_UNIX */ - -/* Standard "it worked" return value */ -# define NS_OK 0 - -# define NS_ERROR_BASE ((nsresult) 0xC1F30000) - -/* Returned when an instance is not initialized */ -# define NS_ERROR_NOT_INITIALIZED (NS_ERROR_BASE + 1) - -/* Returned when an instance is already initialized */ -# define NS_ERROR_ALREADY_INITIALIZED (NS_ERROR_BASE + 2) - -/* Returned by a not implemented function */ -# define NS_ERROR_NOT_IMPLEMENTED ((nsresult) 0x80004001L) - -/* Returned when a given interface is not supported. */ -# define NS_NOINTERFACE ((nsresult) 0x80004002L) -# define NS_ERROR_NO_INTERFACE NS_NOINTERFACE - -# define NS_ERROR_INVALID_POINTER ((nsresult) 0x80004003L) -# define NS_ERROR_NULL_POINTER NS_ERROR_INVALID_POINTER - -/* Returned when a function aborts */ -# define NS_ERROR_ABORT ((nsresult) 0x80004004L) - -/* Returned when a function fails */ -# define NS_ERROR_FAILURE ((nsresult) 0x80004005L) - -/* Returned when an unexpected error occurs */ -# define NS_ERROR_UNEXPECTED ((nsresult) 0x8000ffffL) - -/* Returned when a memory allocation fails */ -# define NS_ERROR_OUT_OF_MEMORY ((nsresult) 0x8007000eL) - -/* Returned when an illegal value is passed */ -# define NS_ERROR_ILLEGAL_VALUE ((nsresult) 0x80070057L) -# define NS_ERROR_INVALID_ARG NS_ERROR_ILLEGAL_VALUE - -/* Returned when a class doesn't allow aggregation */ -# define NS_ERROR_NO_AGGREGATION ((nsresult) 0x80040110L) - -/* Returned when an operation can't complete due to an unavailable resourc= e */ -# define NS_ERROR_NOT_AVAILABLE ((nsresult) 0x80040111L) - -/* Returned when a class is not registered */ -# define NS_ERROR_FACTORY_NOT_REGISTERED ((nsresult) 0x80040154L) - -/* Returned when a class cannot be registered, but may be tried again late= r */ -# define NS_ERROR_FACTORY_REGISTER_AGAIN ((nsresult) 0x80040155L) - -/* Returned when a dynamically loaded factory couldn't be found */ -# define NS_ERROR_FACTORY_NOT_LOADED ((nsresult) 0x800401f8L) - -/* Returned when a factory doesn't support signatures */ -# define NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT \ - (NS_ERROR_BASE + 0x101) - -/* Returned when a factory already is registered */ -# define NS_ERROR_FACTORY_EXISTS (NS_ERROR_BASE + 0x100) - - -/** - * An "interface id" which can be used to uniquely identify a given - * interface. - * A "unique identifier". This is modeled after OSF DCE UUIDs. - */ - -struct nsID { - PRUint32 m0; - PRUint16 m1; - PRUint16 m2; - PRUint8 m3[8]; -}; - -typedef struct nsID nsID; -typedef nsID nsIID; - -struct nsISupports; /* forward declaration */ -struct nsIStackFrame; /* forward declaration */ -struct nsIException; /* forward declaration */ -typedef struct nsISupports nsISupports; /* forward declaration */ -typedef struct nsIStackFrame nsIStackFrame; /* forward declaration */ -typedef struct nsIException nsIException; /* forward declaration */ - -/** - * IID for the nsISupports interface - * {00000000-0000-0000-c000-000000000046} - * - * To maintain binary compatibility with COM's IUnknown, we define the IID - * of nsISupports to be the same as that of COM's IUnknown. - */ -# define NS_ISUPPORTS_IID \ - { 0x00000000, 0x0000, 0x0000, \ - {0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46} } - -/** - * Reference count values - * - * This is the return type for AddRef() and Release() in nsISupports. - * IUnknown of COM returns an unsigned long from equivalent functions. - * The following ifdef exists to maintain binary compatibility with - * IUnknown. - */ - -/** - * Basic component object model interface. Objects which implement - * this interface support runtime interface discovery (QueryInterface) - * and a reference counted memory model (AddRef/Release). This is - * modelled after the win32 IUnknown API. - */ -struct nsISupports_vtbl { - - /** - * @name Methods - */ - - /** - * A run time mechanism for interface discovery. - * @param aIID [in] A requested interface IID - * @param aInstancePtr [out] A pointer to an interface pointer to - * receive the result. - * @return NS_OK if the interface is supported by the associa= ted - * instance, NS_NOINTERFACE if it is not. - * NS_ERROR_INVALID_POINTER if aInstancePtr is NULL. - */ - nsresult (*QueryInterface)(nsISupports *pThis, const nsID *iid, void **r= esultp); - /** - * Increases the reference count for this interface. - * The associated instance will not be deleted unless - * the reference count is returned to zero. - * - * @return The resulting reference count. - */ - nsresult (*AddRef)(nsISupports *pThis); - - /** - * Decreases the reference count for this interface. - * Generally, if the reference count returns to zero, - * the associated instance is deleted. - * - * @return The resulting reference count. - */ - nsresult (*Release)(nsISupports *pThis); - -}; - -struct nsISupports { - struct nsISupports_vtbl *vtbl; -}; - -/* starting interface: nsIException */ -# define NS_IEXCEPTION_IID_STR "f3a8d3b4-c424-4edc-8bf6-8974c983ba78" - -# define NS_IEXCEPTION_IID \ - {0xf3a8d3b4, 0xc424, 0x4edc, \ - { 0x8b, 0xf6, 0x89, 0x74, 0xc9, 0x83, 0xba, 0x78 }} - -struct nsIException_vtbl { - - /* Methods from the Class nsISupports */ - struct nsISupports_vtbl nsisupports; - - /* readonly attribute string message; */ - nsresult (*GetMessage)(nsIException *pThis, PRUnichar * *aMessage); - - /* readonly attribute nsresult (*result; */ - nsresult (*GetResult)(nsIException *pThis, nsresult *aResult); - - /* readonly attribute string name; */ - nsresult (*GetName)(nsIException *pThis, PRUnichar * *aName); - - /* readonly attribute string filename; */ - nsresult (*GetFilename)(nsIException *pThis, PRUnichar * *aFilename); - - /* readonly attribute PRUint32 lineNumber; */ - nsresult (*GetLineNumber)(nsIException *pThis, PRUint32 *aLineNumber); - - /* readonly attribute PRUint32 columnNumber; */ - nsresult (*GetColumnNumber)(nsIException *pThis, PRUint32 *aColumnNumber= ); - - /* readonly attribute nsIStackFrame location; */ - nsresult (*GetLocation)(nsIException *pThis, nsIStackFrame * *aLocation); - - /* readonly attribute nsIException inner; */ - nsresult (*GetInner)(nsIException *pThis, nsIException * *aInner); - - /* readonly attribute nsISupports data; */ - nsresult (*GetData)(nsIException *pThis, nsISupports * *aData); - - /* string toString (); */ - nsresult (*ToString)(nsIException *pThis, PRUnichar **_retval); -}; - -struct nsIException { - struct nsIException_vtbl *vtbl; -}; - -/* starting interface: nsIStackFrame */ -# define NS_ISTACKFRAME_IID_STR "91d82105-7c62-4f8b-9779-154277c0ee90" - -# define NS_ISTACKFRAME_IID \ - {0x91d82105, 0x7c62, 0x4f8b, \ - { 0x97, 0x79, 0x15, 0x42, 0x77, 0xc0, 0xee, 0x90 }} - -struct nsIStackFrame_vtbl { - - /* Methods from the Class nsISupports */ - struct nsISupports_vtbl nsisupports; - - /* readonly attribute PRUint32 language; */ - nsresult (*GetLanguage)(nsIStackFrame *pThis, PRUint32 *aLanguage); - - /* readonly attribute string languageName; */ - nsresult (*GetLanguageName)(nsIStackFrame *pThis, PRUnichar * *aLanguage= Name); - - /* readonly attribute string filename; */ - nsresult (*GetFilename)(nsIStackFrame *pThis, PRUnichar * *aFilename); - - /* readonly attribute string name; */ - nsresult (*GetName)(nsIStackFrame *pThis, PRUnichar * *aName); - - /* readonly attribute PRInt32 lineNumber; */ - nsresult (*GetLineNumber)(nsIStackFrame *pThis, PRInt32 *aLineNumber); - - /* readonly attribute string sourceLine; */ - nsresult (*GetSourceLine)(nsIStackFrame *pThis, PRUnichar * *aSourceLine= ); - - /* readonly attribute nsIStackFrame caller; */ - nsresult (*GetCaller)(nsIStackFrame *pThis, nsIStackFrame * *aCaller); - - /* string toString (); */ - nsresult (*ToString)(nsIStackFrame *pThis, PRUnichar **_retval); -}; - -struct nsIStackFrame { - struct nsIStackFrame_vtbl *vtbl; -}; - -/* starting interface: nsIEventTarget */ -# define NS_IEVENTTARGET_IID_STR "ea99ad5b-cc67-4efb-97c9-2ef620a59f2a" - -# define NS_IEVENTTARGET_IID \ - {0xea99ad5b, 0xcc67, 0x4efb, \ - { 0x97, 0xc9, 0x2e, 0xf6, 0x20, 0xa5, 0x9f, 0x2a }} - -struct nsIEventTarget; -typedef struct nsIEventTarget nsIEventTarget; - -struct nsIEventTarget_vtbl { - - struct nsISupports_vtbl nsisupports; - - nsresult (*PostEvent)(nsIEventTarget *pThis, PLEvent * aEvent); - - nsresult (*IsOnCurrentThread)(nsIEventTarget *pThis, PRBool *_retval); - -}; - -struct nsIEventTarget { - struct nsIEventTarget_vtbl *vtbl; -}; - -/* starting interface: nsIEventQueue */ -# define NS_IEVENTQUEUE_IID_STR "176afb41-00a4-11d3-9f2a-00400553eef0" - -# define NS_IEVENTQUEUE_IID \ - {0x176afb41, 0x00a4, 0x11d3, \ - { 0x9f, 0x2a, 0x00, 0x40, 0x05, 0x53, 0xee, 0xf0 }} - -struct nsIEventQueue; -typedef struct nsIEventQueue nsIEventQueue; - -struct nsIEventQueue_vtbl { - - struct nsIEventTarget_vtbl nsieventtarget; - - nsresult (*InitEvent)(nsIEventQueue *pThis, PLEvent * aEvent, void * o= wner, PLHandleEventProc handler, PLDestroyEventProc destructor); - - nsresult (*PostSynchronousEvent)(nsIEventQueue *pThis, PLEvent * aEven= t, void * *aResult); - - nsresult (*PendingEvents)(nsIEventQueue *pThis, PRBool *_retval); - - nsresult (*ProcessPendingEvents)(nsIEventQueue *pThis); - - nsresult (*EventLoop)(nsIEventQueue *pThis); - - nsresult (*EventAvailable)(nsIEventQueue *pThis, PRBool *aResult); - - nsresult (*GetEvent)(nsIEventQueue *pThis, PLEvent * *_retval); - - nsresult (*HandleEvent)(nsIEventQueue *pThis, PLEvent * aEvent); - - nsresult (*WaitForEvent)(nsIEventQueue *pThis, PLEvent * *_retval); - - PRInt32 (*GetEventQueueSelectFD)(nsIEventQueue *pThis); - - nsresult (*Init)(nsIEventQueue *pThis, PRBool aNative); - - nsresult (*InitFromPRThread)(nsIEventQueue *pThis, PRThread * thread, = PRBool aNative); - - nsresult (*InitFromPLQueue)(nsIEventQueue *pThis, PLEventQueue * aQueu= e); - - nsresult (*EnterMonitor)(nsIEventQueue *pThis); - - nsresult (*ExitMonitor)(nsIEventQueue *pThis); - - nsresult (*RevokeEvents)(nsIEventQueue *pThis, void * owner); - - nsresult (*GetPLEventQueue)(nsIEventQueue *pThis, PLEventQueue * *_ret= val); - - nsresult (*IsQueueNative)(nsIEventQueue *pThis, PRBool *_retval); - - nsresult (*StopAcceptingEvents)(nsIEventQueue *pThis); - -}; - -struct nsIEventQueue { - struct nsIEventQueue_vtbl *vtbl; -}; - - -# 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 - - -struct IVirtualBoxErrorInfo; -struct INATNetwork; -struct IDHCPServer; -struct IVirtualBox; -struct IVFSExplorer; -struct IAppliance; -struct IVirtualSystemDescription; -struct IInternalMachineControl; -struct IBIOSSettings; -struct IPCIAddress; -struct IPCIDeviceAttachment; -struct IMachine; -struct IEmulatedUSB; -struct IVRDEServerInfo; -struct IConsole; -struct IHostNetworkInterface; -struct IHostVideoInputDevice; -struct IHost; -struct ISystemProperties; -struct IGuestOSType; -struct IAdditionsFacility; -struct IGuestSession; -struct IProcess; -struct IGuestProcess; -struct IDirectory; -struct IGuestDirectory; -struct IFile; -struct IGuestFile; -struct IFsObjInfo; -struct IGuestFsObjInfo; -struct IGuest; -struct IProgress; -struct ISnapshot; -struct IMediumAttachment; -struct IMedium; -struct IMediumFormat; -struct IToken; -struct IKeyboard; -struct IMouse; -struct IFramebuffer; -struct IFramebufferOverlay; -struct IDisplay; -struct INetworkAdapter; -struct ISerialPort; -struct IParallelPort; -struct IMachineDebugger; -struct IUSBDeviceFilters; -struct IUSBController; -struct IUSBDevice; -struct IUSBDeviceFilter; -struct IHostUSBDevice; -struct IHostUSBDeviceFilter; -struct IAudioAdapter; -struct IVRDEServer; -struct ISharedFolder; -struct IInternalSessionControl; -struct ISession; -struct IStorageController; -struct IManagedObjectRef; -struct IWebsessionManager; -struct IPerformanceMetric; -struct IPerformanceCollector; -struct INATEngine; -struct IExtPackPlugIn; -struct IExtPackBase; -struct IExtPack; -struct IExtPackFile; -struct IExtPackManager; -struct IBandwidthGroup; -struct IBandwidthControl; -struct IVirtualBoxClient; -struct IEventSource; -struct IEventListener; -struct IEvent; -struct IReusableEvent; -struct IMachineEvent; -struct IMachineStateChangedEvent; -struct IMachineDataChangedEvent; -struct IMediumRegisteredEvent; -struct IMachineRegisteredEvent; -struct ISessionStateChangedEvent; -struct IGuestPropertyChangedEvent; -struct ISnapshotEvent; -struct ISnapshotTakenEvent; -struct ISnapshotDeletedEvent; -struct ISnapshotChangedEvent; -struct IMousePointerShapeChangedEvent; -struct IMouseCapabilityChangedEvent; -struct IKeyboardLedsChangedEvent; -struct IStateChangedEvent; -struct IAdditionsStateChangedEvent; -struct INetworkAdapterChangedEvent; -struct ISerialPortChangedEvent; -struct IParallelPortChangedEvent; -struct IStorageControllerChangedEvent; -struct IMediumChangedEvent; -struct IClipboardModeChangedEvent; -struct IDragAndDropModeChangedEvent; -struct ICPUChangedEvent; -struct ICPUExecutionCapChangedEvent; -struct IGuestKeyboardEvent; -struct IGuestMouseEvent; -struct IGuestMultiTouchEvent; -struct IGuestSessionEvent; -struct IGuestSessionStateChangedEvent; -struct IGuestSessionRegisteredEvent; -struct IGuestProcessEvent; -struct IGuestProcessRegisteredEvent; -struct IGuestProcessStateChangedEvent; -struct IGuestProcessIOEvent; -struct IGuestProcessInputNotifyEvent; -struct IGuestProcessOutputEvent; -struct IGuestFileEvent; -struct IGuestFileRegisteredEvent; -struct IGuestFileStateChangedEvent; -struct IGuestFileIOEvent; -struct IGuestFileOffsetChangedEvent; -struct IGuestFileReadEvent; -struct IGuestFileWriteEvent; -struct IVRDEServerChangedEvent; -struct IVRDEServerInfoChangedEvent; -struct IVideoCaptureChangedEvent; -struct IUSBControllerChangedEvent; -struct IUSBDeviceStateChangedEvent; -struct ISharedFolderChangedEvent; -struct IRuntimeErrorEvent; -struct IEventSourceChangedEvent; -struct IExtraDataChangedEvent; -struct IVetoEvent; -struct IExtraDataCanChangeEvent; -struct ICanShowWindowEvent; -struct IShowWindowEvent; -struct INATRedirectEvent; -struct IHostPCIDevicePlugEvent; -struct IVBoxSVCAvailabilityChangedEvent; -struct IBandwidthGroupChangedEvent; -struct IGuestMonitorChangedEvent; -struct IGuestUserStateChangedEvent; -struct IStorageDeviceChangedEvent; -struct INATNetworkChangedEvent; -struct INATNetworkStartStopEvent; -struct INATNetworkAlterEvent; -struct INATNetworkCreationDeletionEvent; -struct INATNetworkSettingEvent; -struct INATNetworkPortForwardEvent; -struct IHostNameResolutionConfigurationChangeEvent; - -typedef struct IVirtualBoxErrorInfo IVirtualBoxErrorInfo; -typedef struct INATNetwork INATNetwork; -typedef struct IDHCPServer IDHCPServer; -typedef struct IVirtualBox IVirtualBox; -typedef struct IVFSExplorer IVFSExplorer; -typedef struct IAppliance IAppliance; -typedef struct IVirtualSystemDescription IVirtualSystemDescription; -typedef struct IInternalMachineControl IInternalMachineControl; -typedef struct IBIOSSettings IBIOSSettings; -typedef struct IPCIAddress IPCIAddress; -typedef struct IPCIDeviceAttachment IPCIDeviceAttachment; -typedef struct IMachine IMachine; -typedef struct IEmulatedUSB IEmulatedUSB; -typedef struct IVRDEServerInfo IVRDEServerInfo; -typedef struct IConsole IConsole; -typedef struct IHostNetworkInterface IHostNetworkInterface; -typedef struct IHostVideoInputDevice IHostVideoInputDevice; -typedef struct IHost IHost; -typedef struct ISystemProperties ISystemProperties; -typedef struct IGuestOSType IGuestOSType; -typedef struct IAdditionsFacility IAdditionsFacility; -typedef struct IGuestSession IGuestSession; -typedef struct IProcess IProcess; -typedef struct IGuestProcess IGuestProcess; -typedef struct IDirectory IDirectory; -typedef struct IGuestDirectory IGuestDirectory; -typedef struct IFile IFile; -typedef struct IGuestFile IGuestFile; -typedef struct IFsObjInfo IFsObjInfo; -typedef struct IGuestFsObjInfo IGuestFsObjInfo; -typedef struct IGuest IGuest; -typedef struct IProgress IProgress; -typedef struct ISnapshot ISnapshot; -typedef struct IMediumAttachment IMediumAttachment; -typedef struct IMedium IMedium; -typedef struct IMediumFormat IMediumFormat; -typedef struct IToken IToken; -typedef struct IKeyboard IKeyboard; -typedef struct IMouse IMouse; -typedef struct IFramebuffer IFramebuffer; -typedef struct IFramebufferOverlay IFramebufferOverlay; -typedef struct IDisplay IDisplay; -typedef struct INetworkAdapter INetworkAdapter; -typedef struct ISerialPort ISerialPort; -typedef struct IParallelPort IParallelPort; -typedef struct IMachineDebugger IMachineDebugger; -typedef struct IUSBDeviceFilters IUSBDeviceFilters; -typedef struct IUSBController IUSBController; -typedef struct IUSBDevice IUSBDevice; -typedef struct IUSBDeviceFilter IUSBDeviceFilter; -typedef struct IHostUSBDevice IHostUSBDevice; -typedef struct IHostUSBDeviceFilter IHostUSBDeviceFilter; -typedef struct IAudioAdapter IAudioAdapter; -typedef struct IVRDEServer IVRDEServer; -typedef struct ISharedFolder ISharedFolder; -typedef struct IInternalSessionControl IInternalSessionControl; -typedef struct ISession ISession; -typedef struct IStorageController IStorageController; -typedef struct IManagedObjectRef IManagedObjectRef; -typedef struct IWebsessionManager IWebsessionManager; -typedef struct IPerformanceMetric IPerformanceMetric; -typedef struct IPerformanceCollector IPerformanceCollector; -typedef struct INATEngine INATEngine; -typedef struct IExtPackPlugIn IExtPackPlugIn; -typedef struct IExtPackBase IExtPackBase; -typedef struct IExtPack IExtPack; -typedef struct IExtPackFile IExtPackFile; -typedef struct IExtPackManager IExtPackManager; -typedef struct IBandwidthGroup IBandwidthGroup; -typedef struct IBandwidthControl IBandwidthControl; -typedef struct IVirtualBoxClient IVirtualBoxClient; -typedef struct IEventSource IEventSource; -typedef struct IEventListener IEventListener; -typedef struct IEvent IEvent; -typedef struct IReusableEvent IReusableEvent; -typedef struct IMachineEvent IMachineEvent; -typedef struct IMachineStateChangedEvent IMachineStateChangedEvent; -typedef struct IMachineDataChangedEvent IMachineDataChangedEvent; -typedef struct IMediumRegisteredEvent IMediumRegisteredEvent; -typedef struct IMachineRegisteredEvent IMachineRegisteredEvent; -typedef struct ISessionStateChangedEvent ISessionStateChangedEvent; -typedef struct IGuestPropertyChangedEvent IGuestPropertyChangedEvent; -typedef struct ISnapshotEvent ISnapshotEvent; -typedef struct ISnapshotTakenEvent ISnapshotTakenEvent; -typedef struct ISnapshotDeletedEvent ISnapshotDeletedEvent; -typedef struct ISnapshotChangedEvent ISnapshotChangedEvent; -typedef struct IMousePointerShapeChangedEvent IMousePointerShapeChangedEve= nt; -typedef struct IMouseCapabilityChangedEvent IMouseCapabilityChangedEvent; -typedef struct IKeyboardLedsChangedEvent IKeyboardLedsChangedEvent; -typedef struct IStateChangedEvent IStateChangedEvent; -typedef struct IAdditionsStateChangedEvent IAdditionsStateChangedEvent; -typedef struct INetworkAdapterChangedEvent INetworkAdapterChangedEvent; -typedef struct ISerialPortChangedEvent ISerialPortChangedEvent; -typedef struct IParallelPortChangedEvent IParallelPortChangedEvent; -typedef struct IStorageControllerChangedEvent IStorageControllerChangedEve= nt; -typedef struct IMediumChangedEvent IMediumChangedEvent; -typedef struct IClipboardModeChangedEvent IClipboardModeChangedEvent; -typedef struct IDragAndDropModeChangedEvent IDragAndDropModeChangedEvent; -typedef struct ICPUChangedEvent ICPUChangedEvent; -typedef struct ICPUExecutionCapChangedEvent ICPUExecutionCapChangedEvent; -typedef struct IGuestKeyboardEvent IGuestKeyboardEvent; -typedef struct IGuestMouseEvent IGuestMouseEvent; -typedef struct IGuestMultiTouchEvent IGuestMultiTouchEvent; -typedef struct IGuestSessionEvent IGuestSessionEvent; -typedef struct IGuestSessionStateChangedEvent IGuestSessionStateChangedEve= nt; -typedef struct IGuestSessionRegisteredEvent IGuestSessionRegisteredEvent; -typedef struct IGuestProcessEvent IGuestProcessEvent; -typedef struct IGuestProcessRegisteredEvent IGuestProcessRegisteredEvent; -typedef struct IGuestProcessStateChangedEvent IGuestProcessStateChangedEve= nt; -typedef struct IGuestProcessIOEvent IGuestProcessIOEvent; -typedef struct IGuestProcessInputNotifyEvent IGuestProcessInputNotifyEvent; -typedef struct IGuestProcessOutputEvent IGuestProcessOutputEvent; -typedef struct IGuestFileEvent IGuestFileEvent; -typedef struct IGuestFileRegisteredEvent IGuestFileRegisteredEvent; -typedef struct IGuestFileStateChangedEvent IGuestFileStateChangedEvent; -typedef struct IGuestFileIOEvent IGuestFileIOEvent; -typedef struct IGuestFileOffsetChangedEvent IGuestFileOffsetChangedEvent; -typedef struct IGuestFileReadEvent IGuestFileReadEvent; -typedef struct IGuestFileWriteEvent IGuestFileWriteEvent; -typedef struct IVRDEServerChangedEvent IVRDEServerChangedEvent; -typedef struct IVRDEServerInfoChangedEvent IVRDEServerInfoChangedEvent; -typedef struct IVideoCaptureChangedEvent IVideoCaptureChangedEvent; -typedef struct IUSBControllerChangedEvent IUSBControllerChangedEvent; -typedef struct IUSBDeviceStateChangedEvent IUSBDeviceStateChangedEvent; -typedef struct ISharedFolderChangedEvent ISharedFolderChangedEvent; -typedef struct IRuntimeErrorEvent IRuntimeErrorEvent; -typedef struct IEventSourceChangedEvent IEventSourceChangedEvent; -typedef struct IExtraDataChangedEvent IExtraDataChangedEvent; -typedef struct IVetoEvent IVetoEvent; -typedef struct IExtraDataCanChangeEvent IExtraDataCanChangeEvent; -typedef struct ICanShowWindowEvent ICanShowWindowEvent; -typedef struct IShowWindowEvent IShowWindowEvent; -typedef struct INATRedirectEvent INATRedirectEvent; -typedef struct IHostPCIDevicePlugEvent IHostPCIDevicePlugEvent; -typedef struct IVBoxSVCAvailabilityChangedEvent IVBoxSVCAvailabilityChange= dEvent; -typedef struct IBandwidthGroupChangedEvent IBandwidthGroupChangedEvent; -typedef struct IGuestMonitorChangedEvent IGuestMonitorChangedEvent; -typedef struct IGuestUserStateChangedEvent IGuestUserStateChangedEvent; -typedef struct IStorageDeviceChangedEvent IStorageDeviceChangedEvent; -typedef struct INATNetworkChangedEvent INATNetworkChangedEvent; -typedef struct INATNetworkStartStopEvent INATNetworkStartStopEvent; -typedef struct INATNetworkAlterEvent INATNetworkAlterEvent; -typedef struct INATNetworkCreationDeletionEvent INATNetworkCreationDeletio= nEvent; -typedef struct INATNetworkSettingEvent INATNetworkSettingEvent; -typedef struct INATNetworkPortForwardEvent INATNetworkPortForwardEvent; -typedef struct IHostNameResolutionConfigurationChangeEvent IHostNameResolu= tionConfigurationChangeEvent; - -/* Start of enum SettingsVersion Declaration */ -# define SETTINGSVERSION_IID_STR "d5b15ca7-3de7-46b2-a63a-ddcce42bfa3f" -# define SETTINGSVERSION_IID { \ - 0xd5b15ca7, 0x3de7, 0x46b2, \ - { 0xa6, 0x3a, 0xdd, 0xcc, 0xe4, 0x2b, 0xfa, 0x3f } \ -} -enum SettingsVersion -{ - SettingsVersion_Null =3D 0, - SettingsVersion_v1_0 =3D 1, - SettingsVersion_v1_1 =3D 2, - SettingsVersion_v1_2 =3D 3, - SettingsVersion_v1_3pre =3D 4, - SettingsVersion_v1_3 =3D 5, - SettingsVersion_v1_4 =3D 6, - SettingsVersion_v1_5 =3D 7, - SettingsVersion_v1_6 =3D 8, - SettingsVersion_v1_7 =3D 9, - SettingsVersion_v1_8 =3D 10, - SettingsVersion_v1_9 =3D 11, - SettingsVersion_v1_10 =3D 12, - SettingsVersion_v1_11 =3D 13, - SettingsVersion_v1_12 =3D 14, - SettingsVersion_v1_13 =3D 15, - SettingsVersion_v1_14 =3D 16, - SettingsVersion_Future =3D 99999 -}; -/* End of enum SettingsVersion Declaration */ - - -/* Start of enum AccessMode Declaration */ -# define ACCESSMODE_IID_STR "1da0007c-ddf7-4be8-bcac-d84a1558785f" -# define ACCESSMODE_IID { \ - 0x1da0007c, 0xddf7, 0x4be8, \ - { 0xbc, 0xac, 0xd8, 0x4a, 0x15, 0x58, 0x78, 0x5f } \ -} -enum AccessMode -{ - AccessMode_ReadOnly =3D 1, - AccessMode_ReadWrite =3D 2 -}; -/* End of enum AccessMode Declaration */ - - -/* Start of enum MachineState Declaration */ -# define MACHINESTATE_IID_STR "ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe" -# define MACHINESTATE_IID { \ - 0xec6c6a9e, 0x113d, 0x4ff4, \ - { 0xb4, 0x4f, 0x0b, 0x69, 0xf2, 0x1c, 0x97, 0xfe } \ -} -enum MachineState -{ - MachineState_Null =3D 0, - MachineState_PoweredOff =3D 1, - MachineState_Saved =3D 2, - MachineState_Teleported =3D 3, - MachineState_Aborted =3D 4, - MachineState_Running =3D 5, - MachineState_Paused =3D 6, - MachineState_Stuck =3D 7, - MachineState_Teleporting =3D 8, - MachineState_LiveSnapshotting =3D 9, - MachineState_Starting =3D 10, - MachineState_Stopping =3D 11, - MachineState_Saving =3D 12, - MachineState_Restoring =3D 13, - MachineState_TeleportingPausedVM =3D 14, - MachineState_TeleportingIn =3D 15, - MachineState_FaultTolerantSyncing =3D 16, - MachineState_DeletingSnapshotOnline =3D 17, - MachineState_DeletingSnapshotPaused =3D 18, - MachineState_RestoringSnapshot =3D 19, - MachineState_DeletingSnapshot =3D 20, - MachineState_SettingUp =3D 21, - MachineState_FirstOnline =3D 5, - MachineState_LastOnline =3D 18, - MachineState_FirstTransient =3D 8, - MachineState_LastTransient =3D 21 -}; -/* End of enum MachineState Declaration */ - - -/* Start of enum SessionState Declaration */ -# define SESSIONSTATE_IID_STR "cf2700c0-ea4b-47ae-9725-7810114b94d8" -# define SESSIONSTATE_IID { \ - 0xcf2700c0, 0xea4b, 0x47ae, \ - { 0x97, 0x25, 0x78, 0x10, 0x11, 0x4b, 0x94, 0xd8 } \ -} -enum SessionState -{ - SessionState_Null =3D 0, - SessionState_Unlocked =3D 1, - SessionState_Locked =3D 2, - SessionState_Spawning =3D 3, - SessionState_Unlocking =3D 4 -}; -/* End of enum SessionState Declaration */ - - -/* Start of enum CPUPropertyType Declaration */ -# define CPUPROPERTYTYPE_IID_STR "52bc41f4-a279-45da-88ab-3a1d86fb73eb" -# define CPUPROPERTYTYPE_IID { \ - 0x52bc41f4, 0xa279, 0x45da, \ - { 0x88, 0xab, 0x3a, 0x1d, 0x86, 0xfb, 0x73, 0xeb } \ -} -enum CPUPropertyType -{ - CPUPropertyType_Null =3D 0, - CPUPropertyType_PAE =3D 1, - CPUPropertyType_Synthetic =3D 2, - CPUPropertyType_LongMode =3D 3, - CPUPropertyType_TripleFaultReset =3D 4 -}; -/* End of enum CPUPropertyType Declaration */ - - -/* Start of enum HWVirtExPropertyType Declaration */ -# define HWVIRTEXPROPERTYTYPE_IID_STR "411ad0ea-aeeb-44cb-9d03-1624d0d025= ac" -# define HWVIRTEXPROPERTYTYPE_IID { \ - 0x411ad0ea, 0xaeeb, 0x44cb, \ - { 0x9d, 0x03, 0x16, 0x24, 0xd0, 0xd0, 0x25, 0xac } \ -} -enum HWVirtExPropertyType -{ - HWVirtExPropertyType_Null =3D 0, - HWVirtExPropertyType_Enabled =3D 1, - HWVirtExPropertyType_VPID =3D 2, - HWVirtExPropertyType_NestedPaging =3D 3, - HWVirtExPropertyType_UnrestrictedExecution =3D 4, - HWVirtExPropertyType_LargePages =3D 5, - HWVirtExPropertyType_Force =3D 6 -}; -/* End of enum HWVirtExPropertyType Declaration */ - - -/* Start of enum FaultToleranceState Declaration */ -# define FAULTTOLERANCESTATE_IID_STR "5124f7ec-6b67-493c-9dee-ee45a44114e= 1" -# define FAULTTOLERANCESTATE_IID { \ - 0x5124f7ec, 0x6b67, 0x493c, \ - { 0x9d, 0xee, 0xee, 0x45, 0xa4, 0x41, 0x14, 0xe1 } \ -} -enum FaultToleranceState -{ - FaultToleranceState_Inactive =3D 1, - FaultToleranceState_Master =3D 2, - FaultToleranceState_Standby =3D 3 -}; -/* End of enum FaultToleranceState Declaration */ - - -/* Start of enum LockType Declaration */ -# define LOCKTYPE_IID_STR "168a6a8e-12fd-4878-a1f9-38a750a56089" -# define LOCKTYPE_IID { \ - 0x168a6a8e, 0x12fd, 0x4878, \ - { 0xa1, 0xf9, 0x38, 0xa7, 0x50, 0xa5, 0x60, 0x89 } \ -} -enum LockType -{ - LockType_Write =3D 2, - LockType_Shared =3D 1, - LockType_VM =3D 3 -}; -/* End of enum LockType Declaration */ - - -/* Start of enum SessionType Declaration */ -# define SESSIONTYPE_IID_STR "A13C02CB-0C2C-421E-8317-AC0E8AAA153A" -# define SESSIONTYPE_IID { \ - 0xA13C02CB, 0x0C2C, 0x421E, \ - { 0x83, 0x17, 0xAC, 0x0E, 0x8A, 0xAA, 0x15, 0x3A } \ -} -enum SessionType -{ - SessionType_Null =3D 0, - SessionType_WriteLock =3D 1, - SessionType_Remote =3D 2, - SessionType_Shared =3D 3 -}; -/* End of enum SessionType Declaration */ - - -/* Start of enum DeviceType Declaration */ -# define DEVICETYPE_IID_STR "6d9420f7-0b56-4636-99f9-7346f1b01e57" -# define DEVICETYPE_IID { \ - 0x6d9420f7, 0x0b56, 0x4636, \ - { 0x99, 0xf9, 0x73, 0x46, 0xf1, 0xb0, 0x1e, 0x57 } \ -} -enum DeviceType -{ - DeviceType_Null =3D 0, - DeviceType_Floppy =3D 1, - DeviceType_DVD =3D 2, - DeviceType_HardDisk =3D 3, - DeviceType_Network =3D 4, - DeviceType_USB =3D 5, - DeviceType_SharedFolder =3D 6 -}; -/* End of enum DeviceType Declaration */ - - -/* Start of enum DeviceActivity Declaration */ -# define DEVICEACTIVITY_IID_STR "6FC8AEAA-130A-4eb5-8954-3F921422D707" -# define DEVICEACTIVITY_IID { \ - 0x6FC8AEAA, 0x130A, 0x4eb5, \ - { 0x89, 0x54, 0x3F, 0x92, 0x14, 0x22, 0xD7, 0x07 } \ -} -enum DeviceActivity -{ - DeviceActivity_Null =3D 0, - DeviceActivity_Idle =3D 1, - DeviceActivity_Reading =3D 2, - DeviceActivity_Writing =3D 3 -}; -/* End of enum DeviceActivity Declaration */ - - -/* Start of enum ClipboardMode Declaration */ -# define CLIPBOARDMODE_IID_STR "33364716-4008-4701-8f14-be0fa3d62950" -# define CLIPBOARDMODE_IID { \ - 0x33364716, 0x4008, 0x4701, \ - { 0x8f, 0x14, 0xbe, 0x0f, 0xa3, 0xd6, 0x29, 0x50 } \ -} -enum ClipboardMode -{ - ClipboardMode_Disabled =3D 0, - ClipboardMode_HostToGuest =3D 1, - ClipboardMode_GuestToHost =3D 2, - ClipboardMode_Bidirectional =3D 3 -}; -/* End of enum ClipboardMode Declaration */ - - -/* Start of enum DragAndDropMode Declaration */ -# define DRAGANDDROPMODE_IID_STR "b618ea0e-b6fb-4f8d-97f7-5e237e49b547" -# define DRAGANDDROPMODE_IID { \ - 0xb618ea0e, 0xb6fb, 0x4f8d, \ - { 0x97, 0xf7, 0x5e, 0x23, 0x7e, 0x49, 0xb5, 0x47 } \ -} -enum DragAndDropMode -{ - DragAndDropMode_Disabled =3D 0, - DragAndDropMode_HostToGuest =3D 1, - DragAndDropMode_GuestToHost =3D 2, - DragAndDropMode_Bidirectional =3D 3 -}; -/* End of enum DragAndDropMode Declaration */ - - -/* Start of enum Scope Declaration */ -# define SCOPE_IID_STR "7c91096e-499e-4eca-9f9b-9001438d7855" -# define SCOPE_IID { \ - 0x7c91096e, 0x499e, 0x4eca, \ - { 0x9f, 0x9b, 0x90, 0x01, 0x43, 0x8d, 0x78, 0x55 } \ -} -enum Scope -{ - Scope_Global =3D 0, - Scope_Machine =3D 1, - Scope_Session =3D 2 -}; -/* End of enum Scope Declaration */ - - -/* Start of enum BIOSBootMenuMode Declaration */ -# define BIOSBOOTMENUMODE_IID_STR "ae4fb9f7-29d2-45b4-b2c7-d579603135d5" -# define BIOSBOOTMENUMODE_IID { \ - 0xae4fb9f7, 0x29d2, 0x45b4, \ - { 0xb2, 0xc7, 0xd5, 0x79, 0x60, 0x31, 0x35, 0xd5 } \ -} -enum BIOSBootMenuMode -{ - BIOSBootMenuMode_Disabled =3D 0, - BIOSBootMenuMode_MenuOnly =3D 1, - BIOSBootMenuMode_MessageAndMenu =3D 2 -}; -/* End of enum BIOSBootMenuMode Declaration */ - - -/* Start of enum ProcessorFeature Declaration */ -# define PROCESSORFEATURE_IID_STR "64c38e6b-8bcf-45ad-ac03-9b406287c5bf" -# define PROCESSORFEATURE_IID { \ - 0x64c38e6b, 0x8bcf, 0x45ad, \ - { 0xac, 0x03, 0x9b, 0x40, 0x62, 0x87, 0xc5, 0xbf } \ -} -enum ProcessorFeature -{ - ProcessorFeature_HWVirtEx =3D 0, - ProcessorFeature_PAE =3D 1, - ProcessorFeature_LongMode =3D 2, - ProcessorFeature_NestedPaging =3D 3 -}; -/* End of enum ProcessorFeature Declaration */ - - -/* Start of enum FirmwareType Declaration */ -# define FIRMWARETYPE_IID_STR "b903f264-c230-483e-ac74-2b37ce60d371" -# define FIRMWARETYPE_IID { \ - 0xb903f264, 0xc230, 0x483e, \ - { 0xac, 0x74, 0x2b, 0x37, 0xce, 0x60, 0xd3, 0x71 } \ -} -enum FirmwareType -{ - FirmwareType_BIOS =3D 1, - FirmwareType_EFI =3D 2, - FirmwareType_EFI32 =3D 3, - FirmwareType_EFI64 =3D 4, - FirmwareType_EFIDUAL =3D 5 -}; -/* End of enum FirmwareType Declaration */ - - -/* Start of enum PointingHIDType Declaration */ -# define POINTINGHIDTYPE_IID_STR "19964e93-0050-45c4-9382-a7bccc53e666" -# define POINTINGHIDTYPE_IID { \ - 0x19964e93, 0x0050, 0x45c4, \ - { 0x93, 0x82, 0xa7, 0xbc, 0xcc, 0x53, 0xe6, 0x66 } \ -} -enum PointingHIDType -{ - PointingHIDType_None =3D 1, - PointingHIDType_PS2Mouse =3D 2, - PointingHIDType_USBMouse =3D 3, - PointingHIDType_USBTablet =3D 4, - PointingHIDType_ComboMouse =3D 5, - PointingHIDType_USBMultiTouch =3D 6 -}; -/* End of enum PointingHIDType Declaration */ - - -/* Start of enum KeyboardHIDType Declaration */ -# define KEYBOARDHIDTYPE_IID_STR "383e43d7-5c7c-4ec8-9cb8-eda1bccd6699" -# define KEYBOARDHIDTYPE_IID { \ - 0x383e43d7, 0x5c7c, 0x4ec8, \ - { 0x9c, 0xb8, 0xed, 0xa1, 0xbc, 0xcd, 0x66, 0x99 } \ -} -enum KeyboardHIDType -{ - KeyboardHIDType_None =3D 1, - KeyboardHIDType_PS2Keyboard =3D 2, - KeyboardHIDType_USBKeyboard =3D 3, - KeyboardHIDType_ComboKeyboard =3D 4 -}; -/* End of enum KeyboardHIDType Declaration */ - - -/* Start of enum DhcpOpt Declaration */ -# define DHCPOPT_IID_STR "40d99bd3-3ece-44d2-a07e-1085fe9c4f0b" -# define DHCPOPT_IID { \ - 0x40d99bd3, 0x3ece, 0x44d2, \ - { 0xa0, 0x7e, 0x10, 0x85, 0xfe, 0x9c, 0x4f, 0x0b } \ -} -enum DhcpOpt -{ - DhcpOpt_SubnetMask =3D 1, - DhcpOpt_TimeOffset =3D 2, - DhcpOpt_Router =3D 3, - DhcpOpt_TimeServer =3D 4, - DhcpOpt_NameServer =3D 5, - DhcpOpt_DomainNameServer =3D 6, - DhcpOpt_LogServer =3D 7, - DhcpOpt_Cookie =3D 8, - DhcpOpt_LPRServer =3D 9, - DhcpOpt_ImpressServer =3D 10, - DhcpOpt_ResourseLocationServer =3D 11, - DhcpOpt_HostName =3D 12, - DhcpOpt_BootFileSize =3D 13, - DhcpOpt_MeritDumpFile =3D 14, - DhcpOpt_DomainName =3D 15, - DhcpOpt_SwapServer =3D 16, - DhcpOpt_RootPath =3D 17, - DhcpOpt_ExtensionPath =3D 18, - DhcpOpt_IPForwardingEnableDisable =3D 19, - DhcpOpt_NonLocalSourceRoutingEnableDisable =3D 20, - DhcpOpt_PolicyFilter =3D 21, - DhcpOpt_MaximumDatagramReassemblySize =3D 22, - DhcpOpt_DefaultIPTime2Live =3D 23, - DhcpOpt_PathMTUAgingTimeout =3D 24, - DhcpOpt_IPLayerParametersPerInterface =3D 25, - DhcpOpt_InterfaceMTU =3D 26, - DhcpOpt_AllSubnetsAreLocal =3D 27, - DhcpOpt_BroadcastAddress =3D 28, - DhcpOpt_PerformMaskDiscovery =3D 29, - DhcpOpt_MaskSupplier =3D 30, - DhcpOpt_PerformRouteDiscovery =3D 31, - DhcpOpt_RouterSolicitationAddress =3D 32, - DhcpOpt_StaticRoute =3D 33, - DhcpOpt_TrailerEncapsulation =3D 34, - DhcpOpt_ARPCacheTimeout =3D 35, - DhcpOpt_EthernetEncapsulation =3D 36, - DhcpOpt_TCPDefaultTTL =3D 37, - DhcpOpt_TCPKeepAliveInterval =3D 38, - DhcpOpt_TCPKeepAliveGarbage =3D 39, - DhcpOpt_NetworkInformationServiceDomain =3D 40, - DhcpOpt_NetworkInformationServiceServers =3D 41, - DhcpOpt_NetworkTimeProtocolServers =3D 42, - DhcpOpt_VendorSpecificInformation =3D 43, - DhcpOpt_Option_44 =3D 44, - DhcpOpt_Option_45 =3D 45, - DhcpOpt_Option_46 =3D 46, - DhcpOpt_Option_47 =3D 47, - DhcpOpt_Option_48 =3D 48, - DhcpOpt_Option_49 =3D 49, - DhcpOpt_IPAddressLeaseTime =3D 51, - DhcpOpt_Option_64 =3D 64, - DhcpOpt_Option_65 =3D 65, - DhcpOpt_TFTPServerName =3D 66, - DhcpOpt_BootfileName =3D 67, - DhcpOpt_Option_68 =3D 68, - DhcpOpt_Option_69 =3D 69, - DhcpOpt_Option_70 =3D 70, - DhcpOpt_Option_71 =3D 71, - DhcpOpt_Option_72 =3D 72, - DhcpOpt_Option_73 =3D 73, - DhcpOpt_Option_74 =3D 74, - DhcpOpt_Option_75 =3D 75, - DhcpOpt_Option_119 =3D 119 -}; -/* End of enum DhcpOpt Declaration */ - - -/* Start of enum VFSType Declaration */ -# define VFSTYPE_IID_STR "813999ba-b949-48a8-9230-aadc6285e2f2" -# define VFSTYPE_IID { \ - 0x813999ba, 0xb949, 0x48a8, \ - { 0x92, 0x30, 0xaa, 0xdc, 0x62, 0x85, 0xe2, 0xf2 } \ -} -enum VFSType -{ - VFSType_File =3D 1, - VFSType_Cloud =3D 2, - VFSType_S3 =3D 3, - VFSType_WebDav =3D 4 -}; -/* End of enum VFSType Declaration */ - - -/* Start of enum VFSFileType Declaration */ -# define VFSFILETYPE_IID_STR "714333cd-44e2-415f-a245-d378fa9b1242" -# define VFSFILETYPE_IID { \ - 0x714333cd, 0x44e2, 0x415f, \ - { 0xa2, 0x45, 0xd3, 0x78, 0xfa, 0x9b, 0x12, 0x42 } \ -} -enum VFSFileType -{ - VFSFileType_Unknown =3D 1, - VFSFileType_Fifo =3D 2, - VFSFileType_DevChar =3D 3, - VFSFileType_Directory =3D 4, - VFSFileType_DevBlock =3D 5, - VFSFileType_File =3D 6, - VFSFileType_SymLink =3D 7, - VFSFileType_Socket =3D 8, - VFSFileType_WhiteOut =3D 9 -}; -/* End of enum VFSFileType Declaration */ - - -/* Start of enum ImportOptions Declaration */ -# define IMPORTOPTIONS_IID_STR "0a981523-3b20-4004-8ee3-dfd322202ace" -# define IMPORTOPTIONS_IID { \ - 0x0a981523, 0x3b20, 0x4004, \ - { 0x8e, 0xe3, 0xdf, 0xd3, 0x22, 0x20, 0x2a, 0xce } \ -} -enum ImportOptions -{ - ImportOptions_KeepAllMACs =3D 1, - ImportOptions_KeepNATMACs =3D 2 -}; -/* End of enum ImportOptions Declaration */ - - -/* Start of enum ExportOptions Declaration */ -# define EXPORTOPTIONS_IID_STR "8f45eb08-fd34-41ee-af95-a880bdee5554" -# define EXPORTOPTIONS_IID { \ - 0x8f45eb08, 0xfd34, 0x41ee, \ - { 0xaf, 0x95, 0xa8, 0x80, 0xbd, 0xee, 0x55, 0x54 } \ -} -enum ExportOptions -{ - ExportOptions_CreateManifest =3D 1, - ExportOptions_ExportDVDImages =3D 2 -}; -/* End of enum ExportOptions Declaration */ - - -/* Start of enum VirtualSystemDescriptionType Declaration */ -# define VIRTUALSYSTEMDESCRIPTIONTYPE_IID_STR "303c0900-a746-4612-8c67-79= 003e91f459" -# define VIRTUALSYSTEMDESCRIPTIONTYPE_IID { \ - 0x303c0900, 0xa746, 0x4612, \ - { 0x8c, 0x67, 0x79, 0x00, 0x3e, 0x91, 0xf4, 0x59 } \ -} -enum VirtualSystemDescriptionType -{ - VirtualSystemDescriptionType_Ignore =3D 1, - VirtualSystemDescriptionType_OS =3D 2, - VirtualSystemDescriptionType_Name =3D 3, - VirtualSystemDescriptionType_Product =3D 4, - VirtualSystemDescriptionType_Vendor =3D 5, - VirtualSystemDescriptionType_Version =3D 6, - VirtualSystemDescriptionType_ProductUrl =3D 7, - VirtualSystemDescriptionType_VendorUrl =3D 8, - VirtualSystemDescriptionType_Description =3D 9, - VirtualSystemDescriptionType_License =3D 10, - VirtualSystemDescriptionType_Miscellaneous =3D 11, - VirtualSystemDescriptionType_CPU =3D 12, - VirtualSystemDescriptionType_Memory =3D 13, - VirtualSystemDescriptionType_HardDiskControllerIDE =3D 14, - VirtualSystemDescriptionType_HardDiskControllerSATA =3D 15, - VirtualSystemDescriptionType_HardDiskControllerSCSI =3D 16, - VirtualSystemDescriptionType_HardDiskControllerSAS =3D 17, - VirtualSystemDescriptionType_HardDiskImage =3D 18, - VirtualSystemDescriptionType_Floppy =3D 19, - VirtualSystemDescriptionType_CDROM =3D 20, - VirtualSystemDescriptionType_NetworkAdapter =3D 21, - VirtualSystemDescriptionType_USBController =3D 22, - VirtualSystemDescriptionType_SoundCard =3D 23, - VirtualSystemDescriptionType_SettingsFile =3D 24 -}; -/* End of enum VirtualSystemDescriptionType Declaration */ - - -/* Start of enum VirtualSystemDescriptionValueType Declaration */ -# define VIRTUALSYSTEMDESCRIPTIONVALUETYPE_IID_STR "56d9403f-3425-4118-99= 19-36f2a9b8c77c" -# define VIRTUALSYSTEMDESCRIPTIONVALUETYPE_IID { \ - 0x56d9403f, 0x3425, 0x4118, \ - { 0x99, 0x19, 0x36, 0xf2, 0xa9, 0xb8, 0xc7, 0x7c } \ -} -enum VirtualSystemDescriptionValueType -{ - VirtualSystemDescriptionValueType_Reference =3D 1, - VirtualSystemDescriptionValueType_Original =3D 2, - VirtualSystemDescriptionValueType_Auto =3D 3, - VirtualSystemDescriptionValueType_ExtraConfig =3D 4 -}; -/* End of enum VirtualSystemDescriptionValueType Declaration */ - - -/* Start of enum GraphicsControllerType Declaration */ -# define GRAPHICSCONTROLLERTYPE_IID_STR "79c96ca0-9f39-4900-948e-68c41cbe= 127a" -# define GRAPHICSCONTROLLERTYPE_IID { \ - 0x79c96ca0, 0x9f39, 0x4900, \ - { 0x94, 0x8e, 0x68, 0xc4, 0x1c, 0xbe, 0x12, 0x7a } \ -} -enum GraphicsControllerType -{ - GraphicsControllerType_Null =3D 0, - GraphicsControllerType_VBoxVGA =3D 1 -}; -/* End of enum GraphicsControllerType Declaration */ - - -/* Start of enum CleanupMode Declaration */ -# define CLEANUPMODE_IID_STR "67897c50-7cca-47a9-83f6-ce8fd8eb5441" -# define CLEANUPMODE_IID { \ - 0x67897c50, 0x7cca, 0x47a9, \ - { 0x83, 0xf6, 0xce, 0x8f, 0xd8, 0xeb, 0x54, 0x41 } \ -} -enum CleanupMode -{ - CleanupMode_UnregisterOnly =3D 1, - CleanupMode_DetachAllReturnNone =3D 2, - CleanupMode_DetachAllReturnHardDisksOnly =3D 3, - CleanupMode_Full =3D 4 -}; -/* End of enum CleanupMode Declaration */ - - -/* Start of enum CloneMode Declaration */ -# define CLONEMODE_IID_STR "A7A159FE-5096-4B8D-8C3C-D033CB0B35A8" -# define CLONEMODE_IID { \ - 0xA7A159FE, 0x5096, 0x4B8D, \ - { 0x8C, 0x3C, 0xD0, 0x33, 0xCB, 0x0B, 0x35, 0xA8 } \ -} -enum CloneMode -{ - CloneMode_MachineState =3D 1, - CloneMode_MachineAndChildStates =3D 2, - CloneMode_AllStates =3D 3 -}; -/* End of enum CloneMode Declaration */ - - -/* Start of enum CloneOptions Declaration */ -# define CLONEOPTIONS_IID_STR "22243f8e-96ab-497c-8cf0-f40a566c630b" -# define CLONEOPTIONS_IID { \ - 0x22243f8e, 0x96ab, 0x497c, \ - { 0x8c, 0xf0, 0xf4, 0x0a, 0x56, 0x6c, 0x63, 0x0b } \ -} -enum CloneOptions -{ - CloneOptions_Link =3D 1, - CloneOptions_KeepAllMACs =3D 2, - CloneOptions_KeepNATMACs =3D 3, - CloneOptions_KeepDiskNames =3D 4 -}; -/* End of enum CloneOptions Declaration */ - - -/* Start of enum AutostopType Declaration */ -# define AUTOSTOPTYPE_IID_STR "6bb96740-cf34-470d-aab2-2cd48ea2e10e" -# define AUTOSTOPTYPE_IID { \ - 0x6bb96740, 0xcf34, 0x470d, \ - { 0xaa, 0xb2, 0x2c, 0xd4, 0x8e, 0xa2, 0xe1, 0x0e } \ -} -enum AutostopType -{ - AutostopType_Disabled =3D 1, - AutostopType_SaveState =3D 2, - AutostopType_PowerOff =3D 3, - AutostopType_AcpiShutdown =3D 4 -}; -/* End of enum AutostopType Declaration */ - - -/* Start of enum HostNetworkInterfaceMediumType Declaration */ -# define HOSTNETWORKINTERFACEMEDIUMTYPE_IID_STR "1aa54aaf-2497-45a2-bfb1-= 8eb225e93d5b" -# define HOSTNETWORKINTERFACEMEDIUMTYPE_IID { \ - 0x1aa54aaf, 0x2497, 0x45a2, \ - { 0xbf, 0xb1, 0x8e, 0xb2, 0x25, 0xe9, 0x3d, 0x5b } \ -} -enum HostNetworkInterfaceMediumType -{ - HostNetworkInterfaceMediumType_Unknown =3D 0, - HostNetworkInterfaceMediumType_Ethernet =3D 1, - HostNetworkInterfaceMediumType_PPP =3D 2, - HostNetworkInterfaceMediumType_SLIP =3D 3 -}; -/* End of enum HostNetworkInterfaceMediumType Declaration */ - - -/* Start of enum HostNetworkInterfaceStatus Declaration */ -# define HOSTNETWORKINTERFACESTATUS_IID_STR "CC474A69-2710-434B-8D99-C38E= 5D5A6F41" -# define HOSTNETWORKINTERFACESTATUS_IID { \ - 0xCC474A69, 0x2710, 0x434B, \ - { 0x8D, 0x99, 0xC3, 0x8E, 0x5D, 0x5A, 0x6F, 0x41 } \ -} -enum HostNetworkInterfaceStatus -{ - HostNetworkInterfaceStatus_Unknown =3D 0, - HostNetworkInterfaceStatus_Up =3D 1, - HostNetworkInterfaceStatus_Down =3D 2 -}; -/* End of enum HostNetworkInterfaceStatus Declaration */ - - -/* Start of enum HostNetworkInterfaceType Declaration */ -# define HOSTNETWORKINTERFACETYPE_IID_STR "67431b00-9946-48a2-bc02-b25c59= 19f4f3" -# define HOSTNETWORKINTERFACETYPE_IID { \ - 0x67431b00, 0x9946, 0x48a2, \ - { 0xbc, 0x02, 0xb2, 0x5c, 0x59, 0x19, 0xf4, 0xf3 } \ -} -enum HostNetworkInterfaceType -{ - HostNetworkInterfaceType_Bridged =3D 1, - HostNetworkInterfaceType_HostOnly =3D 2 -}; -/* End of enum HostNetworkInterfaceType Declaration */ - - -/* Start of enum AdditionsFacilityType Declaration */ -# define ADDITIONSFACILITYTYPE_IID_STR "98f7f957-89fb-49b6-a3b1-31e3285eb= 1d8" -# define ADDITIONSFACILITYTYPE_IID { \ - 0x98f7f957, 0x89fb, 0x49b6, \ - { 0xa3, 0xb1, 0x31, 0xe3, 0x28, 0x5e, 0xb1, 0xd8 } \ -} -enum AdditionsFacilityType -{ - AdditionsFacilityType_None =3D 0, - AdditionsFacilityType_VBoxGuestDriver =3D 20, - AdditionsFacilityType_AutoLogon =3D 90, - AdditionsFacilityType_VBoxService =3D 100, - AdditionsFacilityType_VBoxTrayClient =3D 101, - AdditionsFacilityType_Seamless =3D 1000, - AdditionsFacilityType_Graphics =3D 1100, - AdditionsFacilityType_All =3D 2147483646 -}; -/* End of enum AdditionsFacilityType Declaration */ - - -/* Start of enum AdditionsFacilityClass Declaration */ -# define ADDITIONSFACILITYCLASS_IID_STR "446451b2-c88d-4e5d-84c9-91bc7f53= 3f5f" -# define ADDITIONSFACILITYCLASS_IID { \ - 0x446451b2, 0xc88d, 0x4e5d, \ - { 0x84, 0xc9, 0x91, 0xbc, 0x7f, 0x53, 0x3f, 0x5f } \ -} -enum AdditionsFacilityClass -{ - AdditionsFacilityClass_None =3D 0, - AdditionsFacilityClass_Driver =3D 10, - AdditionsFacilityClass_Service =3D 30, - AdditionsFacilityClass_Program =3D 50, - AdditionsFacilityClass_Feature =3D 100, - AdditionsFacilityClass_ThirdParty =3D 999, - AdditionsFacilityClass_All =3D 2147483646 -}; -/* End of enum AdditionsFacilityClass Declaration */ - - -/* Start of enum AdditionsFacilityStatus Declaration */ -# define ADDITIONSFACILITYSTATUS_IID_STR "ce06f9e1-394e-4fe9-9368-5a88c56= 7dbde" -# define ADDITIONSFACILITYSTATUS_IID { \ - 0xce06f9e1, 0x394e, 0x4fe9, \ - { 0x93, 0x68, 0x5a, 0x88, 0xc5, 0x67, 0xdb, 0xde } \ -} -enum AdditionsFacilityStatus -{ - AdditionsFacilityStatus_Inactive =3D 0, - AdditionsFacilityStatus_Paused =3D 1, - AdditionsFacilityStatus_PreInit =3D 20, - AdditionsFacilityStatus_Init =3D 30, - AdditionsFacilityStatus_Active =3D 50, - AdditionsFacilityStatus_Terminating =3D 100, - AdditionsFacilityStatus_Terminated =3D 101, - AdditionsFacilityStatus_Failed =3D 800, - AdditionsFacilityStatus_Unknown =3D 999 -}; -/* End of enum AdditionsFacilityStatus Declaration */ - - -/* Start of enum AdditionsRunLevelType Declaration */ -# define ADDITIONSRUNLEVELTYPE_IID_STR "a25417ee-a9dd-4f5b-b0dc-377860087= 754" -# define ADDITIONSRUNLEVELTYPE_IID { \ - 0xa25417ee, 0xa9dd, 0x4f5b, \ - { 0xb0, 0xdc, 0x37, 0x78, 0x60, 0x08, 0x77, 0x54 } \ -} -enum AdditionsRunLevelType -{ - AdditionsRunLevelType_None =3D 0, - AdditionsRunLevelType_System =3D 1, - AdditionsRunLevelType_Userland =3D 2, - AdditionsRunLevelType_Desktop =3D 3 -}; -/* End of enum AdditionsRunLevelType Declaration */ - - -/* Start of enum AdditionsUpdateFlag Declaration */ -# define ADDITIONSUPDATEFLAG_IID_STR "726a818d-18d6-4389-94e8-3e9e6826171= a" -# define ADDITIONSUPDATEFLAG_IID { \ - 0x726a818d, 0x18d6, 0x4389, \ - { 0x94, 0xe8, 0x3e, 0x9e, 0x68, 0x26, 0x17, 0x1a } \ -} -enum AdditionsUpdateFlag -{ - AdditionsUpdateFlag_None =3D 0, - AdditionsUpdateFlag_WaitForUpdateStartOnly =3D 1 -}; -/* End of enum AdditionsUpdateFlag Declaration */ - - -/* Start of enum GuestSessionStatus Declaration */ -# define GUESTSESSIONSTATUS_IID_STR "ac2669da-4624-44f2-85b5-0b0bfb8d8673" -# define GUESTSESSIONSTATUS_IID { \ - 0xac2669da, 0x4624, 0x44f2, \ - { 0x85, 0xb5, 0x0b, 0x0b, 0xfb, 0x8d, 0x86, 0x73 } \ -} -enum GuestSessionStatus -{ - GuestSessionStatus_Undefined =3D 0, - GuestSessionStatus_Starting =3D 10, - GuestSessionStatus_Started =3D 100, - GuestSessionStatus_Terminating =3D 480, - GuestSessionStatus_Terminated =3D 500, - GuestSessionStatus_TimedOutKilled =3D 512, - GuestSessionStatus_TimedOutAbnormally =3D 513, - GuestSessionStatus_Down =3D 600, - GuestSessionStatus_Error =3D 800 -}; -/* End of enum GuestSessionStatus Declaration */ - - -/* Start of enum GuestSessionWaitForFlag Declaration */ -# define GUESTSESSIONWAITFORFLAG_IID_STR "bb7a372a-f635-4e11-a81a-e707f3a= 52ef5" -# define GUESTSESSIONWAITFORFLAG_IID { \ - 0xbb7a372a, 0xf635, 0x4e11, \ - { 0xa8, 0x1a, 0xe7, 0x07, 0xf3, 0xa5, 0x2e, 0xf5 } \ -} -enum GuestSessionWaitForFlag -{ - GuestSessionWaitForFlag_None =3D 0, - GuestSessionWaitForFlag_Start =3D 1, - GuestSessionWaitForFlag_Terminate =3D 2, - GuestSessionWaitForFlag_Status =3D 4 -}; -/* End of enum GuestSessionWaitForFlag Declaration */ - - -/* Start of enum GuestSessionWaitResult Declaration */ -# define GUESTSESSIONWAITRESULT_IID_STR "c0f6a8a5-fdb6-42bf-a582-56c6f82b= cd2d" -# define GUESTSESSIONWAITRESULT_IID { \ - 0xc0f6a8a5, 0xfdb6, 0x42bf, \ - { 0xa5, 0x82, 0x56, 0xc6, 0xf8, 0x2b, 0xcd, 0x2d } \ -} -enum GuestSessionWaitResult -{ - GuestSessionWaitResult_None =3D 0, - GuestSessionWaitResult_Start =3D 1, - GuestSessionWaitResult_Terminate =3D 2, - GuestSessionWaitResult_Status =3D 3, - GuestSessionWaitResult_Error =3D 4, - GuestSessionWaitResult_Timeout =3D 5, - GuestSessionWaitResult_WaitFlagNotSupported =3D 6 -}; -/* End of enum GuestSessionWaitResult Declaration */ - - -/* Start of enum GuestUserState Declaration */ -# define GUESTUSERSTATE_IID_STR "b2a82b02-fd3d-4fc2-ba84-6ba5ac8be198" -# define GUESTUSERSTATE_IID { \ - 0xb2a82b02, 0xfd3d, 0x4fc2, \ - { 0xba, 0x84, 0x6b, 0xa5, 0xac, 0x8b, 0xe1, 0x98 } \ -} -enum GuestUserState -{ - GuestUserState_Unknown =3D 0, - GuestUserState_LoggedIn =3D 1, - GuestUserState_LoggedOut =3D 2, - GuestUserState_Locked =3D 3, - GuestUserState_Unlocked =3D 4, - GuestUserState_Disabled =3D 5, - GuestUserState_Idle =3D 6, - GuestUserState_InUse =3D 7, - GuestUserState_Created =3D 8, - GuestUserState_Deleted =3D 9, - GuestUserState_SessionChanged =3D 10, - GuestUserState_CredentialsChanged =3D 11, - GuestUserState_RoleChanged =3D 12, - GuestUserState_GroupAdded =3D 13, - GuestUserState_GroupRemoved =3D 14, - GuestUserState_Elevated =3D 15 -}; -/* End of enum GuestUserState Declaration */ - - -/* Start of enum FileSeekType Declaration */ -# define FILESEEKTYPE_IID_STR "1b73f4f3-3515-4073-a506-76878d9e2541" -# define FILESEEKTYPE_IID { \ - 0x1b73f4f3, 0x3515, 0x4073, \ - { 0xa5, 0x06, 0x76, 0x87, 0x8d, 0x9e, 0x25, 0x41 } \ -} -enum FileSeekType -{ - FileSeekType_Set =3D 0, - FileSeekType_Current =3D 1 -}; -/* End of enum FileSeekType Declaration */ - - -/* Start of enum ProcessInputFlag Declaration */ -# define PROCESSINPUTFLAG_IID_STR "5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5" -# define PROCESSINPUTFLAG_IID { \ - 0x5d38c1dd, 0x2604, 0x4ddf, \ - { 0x92, 0xe5, 0x0c, 0x0c, 0xdd, 0x3b, 0xdb, 0xd5 } \ -} -enum ProcessInputFlag -{ - ProcessInputFlag_None =3D 0, - ProcessInputFlag_EndOfFile =3D 1 -}; -/* End of enum ProcessInputFlag Declaration */ - - -/* Start of enum ProcessOutputFlag Declaration */ -# define PROCESSOUTPUTFLAG_IID_STR "9979e85a-52bb-40b7-870c-57115e27e0f1" -# define PROCESSOUTPUTFLAG_IID { \ - 0x9979e85a, 0x52bb, 0x40b7, \ - { 0x87, 0x0c, 0x57, 0x11, 0x5e, 0x27, 0xe0, 0xf1 } \ -} -enum ProcessOutputFlag -{ - ProcessOutputFlag_None =3D 0, - ProcessOutputFlag_StdErr =3D 1 -}; -/* End of enum ProcessOutputFlag Declaration */ - - -/* Start of enum ProcessWaitForFlag Declaration */ -# define PROCESSWAITFORFLAG_IID_STR "23b550c7-78e1-437e-98f0-65fd9757bcd2" -# define PROCESSWAITFORFLAG_IID { \ - 0x23b550c7, 0x78e1, 0x437e, \ - { 0x98, 0xf0, 0x65, 0xfd, 0x97, 0x57, 0xbc, 0xd2 } \ -} -enum ProcessWaitForFlag -{ - ProcessWaitForFlag_None =3D 0, - ProcessWaitForFlag_Start =3D 1, - ProcessWaitForFlag_Terminate =3D 2, - ProcessWaitForFlag_StdIn =3D 4, - ProcessWaitForFlag_StdOut =3D 8, - ProcessWaitForFlag_StdErr =3D 16 -}; -/* End of enum ProcessWaitForFlag Declaration */ - - -/* Start of enum ProcessWaitResult Declaration */ -# define PROCESSWAITRESULT_IID_STR "40719cbe-f192-4fe9-a231-6697b3c8e2b4" -# define PROCESSWAITRESULT_IID { \ - 0x40719cbe, 0xf192, 0x4fe9, \ - { 0xa2, 0x31, 0x66, 0x97, 0xb3, 0xc8, 0xe2, 0xb4 } \ -} -enum ProcessWaitResult -{ - ProcessWaitResult_None =3D 0, - ProcessWaitResult_Start =3D 1, - ProcessWaitResult_Terminate =3D 2, - ProcessWaitResult_Status =3D 3, - ProcessWaitResult_Error =3D 4, - ProcessWaitResult_Timeout =3D 5, - ProcessWaitResult_StdIn =3D 6, - ProcessWaitResult_StdOut =3D 7, - ProcessWaitResult_StdErr =3D 8, - ProcessWaitResult_WaitFlagNotSupported =3D 9 -}; -/* End of enum ProcessWaitResult Declaration */ - - -/* Start of enum CopyFileFlag Declaration */ -# define COPYFILEFLAG_IID_STR "23f79fdf-738a-493d-b80b-42d607c9b916" -# define COPYFILEFLAG_IID { \ - 0x23f79fdf, 0x738a, 0x493d, \ - { 0xb8, 0x0b, 0x42, 0xd6, 0x07, 0xc9, 0xb9, 0x16 } \ -} -enum CopyFileFlag -{ - CopyFileFlag_None =3D 0, - CopyFileFlag_Recursive =3D 1, - CopyFileFlag_Update =3D 2, - CopyFileFlag_FollowLinks =3D 4 -}; -/* End of enum CopyFileFlag Declaration */ - - -/* Start of enum DirectoryCreateFlag Declaration */ -# define DIRECTORYCREATEFLAG_IID_STR "bd721b0e-ced5-4f79-b368-249897c32a3= 6" -# define DIRECTORYCREATEFLAG_IID { \ - 0xbd721b0e, 0xced5, 0x4f79, \ - { 0xb3, 0x68, 0x24, 0x98, 0x97, 0xc3, 0x2a, 0x36 } \ -} -enum DirectoryCreateFlag -{ - DirectoryCreateFlag_None =3D 0, - DirectoryCreateFlag_Parents =3D 1 -}; -/* End of enum DirectoryCreateFlag Declaration */ - - -/* Start of enum DirectoryRemoveRecFlag Declaration */ -# define DIRECTORYREMOVERECFLAG_IID_STR "455aabf0-7692-48f6-9061-f21579b6= 5769" -# define DIRECTORYREMOVERECFLAG_IID { \ - 0x455aabf0, 0x7692, 0x48f6, \ - { 0x90, 0x61, 0xf2, 0x15, 0x79, 0xb6, 0x57, 0x69 } \ -} -enum DirectoryRemoveRecFlag -{ - DirectoryRemoveRecFlag_None =3D 0, - DirectoryRemoveRecFlag_ContentAndDir =3D 1, - DirectoryRemoveRecFlag_ContentOnly =3D 2 -}; -/* End of enum DirectoryRemoveRecFlag Declaration */ - - -/* Start of enum PathRenameFlag Declaration */ -# define PATHRENAMEFLAG_IID_STR "f3baa09f-c758-453d-b91c-c7787d76351d" -# define PATHRENAMEFLAG_IID { \ - 0xf3baa09f, 0xc758, 0x453d, \ - { 0xb9, 0x1c, 0xc7, 0x78, 0x7d, 0x76, 0x35, 0x1d } \ -} -enum PathRenameFlag -{ - PathRenameFlag_None =3D 0, - PathRenameFlag_NoReplace =3D 1, - PathRenameFlag_Replace =3D 2, - PathRenameFlag_NoSymlinks =3D 4 -}; -/* End of enum PathRenameFlag Declaration */ - - -/* Start of enum ProcessCreateFlag Declaration */ -# define PROCESSCREATEFLAG_IID_STR "35192799-bfde-405d-9bea-c735ab9998e4" -# define PROCESSCREATEFLAG_IID { \ - 0x35192799, 0xbfde, 0x405d, \ - { 0x9b, 0xea, 0xc7, 0x35, 0xab, 0x99, 0x98, 0xe4 } \ -} -enum ProcessCreateFlag -{ - ProcessCreateFlag_None =3D 0, - ProcessCreateFlag_WaitForProcessStartOnly =3D 1, - ProcessCreateFlag_IgnoreOrphanedProcesses =3D 2, - ProcessCreateFlag_Hidden =3D 4, - ProcessCreateFlag_NoProfile =3D 8, - ProcessCreateFlag_WaitForStdOut =3D 16, - ProcessCreateFlag_WaitForStdErr =3D 32, - ProcessCreateFlag_ExpandArguments =3D 64 -}; -/* End of enum ProcessCreateFlag Declaration */ - - -/* Start of enum ProcessPriority Declaration */ -# define PROCESSPRIORITY_IID_STR "ee8cac50-e232-49fe-806b-d1214d9c2e49" -# define PROCESSPRIORITY_IID { \ - 0xee8cac50, 0xe232, 0x49fe, \ - { 0x80, 0x6b, 0xd1, 0x21, 0x4d, 0x9c, 0x2e, 0x49 } \ -} -enum ProcessPriority -{ - ProcessPriority_Invalid =3D 0, - ProcessPriority_Default =3D 1 -}; -/* End of enum ProcessPriority Declaration */ - - -/* Start of enum SymlinkType Declaration */ -# define SYMLINKTYPE_IID_STR "37794668-f8f1-4714-98a5-6f8fa2ed0118" -# define SYMLINKTYPE_IID { \ - 0x37794668, 0xf8f1, 0x4714, \ - { 0x98, 0xa5, 0x6f, 0x8f, 0xa2, 0xed, 0x01, 0x18 } \ -} -enum SymlinkType -{ - SymlinkType_Unknown =3D 0, - SymlinkType_Directory =3D 1, - SymlinkType_File =3D 2 -}; -/* End of enum SymlinkType Declaration */ - - -/* Start of enum SymlinkReadFlag Declaration */ -# define SYMLINKREADFLAG_IID_STR "b7fe2b9d-790e-4b25-8adf-1ca33026931f" -# define SYMLINKREADFLAG_IID { \ - 0xb7fe2b9d, 0x790e, 0x4b25, \ - { 0x8a, 0xdf, 0x1c, 0xa3, 0x30, 0x26, 0x93, 0x1f } \ -} -enum SymlinkReadFlag -{ - SymlinkReadFlag_None =3D 0, - SymlinkReadFlag_NoSymlinks =3D 1 -}; -/* End of enum SymlinkReadFlag Declaration */ - - -/* Start of enum ProcessStatus Declaration */ -# define PROCESSSTATUS_IID_STR "4d52368f-5b48-4bfe-b486-acf89139b52f" -# define PROCESSSTATUS_IID { \ - 0x4d52368f, 0x5b48, 0x4bfe, \ - { 0xb4, 0x86, 0xac, 0xf8, 0x91, 0x39, 0xb5, 0x2f } \ -} -enum ProcessStatus -{ - ProcessStatus_Undefined =3D 0, - ProcessStatus_Starting =3D 10, - ProcessStatus_Started =3D 100, - ProcessStatus_Paused =3D 110, - ProcessStatus_Terminating =3D 480, - ProcessStatus_TerminatedNormally =3D 500, - ProcessStatus_TerminatedSignal =3D 510, - ProcessStatus_TerminatedAbnormally =3D 511, - ProcessStatus_TimedOutKilled =3D 512, - ProcessStatus_TimedOutAbnormally =3D 513, - ProcessStatus_Down =3D 600, - ProcessStatus_Error =3D 800 -}; -/* End of enum ProcessStatus Declaration */ - - -/* Start of enum ProcessInputStatus Declaration */ -# define PROCESSINPUTSTATUS_IID_STR "a4a0ef9c-29cc-4805-9803-c8215ae9da6c" -# define PROCESSINPUTSTATUS_IID { \ - 0xa4a0ef9c, 0x29cc, 0x4805, \ - { 0x98, 0x03, 0xc8, 0x21, 0x5a, 0xe9, 0xda, 0x6c } \ -} -enum ProcessInputStatus -{ - ProcessInputStatus_Undefined =3D 0, - ProcessInputStatus_Broken =3D 1, - ProcessInputStatus_Available =3D 10, - ProcessInputStatus_Written =3D 50, - ProcessInputStatus_Overflow =3D 100 -}; -/* End of enum ProcessInputStatus Declaration */ - - -/* Start of enum FileStatus Declaration */ -# define FILESTATUS_IID_STR "8c86468b-b97b-4080-8914-e29f5b0abd2c" -# define FILESTATUS_IID { \ - 0x8c86468b, 0xb97b, 0x4080, \ - { 0x89, 0x14, 0xe2, 0x9f, 0x5b, 0x0a, 0xbd, 0x2c } \ -} -enum FileStatus -{ - FileStatus_Undefined =3D 0, - FileStatus_Opening =3D 10, - FileStatus_Open =3D 100, - FileStatus_Closing =3D 150, - FileStatus_Closed =3D 200, - FileStatus_Down =3D 600, - FileStatus_Error =3D 800 -}; -/* End of enum FileStatus Declaration */ - - -/* Start of enum FsObjType Declaration */ -# define FSOBJTYPE_IID_STR "a1ed437c-b3c3-4ca2-b19c-4239d658d5e8" -# define FSOBJTYPE_IID { \ - 0xa1ed437c, 0xb3c3, 0x4ca2, \ - { 0xb1, 0x9c, 0x42, 0x39, 0xd6, 0x58, 0xd5, 0xe8 } \ -} -enum FsObjType -{ - FsObjType_Undefined =3D 0, - FsObjType_FIFO =3D 1, - FsObjType_DevChar =3D 10, - FsObjType_DevBlock =3D 11, - FsObjType_Directory =3D 50, - FsObjType_File =3D 80, - FsObjType_Symlink =3D 100, - FsObjType_Socket =3D 200, - FsObjType_Whiteout =3D 400 -}; -/* End of enum FsObjType Declaration */ - - -/* Start of enum DragAndDropAction Declaration */ -# define DRAGANDDROPACTION_IID_STR "47f3b162-c107-4fcd-bfa7-54b8135c441e" -# define DRAGANDDROPACTION_IID { \ - 0x47f3b162, 0xc107, 0x4fcd, \ - { 0xbf, 0xa7, 0x54, 0xb8, 0x13, 0x5c, 0x44, 0x1e } \ -} -enum DragAndDropAction -{ - DragAndDropAction_Ignore =3D 0, - DragAndDropAction_Copy =3D 1, - DragAndDropAction_Move =3D 2, - DragAndDropAction_Link =3D 3 -}; -/* End of enum DragAndDropAction Declaration */ - - -/* Start of enum DirectoryOpenFlag Declaration */ -# define DIRECTORYOPENFLAG_IID_STR "5138837a-8fd2-4194-a1b0-08f7bc3949d0" -# define DIRECTORYOPENFLAG_IID { \ - 0x5138837a, 0x8fd2, 0x4194, \ - { 0xa1, 0xb0, 0x08, 0xf7, 0xbc, 0x39, 0x49, 0xd0 } \ -} -enum DirectoryOpenFlag -{ - DirectoryOpenFlag_None =3D 0, - DirectoryOpenFlag_NoSymlinks =3D 1 -}; -/* End of enum DirectoryOpenFlag Declaration */ - - -/* Start of enum MediumState Declaration */ -# define MEDIUMSTATE_IID_STR "ef41e980-e012-43cd-9dea-479d4ef14d13" -# define MEDIUMSTATE_IID { \ - 0xef41e980, 0xe012, 0x43cd, \ - { 0x9d, 0xea, 0x47, 0x9d, 0x4e, 0xf1, 0x4d, 0x13 } \ -} -enum MediumState -{ - MediumState_NotCreated =3D 0, - MediumState_Created =3D 1, - MediumState_LockedRead =3D 2, - MediumState_LockedWrite =3D 3, - MediumState_Inaccessible =3D 4, - MediumState_Creating =3D 5, - MediumState_Deleting =3D 6 -}; -/* End of enum MediumState Declaration */ - - -/* Start of enum MediumType Declaration */ -# define MEDIUMTYPE_IID_STR "fe663fb5-c244-4e1b-9d81-c628b417dd04" -# define MEDIUMTYPE_IID { \ - 0xfe663fb5, 0xc244, 0x4e1b, \ - { 0x9d, 0x81, 0xc6, 0x28, 0xb4, 0x17, 0xdd, 0x04 } \ -} -enum MediumType -{ - MediumType_Normal =3D 0, - MediumType_Immutable =3D 1, - MediumType_Writethrough =3D 2, - MediumType_Shareable =3D 3, - MediumType_Readonly =3D 4, - MediumType_MultiAttach =3D 5 -}; -/* End of enum MediumType Declaration */ - - -/* Start of enum MediumVariant Declaration */ -# define MEDIUMVARIANT_IID_STR "80685b6b-e42f-497d-8271-e77bf3c61ada" -# define MEDIUMVARIANT_IID { \ - 0x80685b6b, 0xe42f, 0x497d, \ - { 0x82, 0x71, 0xe7, 0x7b, 0xf3, 0xc6, 0x1a, 0xda } \ -} -enum MediumVariant -{ - MediumVariant_Standard =3D 0, - MediumVariant_VmdkSplit2G =3D 0x01, - MediumVariant_VmdkRawDisk =3D 0x02, - MediumVariant_VmdkStreamOptimized =3D 0x04, - MediumVariant_VmdkESX =3D 0x08, - MediumVariant_Fixed =3D 0x10000, - MediumVariant_Diff =3D 0x20000, - MediumVariant_NoCreateDir =3D 0x40000000 -}; -/* End of enum MediumVariant Declaration */ - - -/* Start of enum DataType Declaration */ -# define DATATYPE_IID_STR "d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7" -# define DATATYPE_IID { \ - 0xd90ea51e, 0xa3f1, 0x4a01, \ - { 0xbe, 0xb1, 0xc1, 0x72, 0x3c, 0x0d, 0x3b, 0xa7 } \ -} -enum DataType -{ - DataType_Int32 =3D 0, - DataType_Int8 =3D 1, - DataType_String =3D 2 -}; -/* End of enum DataType Declaration */ - - -/* Start of enum DataFlags Declaration */ -# define DATAFLAGS_IID_STR "86884dcf-1d6b-4f1b-b4bf-f5aa44959d60" -# define DATAFLAGS_IID { \ - 0x86884dcf, 0x1d6b, 0x4f1b, \ - { 0xb4, 0xbf, 0xf5, 0xaa, 0x44, 0x95, 0x9d, 0x60 } \ -} -enum DataFlags -{ - DataFlags_None =3D 0x00, - DataFlags_Mandatory =3D 0x01, - DataFlags_Expert =3D 0x02, - DataFlags_Array =3D 0x04, - DataFlags_FlagMask =3D 0x07 -}; -/* End of enum DataFlags Declaration */ - - -/* Start of enum MediumFormatCapabilities Declaration */ -# define MEDIUMFORMATCAPABILITIES_IID_STR "7342ba79-7ce0-4d94-8f86-5ed5a1= 85d9bd" -# define MEDIUMFORMATCAPABILITIES_IID { \ - 0x7342ba79, 0x7ce0, 0x4d94, \ - { 0x8f, 0x86, 0x5e, 0xd5, 0xa1, 0x85, 0xd9, 0xbd } \ -} -enum MediumFormatCapabilities -{ - MediumFormatCapabilities_Uuid =3D 0x01, - MediumFormatCapabilities_CreateFixed =3D 0x02, - MediumFormatCapabilities_CreateDynamic =3D 0x04, - MediumFormatCapabilities_CreateSplit2G =3D 0x08, - MediumFormatCapabilities_Differencing =3D 0x10, - MediumFormatCapabilities_Asynchronous =3D 0x20, - MediumFormatCapabilities_File =3D 0x40, - MediumFormatCapabilities_Properties =3D 0x80, - MediumFormatCapabilities_TcpNetworking =3D 0x100, - MediumFormatCapabilities_VFS =3D 0x200, - MediumFormatCapabilities_CapabilityMask =3D 0x3FF -}; -/* End of enum MediumFormatCapabilities Declaration */ - - -/* Start of enum MouseButtonState Declaration */ -# define MOUSEBUTTONSTATE_IID_STR "9ee094b8-b28a-4d56-a166-973cb588d7f8" -# define MOUSEBUTTONSTATE_IID { \ - 0x9ee094b8, 0xb28a, 0x4d56, \ - { 0xa1, 0x66, 0x97, 0x3c, 0xb5, 0x88, 0xd7, 0xf8 } \ -} -enum MouseButtonState -{ - MouseButtonState_LeftButton =3D 0x01, - MouseButtonState_RightButton =3D 0x02, - MouseButtonState_MiddleButton =3D 0x04, - MouseButtonState_WheelUp =3D 0x08, - MouseButtonState_WheelDown =3D 0x10, - MouseButtonState_XButton1 =3D 0x20, - MouseButtonState_XButton2 =3D 0x40, - MouseButtonState_MouseStateMask =3D 0x7F -}; -/* End of enum MouseButtonState Declaration */ - - -/* Start of enum TouchContactState Declaration */ -# define TOUCHCONTACTSTATE_IID_STR "3f942686-2506-421c-927c-90d4b45f4a38" -# define TOUCHCONTACTSTATE_IID { \ - 0x3f942686, 0x2506, 0x421c, \ - { 0x92, 0x7c, 0x90, 0xd4, 0xb4, 0x5f, 0x4a, 0x38 } \ -} -enum TouchContactState -{ - TouchContactState_None =3D 0x00, - TouchContactState_InContact =3D 0x01, - TouchContactState_InRange =3D 0x02, - TouchContactState_ContactStateMask =3D 0x03 -}; -/* End of enum TouchContactState Declaration */ - - -/* Start of enum FramebufferPixelFormat Declaration */ -# define FRAMEBUFFERPIXELFORMAT_IID_STR "7acfd5ed-29e3-45e3-8136-73c9224f= 3d2d" -# define FRAMEBUFFERPIXELFORMAT_IID { \ - 0x7acfd5ed, 0x29e3, 0x45e3, \ - { 0x81, 0x36, 0x73, 0xc9, 0x22, 0x4f, 0x3d, 0x2d } \ -} -enum FramebufferPixelFormat -{ - FramebufferPixelFormat_Opaque =3D 0, - FramebufferPixelFormat_FOURCC_RGB =3D 0x32424752 -}; -/* End of enum FramebufferPixelFormat Declaration */ - - -/* Start of enum NetworkAttachmentType Declaration */ -# define NETWORKATTACHMENTTYPE_IID_STR "524a8f9d-4b86-4b51-877d-1aa27c4eb= eac" -# define NETWORKATTACHMENTTYPE_IID { \ - 0x524a8f9d, 0x4b86, 0x4b51, \ - { 0x87, 0x7d, 0x1a, 0xa2, 0x7c, 0x4e, 0xbe, 0xac } \ -} -enum NetworkAttachmentType -{ - NetworkAttachmentType_Null =3D 0, - NetworkAttachmentType_NAT =3D 1, - NetworkAttachmentType_Bridged =3D 2, - NetworkAttachmentType_Internal =3D 3, - NetworkAttachmentType_HostOnly =3D 4, - NetworkAttachmentType_Generic =3D 5, - NetworkAttachmentType_NATNetwork =3D 6 -}; -/* End of enum NetworkAttachmentType Declaration */ - - -/* Start of enum NetworkAdapterType Declaration */ -# define NETWORKADAPTERTYPE_IID_STR "3c2281e4-d952-4e87-8c7d-24379cb6a81c" -# define NETWORKADAPTERTYPE_IID { \ - 0x3c2281e4, 0xd952, 0x4e87, \ - { 0x8c, 0x7d, 0x24, 0x37, 0x9c, 0xb6, 0xa8, 0x1c } \ -} -enum NetworkAdapterType -{ - NetworkAdapterType_Null =3D 0, - NetworkAdapterType_Am79C970A =3D 1, - NetworkAdapterType_Am79C973 =3D 2, - NetworkAdapterType_I82540EM =3D 3, - NetworkAdapterType_I82543GC =3D 4, - NetworkAdapterType_I82545EM =3D 5, - NetworkAdapterType_Virtio =3D 6 -}; -/* End of enum NetworkAdapterType Declaration */ - - -/* Start of enum NetworkAdapterPromiscModePolicy Declaration */ -# define NETWORKADAPTERPROMISCMODEPOLICY_IID_STR "c963768a-376f-4c85-8d84= -d8ced4b7269e" -# define NETWORKADAPTERPROMISCMODEPOLICY_IID { \ - 0xc963768a, 0x376f, 0x4c85, \ - { 0x8d, 0x84, 0xd8, 0xce, 0xd4, 0xb7, 0x26, 0x9e } \ -} -enum NetworkAdapterPromiscModePolicy -{ - NetworkAdapterPromiscModePolicy_Deny =3D 1, - NetworkAdapterPromiscModePolicy_AllowNetwork =3D 2, - NetworkAdapterPromiscModePolicy_AllowAll =3D 3 -}; -/* End of enum NetworkAdapterPromiscModePolicy Declaration */ - - -/* Start of enum PortMode Declaration */ -# define PORTMODE_IID_STR "533b5fe3-0185-4197-86a7-17e37dd39d76" -# define PORTMODE_IID { \ - 0x533b5fe3, 0x0185, 0x4197, \ - { 0x86, 0xa7, 0x17, 0xe3, 0x7d, 0xd3, 0x9d, 0x76 } \ -} -enum PortMode -{ - PortMode_Disconnected =3D 0, - PortMode_HostPipe =3D 1, - PortMode_HostDevice =3D 2, - PortMode_RawFile =3D 3 -}; -/* End of enum PortMode Declaration */ - - -/* Start of enum USBControllerType Declaration */ -# define USBCONTROLLERTYPE_IID_STR "8fdd1c6a-5412-41da-ab07-7baed7d6e18e" -# define USBCONTROLLERTYPE_IID { \ - 0x8fdd1c6a, 0x5412, 0x41da, \ - { 0xab, 0x07, 0x7b, 0xae, 0xd7, 0xd6, 0xe1, 0x8e } \ -} -enum USBControllerType -{ - USBControllerType_Null =3D 0, - USBControllerType_OHCI =3D 1, - USBControllerType_EHCI =3D 2, - USBControllerType_Last =3D 3 -}; -/* End of enum USBControllerType Declaration */ - - -/* Start of enum USBDeviceState Declaration */ -# define USBDEVICESTATE_IID_STR "b99a2e65-67fb-4882-82fd-f3e5e8193ab4" -# define USBDEVICESTATE_IID { \ - 0xb99a2e65, 0x67fb, 0x4882, \ - { 0x82, 0xfd, 0xf3, 0xe5, 0xe8, 0x19, 0x3a, 0xb4 } \ -} -enum USBDeviceState -{ - USBDeviceState_NotSupported =3D 0, - USBDeviceState_Unavailable =3D 1, - USBDeviceState_Busy =3D 2, - USBDeviceState_Available =3D 3, - USBDeviceState_Held =3D 4, - USBDeviceState_Captured =3D 5 -}; -/* End of enum USBDeviceState Declaration */ - - -/* Start of enum USBDeviceFilterAction Declaration */ -# define USBDEVICEFILTERACTION_IID_STR "cbc30a49-2f4e-43b5-9da6-121320475= 933" -# define USBDEVICEFILTERACTION_IID { \ - 0xcbc30a49, 0x2f4e, 0x43b5, \ - { 0x9d, 0xa6, 0x12, 0x13, 0x20, 0x47, 0x59, 0x33 } \ -} -enum USBDeviceFilterAction -{ - USBDeviceFilterAction_Null =3D 0, - USBDeviceFilterAction_Ignore =3D 1, - USBDeviceFilterAction_Hold =3D 2 -}; -/* End of enum USBDeviceFilterAction Declaration */ - - -/* Start of enum AudioDriverType Declaration */ -# define AUDIODRIVERTYPE_IID_STR "4bcc3d73-c2fe-40db-b72f-0c2ca9d68496" -# define AUDIODRIVERTYPE_IID { \ - 0x4bcc3d73, 0xc2fe, 0x40db, \ - { 0xb7, 0x2f, 0x0c, 0x2c, 0xa9, 0xd6, 0x84, 0x96 } \ -} -enum AudioDriverType -{ - AudioDriverType_Null =3D 0, - AudioDriverType_WinMM =3D 1, - AudioDriverType_OSS =3D 2, - AudioDriverType_ALSA =3D 3, - AudioDriverType_DirectSound =3D 4, - AudioDriverType_CoreAudio =3D 5, - AudioDriverType_MMPM =3D 6, - AudioDriverType_Pulse =3D 7, - AudioDriverType_SolAudio =3D 8 -}; -/* End of enum AudioDriverType Declaration */ - - -/* Start of enum AudioControllerType Declaration */ -# define AUDIOCONTROLLERTYPE_IID_STR "7afd395c-42c3-444e-8788-3ce80292f36= c" -# define AUDIOCONTROLLERTYPE_IID { \ - 0x7afd395c, 0x42c3, 0x444e, \ - { 0x87, 0x88, 0x3c, 0xe8, 0x02, 0x92, 0xf3, 0x6c } \ -} -enum AudioControllerType -{ - AudioControllerType_AC97 =3D 0, - AudioControllerType_SB16 =3D 1, - AudioControllerType_HDA =3D 2 -}; -/* End of enum AudioControllerType Declaration */ - - -/* Start of enum AuthType Declaration */ -# define AUTHTYPE_IID_STR "7eef6ef6-98c2-4dc2-ab35-10d2b292028d" -# define AUTHTYPE_IID { \ - 0x7eef6ef6, 0x98c2, 0x4dc2, \ - { 0xab, 0x35, 0x10, 0xd2, 0xb2, 0x92, 0x02, 0x8d } \ -} -enum AuthType -{ - AuthType_Null =3D 0, - AuthType_External =3D 1, - AuthType_Guest =3D 2 -}; -/* End of enum AuthType Declaration */ - - -/* Start of enum Reason Declaration */ -# define REASON_IID_STR "e7e8e097-299d-4e98-8bbc-c31c2d47d0cc" -# define REASON_IID { \ - 0xe7e8e097, 0x299d, 0x4e98, \ - { 0x8b, 0xbc, 0xc3, 0x1c, 0x2d, 0x47, 0xd0, 0xcc } \ -} -enum Reason -{ - Reason_Unspecified =3D 0, - Reason_HostSuspend =3D 1, - Reason_HostResume =3D 2, - Reason_HostBatteryLow =3D 3 -}; -/* End of enum Reason Declaration */ - - -/* Start of enum StorageBus Declaration */ -# define STORAGEBUS_IID_STR "eee67ab3-668d-4ef5-91e0-7025fe4a0d7a" -# define STORAGEBUS_IID { \ - 0xeee67ab3, 0x668d, 0x4ef5, \ - { 0x91, 0xe0, 0x70, 0x25, 0xfe, 0x4a, 0x0d, 0x7a } \ -} -enum StorageBus -{ - StorageBus_Null =3D 0, - StorageBus_IDE =3D 1, - StorageBus_SATA =3D 2, - StorageBus_SCSI =3D 3, - StorageBus_Floppy =3D 4, - StorageBus_SAS =3D 5 -}; -/* End of enum StorageBus Declaration */ - - -/* Start of enum StorageControllerType Declaration */ -# define STORAGECONTROLLERTYPE_IID_STR "8a412b8a-f43e-4456-bd37-b474f0879= a58" -# define STORAGECONTROLLERTYPE_IID { \ - 0x8a412b8a, 0xf43e, 0x4456, \ - { 0xbd, 0x37, 0xb4, 0x74, 0xf0, 0x87, 0x9a, 0x58 } \ -} -enum StorageControllerType -{ - StorageControllerType_Null =3D 0, - StorageControllerType_LsiLogic =3D 1, - StorageControllerType_BusLogic =3D 2, - StorageControllerType_IntelAhci =3D 3, - StorageControllerType_PIIX3 =3D 4, - StorageControllerType_PIIX4 =3D 5, - StorageControllerType_ICH6 =3D 6, - StorageControllerType_I82078 =3D 7, - StorageControllerType_LsiLogicSas =3D 8 -}; -/* End of enum StorageControllerType Declaration */ - - -/* Start of enum ChipsetType Declaration */ -# define CHIPSETTYPE_IID_STR "8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394" -# define CHIPSETTYPE_IID { \ - 0x8b4096a8, 0xa7c3, 0x4d3b, \ - { 0xbb, 0xb1, 0x05, 0xa0, 0xa5, 0x1e, 0xc3, 0x94 } \ -} -enum ChipsetType -{ - ChipsetType_Null =3D 0, - ChipsetType_PIIX3 =3D 1, - ChipsetType_ICH9 =3D 2 -}; -/* End of enum ChipsetType Declaration */ - - -/* Start of enum NATAliasMode Declaration */ -# define NATALIASMODE_IID_STR "67772168-50d9-11df-9669-7fb714ee4fa1" -# define NATALIASMODE_IID { \ - 0x67772168, 0x50d9, 0x11df, \ - { 0x96, 0x69, 0x7f, 0xb7, 0x14, 0xee, 0x4f, 0xa1 } \ -} -enum NATAliasMode -{ - NATAliasMode_AliasLog =3D 0x1, - NATAliasMode_AliasProxyOnly =3D 0x02, - NATAliasMode_AliasUseSamePorts =3D 0x04 -}; -/* End of enum NATAliasMode Declaration */ - - -/* Start of enum NATProtocol Declaration */ -# define NATPROTOCOL_IID_STR "e90164be-eb03-11de-94af-fff9b1c1b19f" -# define NATPROTOCOL_IID { \ - 0xe90164be, 0xeb03, 0x11de, \ - { 0x94, 0xaf, 0xff, 0xf9, 0xb1, 0xc1, 0xb1, 0x9f } \ -} -enum NATProtocol -{ - NATProtocol_UDP =3D 0, - NATProtocol_TCP =3D 1 -}; -/* End of enum NATProtocol Declaration */ - - -/* Start of enum BandwidthGroupType Declaration */ -# define BANDWIDTHGROUPTYPE_IID_STR "1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e" -# define BANDWIDTHGROUPTYPE_IID { \ - 0x1d92b67d, 0xdc69, 0x4be9, \ - { 0xad, 0x4c, 0x93, 0xa0, 0x1e, 0x1e, 0x0c, 0x8e } \ -} -enum BandwidthGroupType -{ - BandwidthGroupType_Null =3D 0, - BandwidthGroupType_Disk =3D 1, - BandwidthGroupType_Network =3D 2 -}; -/* End of enum BandwidthGroupType Declaration */ - - -/* Start of enum VBoxEventType Declaration */ -# define VBOXEVENTTYPE_IID_STR "5248e377-e578-47d7-b07b-84b1db6db8a8" -# define VBOXEVENTTYPE_IID { \ - 0x5248e377, 0xe578, 0x47d7, \ - { 0xb0, 0x7b, 0x84, 0xb1, 0xdb, 0x6d, 0xb8, 0xa8 } \ -} -enum VBoxEventType -{ - VBoxEventType_Invalid =3D 0, - VBoxEventType_Any =3D 1, - VBoxEventType_Vetoable =3D 2, - VBoxEventType_MachineEvent =3D 3, - VBoxEventType_SnapshotEvent =3D 4, - VBoxEventType_InputEvent =3D 5, - VBoxEventType_LastWildcard =3D 31, - VBoxEventType_OnMachineStateChanged =3D 32, - VBoxEventType_OnMachineDataChanged =3D 33, - VBoxEventType_OnExtraDataChanged =3D 34, - VBoxEventType_OnExtraDataCanChange =3D 35, - VBoxEventType_OnMediumRegistered =3D 36, - VBoxEventType_OnMachineRegistered =3D 37, - VBoxEventType_OnSessionStateChanged =3D 38, - VBoxEventType_OnSnapshotTaken =3D 39, - VBoxEventType_OnSnapshotDeleted =3D 40, - VBoxEventType_OnSnapshotChanged =3D 41, - VBoxEventType_OnGuestPropertyChanged =3D 42, - VBoxEventType_OnMousePointerShapeChanged =3D 43, - VBoxEventType_OnMouseCapabilityChanged =3D 44, - VBoxEventType_OnKeyboardLedsChanged =3D 45, - VBoxEventType_OnStateChanged =3D 46, - VBoxEventType_OnAdditionsStateChanged =3D 47, - VBoxEventType_OnNetworkAdapterChanged =3D 48, - VBoxEventType_OnSerialPortChanged =3D 49, - VBoxEventType_OnParallelPortChanged =3D 50, - VBoxEventType_OnStorageControllerChanged =3D 51, - VBoxEventType_OnMediumChanged =3D 52, - VBoxEventType_OnVRDEServerChanged =3D 53, - VBoxEventType_OnUSBControllerChanged =3D 54, - VBoxEventType_OnUSBDeviceStateChanged =3D 55, - VBoxEventType_OnSharedFolderChanged =3D 56, - VBoxEventType_OnRuntimeError =3D 57, - VBoxEventType_OnCanShowWindow =3D 58, - VBoxEventType_OnShowWindow =3D 59, - VBoxEventType_OnCPUChanged =3D 60, - VBoxEventType_OnVRDEServerInfoChanged =3D 61, - VBoxEventType_OnEventSourceChanged =3D 62, - VBoxEventType_OnCPUExecutionCapChanged =3D 63, - VBoxEventType_OnGuestKeyboard =3D 64, - VBoxEventType_OnGuestMouse =3D 65, - VBoxEventType_OnNATRedirect =3D 66, - VBoxEventType_OnHostPCIDevicePlug =3D 67, - VBoxEventType_OnVBoxSVCAvailabilityChanged =3D 68, - VBoxEventType_OnBandwidthGroupChanged =3D 69, - VBoxEventType_OnGuestMonitorChanged =3D 70, - VBoxEventType_OnStorageDeviceChanged =3D 71, - VBoxEventType_OnClipboardModeChanged =3D 72, - VBoxEventType_OnDragAndDropModeChanged =3D 73, - VBoxEventType_OnNATNetworkChanged =3D 74, - VBoxEventType_OnNATNetworkStartStop =3D 75, - VBoxEventType_OnNATNetworkAlter =3D 76, - VBoxEventType_OnNATNetworkCreationDeletion =3D 77, - VBoxEventType_OnNATNetworkSetting =3D 78, - VBoxEventType_OnNATNetworkPortForward =3D 79, - VBoxEventType_OnGuestSessionStateChanged =3D 80, - VBoxEventType_OnGuestSessionRegistered =3D 81, - VBoxEventType_OnGuestProcessRegistered =3D 82, - VBoxEventType_OnGuestProcessStateChanged =3D 83, - VBoxEventType_OnGuestProcessInputNotify =3D 84, - VBoxEventType_OnGuestProcessOutput =3D 85, - VBoxEventType_OnGuestFileRegistered =3D 86, - VBoxEventType_OnGuestFileStateChanged =3D 87, - VBoxEventType_OnGuestFileOffsetChanged =3D 88, - VBoxEventType_OnGuestFileRead =3D 89, - VBoxEventType_OnGuestFileWrite =3D 90, - VBoxEventType_OnVideoCaptureChanged =3D 91, - VBoxEventType_OnGuestUserStateChanged =3D 92, - VBoxEventType_OnGuestMultiTouch =3D 93, - VBoxEventType_OnHostNameResolutionConfigurationChange =3D 94, - VBoxEventType_Last =3D 95 -}; -/* End of enum VBoxEventType Declaration */ - - -/* Start of enum GuestMouseEventMode Declaration */ -# define GUESTMOUSEEVENTMODE_IID_STR "4b500146-ebba-4b7c-bc29-69c2d57a5ca= f" -# define GUESTMOUSEEVENTMODE_IID { \ - 0x4b500146, 0xebba, 0x4b7c, \ - { 0xbc, 0x29, 0x69, 0xc2, 0xd5, 0x7a, 0x5c, 0xaf } \ -} -enum GuestMouseEventMode -{ - GuestMouseEventMode_Relative =3D 0, - GuestMouseEventMode_Absolute =3D 1 -}; -/* End of enum GuestMouseEventMode Declaration */ - - -/* Start of enum GuestMonitorChangedEventType Declaration */ -# define GUESTMONITORCHANGEDEVENTTYPE_IID_STR "ef172985-7e36-4297-95be-e4= 6396968d66" -# define GUESTMONITORCHANGEDEVENTTYPE_IID { \ - 0xef172985, 0x7e36, 0x4297, \ - { 0x95, 0xbe, 0xe4, 0x63, 0x96, 0x96, 0x8d, 0x66 } \ -} -enum GuestMonitorChangedEventType -{ - GuestMonitorChangedEventType_Enabled =3D 0, - GuestMonitorChangedEventType_Disabled =3D 1, - GuestMonitorChangedEventType_NewOrigin =3D 2 -}; -/* End of enum GuestMonitorChangedEventType Declaration */ - - -/* Start of struct IVirtualBoxErrorInfo Declaration */ -# define IVIRTUALBOXERRORINFO_IID_STR "c1bcc6d5-7966-481d-ab0b-d0ed73e281= 35" -# define IVIRTUALBOXERRORINFO_IID { \ - 0xc1bcc6d5, 0x7966, 0x481d, \ - { 0xab, 0x0b, 0xd0, 0xed, 0x73, 0xe2, 0x81, 0x35 } \ -} -struct IVirtualBoxErrorInfo_vtbl -{ - struct nsIException_vtbl nsiexception; - - nsresult (*GetResultCode)(IVirtualBoxErrorInfo *pThis, PRInt32 *result= Code); - - nsresult (*GetResultDetail)(IVirtualBoxErrorInfo *pThis, PRInt32 *resu= ltDetail); - - nsresult (*GetInterfaceID)(IVirtualBoxErrorInfo *pThis, PRUnichar * *i= nterfaceID); - - nsresult (*GetComponent)(IVirtualBoxErrorInfo *pThis, PRUnichar * *com= ponent); - - nsresult (*GetText)(IVirtualBoxErrorInfo *pThis, PRUnichar * *text); - - nsresult (*GetNext)(IVirtualBoxErrorInfo *pThis, IVirtualBoxErrorInfo = * *next); - -}; - -struct IVirtualBoxErrorInfo -{ - struct IVirtualBoxErrorInfo_vtbl *vtbl; -}; -/* End of struct IVirtualBoxErrorInfo Declaration */ - - -/* Start of struct INATNetwork Declaration */ -# define INATNETWORK_IID_STR "a63c75da-4c99-4e9d-8351-eb73651c18cc" -# define INATNETWORK_IID { \ - 0xa63c75da, 0x4c99, 0x4e9d, \ - { 0x83, 0x51, 0xeb, 0x73, 0x65, 0x1c, 0x18, 0xcc } \ -} -struct INATNetwork_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetNetworkName)(INATNetwork *pThis, PRUnichar * *networkNam= e); - nsresult (*SetNetworkName)(INATNetwork *pThis, PRUnichar * networkName= ); - - nsresult (*GetEnabled)(INATNetwork *pThis, PRBool *enabled); - nsresult (*SetEnabled)(INATNetwork *pThis, PRBool enabled); - - nsresult (*GetNetwork)(INATNetwork *pThis, PRUnichar * *network); - nsresult (*SetNetwork)(INATNetwork *pThis, PRUnichar * network); - - nsresult (*GetGateway)(INATNetwork *pThis, PRUnichar * *gateway); - - nsresult (*GetIPv6Enabled)(INATNetwork *pThis, PRBool *IPv6Enabled); - nsresult (*SetIPv6Enabled)(INATNetwork *pThis, PRBool IPv6Enabled); - - nsresult (*GetIPv6Prefix)(INATNetwork *pThis, PRUnichar * *IPv6Prefix); - nsresult (*SetIPv6Prefix)(INATNetwork *pThis, PRUnichar * IPv6Prefix); - - nsresult (*GetAdvertiseDefaultIPv6RouteEnabled)(INATNetwork *pThis, PR= Bool *advertiseDefaultIPv6RouteEnabled); - nsresult (*SetAdvertiseDefaultIPv6RouteEnabled)(INATNetwork *pThis, PR= Bool advertiseDefaultIPv6RouteEnabled); - - nsresult (*GetNeedDhcpServer)(INATNetwork *pThis, PRBool *needDhcpServ= er); - nsresult (*SetNeedDhcpServer)(INATNetwork *pThis, PRBool needDhcpServe= r); - - nsresult (*GetEventSource)(INATNetwork *pThis, IEventSource * *eventSo= urce); - - nsresult (*GetPortForwardRules4)(INATNetwork *pThis, PRUint32 *portFor= wardRules4Size, PRUnichar * **portForwardRules4); - - nsresult (*GetLocalMappings)(INATNetwork *pThis, PRUint32 *localMappin= gsSize, PRUnichar * **localMappings); - - nsresult (*GetLoopbackIp6)(INATNetwork *pThis, PRInt32 *loopbackIp6); - nsresult (*SetLoopbackIp6)(INATNetwork *pThis, PRInt32 loopbackIp6); - - nsresult (*GetPortForwardRules6)(INATNetwork *pThis, PRUint32 *portFor= wardRules6Size, PRUnichar * **portForwardRules6); - - nsresult (*AddLocalMapping)( - INATNetwork *pThis, - PRUnichar * hostid, - PRInt32 offset - ); - - nsresult (*AddPortForwardRule)( - INATNetwork *pThis, - PRBool isIpv6, - PRUnichar * ruleName, - PRUint32 proto, - PRUnichar * hostIP, - PRUint16 hostPort, - PRUnichar * guestIP, - PRUint16 guestPort - ); - - nsresult (*RemovePortForwardRule)( - INATNetwork *pThis, - PRBool iSipv6, - PRUnichar * ruleName - ); - - nsresult (*Start)( - INATNetwork *pThis, - PRUnichar * trunkType - ); - - nsresult (*Stop)(INATNetwork *pThis ); - -}; - -struct INATNetwork -{ - struct INATNetwork_vtbl *vtbl; -}; -/* End of struct INATNetwork Declaration */ - - -/* Start of struct IDHCPServer Declaration */ -# define IDHCPSERVER_IID_STR "ff0774c5-1f62-4bc3-919c-7fc942bf1d25" -# define IDHCPSERVER_IID { \ - 0xff0774c5, 0x1f62, 0x4bc3, \ - { 0x91, 0x9c, 0x7f, 0xc9, 0x42, 0xbf, 0x1d, 0x25 } \ -} -struct IDHCPServer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetEventSource)(IDHCPServer *pThis, IEventSource * *eventSo= urce); - - nsresult (*GetEnabled)(IDHCPServer *pThis, PRBool *enabled); - nsresult (*SetEnabled)(IDHCPServer *pThis, PRBool enabled); - - nsresult (*GetIPAddress)(IDHCPServer *pThis, PRUnichar * *IPAddress); - - nsresult (*GetNetworkMask)(IDHCPServer *pThis, PRUnichar * *networkMas= k); - - nsresult (*GetNetworkName)(IDHCPServer *pThis, PRUnichar * *networkNam= e); - - nsresult (*GetLowerIP)(IDHCPServer *pThis, PRUnichar * *lowerIP); - - nsresult (*GetUpperIP)(IDHCPServer *pThis, PRUnichar * *upperIP); - - nsresult (*GetGlobalOptions)(IDHCPServer *pThis, PRUint32 *globalOptio= nsSize, PRUnichar * **globalOptions); - - nsresult (*GetVmConfigs)(IDHCPServer *pThis, PRUint32 *vmConfigsSize, = PRUnichar * **vmConfigs); - - nsresult (*AddGlobalOption)( - IDHCPServer *pThis, - PRUint32 option, - PRUnichar * value - ); - - nsresult (*AddVmSlotOption)( - IDHCPServer *pThis, - PRUnichar * vmname, - PRInt32 slot, - PRUint32 option, - PRUnichar * value - ); - - nsresult (*RemoveVmSlotOptions)( - IDHCPServer *pThis, - PRUnichar * vmname, - PRInt32 slot - ); - - nsresult (*GetVmSlotOptions)( - IDHCPServer *pThis, - PRUnichar * vmname, - PRInt32 slot, - PRUint32 *optionSize, - PRUnichar *** option - ); - - nsresult (*GetMacOptions)( - IDHCPServer *pThis, - PRUnichar * mac, - PRUint32 *optionSize, - PRUnichar *** option - ); - - nsresult (*SetConfiguration)( - IDHCPServer *pThis, - PRUnichar * IPAddress, - PRUnichar * networkMask, - PRUnichar * FromIPAddress, - PRUnichar * ToIPAddress - ); - - nsresult (*Start)( - IDHCPServer *pThis, - PRUnichar * networkName, - PRUnichar * trunkName, - PRUnichar * trunkType - ); - - nsresult (*Stop)(IDHCPServer *pThis ); - -}; - -struct IDHCPServer -{ - struct IDHCPServer_vtbl *vtbl; -}; -/* End of struct IDHCPServer Declaration */ - - -/* Start of struct IVirtualBox Declaration */ -# define IVIRTUALBOX_IID_STR "fafa4e17-1ee2-4905-a10e-fe7c18bf5554" -# define IVIRTUALBOX_IID { \ - 0xfafa4e17, 0x1ee2, 0x4905, \ - { 0xa1, 0x0e, 0xfe, 0x7c, 0x18, 0xbf, 0x55, 0x54 } \ -} -struct IVirtualBox_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetVersion)(IVirtualBox *pThis, PRUnichar * *version); - - nsresult (*GetVersionNormalized)(IVirtualBox *pThis, PRUnichar * *vers= ionNormalized); - - nsresult (*GetRevision)(IVirtualBox *pThis, PRUint32 *revision); - - nsresult (*GetPackageType)(IVirtualBox *pThis, PRUnichar * *packageTyp= e); - - nsresult (*GetAPIVersion)(IVirtualBox *pThis, PRUnichar * *APIVersion); - - nsresult (*GetHomeFolder)(IVirtualBox *pThis, PRUnichar * *homeFolder); - - nsresult (*GetSettingsFilePath)(IVirtualBox *pThis, PRUnichar * *setti= ngsFilePath); - - nsresult (*GetHost)(IVirtualBox *pThis, IHost * *host); - - nsresult (*GetSystemProperties)(IVirtualBox *pThis, ISystemProperties = * *systemProperties); - - nsresult (*GetMachines)(IVirtualBox *pThis, PRUint32 *machinesSize, IM= achine * **machines); - - nsresult (*GetMachineGroups)(IVirtualBox *pThis, PRUint32 *machineGrou= psSize, PRUnichar * **machineGroups); - - nsresult (*GetHardDisks)(IVirtualBox *pThis, PRUint32 *hardDisksSize, = IMedium * **hardDisks); - - nsresult (*GetDVDImages)(IVirtualBox *pThis, PRUint32 *DVDImagesSize, = IMedium * **DVDImages); - - nsresult (*GetFloppyImages)(IVirtualBox *pThis, PRUint32 *floppyImages= Size, IMedium * **floppyImages); - - nsresult (*GetProgressOperations)(IVirtualBox *pThis, PRUint32 *progre= ssOperationsSize, IProgress * **progressOperations); - - nsresult (*GetGuestOSTypes)(IVirtualBox *pThis, PRUint32 *guestOSTypes= Size, IGuestOSType * **guestOSTypes); - - nsresult (*GetSharedFolders)(IVirtualBox *pThis, PRUint32 *sharedFolde= rsSize, ISharedFolder * **sharedFolders); - - nsresult (*GetPerformanceCollector)(IVirtualBox *pThis, IPerformanceCo= llector * *performanceCollector); - - nsresult (*GetDHCPServers)(IVirtualBox *pThis, PRUint32 *DHCPServersSi= ze, IDHCPServer * **DHCPServers); - - nsresult (*GetNATNetworks)(IVirtualBox *pThis, PRUint32 *NATNetworksSi= ze, INATNetwork * **NATNetworks); - - nsresult (*GetEventSource)(IVirtualBox *pThis, IEventSource * *eventSo= urce); - - nsresult (*GetExtensionPackManager)(IVirtualBox *pThis, IExtPackManage= r * *extensionPackManager); - - nsresult (*GetInternalNetworks)(IVirtualBox *pThis, PRUint32 *internal= NetworksSize, PRUnichar * **internalNetworks); - - nsresult (*GetGenericNetworkDrivers)(IVirtualBox *pThis, PRUint32 *gen= ericNetworkDriversSize, PRUnichar * **genericNetworkDrivers); - - nsresult (*ComposeMachineFilename)( - IVirtualBox *pThis, - PRUnichar * name, - PRUnichar * group, - PRUnichar * createFlags, - PRUnichar * baseFolder, - PRUnichar * * file - ); - - nsresult (*CreateMachine)( - IVirtualBox *pThis, - PRUnichar * settingsFile, - PRUnichar * name, - PRUint32 groupsSize, - PRUnichar ** groups, - PRUnichar * osTypeId, - PRUnichar * flags, - IMachine * * machine - ); - - nsresult (*OpenMachine)( - IVirtualBox *pThis, - PRUnichar * settingsFile, - IMachine * * machine - ); - - nsresult (*RegisterMachine)( - IVirtualBox *pThis, - IMachine * machine - ); - - nsresult (*FindMachine)( - IVirtualBox *pThis, - PRUnichar * nameOrId, - IMachine * * machine - ); - - nsresult (*GetMachinesByGroups)( - IVirtualBox *pThis, - PRUint32 groupsSize, - PRUnichar ** groups, - PRUint32 *machinesSize, - IMachine *** machines - ); - - nsresult (*GetMachineStates)( - IVirtualBox *pThis, - PRUint32 machinesSize, - IMachine ** machines, - PRUint32 *statesSize, - PRUint32** states - ); - - nsresult (*CreateAppliance)( - IVirtualBox *pThis, - IAppliance * * appliance - ); - - nsresult (*CreateHardDisk)( - IVirtualBox *pThis, - PRUnichar * format, - PRUnichar * location, - IMedium * * medium - ); - - nsresult (*OpenMedium)( - IVirtualBox *pThis, - PRUnichar * location, - PRUint32 deviceType, - PRUint32 accessMode, - PRBool forceNewUuid, - IMedium * * medium - ); - - nsresult (*GetGuestOSType)( - IVirtualBox *pThis, - PRUnichar * id, - IGuestOSType * * type - ); - - nsresult (*CreateSharedFolder)( - IVirtualBox *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult (*RemoveSharedFolder)( - IVirtualBox *pThis, - PRUnichar * name - ); - - nsresult (*GetExtraDataKeys)( - IVirtualBox *pThis, - PRUint32 *keysSize, - PRUnichar *** keys - ); - - nsresult (*GetExtraData)( - IVirtualBox *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult (*SetExtraData)( - IVirtualBox *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult (*SetSettingsSecret)( - IVirtualBox *pThis, - PRUnichar * password - ); - - nsresult (*CreateDHCPServer)( - IVirtualBox *pThis, - PRUnichar * name, - IDHCPServer * * server - ); - - nsresult (*FindDHCPServerByNetworkName)( - IVirtualBox *pThis, - PRUnichar * name, - IDHCPServer * * server - ); - - nsresult (*RemoveDHCPServer)( - IVirtualBox *pThis, - IDHCPServer * server - ); - - nsresult (*CreateNATNetwork)( - IVirtualBox *pThis, - PRUnichar * networkName, - INATNetwork * * network - ); - - nsresult (*FindNATNetworkByName)( - IVirtualBox *pThis, - PRUnichar * networkName, - INATNetwork * * network - ); - - nsresult (*RemoveNATNetwork)( - IVirtualBox *pThis, - INATNetwork * network - ); - - nsresult (*CheckFirmwarePresent)( - IVirtualBox *pThis, - PRUint32 firmwareType, - PRUnichar * version, - PRUnichar * * url, - PRUnichar * * file, - PRBool * result - ); - -}; - -struct IVirtualBox -{ - struct IVirtualBox_vtbl *vtbl; -}; -/* End of struct IVirtualBox Declaration */ - - -/* Start of struct IVFSExplorer Declaration */ -# define IVFSEXPLORER_IID_STR "fb220201-2fd3-47e2-a5dc-2c2431d833cc" -# define IVFSEXPLORER_IID { \ - 0xfb220201, 0x2fd3, 0x47e2, \ - { 0xa5, 0xdc, 0x2c, 0x24, 0x31, 0xd8, 0x33, 0xcc } \ -} -struct IVFSExplorer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetPath)(IVFSExplorer *pThis, PRUnichar * *path); - - nsresult (*GetType)(IVFSExplorer *pThis, PRUint32 *type); - - nsresult (*Update)( - IVFSExplorer *pThis, - IProgress * * progress - ); - - nsresult (*Cd)( - IVFSExplorer *pThis, - PRUnichar * dir, - IProgress * * progress - ); - - nsresult (*CdUp)( - IVFSExplorer *pThis, - IProgress * * progress - ); - - nsresult (*EntryList)( - IVFSExplorer *pThis, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *typesSize, - PRUint32* types, - PRUint32 *sizesSize, - PRInt64* sizes, - PRUint32 *modesSize, - PRUint32* modes - ); - - nsresult (*Exists)( - IVFSExplorer *pThis, - PRUint32 namesSize, - PRUnichar ** names, - PRUint32 *existsSize, - PRUnichar *** exists - ); - - nsresult (*Remove)( - IVFSExplorer *pThis, - PRUint32 namesSize, - PRUnichar ** names, - IProgress * * progress - ); - -}; - -struct IVFSExplorer -{ - struct IVFSExplorer_vtbl *vtbl; -}; -/* End of struct IVFSExplorer Declaration */ - - -/* Start of struct IAppliance Declaration */ -# define IAPPLIANCE_IID_STR "3059cf9e-25c7-4f0b-9fa5-3c42e441670b" -# define IAPPLIANCE_IID { \ - 0x3059cf9e, 0x25c7, 0x4f0b, \ - { 0x9f, 0xa5, 0x3c, 0x42, 0xe4, 0x41, 0x67, 0x0b } \ -} -struct IAppliance_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetPath)(IAppliance *pThis, PRUnichar * *path); - - nsresult (*GetDisks)(IAppliance *pThis, PRUint32 *disksSize, PRUnichar= * **disks); - - nsresult (*GetVirtualSystemDescriptions)(IAppliance *pThis, PRUint32 *= virtualSystemDescriptionsSize, IVirtualSystemDescription * **virtualSystemD= escriptions); - - nsresult (*GetMachines)(IAppliance *pThis, PRUint32 *machinesSize, PRU= nichar * **machines); - - nsresult (*Read)( - IAppliance *pThis, - PRUnichar * file, - IProgress * * progress - ); - - nsresult (*Interpret)(IAppliance *pThis ); - - nsresult (*ImportMachines)( - IAppliance *pThis, - PRUint32 optionsSize, - PRUint32* options, - IProgress * * progress - ); - - nsresult (*CreateVFSExplorer)( - IAppliance *pThis, - PRUnichar * URI, - IVFSExplorer * * explorer - ); - - nsresult (*Write)( - IAppliance *pThis, - PRUnichar * format, - PRUint32 optionsSize, - PRUint32* options, - PRUnichar * path, - IProgress * * progress - ); - - nsresult (*GetWarnings)( - IAppliance *pThis, - PRUint32 *warningsSize, - PRUnichar *** warnings - ); - -}; - -struct IAppliance -{ - struct IAppliance_vtbl *vtbl; -}; -/* End of struct IAppliance Declaration */ - - -/* Start of struct IVirtualSystemDescription Declaration */ -# define IVIRTUALSYSTEMDESCRIPTION_IID_STR "d7525e6c-531a-4c51-8e04-41235= 083a3d8" -# define IVIRTUALSYSTEMDESCRIPTION_IID { \ - 0xd7525e6c, 0x531a, 0x4c51, \ - { 0x8e, 0x04, 0x41, 0x23, 0x50, 0x83, 0xa3, 0xd8 } \ -} -struct IVirtualSystemDescription_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetCount)(IVirtualSystemDescription *pThis, PRUint32 *count= ); - - nsresult (*GetDescription)( - IVirtualSystemDescription *pThis, - PRUint32 *typesSize, - PRUint32* types, - PRUint32 *refsSize, - PRUnichar *** refs, - PRUint32 *OVFValuesSize, - PRUnichar *** OVFValues, - PRUint32 *VBoxValuesSize, - PRUnichar *** VBoxValues, - PRUint32 *extraConfigValuesSize, - PRUnichar *** extraConfigValues - ); - - nsresult (*GetDescriptionByType)( - IVirtualSystemDescription *pThis, - PRUint32 type, - PRUint32 *typesSize, - PRUint32* types, - PRUint32 *refsSize, - PRUnichar *** refs, - PRUint32 *OVFValuesSize, - PRUnichar *** OVFValues, - PRUint32 *VBoxValuesSize, - PRUnichar *** VBoxValues, - PRUint32 *extraConfigValuesSize, - PRUnichar *** extraConfigValues - ); - - nsresult (*GetValuesByType)( - IVirtualSystemDescription *pThis, - PRUint32 type, - PRUint32 which, - PRUint32 *valuesSize, - PRUnichar *** values - ); - - nsresult (*SetFinalValues)( - IVirtualSystemDescription *pThis, - PRUint32 enabledSize, - PRBool* enabled, - PRUint32 VBoxValuesSize, - PRUnichar ** VBoxValues, - PRUint32 extraConfigValuesSize, - PRUnichar ** extraConfigValues - ); - - nsresult (*AddDescription)( - IVirtualSystemDescription *pThis, - PRUint32 type, - PRUnichar * VBoxValue, - PRUnichar * extraConfigValue - ); - -}; - -struct IVirtualSystemDescription -{ - struct IVirtualSystemDescription_vtbl *vtbl; -}; -/* End of struct IVirtualSystemDescription Declaration */ - - -/* Start of struct IInternalMachineControl Declaration */ -# define IINTERNALMACHINECONTROL_IID_STR "2d9ce4b7-0ab2-4931-ac4a-e45aa66= 465ef" -# define IINTERNALMACHINECONTROL_IID { \ - 0x2d9ce4b7, 0x0ab2, 0x4931, \ - { 0xac, 0x4a, 0xe4, 0x5a, 0xa6, 0x64, 0x65, 0xef } \ -} -struct IInternalMachineControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*SetRemoveSavedStateFile)( - IInternalMachineControl *pThis, - PRBool remove - ); - - nsresult (*UpdateState)( - IInternalMachineControl *pThis, - PRUint32 state - ); - - nsresult (*BeginPowerUp)( - IInternalMachineControl *pThis, - IProgress * progress - ); - - nsresult (*EndPowerUp)( - IInternalMachineControl *pThis, - PRInt32 result - ); - - nsresult (*BeginPoweringDown)( - IInternalMachineControl *pThis, - IProgress * * progress - ); - - nsresult (*EndPoweringDown)( - IInternalMachineControl *pThis, - PRInt32 result, - PRUnichar * errMsg - ); - - nsresult (*RunUSBDeviceFilters)( - IInternalMachineControl *pThis, - IUSBDevice * device, - PRBool * matched, - PRUint32 * maskedInterfaces - ); - - nsresult (*CaptureUSBDevice)( - IInternalMachineControl *pThis, - PRUnichar * id - ); - - nsresult (*DetachUSBDevice)( - IInternalMachineControl *pThis, - PRUnichar * id, - PRBool done - ); - - nsresult (*AutoCaptureUSBDevices)(IInternalMachineControl *pThis ); - - nsresult (*DetachAllUSBDevices)( - IInternalMachineControl *pThis, - PRBool done - ); - - nsresult (*OnSessionEnd)( - IInternalMachineControl *pThis, - ISession * session, - IProgress * * progress - ); - - nsresult (*BeginSavingState)( - IInternalMachineControl *pThis, - IProgress * * progress, - PRUnichar * * stateFilePath - ); - - nsresult (*EndSavingState)( - IInternalMachineControl *pThis, - PRInt32 result, - PRUnichar * errMsg - ); - - nsresult (*AdoptSavedState)( - IInternalMachineControl *pThis, - PRUnichar * savedStateFile - ); - - nsresult (*BeginTakingSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - PRUnichar * name, - PRUnichar * description, - IProgress * consoleProgress, - PRBool fTakingSnapshotOnline, - PRUnichar * * stateFilePath - ); - - nsresult (*EndTakingSnapshot)( - IInternalMachineControl *pThis, - PRBool success - ); - - nsresult (*DeleteSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - PRUnichar * startId, - PRUnichar * endId, - PRBool deleteAllChildren, - PRUint32 * machineState, - IProgress * * progress - ); - - nsresult (*FinishOnlineMergeMedium)(IInternalMachineControl *pThis ); - - nsresult (*RestoreSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - ISnapshot * snapshot, - PRUint32 * machineState, - IProgress * * progress - ); - - nsresult (*PullGuestProperties)( - IInternalMachineControl *pThis, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *valuesSize, - PRUnichar *** values, - PRUint32 *timestampsSize, - PRInt64* timestamps, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult (*PushGuestProperty)( - IInternalMachineControl *pThis, - PRUnichar * name, - PRUnichar * value, - PRInt64 timestamp, - PRUnichar * flags - ); - - nsresult (*LockMedia)(IInternalMachineControl *pThis ); - - nsresult (*UnlockMedia)(IInternalMachineControl *pThis ); - - nsresult (*EjectMedium)( - IInternalMachineControl *pThis, - IMediumAttachment * attachment, - IMediumAttachment * * newAttachment - ); - - nsresult (*ReportVmStatistics)( - IInternalMachineControl *pThis, - PRUint32 validStats, - PRUint32 cpuUser, - PRUint32 cpuKernel, - PRUint32 cpuIdle, - PRUint32 memTotal, - PRUint32 memFree, - PRUint32 memBalloon, - PRUint32 memShared, - PRUint32 memCache, - PRUint32 pagedTotal, - PRUint32 memAllocTotal, - PRUint32 memFreeTotal, - PRUint32 memBalloonTotal, - PRUint32 memSharedTotal, - PRUint32 vmNetRx, - PRUint32 vmNetTx - ); - -}; - -struct IInternalMachineControl -{ - struct IInternalMachineControl_vtbl *vtbl; -}; -/* End of struct IInternalMachineControl Declaration */ - - -/* Start of struct IBIOSSettings Declaration */ -# define IBIOSSETTINGS_IID_STR "38b54279-dc35-4f5e-a431-835b867c6b5e" -# define IBIOSSETTINGS_IID { \ - 0x38b54279, 0xdc35, 0x4f5e, \ - { 0xa4, 0x31, 0x83, 0x5b, 0x86, 0x7c, 0x6b, 0x5e } \ -} -struct IBIOSSettings_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetLogoFadeIn)(IBIOSSettings *pThis, PRBool *logoFadeIn); - nsresult (*SetLogoFadeIn)(IBIOSSettings *pThis, PRBool logoFadeIn); - - nsresult (*GetLogoFadeOut)(IBIOSSettings *pThis, PRBool *logoFadeOut); - nsresult (*SetLogoFadeOut)(IBIOSSettings *pThis, PRBool logoFadeOut); - - nsresult (*GetLogoDisplayTime)(IBIOSSettings *pThis, PRUint32 *logoDis= playTime); - nsresult (*SetLogoDisplayTime)(IBIOSSettings *pThis, PRUint32 logoDisp= layTime); - - nsresult (*GetLogoImagePath)(IBIOSSettings *pThis, PRUnichar * *logoIm= agePath); - nsresult (*SetLogoImagePath)(IBIOSSettings *pThis, PRUnichar * logoIma= gePath); - - nsresult (*GetBootMenuMode)(IBIOSSettings *pThis, PRUint32 *bootMenuMo= de); - nsresult (*SetBootMenuMode)(IBIOSSettings *pThis, PRUint32 bootMenuMod= e); - - nsresult (*GetACPIEnabled)(IBIOSSettings *pThis, PRBool *ACPIEnabled); - nsresult (*SetACPIEnabled)(IBIOSSettings *pThis, PRBool ACPIEnabled); - - nsresult (*GetIOAPICEnabled)(IBIOSSettings *pThis, PRBool *IOAPICEnabl= ed); - nsresult (*SetIOAPICEnabled)(IBIOSSettings *pThis, PRBool IOAPICEnable= d); - - nsresult (*GetTimeOffset)(IBIOSSettings *pThis, PRInt64 *timeOffset); - nsresult (*SetTimeOffset)(IBIOSSettings *pThis, PRInt64 timeOffset); - - nsresult (*GetPXEDebugEnabled)(IBIOSSettings *pThis, PRBool *PXEDebugE= nabled); - nsresult (*SetPXEDebugEnabled)(IBIOSSettings *pThis, PRBool PXEDebugEn= abled); - - nsresult (*GetNonVolatileStorageFile)(IBIOSSettings *pThis, PRUnichar = * *nonVolatileStorageFile); - -}; - -struct IBIOSSettings -{ - struct IBIOSSettings_vtbl *vtbl; -}; -/* End of struct IBIOSSettings Declaration */ - - -/* Start of struct IPCIAddress Declaration */ -# define IPCIADDRESS_IID_STR "c984d15f-e191-400b-840e-970f3dad7296" -# define IPCIADDRESS_IID { \ - 0xc984d15f, 0xe191, 0x400b, \ - { 0x84, 0x0e, 0x97, 0x0f, 0x3d, 0xad, 0x72, 0x96 } \ -} -struct IPCIAddress_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetBus)(IPCIAddress *pThis, PRInt16 *bus); - nsresult (*SetBus)(IPCIAddress *pThis, PRInt16 bus); - - nsresult (*GetDevice)(IPCIAddress *pThis, PRInt16 *device); - nsresult (*SetDevice)(IPCIAddress *pThis, PRInt16 device); - - nsresult (*GetDevFunction)(IPCIAddress *pThis, PRInt16 *devFunction); - nsresult (*SetDevFunction)(IPCIAddress *pThis, PRInt16 devFunction); - - nsresult (*AsLong)( - IPCIAddress *pThis, - PRInt32 * result - ); - - nsresult (*FromLong)( - IPCIAddress *pThis, - PRInt32 number - ); - -}; - -struct IPCIAddress -{ - struct IPCIAddress_vtbl *vtbl; -}; -/* End of struct IPCIAddress Declaration */ - - -/* Start of struct IPCIDeviceAttachment Declaration */ -# define IPCIDEVICEATTACHMENT_IID_STR "91f33d6f-e621-4f70-a77e-15f0e3c714= d5" -# define IPCIDEVICEATTACHMENT_IID { \ - 0x91f33d6f, 0xe621, 0x4f70, \ - { 0xa7, 0x7e, 0x15, 0xf0, 0xe3, 0xc7, 0x14, 0xd5 } \ -} -struct IPCIDeviceAttachment_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IPCIDeviceAttachment *pThis, PRUnichar * *name); - - nsresult (*GetIsPhysicalDevice)(IPCIDeviceAttachment *pThis, PRBool *i= sPhysicalDevice); - - nsresult (*GetHostAddress)(IPCIDeviceAttachment *pThis, PRInt32 *hostA= ddress); - - nsresult (*GetGuestAddress)(IPCIDeviceAttachment *pThis, PRInt32 *gues= tAddress); - -}; - -struct IPCIDeviceAttachment -{ - struct IPCIDeviceAttachment_vtbl *vtbl; -}; -/* End of struct IPCIDeviceAttachment Declaration */ - - -/* Start of struct IMachine Declaration */ -# define IMACHINE_IID_STR "480cf695-2d8d-4256-9c7c-cce4184fa048" -# define IMACHINE_IID { \ - 0x480cf695, 0x2d8d, 0x4256, \ - { 0x9c, 0x7c, 0xcc, 0xe4, 0x18, 0x4f, 0xa0, 0x48 } \ -} -struct IMachine_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetParent)(IMachine *pThis, IVirtualBox * *parent); - - nsresult (*GetIcon)(IMachine *pThis, PRUint32 *iconSize, PRUint8 **ico= n); - nsresult (*SetIcon)(IMachine *pThis, PRUint32 iconSize, PRUint8 *icon); - - nsresult (*GetAccessible)(IMachine *pThis, PRBool *accessible); - - nsresult (*GetAccessError)(IMachine *pThis, IVirtualBoxErrorInfo * *ac= cessError); - - nsresult (*GetName)(IMachine *pThis, PRUnichar * *name); - nsresult (*SetName)(IMachine *pThis, PRUnichar * name); - - nsresult (*GetDescription)(IMachine *pThis, PRUnichar * *description); - nsresult (*SetDescription)(IMachine *pThis, PRUnichar * description); - - nsresult (*GetId)(IMachine *pThis, PRUnichar * *id); - - nsresult (*GetGroups)(IMachine *pThis, PRUint32 *groupsSize, PRUnichar= * **groups); - nsresult (*SetGroups)(IMachine *pThis, PRUint32 groupsSize, PRUnichar = * *groups); - - nsresult (*GetOSTypeId)(IMachine *pThis, PRUnichar * *OSTypeId); - nsresult (*SetOSTypeId)(IMachine *pThis, PRUnichar * OSTypeId); - - nsresult (*GetHardwareVersion)(IMachine *pThis, PRUnichar * *hardwareV= ersion); - nsresult (*SetHardwareVersion)(IMachine *pThis, PRUnichar * hardwareVe= rsion); - - nsresult (*GetHardwareUUID)(IMachine *pThis, PRUnichar * *hardwareUUID= ); - nsresult (*SetHardwareUUID)(IMachine *pThis, PRUnichar * hardwareUUID); - - nsresult (*GetCPUCount)(IMachine *pThis, PRUint32 *CPUCount); - nsresult (*SetCPUCount)(IMachine *pThis, PRUint32 CPUCount); - - nsresult (*GetCPUHotPlugEnabled)(IMachine *pThis, PRBool *CPUHotPlugEn= abled); - nsresult (*SetCPUHotPlugEnabled)(IMachine *pThis, PRBool CPUHotPlugEna= bled); - - nsresult (*GetCPUExecutionCap)(IMachine *pThis, PRUint32 *CPUExecution= Cap); - nsresult (*SetCPUExecutionCap)(IMachine *pThis, PRUint32 CPUExecutionC= ap); - - nsresult (*GetMemorySize)(IMachine *pThis, PRUint32 *memorySize); - nsresult (*SetMemorySize)(IMachine *pThis, PRUint32 memorySize); - - nsresult (*GetMemoryBalloonSize)(IMachine *pThis, PRUint32 *memoryBall= oonSize); - nsresult (*SetMemoryBalloonSize)(IMachine *pThis, PRUint32 memoryBallo= onSize); - - nsresult (*GetPageFusionEnabled)(IMachine *pThis, PRBool *pageFusionEn= abled); - nsresult (*SetPageFusionEnabled)(IMachine *pThis, PRBool pageFusionEna= bled); - - nsresult (*GetGraphicsControllerType)(IMachine *pThis, PRUint32 *graph= icsControllerType); - nsresult (*SetGraphicsControllerType)(IMachine *pThis, PRUint32 graphi= csControllerType); - - nsresult (*GetVRAMSize)(IMachine *pThis, PRUint32 *VRAMSize); - nsresult (*SetVRAMSize)(IMachine *pThis, PRUint32 VRAMSize); - - nsresult (*GetAccelerate3DEnabled)(IMachine *pThis, PRBool *accelerate= 3DEnabled); - nsresult (*SetAccelerate3DEnabled)(IMachine *pThis, PRBool accelerate3= DEnabled); - - nsresult (*GetAccelerate2DVideoEnabled)(IMachine *pThis, PRBool *accel= erate2DVideoEnabled); - nsresult (*SetAccelerate2DVideoEnabled)(IMachine *pThis, PRBool accele= rate2DVideoEnabled); - - nsresult (*GetMonitorCount)(IMachine *pThis, PRUint32 *monitorCount); - nsresult (*SetMonitorCount)(IMachine *pThis, PRUint32 monitorCount); - - nsresult (*GetVideoCaptureEnabled)(IMachine *pThis, PRBool *videoCaptu= reEnabled); - nsresult (*SetVideoCaptureEnabled)(IMachine *pThis, PRBool videoCaptur= eEnabled); - - nsresult (*GetVideoCaptureScreens)(IMachine *pThis, PRUint32 *videoCap= tureScreensSize, PRBool **videoCaptureScreens); - nsresult (*SetVideoCaptureScreens)(IMachine *pThis, PRUint32 videoCapt= ureScreensSize, PRBool *videoCaptureScreens); - - nsresult (*GetVideoCaptureFile)(IMachine *pThis, PRUnichar * *videoCap= tureFile); - nsresult (*SetVideoCaptureFile)(IMachine *pThis, PRUnichar * videoCapt= ureFile); - - nsresult (*GetVideoCaptureWidth)(IMachine *pThis, PRUint32 *videoCaptu= reWidth); - nsresult (*SetVideoCaptureWidth)(IMachine *pThis, PRUint32 videoCaptur= eWidth); - - nsresult (*GetVideoCaptureHeight)(IMachine *pThis, PRUint32 *videoCapt= ureHeight); - nsresult (*SetVideoCaptureHeight)(IMachine *pThis, PRUint32 videoCaptu= reHeight); - - nsresult (*GetVideoCaptureRate)(IMachine *pThis, PRUint32 *videoCaptur= eRate); - nsresult (*SetVideoCaptureRate)(IMachine *pThis, PRUint32 videoCapture= Rate); - - nsresult (*GetVideoCaptureFPS)(IMachine *pThis, PRUint32 *videoCapture= FPS); - nsresult (*SetVideoCaptureFPS)(IMachine *pThis, PRUint32 videoCaptureF= PS); - - nsresult (*GetBIOSSettings)(IMachine *pThis, IBIOSSettings * *BIOSSett= ings); - - nsresult (*GetFirmwareType)(IMachine *pThis, PRUint32 *firmwareType); - nsresult (*SetFirmwareType)(IMachine *pThis, PRUint32 firmwareType); - - nsresult (*GetPointingHIDType)(IMachine *pThis, PRUint32 *pointingHIDT= ype); - nsresult (*SetPointingHIDType)(IMachine *pThis, PRUint32 pointingHIDTy= pe); - - nsresult (*GetKeyboardHIDType)(IMachine *pThis, PRUint32 *keyboardHIDT= ype); - nsresult (*SetKeyboardHIDType)(IMachine *pThis, PRUint32 keyboardHIDTy= pe); - - nsresult (*GetHPETEnabled)(IMachine *pThis, PRBool *HPETEnabled); - nsresult (*SetHPETEnabled)(IMachine *pThis, PRBool HPETEnabled); - - nsresult (*GetChipsetType)(IMachine *pThis, PRUint32 *chipsetType); - nsresult (*SetChipsetType)(IMachine *pThis, PRUint32 chipsetType); - - nsresult (*GetSnapshotFolder)(IMachine *pThis, PRUnichar * *snapshotFo= lder); - nsresult (*SetSnapshotFolder)(IMachine *pThis, PRUnichar * snapshotFol= der); - - nsresult (*GetVRDEServer)(IMachine *pThis, IVRDEServer * *VRDEServer); - - nsresult (*GetEmulatedUSBCardReaderEnabled)(IMachine *pThis, PRBool *e= mulatedUSBCardReaderEnabled); - nsresult (*SetEmulatedUSBCardReaderEnabled)(IMachine *pThis, PRBool em= ulatedUSBCardReaderEnabled); - - nsresult (*GetMediumAttachments)(IMachine *pThis, PRUint32 *mediumAtta= chmentsSize, IMediumAttachment * **mediumAttachments); - - nsresult (*GetUSBControllers)(IMachine *pThis, PRUint32 *USBController= sSize, IUSBController * **USBControllers); - - nsresult (*GetUSBDeviceFilters)(IMachine *pThis, IUSBDeviceFilters * *= USBDeviceFilters); - - nsresult (*GetAudioAdapter)(IMachine *pThis, IAudioAdapter * *audioAda= pter); - - nsresult (*GetStorageControllers)(IMachine *pThis, PRUint32 *storageCo= ntrollersSize, IStorageController * **storageControllers); - - nsresult (*GetSettingsFilePath)(IMachine *pThis, PRUnichar * *settings= FilePath); - - nsresult (*GetSettingsModified)(IMachine *pThis, PRBool *settingsModif= ied); - - nsresult (*GetSessionState)(IMachine *pThis, PRUint32 *sessionState); - - nsresult (*GetSessionType)(IMachine *pThis, PRUnichar * *sessionType); - - nsresult (*GetSessionPID)(IMachine *pThis, PRUint32 *sessionPID); - - nsresult (*GetState)(IMachine *pThis, PRUint32 *state); - - nsresult (*GetLastStateChange)(IMachine *pThis, PRInt64 *lastStateChan= ge); - - nsresult (*GetStateFilePath)(IMachine *pThis, PRUnichar * *stateFilePa= th); - - nsresult (*GetLogFolder)(IMachine *pThis, PRUnichar * *logFolder); - - nsresult (*GetCurrentSnapshot)(IMachine *pThis, ISnapshot * *currentSn= apshot); - - nsresult (*GetSnapshotCount)(IMachine *pThis, PRUint32 *snapshotCount); - - nsresult (*GetCurrentStateModified)(IMachine *pThis, PRBool *currentSt= ateModified); - - nsresult (*GetSharedFolders)(IMachine *pThis, PRUint32 *sharedFoldersS= ize, ISharedFolder * **sharedFolders); - - nsresult (*GetClipboardMode)(IMachine *pThis, PRUint32 *clipboardMode); - nsresult (*SetClipboardMode)(IMachine *pThis, PRUint32 clipboardMode); - - nsresult (*GetDragAndDropMode)(IMachine *pThis, PRUint32 *dragAndDropM= ode); - nsresult (*SetDragAndDropMode)(IMachine *pThis, PRUint32 dragAndDropMo= de); - - nsresult (*GetGuestPropertyNotificationPatterns)(IMachine *pThis, PRUn= ichar * *guestPropertyNotificationPatterns); - nsresult (*SetGuestPropertyNotificationPatterns)(IMachine *pThis, PRUn= ichar * guestPropertyNotificationPatterns); - - nsresult (*GetTeleporterEnabled)(IMachine *pThis, PRBool *teleporterEn= abled); - nsresult (*SetTeleporterEnabled)(IMachine *pThis, PRBool teleporterEna= bled); - - nsresult (*GetTeleporterPort)(IMachine *pThis, PRUint32 *teleporterPor= t); - nsresult (*SetTeleporterPort)(IMachine *pThis, PRUint32 teleporterPort= ); - - nsresult (*GetTeleporterAddress)(IMachine *pThis, PRUnichar * *telepor= terAddress); - nsresult (*SetTeleporterAddress)(IMachine *pThis, PRUnichar * teleport= erAddress); - - nsresult (*GetTeleporterPassword)(IMachine *pThis, PRUnichar * *telepo= rterPassword); - nsresult (*SetTeleporterPassword)(IMachine *pThis, PRUnichar * telepor= terPassword); - - nsresult (*GetFaultToleranceState)(IMachine *pThis, PRUint32 *faultTol= eranceState); - nsresult (*SetFaultToleranceState)(IMachine *pThis, PRUint32 faultTole= ranceState); - - nsresult (*GetFaultTolerancePort)(IMachine *pThis, PRUint32 *faultTole= rancePort); - nsresult (*SetFaultTolerancePort)(IMachine *pThis, PRUint32 faultToler= ancePort); - - nsresult (*GetFaultToleranceAddress)(IMachine *pThis, PRUnichar * *fau= ltToleranceAddress); - nsresult (*SetFaultToleranceAddress)(IMachine *pThis, PRUnichar * faul= tToleranceAddress); - - nsresult (*GetFaultTolerancePassword)(IMachine *pThis, PRUnichar * *fa= ultTolerancePassword); - nsresult (*SetFaultTolerancePassword)(IMachine *pThis, PRUnichar * fau= ltTolerancePassword); - - nsresult (*GetFaultToleranceSyncInterval)(IMachine *pThis, PRUint32 *f= aultToleranceSyncInterval); - nsresult (*SetFaultToleranceSyncInterval)(IMachine *pThis, PRUint32 fa= ultToleranceSyncInterval); - - nsresult (*GetRTCUseUTC)(IMachine *pThis, PRBool *RTCUseUTC); - nsresult (*SetRTCUseUTC)(IMachine *pThis, PRBool RTCUseUTC); - - nsresult (*GetIOCacheEnabled)(IMachine *pThis, PRBool *IOCacheEnabled); - nsresult (*SetIOCacheEnabled)(IMachine *pThis, PRBool IOCacheEnabled); - - nsresult (*GetIOCacheSize)(IMachine *pThis, PRUint32 *IOCacheSize); - nsresult (*SetIOCacheSize)(IMachine *pThis, PRUint32 IOCacheSize); - - nsresult (*GetPCIDeviceAssignments)(IMachine *pThis, PRUint32 *PCIDevi= ceAssignmentsSize, IPCIDeviceAttachment * **PCIDeviceAssignments); - - nsresult (*GetBandwidthControl)(IMachine *pThis, IBandwidthControl * *= bandwidthControl); - - nsresult (*GetTracingEnabled)(IMachine *pThis, PRBool *tracingEnabled); - nsresult (*SetTracingEnabled)(IMachine *pThis, PRBool tracingEnabled); - - nsresult (*GetTracingConfig)(IMachine *pThis, PRUnichar * *tracingConf= ig); - nsresult (*SetTracingConfig)(IMachine *pThis, PRUnichar * tracingConfi= g); - - nsresult (*GetAllowTracingToAccessVM)(IMachine *pThis, PRBool *allowTr= acingToAccessVM); - nsresult (*SetAllowTracingToAccessVM)(IMachine *pThis, PRBool allowTra= cingToAccessVM); - - nsresult (*GetAutostartEnabled)(IMachine *pThis, PRBool *autostartEnab= led); - nsresult (*SetAutostartEnabled)(IMachine *pThis, PRBool autostartEnabl= ed); - - nsresult (*GetAutostartDelay)(IMachine *pThis, PRUint32 *autostartDela= y); - nsresult (*SetAutostartDelay)(IMachine *pThis, PRUint32 autostartDelay= ); - - nsresult (*GetAutostopType)(IMachine *pThis, PRUint32 *autostopType); - nsresult (*SetAutostopType)(IMachine *pThis, PRUint32 autostopType); - - nsresult (*GetDefaultFrontend)(IMachine *pThis, PRUnichar * *defaultFr= ontend); - nsresult (*SetDefaultFrontend)(IMachine *pThis, PRUnichar * defaultFro= ntend); - - nsresult (*GetUSBProxyAvailable)(IMachine *pThis, PRBool *USBProxyAvai= lable); - - nsresult (*LockMachine)( - IMachine *pThis, - ISession * session, - PRUint32 lockType - ); - - nsresult (*LaunchVMProcess)( - IMachine *pThis, - ISession * session, - PRUnichar * type, - PRUnichar * environment, - IProgress * * progress - ); - - nsresult (*SetBootOrder)( - IMachine *pThis, - PRUint32 position, - PRUint32 device - ); - - nsresult (*GetBootOrder)( - IMachine *pThis, - PRUint32 position, - PRUint32 * device - ); - - nsresult (*AttachDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRUint32 type, - IMedium * medium - ); - - nsresult (*AttachDeviceWithoutMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRUint32 type - ); - - nsresult (*DetachDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device - ); - - nsresult (*PassthroughDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool passthrough - ); - - nsresult (*TemporaryEjectDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool temporaryEject - ); - - nsresult (*NonRotationalDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool nonRotational - ); - - nsresult (*SetAutoDiscardForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool discard - ); - - nsresult (*SetHotPluggableForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool hotPluggable - ); - - nsresult (*SetBandwidthGroupForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IBandwidthGroup * bandwidthGroup - ); - - nsresult (*SetNoBandwidthGroupForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device - ); - - nsresult (*UnmountMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool force - ); - - nsresult (*MountMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMedium * medium, - PRBool force - ); - - nsresult (*GetMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMedium * * medium - ); - - nsresult (*GetMediumAttachmentsOfController)( - IMachine *pThis, - PRUnichar * name, - PRUint32 *mediumAttachmentsSize, - IMediumAttachment *** mediumAttachments - ); - - nsresult (*GetMediumAttachment)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMediumAttachment * * attachment - ); - - nsresult (*AttachHostPCIDevice)( - IMachine *pThis, - PRInt32 hostAddress, - PRInt32 desiredGuestAddress, - PRBool tryToUnbind - ); - - nsresult (*DetachHostPCIDevice)( - IMachine *pThis, - PRInt32 hostAddress - ); - - nsresult (*GetNetworkAdapter)( - IMachine *pThis, - PRUint32 slot, - INetworkAdapter * * adapter - ); - - nsresult (*AddStorageController)( - IMachine *pThis, - PRUnichar * name, - PRUint32 connectionType, - IStorageController * * controller - ); - - nsresult (*GetStorageControllerByName)( - IMachine *pThis, - PRUnichar * name, - IStorageController * * storageController - ); - - nsresult (*GetStorageControllerByInstance)( - IMachine *pThis, - PRUint32 instance, - IStorageController * * storageController - ); - - nsresult (*RemoveStorageController)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult (*SetStorageControllerBootable)( - IMachine *pThis, - PRUnichar * name, - PRBool bootable - ); - - nsresult (*AddUSBController)( - IMachine *pThis, - PRUnichar * name, - PRUint32 type, - IUSBController * * controller - ); - - nsresult (*RemoveUSBController)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult (*GetUSBControllerByName)( - IMachine *pThis, - PRUnichar * name, - IUSBController * * controller - ); - - nsresult (*GetUSBControllerCountByType)( - IMachine *pThis, - PRUint32 type, - PRUint32 * controllers - ); - - nsresult (*GetSerialPort)( - IMachine *pThis, - PRUint32 slot, - ISerialPort * * port - ); - - nsresult (*GetParallelPort)( - IMachine *pThis, - PRUint32 slot, - IParallelPort * * port - ); - - nsresult (*GetExtraDataKeys)( - IMachine *pThis, - PRUint32 *keysSize, - PRUnichar *** keys - ); - - nsresult (*GetExtraData)( - IMachine *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult (*SetExtraData)( - IMachine *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult (*GetCPUProperty)( - IMachine *pThis, - PRUint32 property, - PRBool * value - ); - - nsresult (*SetCPUProperty)( - IMachine *pThis, - PRUint32 property, - PRBool value - ); - - nsresult (*GetCPUIDLeaf)( - IMachine *pThis, - PRUint32 id, - PRUint32 * valEax, - PRUint32 * valEbx, - PRUint32 * valEcx, - PRUint32 * valEdx - ); - - nsresult (*SetCPUIDLeaf)( - IMachine *pThis, - PRUint32 id, - PRUint32 valEax, - PRUint32 valEbx, - PRUint32 valEcx, - PRUint32 valEdx - ); - - nsresult (*RemoveCPUIDLeaf)( - IMachine *pThis, - PRUint32 id - ); - - nsresult (*RemoveAllCPUIDLeaves)(IMachine *pThis ); - - nsresult (*GetHWVirtExProperty)( - IMachine *pThis, - PRUint32 property, - PRBool * value - ); - - nsresult (*SetHWVirtExProperty)( - IMachine *pThis, - PRUint32 property, - PRBool value - ); - - nsresult (*SetSettingsFilePath)( - IMachine *pThis, - PRUnichar * settingsFilePath, - IProgress * * progress - ); - - nsresult (*SaveSettings)(IMachine *pThis ); - - nsresult (*DiscardSettings)(IMachine *pThis ); - - nsresult (*Unregister)( - IMachine *pThis, - PRUint32 cleanupMode, - PRUint32 *mediaSize, - IMedium *** media - ); - - nsresult (*DeleteConfig)( - IMachine *pThis, - PRUint32 mediaSize, - IMedium ** media, - IProgress * * progress - ); - - nsresult (*ExportTo)( - IMachine *pThis, - IAppliance * appliance, - PRUnichar * location, - IVirtualSystemDescription * * description - ); - - nsresult (*FindSnapshot)( - IMachine *pThis, - PRUnichar * nameOrId, - ISnapshot * * snapshot - ); - - nsresult (*CreateSharedFolder)( - IMachine *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult (*RemoveSharedFolder)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult (*CanShowConsoleWindow)( - IMachine *pThis, - PRBool * canShow - ); - - nsresult (*ShowConsoleWindow)( - IMachine *pThis, - PRInt64 * winId - ); - - nsresult (*GetGuestProperty)( - IMachine *pThis, - PRUnichar * name, - PRUnichar * * value, - PRInt64 * timestamp, - PRUnichar * * flags - ); - - nsresult (*GetGuestPropertyValue)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * * value - ); - - nsresult (*GetGuestPropertyTimestamp)( - IMachine *pThis, - PRUnichar * property, - PRInt64 * value - ); - - nsresult (*SetGuestProperty)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * value, - PRUnichar * flags - ); - - nsresult (*SetGuestPropertyValue)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * value - ); - - nsresult (*DeleteGuestProperty)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult (*EnumerateGuestProperties)( - IMachine *pThis, - PRUnichar * patterns, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *valuesSize, - PRUnichar *** values, - PRUint32 *timestampsSize, - PRInt64* timestamps, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult (*QuerySavedGuestScreenInfo)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * originX, - PRUint32 * originY, - PRUint32 * width, - PRUint32 * height, - PRBool * enabled - ); - - nsresult (*QuerySavedThumbnailSize)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * size, - PRUint32 * width, - PRUint32 * height - ); - - nsresult (*ReadSavedThumbnailToArray)( - IMachine *pThis, - PRUint32 screenId, - PRBool BGR, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*ReadSavedThumbnailPNGToArray)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*QuerySavedScreenshotPNGSize)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * size, - PRUint32 * width, - PRUint32 * height - ); - - nsresult (*ReadSavedScreenshotPNGToArray)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*HotPlugCPU)( - IMachine *pThis, - PRUint32 cpu - ); - - nsresult (*HotUnplugCPU)( - IMachine *pThis, - PRUint32 cpu - ); - - nsresult (*GetCPUStatus)( - IMachine *pThis, - PRUint32 cpu, - PRBool * attached - ); - - nsresult (*QueryLogFilename)( - IMachine *pThis, - PRUint32 idx, - PRUnichar * * filename - ); - - nsresult (*ReadLog)( - IMachine *pThis, - PRUint32 idx, - PRInt64 offset, - PRInt64 size, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*CloneTo)( - IMachine *pThis, - IMachine * target, - PRUint32 mode, - PRUint32 optionsSize, - PRUint32* options, - IProgress * * progress - ); - -}; - -struct IMachine -{ - struct IMachine_vtbl *vtbl; -}; -/* End of struct IMachine Declaration */ - - -/* Start of struct IEmulatedUSB Declaration */ -# define IEMULATEDUSB_IID_STR "38cc4dfd-8bb2-4d40-aebe-699eead8c2dd" -# define IEMULATEDUSB_IID { \ - 0x38cc4dfd, 0x8bb2, 0x4d40, \ - { 0xae, 0xbe, 0x69, 0x9e, 0xea, 0xd8, 0xc2, 0xdd } \ -} -struct IEmulatedUSB_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetWebcams)(IEmulatedUSB *pThis, PRUint32 *webcamsSize, PRU= nichar * **webcams); - - nsresult (*WebcamAttach)( - IEmulatedUSB *pThis, - PRUnichar * path, - PRUnichar * settings - ); - - nsresult (*WebcamDetach)( - IEmulatedUSB *pThis, - PRUnichar * path - ); - -}; - -struct IEmulatedUSB -{ - struct IEmulatedUSB_vtbl *vtbl; -}; -/* End of struct IEmulatedUSB Declaration */ - - -/* Start of struct IVRDEServerInfo Declaration */ -# define IVRDESERVERINFO_IID_STR "714434a1-58c3-4aab-9049-7652c5df113b" -# define IVRDESERVERINFO_IID { \ - 0x714434a1, 0x58c3, 0x4aab, \ - { 0x90, 0x49, 0x76, 0x52, 0xc5, 0xdf, 0x11, 0x3b } \ -} -struct IVRDEServerInfo_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetActive)(IVRDEServerInfo *pThis, PRBool *active); - - nsresult (*GetPort)(IVRDEServerInfo *pThis, PRInt32 *port); - - nsresult (*GetNumberOfClients)(IVRDEServerInfo *pThis, PRUint32 *numbe= rOfClients); - - nsresult (*GetBeginTime)(IVRDEServerInfo *pThis, PRInt64 *beginTime); - - nsresult (*GetEndTime)(IVRDEServerInfo *pThis, PRInt64 *endTime); - - nsresult (*GetBytesSent)(IVRDEServerInfo *pThis, PRInt64 *bytesSent); - - nsresult (*GetBytesSentTotal)(IVRDEServerInfo *pThis, PRInt64 *bytesSe= ntTotal); - - nsresult (*GetBytesReceived)(IVRDEServerInfo *pThis, PRInt64 *bytesRec= eived); - - nsresult (*GetBytesReceivedTotal)(IVRDEServerInfo *pThis, PRInt64 *byt= esReceivedTotal); - - nsresult (*GetUser)(IVRDEServerInfo *pThis, PRUnichar * *user); - - nsresult (*GetDomain)(IVRDEServerInfo *pThis, PRUnichar * *domain); - - nsresult (*GetClientName)(IVRDEServerInfo *pThis, PRUnichar * *clientN= ame); - - nsresult (*GetClientIP)(IVRDEServerInfo *pThis, PRUnichar * *clientIP); - - nsresult (*GetClientVersion)(IVRDEServerInfo *pThis, PRUint32 *clientV= ersion); - - nsresult (*GetEncryptionStyle)(IVRDEServerInfo *pThis, PRUint32 *encry= ptionStyle); - -}; - -struct IVRDEServerInfo -{ - struct IVRDEServerInfo_vtbl *vtbl; -}; -/* End of struct IVRDEServerInfo Declaration */ - - -/* Start of struct IConsole Declaration */ -# define ICONSOLE_IID_STR "8ab7c520-2442-4b66-8d74-4ff1e195d2b6" -# define ICONSOLE_IID { \ - 0x8ab7c520, 0x2442, 0x4b66, \ - { 0x8d, 0x74, 0x4f, 0xf1, 0xe1, 0x95, 0xd2, 0xb6 } \ -} -struct IConsole_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetMachine)(IConsole *pThis, IMachine * *machine); - - nsresult (*GetState)(IConsole *pThis, PRUint32 *state); - - nsresult (*GetGuest)(IConsole *pThis, IGuest * *guest); - - nsresult (*GetKeyboard)(IConsole *pThis, IKeyboard * *keyboard); - - nsresult (*GetMouse)(IConsole *pThis, IMouse * *mouse); - - nsresult (*GetDisplay)(IConsole *pThis, IDisplay * *display); - - nsresult (*GetDebugger)(IConsole *pThis, IMachineDebugger * *debugger); - - nsresult (*GetUSBDevices)(IConsole *pThis, PRUint32 *USBDevicesSize, I= USBDevice * **USBDevices); - - nsresult (*GetRemoteUSBDevices)(IConsole *pThis, PRUint32 *remoteUSBDe= vicesSize, IHostUSBDevice * **remoteUSBDevices); - - nsresult (*GetSharedFolders)(IConsole *pThis, PRUint32 *sharedFoldersS= ize, ISharedFolder * **sharedFolders); - - nsresult (*GetVRDEServerInfo)(IConsole *pThis, IVRDEServerInfo * *VRDE= ServerInfo); - - nsresult (*GetEventSource)(IConsole *pThis, IEventSource * *eventSourc= e); - - nsresult (*GetAttachedPCIDevices)(IConsole *pThis, PRUint32 *attachedP= CIDevicesSize, IPCIDeviceAttachment * **attachedPCIDevices); - - nsresult (*GetUseHostClipboard)(IConsole *pThis, PRBool *useHostClipbo= ard); - nsresult (*SetUseHostClipboard)(IConsole *pThis, PRBool useHostClipboa= rd); - - nsresult (*GetEmulatedUSB)(IConsole *pThis, IEmulatedUSB * *emulatedUS= B); - - nsresult (*PowerUp)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult (*PowerUpPaused)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult (*PowerDown)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult (*Reset)(IConsole *pThis ); - - nsresult (*Pause)(IConsole *pThis ); - - nsresult (*Resume)(IConsole *pThis ); - - nsresult (*PowerButton)(IConsole *pThis ); - - nsresult (*SleepButton)(IConsole *pThis ); - - nsresult (*GetPowerButtonHandled)( - IConsole *pThis, - PRBool * handled - ); - - nsresult (*GetGuestEnteredACPIMode)( - IConsole *pThis, - PRBool * entered - ); - - nsresult (*SaveState)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult (*AdoptSavedState)( - IConsole *pThis, - PRUnichar * savedStateFile - ); - - nsresult (*DiscardSavedState)( - IConsole *pThis, - PRBool fRemoveFile - ); - - nsresult (*GetDeviceActivity)( - IConsole *pThis, - PRUint32 type, - PRUint32 * activity - ); - - nsresult (*AttachUSBDevice)( - IConsole *pThis, - PRUnichar * id - ); - - nsresult (*DetachUSBDevice)( - IConsole *pThis, - PRUnichar * id, - IUSBDevice * * device - ); - - nsresult (*FindUSBDeviceByAddress)( - IConsole *pThis, - PRUnichar * name, - IUSBDevice * * device - ); - - nsresult (*FindUSBDeviceById)( - IConsole *pThis, - PRUnichar * id, - IUSBDevice * * device - ); - - nsresult (*CreateSharedFolder)( - IConsole *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult (*RemoveSharedFolder)( - IConsole *pThis, - PRUnichar * name - ); - - nsresult (*TakeSnapshot)( - IConsole *pThis, - PRUnichar * name, - PRUnichar * description, - IProgress * * progress - ); - - nsresult (*DeleteSnapshot)( - IConsole *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult (*DeleteSnapshotAndAllChildren)( - IConsole *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult (*DeleteSnapshotRange)( - IConsole *pThis, - PRUnichar * startId, - PRUnichar * endId, - IProgress * * progress - ); - - nsresult (*RestoreSnapshot)( - IConsole *pThis, - ISnapshot * snapshot, - IProgress * * progress - ); - - nsresult (*Teleport)( - IConsole *pThis, - PRUnichar * hostname, - PRUint32 tcpport, - PRUnichar * password, - PRUint32 maxDowntime, - IProgress * * progress - ); - -}; - -struct IConsole -{ - struct IConsole_vtbl *vtbl; -}; -/* End of struct IConsole Declaration */ - - -/* Start of struct IHostNetworkInterface Declaration */ -# define IHOSTNETWORKINTERFACE_IID_STR "f6e556f9-d598-409b-898c-8ba99d9b0= 5ae" -# define IHOSTNETWORKINTERFACE_IID { \ - 0xf6e556f9, 0xd598, 0x409b, \ - { 0x89, 0x8c, 0x8b, 0xa9, 0x9d, 0x9b, 0x05, 0xae } \ -} -struct IHostNetworkInterface_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IHostNetworkInterface *pThis, PRUnichar * *name); - - nsresult (*GetShortName)(IHostNetworkInterface *pThis, PRUnichar * *sh= ortName); - - nsresult (*GetId)(IHostNetworkInterface *pThis, PRUnichar * *id); - - nsresult (*GetNetworkName)(IHostNetworkInterface *pThis, PRUnichar * *= networkName); - - nsresult (*GetDHCPEnabled)(IHostNetworkInterface *pThis, PRBool *DHCPE= nabled); - - nsresult (*GetIPAddress)(IHostNetworkInterface *pThis, PRUnichar * *IP= Address); - - nsresult (*GetNetworkMask)(IHostNetworkInterface *pThis, PRUnichar * *= networkMask); - - nsresult (*GetIPV6Supported)(IHostNetworkInterface *pThis, PRBool *IPV= 6Supported); - - nsresult (*GetIPV6Address)(IHostNetworkInterface *pThis, PRUnichar * *= IPV6Address); - - nsresult (*GetIPV6NetworkMaskPrefixLength)(IHostNetworkInterface *pThi= s, PRUint32 *IPV6NetworkMaskPrefixLength); - - nsresult (*GetHardwareAddress)(IHostNetworkInterface *pThis, PRUnichar= * *hardwareAddress); - - nsresult (*GetMediumType)(IHostNetworkInterface *pThis, PRUint32 *medi= umType); - - nsresult (*GetStatus)(IHostNetworkInterface *pThis, PRUint32 *status); - - nsresult (*GetInterfaceType)(IHostNetworkInterface *pThis, PRUint32 *i= nterfaceType); - - nsresult (*EnableStaticIPConfig)( - IHostNetworkInterface *pThis, - PRUnichar * IPAddress, - PRUnichar * networkMask - ); - - nsresult (*EnableStaticIPConfigV6)( - IHostNetworkInterface *pThis, - PRUnichar * IPV6Address, - PRUint32 IPV6NetworkMaskPrefixLength - ); - - nsresult (*EnableDynamicIPConfig)(IHostNetworkInterface *pThis ); - - nsresult (*DHCPRediscover)(IHostNetworkInterface *pThis ); - -}; - -struct IHostNetworkInterface -{ - struct IHostNetworkInterface_vtbl *vtbl; -}; -/* End of struct IHostNetworkInterface Declaration */ - - -/* Start of struct IHostVideoInputDevice Declaration */ -# define IHOSTVIDEOINPUTDEVICE_IID_STR "a1ceae44-d65e-4156-9359-d390f93ee= 9a0" -# define IHOSTVIDEOINPUTDEVICE_IID { \ - 0xa1ceae44, 0xd65e, 0x4156, \ - { 0x93, 0x59, 0xd3, 0x90, 0xf9, 0x3e, 0xe9, 0xa0 } \ -} -struct IHostVideoInputDevice_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IHostVideoInputDevice *pThis, PRUnichar * *name); - - nsresult (*GetPath)(IHostVideoInputDevice *pThis, PRUnichar * *path); - - nsresult (*GetAlias)(IHostVideoInputDevice *pThis, PRUnichar * *alias); - -}; - -struct IHostVideoInputDevice -{ - struct IHostVideoInputDevice_vtbl *vtbl; -}; -/* End of struct IHostVideoInputDevice Declaration */ - - -/* Start of struct IHost Declaration */ -# define IHOST_IID_STR "93269330-48ca-4096-b4a2-1189df336267" -# define IHOST_IID { \ - 0x93269330, 0x48ca, 0x4096, \ - { 0xb4, 0xa2, 0x11, 0x89, 0xdf, 0x33, 0x62, 0x67 } \ -} -struct IHost_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetDVDDrives)(IHost *pThis, PRUint32 *DVDDrivesSize, IMediu= m * **DVDDrives); - - nsresult (*GetFloppyDrives)(IHost *pThis, PRUint32 *floppyDrivesSize, = IMedium * **floppyDrives); - - nsresult (*GetUSBDevices)(IHost *pThis, PRUint32 *USBDevicesSize, IHos= tUSBDevice * **USBDevices); - - nsresult (*GetUSBDeviceFilters)(IHost *pThis, PRUint32 *USBDeviceFilte= rsSize, IHostUSBDeviceFilter * **USBDeviceFilters); - - nsresult (*GetNetworkInterfaces)(IHost *pThis, PRUint32 *networkInterf= acesSize, IHostNetworkInterface * **networkInterfaces); - - nsresult (*GetNameServers)(IHost *pThis, PRUint32 *nameServersSize, PR= Unichar * **nameServers); - - nsresult (*GetDomainName)(IHost *pThis, PRUnichar * *domainName); - - nsresult (*GetSearchStrings)(IHost *pThis, PRUint32 *searchStringsSize= , PRUnichar * **searchStrings); - - nsresult (*GetProcessorCount)(IHost *pThis, PRUint32 *processorCount); - - nsresult (*GetProcessorOnlineCount)(IHost *pThis, PRUint32 *processorO= nlineCount); - - nsresult (*GetProcessorCoreCount)(IHost *pThis, PRUint32 *processorCor= eCount); - - nsresult (*GetProcessorOnlineCoreCount)(IHost *pThis, PRUint32 *proces= sorOnlineCoreCount); - - nsresult (*GetMemorySize)(IHost *pThis, PRUint32 *memorySize); - - nsresult (*GetMemoryAvailable)(IHost *pThis, PRUint32 *memoryAvailable= ); - - nsresult (*GetOperatingSystem)(IHost *pThis, PRUnichar * *operatingSys= tem); - - nsresult (*GetOSVersion)(IHost *pThis, PRUnichar * *OSVersion); - - nsresult (*GetUTCTime)(IHost *pThis, PRInt64 *UTCTime); - - nsresult (*GetAcceleration3DAvailable)(IHost *pThis, PRBool *accelerat= ion3DAvailable); - - nsresult (*GetVideoInputDevices)(IHost *pThis, PRUint32 *videoInputDev= icesSize, IHostVideoInputDevice * **videoInputDevices); - - nsresult (*GetProcessorSpeed)( - IHost *pThis, - PRUint32 cpuId, - PRUint32 * speed - ); - - nsresult (*GetProcessorFeature)( - IHost *pThis, - PRUint32 feature, - PRBool * supported - ); - - nsresult (*GetProcessorDescription)( - IHost *pThis, - PRUint32 cpuId, - PRUnichar * * description - ); - - nsresult (*GetProcessorCPUIDLeaf)( - IHost *pThis, - PRUint32 cpuId, - PRUint32 leaf, - PRUint32 subLeaf, - PRUint32 * valEax, - PRUint32 * valEbx, - PRUint32 * valEcx, - PRUint32 * valEdx - ); - - nsresult (*CreateHostOnlyNetworkInterface)( - IHost *pThis, - IHostNetworkInterface * * hostInterface, - IProgress * * progress - ); - - nsresult (*RemoveHostOnlyNetworkInterface)( - IHost *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult (*CreateUSBDeviceFilter)( - IHost *pThis, - PRUnichar * name, - IHostUSBDeviceFilter * * filter - ); - - nsresult (*InsertUSBDeviceFilter)( - IHost *pThis, - PRUint32 position, - IHostUSBDeviceFilter * filter - ); - - nsresult (*RemoveUSBDeviceFilter)( - IHost *pThis, - PRUint32 position - ); - - nsresult (*FindHostDVDDrive)( - IHost *pThis, - PRUnichar * name, - IMedium * * drive - ); - - nsresult (*FindHostFloppyDrive)( - IHost *pThis, - PRUnichar * name, - IMedium * * drive - ); - - nsresult (*FindHostNetworkInterfaceByName)( - IHost *pThis, - PRUnichar * name, - IHostNetworkInterface * * networkInterface - ); - - nsresult (*FindHostNetworkInterfaceById)( - IHost *pThis, - PRUnichar * id, - IHostNetworkInterface * * networkInterface - ); - - nsresult (*FindHostNetworkInterfacesOfType)( - IHost *pThis, - PRUint32 type, - PRUint32 *networkInterfacesSize, - IHostNetworkInterface *** networkInterfaces - ); - - nsresult (*FindUSBDeviceById)( - IHost *pThis, - PRUnichar * id, - IHostUSBDevice * * device - ); - - nsresult (*FindUSBDeviceByAddress)( - IHost *pThis, - PRUnichar * name, - IHostUSBDevice * * device - ); - - nsresult (*GenerateMACAddress)( - IHost *pThis, - PRUnichar * * address - ); - -}; - -struct IHost -{ - struct IHost_vtbl *vtbl; -}; -/* End of struct IHost Declaration */ - - -/* Start of struct ISystemProperties Declaration */ -# define ISYSTEMPROPERTIES_IID_STR "1254a96a-ae57-4484-946a-22d86c1f98af" -# define ISYSTEMPROPERTIES_IID { \ - 0x1254a96a, 0xae57, 0x4484, \ - { 0x94, 0x6a, 0x22, 0xd8, 0x6c, 0x1f, 0x98, 0xaf } \ -} -struct ISystemProperties_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetMinGuestRAM)(ISystemProperties *pThis, PRUint32 *minGues= tRAM); - - nsresult (*GetMaxGuestRAM)(ISystemProperties *pThis, PRUint32 *maxGues= tRAM); - - nsresult (*GetMinGuestVRAM)(ISystemProperties *pThis, PRUint32 *minGue= stVRAM); - - nsresult (*GetMaxGuestVRAM)(ISystemProperties *pThis, PRUint32 *maxGue= stVRAM); - - nsresult (*GetMinGuestCPUCount)(ISystemProperties *pThis, PRUint32 *mi= nGuestCPUCount); - - nsresult (*GetMaxGuestCPUCount)(ISystemProperties *pThis, PRUint32 *ma= xGuestCPUCount); - - nsresult (*GetMaxGuestMonitors)(ISystemProperties *pThis, PRUint32 *ma= xGuestMonitors); - - nsresult (*GetInfoVDSize)(ISystemProperties *pThis, PRInt64 *infoVDSiz= e); - - nsresult (*GetSerialPortCount)(ISystemProperties *pThis, PRUint32 *ser= ialPortCount); - - nsresult (*GetParallelPortCount)(ISystemProperties *pThis, PRUint32 *p= arallelPortCount); - - nsresult (*GetMaxBootPosition)(ISystemProperties *pThis, PRUint32 *max= BootPosition); - - nsresult (*GetExclusiveHwVirt)(ISystemProperties *pThis, PRBool *exclu= siveHwVirt); - nsresult (*SetExclusiveHwVirt)(ISystemProperties *pThis, PRBool exclus= iveHwVirt); - - nsresult (*GetDefaultMachineFolder)(ISystemProperties *pThis, PRUnicha= r * *defaultMachineFolder); - nsresult (*SetDefaultMachineFolder)(ISystemProperties *pThis, PRUnicha= r * defaultMachineFolder); - - nsresult (*GetLoggingLevel)(ISystemProperties *pThis, PRUnichar * *log= gingLevel); - nsresult (*SetLoggingLevel)(ISystemProperties *pThis, PRUnichar * logg= ingLevel); - - nsresult (*GetMediumFormats)(ISystemProperties *pThis, PRUint32 *mediu= mFormatsSize, IMediumFormat * **mediumFormats); - - nsresult (*GetDefaultHardDiskFormat)(ISystemProperties *pThis, PRUnich= ar * *defaultHardDiskFormat); - nsresult (*SetDefaultHardDiskFormat)(ISystemProperties *pThis, PRUnich= ar * defaultHardDiskFormat); - - nsresult (*GetFreeDiskSpaceWarning)(ISystemProperties *pThis, PRInt64 = *freeDiskSpaceWarning); - nsresult (*SetFreeDiskSpaceWarning)(ISystemProperties *pThis, PRInt64 = freeDiskSpaceWarning); - - nsresult (*GetFreeDiskSpacePercentWarning)(ISystemProperties *pThis, P= RUint32 *freeDiskSpacePercentWarning); - nsresult (*SetFreeDiskSpacePercentWarning)(ISystemProperties *pThis, P= RUint32 freeDiskSpacePercentWarning); - - nsresult (*GetFreeDiskSpaceError)(ISystemProperties *pThis, PRInt64 *f= reeDiskSpaceError); - nsresult (*SetFreeDiskSpaceError)(ISystemProperties *pThis, PRInt64 fr= eeDiskSpaceError); - - nsresult (*GetFreeDiskSpacePercentError)(ISystemProperties *pThis, PRU= int32 *freeDiskSpacePercentError); - nsresult (*SetFreeDiskSpacePercentError)(ISystemProperties *pThis, PRU= int32 freeDiskSpacePercentError); - - nsresult (*GetVRDEAuthLibrary)(ISystemProperties *pThis, PRUnichar * *= VRDEAuthLibrary); - nsresult (*SetVRDEAuthLibrary)(ISystemProperties *pThis, PRUnichar * V= RDEAuthLibrary); - - nsresult (*GetWebServiceAuthLibrary)(ISystemProperties *pThis, PRUnich= ar * *webServiceAuthLibrary); - nsresult (*SetWebServiceAuthLibrary)(ISystemProperties *pThis, PRUnich= ar * webServiceAuthLibrary); - - nsresult (*GetDefaultVRDEExtPack)(ISystemProperties *pThis, PRUnichar = * *defaultVRDEExtPack); - nsresult (*SetDefaultVRDEExtPack)(ISystemProperties *pThis, PRUnichar = * defaultVRDEExtPack); - - nsresult (*GetLogHistoryCount)(ISystemProperties *pThis, PRUint32 *log= HistoryCount); - nsresult (*SetLogHistoryCount)(ISystemProperties *pThis, PRUint32 logH= istoryCount); - - nsresult (*GetDefaultAudioDriver)(ISystemProperties *pThis, PRUint32 *= defaultAudioDriver); - - nsresult (*GetAutostartDatabasePath)(ISystemProperties *pThis, PRUnich= ar * *autostartDatabasePath); - nsresult (*SetAutostartDatabasePath)(ISystemProperties *pThis, PRUnich= ar * autostartDatabasePath); - - nsresult (*GetDefaultAdditionsISO)(ISystemProperties *pThis, PRUnichar= * *defaultAdditionsISO); - nsresult (*SetDefaultAdditionsISO)(ISystemProperties *pThis, PRUnichar= * defaultAdditionsISO); - - nsresult (*GetDefaultFrontend)(ISystemProperties *pThis, PRUnichar * *= defaultFrontend); - nsresult (*SetDefaultFrontend)(ISystemProperties *pThis, PRUnichar * d= efaultFrontend); - - nsresult (*GetMaxNetworkAdapters)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 * maxNetworkAdapters - ); - - nsresult (*GetMaxNetworkAdaptersOfType)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 type, - PRUint32 * maxNetworkAdapters - ); - - nsresult (*GetMaxDevicesPerPortForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * maxDevicesPerPort - ); - - nsresult (*GetMinPortCountForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * minPortCount - ); - - nsresult (*GetMaxPortCountForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * maxPortCount - ); - - nsresult (*GetMaxInstancesOfStorageBus)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 bus, - PRUint32 * maxInstances - ); - - nsresult (*GetDeviceTypesForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 *deviceTypesSize, - PRUint32** deviceTypes - ); - - nsresult (*GetDefaultIoCacheSettingForStorageController)( - ISystemProperties *pThis, - PRUint32 controllerType, - PRBool * enabled - ); - - nsresult (*GetMaxInstancesOfUSBControllerType)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 type, - PRUint32 * maxInstances - ); - -}; - -struct ISystemProperties -{ - struct ISystemProperties_vtbl *vtbl; -}; -/* End of struct ISystemProperties Declaration */ - - -/* Start of struct IGuestOSType Declaration */ -# define IGUESTOSTYPE_IID_STR "6d968f9a-858b-4c50-bf17-241f069e94c2" -# define IGUESTOSTYPE_IID { \ - 0x6d968f9a, 0x858b, 0x4c50, \ - { 0xbf, 0x17, 0x24, 0x1f, 0x06, 0x9e, 0x94, 0xc2 } \ -} -struct IGuestOSType_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetFamilyId)(IGuestOSType *pThis, PRUnichar * *familyId); - - nsresult (*GetFamilyDescription)(IGuestOSType *pThis, PRUnichar * *fam= ilyDescription); - - nsresult (*GetId)(IGuestOSType *pThis, PRUnichar * *id); - - nsresult (*GetDescription)(IGuestOSType *pThis, PRUnichar * *descripti= on); - - nsresult (*GetIs64Bit)(IGuestOSType *pThis, PRBool *is64Bit); - - nsresult (*GetRecommendedIOAPIC)(IGuestOSType *pThis, PRBool *recommen= dedIOAPIC); - - nsresult (*GetRecommendedVirtEx)(IGuestOSType *pThis, PRBool *recommen= dedVirtEx); - - nsresult (*GetRecommendedRAM)(IGuestOSType *pThis, PRUint32 *recommend= edRAM); - - nsresult (*GetRecommendedVRAM)(IGuestOSType *pThis, PRUint32 *recommen= dedVRAM); - - nsresult (*GetRecommended2DVideoAcceleration)(IGuestOSType *pThis, PRB= ool *recommended2DVideoAcceleration); - - nsresult (*GetRecommended3DAcceleration)(IGuestOSType *pThis, PRBool *= recommended3DAcceleration); - - nsresult (*GetRecommendedHDD)(IGuestOSType *pThis, PRInt64 *recommende= dHDD); - - nsresult (*GetAdapterType)(IGuestOSType *pThis, PRUint32 *adapterType); - - nsresult (*GetRecommendedPAE)(IGuestOSType *pThis, PRBool *recommended= PAE); - - nsresult (*GetRecommendedDVDStorageController)(IGuestOSType *pThis, PR= Uint32 *recommendedDVDStorageController); - - nsresult (*GetRecommendedDVDStorageBus)(IGuestOSType *pThis, PRUint32 = *recommendedDVDStorageBus); - - nsresult (*GetRecommendedHDStorageController)(IGuestOSType *pThis, PRU= int32 *recommendedHDStorageController); - - nsresult (*GetRecommendedHDStorageBus)(IGuestOSType *pThis, PRUint32 *= recommendedHDStorageBus); - - nsresult (*GetRecommendedFirmware)(IGuestOSType *pThis, PRUint32 *reco= mmendedFirmware); - - nsresult (*GetRecommendedUSBHID)(IGuestOSType *pThis, PRBool *recommen= dedUSBHID); - - nsresult (*GetRecommendedHPET)(IGuestOSType *pThis, PRBool *recommende= dHPET); - - nsresult (*GetRecommendedUSBTablet)(IGuestOSType *pThis, PRBool *recom= mendedUSBTablet); - - nsresult (*GetRecommendedRTCUseUTC)(IGuestOSType *pThis, PRBool *recom= mendedRTCUseUTC); - - nsresult (*GetRecommendedChipset)(IGuestOSType *pThis, PRUint32 *recom= mendedChipset); - - nsresult (*GetRecommendedAudioController)(IGuestOSType *pThis, PRUint3= 2 *recommendedAudioController); - - nsresult (*GetRecommendedFloppy)(IGuestOSType *pThis, PRBool *recommen= dedFloppy); - - nsresult (*GetRecommendedUSB)(IGuestOSType *pThis, PRBool *recommended= USB); - -}; - -struct IGuestOSType -{ - struct IGuestOSType_vtbl *vtbl; -}; -/* End of struct IGuestOSType Declaration */ - - -/* Start of struct IAdditionsFacility Declaration */ -# define IADDITIONSFACILITY_IID_STR "54992946-6af1-4e49-98ec-58b558b7291e" -# define IADDITIONSFACILITY_IID { \ - 0x54992946, 0x6af1, 0x4e49, \ - { 0x98, 0xec, 0x58, 0xb5, 0x58, 0xb7, 0x29, 0x1e } \ -} -struct IAdditionsFacility_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetClassType)(IAdditionsFacility *pThis, PRUint32 *classTyp= e); - - nsresult (*GetLastUpdated)(IAdditionsFacility *pThis, PRInt64 *lastUpd= ated); - - nsresult (*GetName)(IAdditionsFacility *pThis, PRUnichar * *name); - - nsresult (*GetStatus)(IAdditionsFacility *pThis, PRUint32 *status); - - nsresult (*GetType)(IAdditionsFacility *pThis, PRUint32 *type); - -}; - -struct IAdditionsFacility -{ - struct IAdditionsFacility_vtbl *vtbl; -}; -/* End of struct IAdditionsFacility Declaration */ - - -/* Start of struct IGuestSession Declaration */ -# define IGUESTSESSION_IID_STR "5b28703c-07b6-4fcb-afba-ac199b309752" -# define IGUESTSESSION_IID { \ - 0x5b28703c, 0x07b6, 0x4fcb, \ - { 0xaf, 0xba, 0xac, 0x19, 0x9b, 0x30, 0x97, 0x52 } \ -} -struct IGuestSession_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetUser)(IGuestSession *pThis, PRUnichar * *user); - - nsresult (*GetDomain)(IGuestSession *pThis, PRUnichar * *domain); - - nsresult (*GetName)(IGuestSession *pThis, PRUnichar * *name); - - nsresult (*GetId)(IGuestSession *pThis, PRUint32 *id); - - nsresult (*GetTimeout)(IGuestSession *pThis, PRUint32 *timeout); - nsresult (*SetTimeout)(IGuestSession *pThis, PRUint32 timeout); - - nsresult (*GetProtocolVersion)(IGuestSession *pThis, PRUint32 *protoco= lVersion); - - nsresult (*GetStatus)(IGuestSession *pThis, PRUint32 *status); - - nsresult (*GetEnvironment)(IGuestSession *pThis, PRUint32 *environment= Size, PRUnichar * **environment); - nsresult (*SetEnvironment)(IGuestSession *pThis, PRUint32 environmentS= ize, PRUnichar * *environment); - - nsresult (*GetProcesses)(IGuestSession *pThis, PRUint32 *processesSize= , IGuestProcess * **processes); - - nsresult (*GetDirectories)(IGuestSession *pThis, PRUint32 *directories= Size, IGuestDirectory * **directories); - - nsresult (*GetFiles)(IGuestSession *pThis, PRUint32 *filesSize, IGuest= File * **files); - - nsresult (*GetEventSource)(IGuestSession *pThis, IEventSource * *event= Source); - - nsresult (*Close)(IGuestSession *pThis ); - - nsresult (*CopyFrom)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - - nsresult (*CopyTo)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - - nsresult (*DirectoryCreate)( - IGuestSession *pThis, - PRUnichar * path, - PRUint32 mode, - PRUint32 flagsSize, - PRUint32* flags - ); - - nsresult (*DirectoryCreateTemp)( - IGuestSession *pThis, - PRUnichar * templateName, - PRUint32 mode, - PRUnichar * path, - PRBool secure, - PRUnichar * * directory - ); - - nsresult (*DirectoryExists)( - IGuestSession *pThis, - PRUnichar * path, - PRBool * exists - ); - - nsresult (*DirectoryOpen)( - IGuestSession *pThis, - PRUnichar * path, - PRUnichar * filter, - PRUint32 flagsSize, - PRUint32* flags, - IGuestDirectory * * directory - ); - - nsresult (*DirectoryQueryInfo)( - IGuestSession *pThis, - PRUnichar * path, - IGuestFsObjInfo * * info - ); - - nsresult (*DirectoryRemove)( - IGuestSession *pThis, - PRUnichar * path - ); - - nsresult (*DirectoryRemoveRecursive)( - IGuestSession *pThis, - PRUnichar * path, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - - nsresult (*DirectoryRename)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags - ); - - nsresult (*DirectorySetACL)( - IGuestSession *pThis, - PRUnichar * path, - PRUnichar * acl - ); - - nsresult (*EnvironmentClear)(IGuestSession *pThis ); - - nsresult (*EnvironmentGet)( - IGuestSession *pThis, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult (*EnvironmentSet)( - IGuestSession *pThis, - PRUnichar * name, - PRUnichar * value - ); - - nsresult (*EnvironmentUnset)( - IGuestSession *pThis, - PRUnichar * name - ); - - nsresult (*FileCreateTemp)( - IGuestSession *pThis, - PRUnichar * templateName, - PRUint32 mode, - PRUnichar * path, - PRBool secure, - IGuestFile * * file - ); - - nsresult (*FileExists)( - IGuestSession *pThis, - PRUnichar * path, - PRBool * exists - ); - - nsresult (*FileRemove)( - IGuestSession *pThis, - PRUnichar * path - ); - - nsresult (*FileOpen)( - IGuestSession *pThis, - PRUnichar * path, - PRUnichar * openMode, - PRUnichar * disposition, - PRUint32 creationMode, - IGuestFile * * file - ); - - nsresult (*FileOpenEx)( - IGuestSession *pThis, - PRUnichar * path, - PRUnichar * openMode, - PRUnichar * disposition, - PRUnichar * sharingMode, - PRUint32 creationMode, - PRInt64 offset, - IGuestFile * * file - ); - - nsresult (*FileQueryInfo)( - IGuestSession *pThis, - PRUnichar * path, - IGuestFsObjInfo * * info - ); - - nsresult (*FileQuerySize)( - IGuestSession *pThis, - PRUnichar * path, - PRInt64 * size - ); - - nsresult (*FileRename)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags - ); - - nsresult (*FileSetACL)( - IGuestSession *pThis, - PRUnichar * file, - PRUnichar * acl - ); - - nsresult (*ProcessCreate)( - IGuestSession *pThis, - PRUnichar * command, - PRUint32 argumentsSize, - PRUnichar ** arguments, - PRUint32 environmentSize, - PRUnichar ** environment, - PRUint32 flagsSize, - PRUint32* flags, - PRUint32 timeoutMS, - IGuestProcess * * guestProcess - ); - - nsresult (*ProcessCreateEx)( - IGuestSession *pThis, - PRUnichar * command, - PRUint32 argumentsSize, - PRUnichar ** arguments, - PRUint32 environmentSize, - PRUnichar ** environment, - PRUint32 flagsSize, - PRUint32* flags, - PRUint32 timeoutMS, - PRUint32 priority, - PRUint32 affinitySize, - PRInt32* affinity, - IGuestProcess * * guestProcess - ); - - nsresult (*ProcessGet)( - IGuestSession *pThis, - PRUint32 pid, - IGuestProcess * * guestProcess - ); - - nsresult (*SymlinkCreate)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * target, - PRUint32 type - ); - - nsresult (*SymlinkExists)( - IGuestSession *pThis, - PRUnichar * symlink, - PRBool * exists - ); - - nsresult (*SymlinkRead)( - IGuestSession *pThis, - PRUnichar * symlink, - PRUint32 flagsSize, - PRUint32* flags, - PRUnichar * * target - ); - - nsresult (*SymlinkRemoveDirectory)( - IGuestSession *pThis, - PRUnichar * path - ); - - nsresult (*SymlinkRemoveFile)( - IGuestSession *pThis, - PRUnichar * file - ); - - nsresult (*WaitFor)( - IGuestSession *pThis, - PRUint32 waitFor, - PRUint32 timeoutMS, - PRUint32 * reason - ); - - nsresult (*WaitForArray)( - IGuestSession *pThis, - PRUint32 waitForSize, - PRUint32* waitFor, - PRUint32 timeoutMS, - PRUint32 * reason - ); - -}; - -struct IGuestSession -{ - struct IGuestSession_vtbl *vtbl; -}; -/* End of struct IGuestSession Declaration */ - - -/* Start of struct IProcess Declaration */ -# define IPROCESS_IID_STR "5a4fe06d-8cb1-40ff-ac9e-9676e32f706e" -# define IPROCESS_IID { \ - 0x5a4fe06d, 0x8cb1, 0x40ff, \ - { 0xac, 0x9e, 0x96, 0x76, 0xe3, 0x2f, 0x70, 0x6e } \ -} -struct IProcess_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetArguments)(IProcess *pThis, PRUint32 *argumentsSize, PRU= nichar * **arguments); - - nsresult (*GetEnvironment)(IProcess *pThis, PRUint32 *environmentSize,= PRUnichar * **environment); - - nsresult (*GetEventSource)(IProcess *pThis, IEventSource * *eventSourc= e); - - nsresult (*GetExecutablePath)(IProcess *pThis, PRUnichar * *executable= Path); - - nsresult (*GetExitCode)(IProcess *pThis, PRInt32 *exitCode); - - nsresult (*GetName)(IProcess *pThis, PRUnichar * *name); - - nsresult (*GetPID)(IProcess *pThis, PRUint32 *PID); - - nsresult (*GetStatus)(IProcess *pThis, PRUint32 *status); - - nsresult (*WaitFor)( - IProcess *pThis, - PRUint32 waitFor, - PRUint32 timeoutMS, - PRUint32 * reason - ); - - nsresult (*WaitForArray)( - IProcess *pThis, - PRUint32 waitForSize, - PRUint32* waitFor, - PRUint32 timeoutMS, - PRUint32 * reason - ); - - nsresult (*Read)( - IProcess *pThis, - PRUint32 handle, - PRUint32 toRead, - PRUint32 timeoutMS, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*Write)( - IProcess *pThis, - PRUint32 handle, - PRUint32 flags, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - - nsresult (*WriteArray)( - IProcess *pThis, - PRUint32 handle, - PRUint32 flagsSize, - PRUint32* flags, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - - nsresult (*Terminate)(IProcess *pThis ); - -}; - -struct IProcess -{ - struct IProcess_vtbl *vtbl; -}; -/* End of struct IProcess Declaration */ - - -/* Start of struct IGuestProcess Declaration */ -# define IGUESTPROCESS_IID_STR "dfa39a36-5d43-4840-a025-67ea956b3111" -# define IGUESTPROCESS_IID { \ - 0xdfa39a36, 0x5d43, 0x4840, \ - { 0xa0, 0x25, 0x67, 0xea, 0x95, 0x6b, 0x31, 0x11 } \ -} -struct IGuestProcess_vtbl -{ - struct IProcess_vtbl iprocess; - -}; - -struct IGuestProcess -{ - struct IGuestProcess_vtbl *vtbl; -}; -/* End of struct IGuestProcess Declaration */ - - -/* Start of struct IDirectory Declaration */ -# define IDIRECTORY_IID_STR "1b70dd03-26d7-483a-8877-89bbb0f87b70" -# define IDIRECTORY_IID { \ - 0x1b70dd03, 0x26d7, 0x483a, \ - { 0x88, 0x77, 0x89, 0xbb, 0xb0, 0xf8, 0x7b, 0x70 } \ -} -struct IDirectory_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetDirectoryName)(IDirectory *pThis, PRUnichar * *directory= Name); - - nsresult (*GetFilter)(IDirectory *pThis, PRUnichar * *filter); - - nsresult (*Close)(IDirectory *pThis ); - - nsresult (*Read)( - IDirectory *pThis, - IFsObjInfo * * objInfo - ); - -}; - -struct IDirectory -{ - struct IDirectory_vtbl *vtbl; -}; -/* End of struct IDirectory Declaration */ - - -/* Start of struct IGuestDirectory Declaration */ -# define IGUESTDIRECTORY_IID_STR "af4a8ce0-0725-42b7-8826-46e3c7ba7357" -# define IGUESTDIRECTORY_IID { \ - 0xaf4a8ce0, 0x0725, 0x42b7, \ - { 0x88, 0x26, 0x46, 0xe3, 0xc7, 0xba, 0x73, 0x57 } \ -} -struct IGuestDirectory_vtbl -{ - struct IDirectory_vtbl idirectory; - -}; - -struct IGuestDirectory -{ - struct IGuestDirectory_vtbl *vtbl; -}; -/* End of struct IGuestDirectory Declaration */ - - -/* Start of struct IFile Declaration */ -# define IFILE_IID_STR "5ec56ea3-b55d-4bdb-8c4f-5f9fb26b894b" -# define IFILE_IID { \ - 0x5ec56ea3, 0xb55d, 0x4bdb, \ - { 0x8c, 0x4f, 0x5f, 0x9f, 0xb2, 0x6b, 0x89, 0x4b } \ -} -struct IFile_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetCreationMode)(IFile *pThis, PRUint32 *creationMode); - - nsresult (*GetDisposition)(IFile *pThis, PRUnichar * *disposition); - - nsresult (*GetEventSource)(IFile *pThis, IEventSource * *eventSource); - - nsresult (*GetFileName)(IFile *pThis, PRUnichar * *fileName); - - nsresult (*GetId)(IFile *pThis, PRUint32 *id); - - nsresult (*GetInitialSize)(IFile *pThis, PRInt64 *initialSize); - - nsresult (*GetOpenMode)(IFile *pThis, PRUnichar * *openMode); - - nsresult (*GetOffset)(IFile *pThis, PRInt64 *offset); - - nsresult (*GetStatus)(IFile *pThis, PRUint32 *status); - - nsresult (*Close)(IFile *pThis ); - - nsresult (*QueryInfo)( - IFile *pThis, - IFsObjInfo * * objInfo - ); - - nsresult (*Read)( - IFile *pThis, - PRUint32 toRead, - PRUint32 timeoutMS, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*ReadAt)( - IFile *pThis, - PRInt64 offset, - PRUint32 toRead, - PRUint32 timeoutMS, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*Seek)( - IFile *pThis, - PRInt64 offset, - PRUint32 whence - ); - - nsresult (*SetACL)( - IFile *pThis, - PRUnichar * acl - ); - - nsresult (*Write)( - IFile *pThis, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - - nsresult (*WriteAt)( - IFile *pThis, - PRInt64 offset, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - -}; - -struct IFile -{ - struct IFile_vtbl *vtbl; -}; -/* End of struct IFile Declaration */ - - -/* Start of struct IGuestFile Declaration */ -# define IGUESTFILE_IID_STR "60661aec-145f-4d11-b80e-8ea151598093" -# define IGUESTFILE_IID { \ - 0x60661aec, 0x145f, 0x4d11, \ - { 0xb8, 0x0e, 0x8e, 0xa1, 0x51, 0x59, 0x80, 0x93 } \ -} -struct IGuestFile_vtbl -{ - struct IFile_vtbl ifile; - -}; - -struct IGuestFile -{ - struct IGuestFile_vtbl *vtbl; -}; -/* End of struct IGuestFile Declaration */ - - -/* Start of struct IFsObjInfo Declaration */ -# define IFSOBJINFO_IID_STR "4047ba30-7006-4966-ae86-94164e5e20eb" -# define IFSOBJINFO_IID { \ - 0x4047ba30, 0x7006, 0x4966, \ - { 0xae, 0x86, 0x94, 0x16, 0x4e, 0x5e, 0x20, 0xeb } \ -} -struct IFsObjInfo_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetAccessTime)(IFsObjInfo *pThis, PRInt64 *accessTime); - - nsresult (*GetAllocatedSize)(IFsObjInfo *pThis, PRInt64 *allocatedSize= ); - - nsresult (*GetBirthTime)(IFsObjInfo *pThis, PRInt64 *birthTime); - - nsresult (*GetChangeTime)(IFsObjInfo *pThis, PRInt64 *changeTime); - - nsresult (*GetDeviceNumber)(IFsObjInfo *pThis, PRUint32 *deviceNumber); - - nsresult (*GetFileAttributes)(IFsObjInfo *pThis, PRUnichar * *fileAttr= ibutes); - - nsresult (*GetGenerationId)(IFsObjInfo *pThis, PRUint32 *generationId); - - nsresult (*GetGID)(IFsObjInfo *pThis, PRUint32 *GID); - - nsresult (*GetGroupName)(IFsObjInfo *pThis, PRUnichar * *groupName); - - nsresult (*GetHardLinks)(IFsObjInfo *pThis, PRUint32 *hardLinks); - - nsresult (*GetModificationTime)(IFsObjInfo *pThis, PRInt64 *modificati= onTime); - - nsresult (*GetName)(IFsObjInfo *pThis, PRUnichar * *name); - - nsresult (*GetNodeId)(IFsObjInfo *pThis, PRInt64 *nodeId); - - nsresult (*GetNodeIdDevice)(IFsObjInfo *pThis, PRUint32 *nodeIdDevice); - - nsresult (*GetObjectSize)(IFsObjInfo *pThis, PRInt64 *objectSize); - - nsresult (*GetType)(IFsObjInfo *pThis, PRUint32 *type); - - nsresult (*GetUID)(IFsObjInfo *pThis, PRUint32 *UID); - - nsresult (*GetUserFlags)(IFsObjInfo *pThis, PRUint32 *userFlags); - - nsresult (*GetUserName)(IFsObjInfo *pThis, PRUnichar * *userName); - -}; - -struct IFsObjInfo -{ - struct IFsObjInfo_vtbl *vtbl; -}; -/* End of struct IFsObjInfo Declaration */ - - -/* Start of struct IGuestFsObjInfo Declaration */ -# define IGUESTFSOBJINFO_IID_STR "d5cf678e-3484-4e4a-ac55-329e15462e18" -# define IGUESTFSOBJINFO_IID { \ - 0xd5cf678e, 0x3484, 0x4e4a, \ - { 0xac, 0x55, 0x32, 0x9e, 0x15, 0x46, 0x2e, 0x18 } \ -} -struct IGuestFsObjInfo_vtbl -{ - struct IFsObjInfo_vtbl ifsobjinfo; - -}; - -struct IGuestFsObjInfo -{ - struct IGuestFsObjInfo_vtbl *vtbl; -}; -/* End of struct IGuestFsObjInfo Declaration */ - - -/* Start of struct IGuest Declaration */ -# define IGUEST_IID_STR "8011a1b1-6adb-4ffb-a37e-20abdaee4650" -# define IGUEST_IID { \ - 0x8011a1b1, 0x6adb, 0x4ffb, \ - { 0xa3, 0x7e, 0x20, 0xab, 0xda, 0xee, 0x46, 0x50 } \ -} -struct IGuest_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetOSTypeId)(IGuest *pThis, PRUnichar * *OSTypeId); - - nsresult (*GetAdditionsRunLevel)(IGuest *pThis, PRUint32 *additionsRun= Level); - - nsresult (*GetAdditionsVersion)(IGuest *pThis, PRUnichar * *additionsV= ersion); - - nsresult (*GetAdditionsRevision)(IGuest *pThis, PRUint32 *additionsRev= ision); - - nsresult (*GetEventSource)(IGuest *pThis, IEventSource * *eventSource); - - nsresult (*GetFacilities)(IGuest *pThis, PRUint32 *facilitiesSize, IAd= ditionsFacility * **facilities); - - nsresult (*GetSessions)(IGuest *pThis, PRUint32 *sessionsSize, IGuestS= ession * **sessions); - - nsresult (*GetMemoryBalloonSize)(IGuest *pThis, PRUint32 *memoryBalloo= nSize); - nsresult (*SetMemoryBalloonSize)(IGuest *pThis, PRUint32 memoryBalloon= Size); - - nsresult (*GetStatisticsUpdateInterval)(IGuest *pThis, PRUint32 *stati= sticsUpdateInterval); - nsresult (*SetStatisticsUpdateInterval)(IGuest *pThis, PRUint32 statis= ticsUpdateInterval); - - nsresult (*InternalGetStatistics)( - IGuest *pThis, - PRUint32 * cpuUser, - PRUint32 * cpuKernel, - PRUint32 * cpuIdle, - PRUint32 * memTotal, - PRUint32 * memFree, - PRUint32 * memBalloon, - PRUint32 * memShared, - PRUint32 * memCache, - PRUint32 * pagedTotal, - PRUint32 * memAllocTotal, - PRUint32 * memFreeTotal, - PRUint32 * memBalloonTotal, - PRUint32 * memSharedTotal - ); - - nsresult (*GetFacilityStatus)( - IGuest *pThis, - PRUint32 facility, - PRInt64 * timestamp, - PRUint32 * status - ); - - nsresult (*GetAdditionsStatus)( - IGuest *pThis, - PRUint32 level, - PRBool * active - ); - - nsresult (*SetCredentials)( - IGuest *pThis, - PRUnichar * userName, - PRUnichar * password, - PRUnichar * domain, - PRBool allowInteractiveLogon - ); - - nsresult (*DragHGEnter)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 y, - PRUint32 x, - PRUint32 defaultAction, - PRUint32 allowedActionsSize, - PRUint32* allowedActions, - PRUint32 formatsSize, - PRUnichar ** formats, - PRUint32 * resultAction - ); - - nsresult (*DragHGMove)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 x, - PRUint32 y, - PRUint32 defaultAction, - PRUint32 allowedActionsSize, - PRUint32* allowedActions, - PRUint32 formatsSize, - PRUnichar ** formats, - PRUint32 * resultAction - ); - - nsresult (*DragHGLeave)( - IGuest *pThis, - PRUint32 screenId - ); - - nsresult (*DragHGDrop)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 x, - PRUint32 y, - PRUint32 defaultAction, - PRUint32 allowedActionsSize, - PRUint32* allowedActions, - PRUint32 formatsSize, - PRUnichar ** formats, - PRUnichar * * format, - PRUint32 * resultAction - ); - - nsresult (*DragHGPutData)( - IGuest *pThis, - PRUint32 screenId, - PRUnichar * format, - PRUint32 dataSize, - PRUint8* data, - IProgress * * progress - ); - - nsresult (*DragGHPending)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 *formatsSize, - PRUnichar *** formats, - PRUint32 *allowedActionsSize, - PRUint32* allowedActions, - PRUint32 * defaultAction - ); - - nsresult (*DragGHDropped)( - IGuest *pThis, - PRUnichar * format, - PRUint32 action, - IProgress * * progress - ); - - nsresult (*DragGHGetData)( - IGuest *pThis, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*CreateSession)( - IGuest *pThis, - PRUnichar * user, - PRUnichar * password, - PRUnichar * domain, - PRUnichar * sessionName, - IGuestSession * * guestSession - ); - - nsresult (*FindSession)( - IGuest *pThis, - PRUnichar * sessionName, - PRUint32 *sessionsSize, - IGuestSession *** sessions - ); - - nsresult (*UpdateGuestAdditions)( - IGuest *pThis, - PRUnichar * source, - PRUint32 argumentsSize, - PRUnichar ** arguments, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - -}; - -struct IGuest -{ - struct IGuest_vtbl *vtbl; -}; -/* End of struct IGuest Declaration */ - - -/* Start of struct IProgress Declaration */ -# define IPROGRESS_IID_STR "c20238e4-3221-4d3f-8891-81ce92d9f913" -# define IPROGRESS_IID { \ - 0xc20238e4, 0x3221, 0x4d3f, \ - { 0x88, 0x91, 0x81, 0xce, 0x92, 0xd9, 0xf9, 0x13 } \ -} -struct IProgress_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetId)(IProgress *pThis, PRUnichar * *id); - - nsresult (*GetDescription)(IProgress *pThis, PRUnichar * *description); - - nsresult (*GetInitiator)(IProgress *pThis, nsISupports * *initiator); - - nsresult (*GetCancelable)(IProgress *pThis, PRBool *cancelable); - - nsresult (*GetPercent)(IProgress *pThis, PRUint32 *percent); - - nsresult (*GetTimeRemaining)(IProgress *pThis, PRInt32 *timeRemaining); - - nsresult (*GetCompleted)(IProgress *pThis, PRBool *completed); - - nsresult (*GetCanceled)(IProgress *pThis, PRBool *canceled); - - nsresult (*GetResultCode)(IProgress *pThis, PRInt32 *resultCode); - - nsresult (*GetErrorInfo)(IProgress *pThis, IVirtualBoxErrorInfo * *err= orInfo); - - nsresult (*GetOperationCount)(IProgress *pThis, PRUint32 *operationCou= nt); - - nsresult (*GetOperation)(IProgress *pThis, PRUint32 *operation); - - nsresult (*GetOperationDescription)(IProgress *pThis, PRUnichar * *ope= rationDescription); - - nsresult (*GetOperationPercent)(IProgress *pThis, PRUint32 *operationP= ercent); - - nsresult (*GetOperationWeight)(IProgress *pThis, PRUint32 *operationWe= ight); - - nsresult (*GetTimeout)(IProgress *pThis, PRUint32 *timeout); - nsresult (*SetTimeout)(IProgress *pThis, PRUint32 timeout); - - nsresult (*SetCurrentOperationProgress)( - IProgress *pThis, - PRUint32 percent - ); - - nsresult (*SetNextOperation)( - IProgress *pThis, - PRUnichar * nextOperationDescription, - PRUint32 nextOperationsWeight - ); - - nsresult (*WaitForCompletion)( - IProgress *pThis, - PRInt32 timeout - ); - - nsresult (*WaitForOperationCompletion)( - IProgress *pThis, - PRUint32 operation, - PRInt32 timeout - ); - - nsresult (*WaitForAsyncProgressCompletion)( - IProgress *pThis, - IProgress * pProgressAsync - ); - - nsresult (*Cancel)(IProgress *pThis ); - -}; - -struct IProgress -{ - struct IProgress_vtbl *vtbl; -}; -/* End of struct IProgress Declaration */ - - -/* Start of struct ISnapshot Declaration */ -# define ISNAPSHOT_IID_STR "0472823b-c6e7-472a-8e9f-d732e86b8463" -# define ISNAPSHOT_IID { \ - 0x0472823b, 0xc6e7, 0x472a, \ - { 0x8e, 0x9f, 0xd7, 0x32, 0xe8, 0x6b, 0x84, 0x63 } \ -} -struct ISnapshot_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetId)(ISnapshot *pThis, PRUnichar * *id); - - nsresult (*GetName)(ISnapshot *pThis, PRUnichar * *name); - nsresult (*SetName)(ISnapshot *pThis, PRUnichar * name); - - nsresult (*GetDescription)(ISnapshot *pThis, PRUnichar * *description); - nsresult (*SetDescription)(ISnapshot *pThis, PRUnichar * description); - - nsresult (*GetTimeStamp)(ISnapshot *pThis, PRInt64 *timeStamp); - - nsresult (*GetOnline)(ISnapshot *pThis, PRBool *online); - - nsresult (*GetMachine)(ISnapshot *pThis, IMachine * *machine); - - nsresult (*GetParent)(ISnapshot *pThis, ISnapshot * *parent); - - nsresult (*GetChildren)(ISnapshot *pThis, PRUint32 *childrenSize, ISna= pshot * **children); - - nsresult (*GetChildrenCount)( - ISnapshot *pThis, - PRUint32 * childrenCount - ); - -}; - -struct ISnapshot -{ - struct ISnapshot_vtbl *vtbl; -}; -/* End of struct ISnapshot Declaration */ - - -/* Start of struct IMediumAttachment Declaration */ -# define IMEDIUMATTACHMENT_IID_STR "4b252567-5d4e-4db8-b3c8-569ec1c9236c" -# define IMEDIUMATTACHMENT_IID { \ - 0x4b252567, 0x5d4e, 0x4db8, \ - { 0xb3, 0xc8, 0x56, 0x9e, 0xc1, 0xc9, 0x23, 0x6c } \ -} -struct IMediumAttachment_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetMedium)(IMediumAttachment *pThis, IMedium * *medium); - - nsresult (*GetController)(IMediumAttachment *pThis, PRUnichar * *contr= oller); - - nsresult (*GetPort)(IMediumAttachment *pThis, PRInt32 *port); - - nsresult (*GetDevice)(IMediumAttachment *pThis, PRInt32 *device); - - nsresult (*GetType)(IMediumAttachment *pThis, PRUint32 *type); - - nsresult (*GetPassthrough)(IMediumAttachment *pThis, PRBool *passthrou= gh); - - nsresult (*GetTemporaryEject)(IMediumAttachment *pThis, PRBool *tempor= aryEject); - - nsresult (*GetIsEjected)(IMediumAttachment *pThis, PRBool *isEjected); - - nsresult (*GetNonRotational)(IMediumAttachment *pThis, PRBool *nonRota= tional); - - nsresult (*GetDiscard)(IMediumAttachment *pThis, PRBool *discard); - - nsresult (*GetHotPluggable)(IMediumAttachment *pThis, PRBool *hotPlugg= able); - - nsresult (*GetBandwidthGroup)(IMediumAttachment *pThis, IBandwidthGrou= p * *bandwidthGroup); - -}; - -struct IMediumAttachment -{ - struct IMediumAttachment_vtbl *vtbl; -}; -/* End of struct IMediumAttachment Declaration */ - - -/* Start of struct IMedium Declaration */ -# define IMEDIUM_IID_STR "05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac" -# define IMEDIUM_IID { \ - 0x05f2bbb6, 0xa3a6, 0x4fb9, \ - { 0x9b, 0x49, 0x6d, 0x0d, 0xda, 0x71, 0x42, 0xac } \ -} -struct IMedium_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetId)(IMedium *pThis, PRUnichar * *id); - - nsresult (*GetDescription)(IMedium *pThis, PRUnichar * *description); - nsresult (*SetDescription)(IMedium *pThis, PRUnichar * description); - - nsresult (*GetState)(IMedium *pThis, PRUint32 *state); - - nsresult (*GetVariant)(IMedium *pThis, PRUint32 *variantSize, PRUint32= **variant); - - nsresult (*GetLocation)(IMedium *pThis, PRUnichar * *location); - - nsresult (*GetName)(IMedium *pThis, PRUnichar * *name); - - nsresult (*GetDeviceType)(IMedium *pThis, PRUint32 *deviceType); - - nsresult (*GetHostDrive)(IMedium *pThis, PRBool *hostDrive); - - nsresult (*GetSize)(IMedium *pThis, PRInt64 *size); - - nsresult (*GetFormat)(IMedium *pThis, PRUnichar * *format); - - nsresult (*GetMediumFormat)(IMedium *pThis, IMediumFormat * *mediumFor= mat); - - nsresult (*GetType)(IMedium *pThis, PRUint32 *type); - nsresult (*SetType)(IMedium *pThis, PRUint32 type); - - nsresult (*GetAllowedTypes)(IMedium *pThis, PRUint32 *allowedTypesSize= , PRUint32 **allowedTypes); - - nsresult (*GetParent)(IMedium *pThis, IMedium * *parent); - - nsresult (*GetChildren)(IMedium *pThis, PRUint32 *childrenSize, IMediu= m * **children); - - nsresult (*GetBase)(IMedium *pThis, IMedium * *base); - - nsresult (*GetReadOnly)(IMedium *pThis, PRBool *readOnly); - - nsresult (*GetLogicalSize)(IMedium *pThis, PRInt64 *logicalSize); - - nsresult (*GetAutoReset)(IMedium *pThis, PRBool *autoReset); - nsresult (*SetAutoReset)(IMedium *pThis, PRBool autoReset); - - nsresult (*GetLastAccessError)(IMedium *pThis, PRUnichar * *lastAccess= Error); - - nsresult (*GetMachineIds)(IMedium *pThis, PRUint32 *machineIdsSize, PR= Unichar * **machineIds); - - nsresult (*SetIds)( - IMedium *pThis, - PRBool setImageId, - PRUnichar * imageId, - PRBool setParentId, - PRUnichar * parentId - ); - - nsresult (*RefreshState)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult (*GetSnapshotIds)( - IMedium *pThis, - PRUnichar * machineId, - PRUint32 *snapshotIdsSize, - PRUnichar *** snapshotIds - ); - - nsresult (*LockRead)( - IMedium *pThis, - IToken * * token - ); - - nsresult (*LockWrite)( - IMedium *pThis, - IToken * * token - ); - - nsresult (*Close)(IMedium *pThis ); - - nsresult (*GetProperty)( - IMedium *pThis, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult (*SetProperty)( - IMedium *pThis, - PRUnichar * name, - PRUnichar * value - ); - - nsresult (*GetProperties)( - IMedium *pThis, - PRUnichar * names, - PRUint32 *returnNamesSize, - PRUnichar *** returnNames, - PRUint32 *returnValuesSize, - PRUnichar *** returnValues - ); - - nsresult (*SetProperties)( - IMedium *pThis, - PRUint32 namesSize, - PRUnichar ** names, - PRUint32 valuesSize, - PRUnichar ** values - ); - - nsresult (*CreateBaseStorage)( - IMedium *pThis, - PRInt64 logicalSize, - PRUint32 variantSize, - PRUint32* variant, - IProgress * * progress - ); - - nsresult (*DeleteStorage)( - IMedium *pThis, - IProgress * * progress - ); - - nsresult (*CreateDiffStorage)( - IMedium *pThis, - IMedium * target, - PRUint32 variantSize, - PRUint32* variant, - IProgress * * progress - ); - - nsresult (*MergeTo)( - IMedium *pThis, - IMedium * target, - IProgress * * progress - ); - - nsresult (*CloneTo)( - IMedium *pThis, - IMedium * target, - PRUint32 variantSize, - PRUint32* variant, - IMedium * parent, - IProgress * * progress - ); - - nsresult (*CloneToBase)( - IMedium *pThis, - IMedium * target, - PRUint32 variantSize, - PRUint32* variant, - IProgress * * progress - ); - - nsresult (*SetLocation)( - IMedium *pThis, - PRUnichar * location, - IProgress * * progress - ); - - nsresult (*Compact)( - IMedium *pThis, - IProgress * * progress - ); - - nsresult (*Resize)( - IMedium *pThis, - PRInt64 logicalSize, - IProgress * * progress - ); - - nsresult (*Reset)( - IMedium *pThis, - IProgress * * progress - ); - -}; - -struct IMedium -{ - struct IMedium_vtbl *vtbl; -}; -/* End of struct IMedium Declaration */ - - -/* Start of struct IMediumFormat Declaration */ -# define IMEDIUMFORMAT_IID_STR "6238e1cf-a17d-4ec1-8172-418bfb22b93a" -# define IMEDIUMFORMAT_IID { \ - 0x6238e1cf, 0xa17d, 0x4ec1, \ - { 0x81, 0x72, 0x41, 0x8b, 0xfb, 0x22, 0xb9, 0x3a } \ -} -struct IMediumFormat_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetId)(IMediumFormat *pThis, PRUnichar * *id); - - nsresult (*GetName)(IMediumFormat *pThis, PRUnichar * *name); - - nsresult (*GetCapabilities)(IMediumFormat *pThis, PRUint32 *capabiliti= esSize, PRUint32 **capabilities); - - nsresult (*DescribeFileExtensions)( - IMediumFormat *pThis, - PRUint32 *extensionsSize, - PRUnichar *** extensions, - PRUint32 *typesSize, - PRUint32* types - ); - - nsresult (*DescribeProperties)( - IMediumFormat *pThis, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *descriptionsSize, - PRUnichar *** descriptions, - PRUint32 *typesSize, - PRUint32* types, - PRUint32 *flagsSize, - PRUint32* flags, - PRUint32 *defaultsSize, - PRUnichar *** defaults - ); - -}; - -struct IMediumFormat -{ - struct IMediumFormat_vtbl *vtbl; -}; -/* End of struct IMediumFormat Declaration */ - - -/* Start of struct IToken Declaration */ -# define ITOKEN_IID_STR "3b1c4797-e289-4d4c-b74c-50c9b86a36f8" -# define ITOKEN_IID { \ - 0x3b1c4797, 0xe289, 0x4d4c, \ - { 0xb7, 0x4c, 0x50, 0xc9, 0xb8, 0x6a, 0x36, 0xf8 } \ -} -struct IToken_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*Abandon)(IToken *pThis ); - - nsresult (*Dummy)(IToken *pThis ); - -}; - -struct IToken -{ - struct IToken_vtbl *vtbl; -}; -/* End of struct IToken Declaration */ - - -/* Start of struct IKeyboard Declaration */ -# define IKEYBOARD_IID_STR "f6916ec5-a881-4237-898f-7de58cf88672" -# define IKEYBOARD_IID { \ - 0xf6916ec5, 0xa881, 0x4237, \ - { 0x89, 0x8f, 0x7d, 0xe5, 0x8c, 0xf8, 0x86, 0x72 } \ -} -struct IKeyboard_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetEventSource)(IKeyboard *pThis, IEventSource * *eventSour= ce); - - nsresult (*PutScancode)( - IKeyboard *pThis, - PRInt32 scancode - ); - - nsresult (*PutScancodes)( - IKeyboard *pThis, - PRUint32 scancodesSize, - PRInt32* scancodes, - PRUint32 * codesStored - ); - - nsresult (*PutCAD)(IKeyboard *pThis ); - -}; - -struct IKeyboard -{ - struct IKeyboard_vtbl *vtbl; -}; -/* End of struct IKeyboard Declaration */ - - -/* Start of struct IMouse Declaration */ -# define IMOUSE_IID_STR "ee770393-415f-4421-b2d5-28b73cacf86a" -# define IMOUSE_IID { \ - 0xee770393, 0x415f, 0x4421, \ - { 0xb2, 0xd5, 0x28, 0xb7, 0x3c, 0xac, 0xf8, 0x6a } \ -} -struct IMouse_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetAbsoluteSupported)(IMouse *pThis, PRBool *absoluteSuppor= ted); - - nsresult (*GetRelativeSupported)(IMouse *pThis, PRBool *relativeSuppor= ted); - - nsresult (*GetMultiTouchSupported)(IMouse *pThis, PRBool *multiTouchSu= pported); - - nsresult (*GetNeedsHostCursor)(IMouse *pThis, PRBool *needsHostCursor); - - nsresult (*GetEventSource)(IMouse *pThis, IEventSource * *eventSource); - - nsresult (*PutMouseEvent)( - IMouse *pThis, - PRInt32 dx, - PRInt32 dy, - PRInt32 dz, - PRInt32 dw, - PRInt32 buttonState - ); - - nsresult (*PutMouseEventAbsolute)( - IMouse *pThis, - PRInt32 x, - PRInt32 y, - PRInt32 dz, - PRInt32 dw, - PRInt32 buttonState - ); - - nsresult (*PutEventMultiTouch)( - IMouse *pThis, - PRInt32 count, - PRUint32 contactsSize, - PRInt64* contacts, - PRUint32 scanTime - ); - - nsresult (*PutEventMultiTouchString)( - IMouse *pThis, - PRInt32 count, - PRUnichar * contacts, - PRUint32 scanTime - ); - -}; - -struct IMouse -{ - struct IMouse_vtbl *vtbl; -}; -/* End of struct IMouse Declaration */ - - -/* Start of struct IFramebuffer Declaration */ -# define IFRAMEBUFFER_IID_STR "e3f122c0-adab-4fc9-a8dc-da112fb48428" -# define IFRAMEBUFFER_IID { \ - 0xe3f122c0, 0xadab, 0x4fc9, \ - { 0xa8, 0xdc, 0xda, 0x11, 0x2f, 0xb4, 0x84, 0x28 } \ -} -struct IFramebuffer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetAddress)(IFramebuffer *pThis, PRUint8 * *address); - - nsresult (*GetWidth)(IFramebuffer *pThis, PRUint32 *width); - - nsresult (*GetHeight)(IFramebuffer *pThis, PRUint32 *height); - - nsresult (*GetBitsPerPixel)(IFramebuffer *pThis, PRUint32 *bitsPerPixe= l); - - nsresult (*GetBytesPerLine)(IFramebuffer *pThis, PRUint32 *bytesPerLin= e); - - nsresult (*GetPixelFormat)(IFramebuffer *pThis, PRUint32 *pixelFormat); - - nsresult (*GetUsesGuestVRAM)(IFramebuffer *pThis, PRBool *usesGuestVRA= M); - - nsresult (*GetHeightReduction)(IFramebuffer *pThis, PRUint32 *heightRe= duction); - - nsresult (*GetOverlay)(IFramebuffer *pThis, IFramebufferOverlay * *ove= rlay); - - nsresult (*GetWinId)(IFramebuffer *pThis, PRInt64 *winId); - - nsresult (*Lock)(IFramebuffer *pThis ); - - nsresult (*Unlock)(IFramebuffer *pThis ); - - nsresult (*NotifyUpdate)( - IFramebuffer *pThis, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - - nsresult (*RequestResize)( - IFramebuffer *pThis, - PRUint32 screenId, - PRUint32 pixelFormat, - PRUint8 * VRAM, - PRUint32 bitsPerPixel, - PRUint32 bytesPerLine, - PRUint32 width, - PRUint32 height, - PRBool * finished - ); - - nsresult (*VideoModeSupported)( - IFramebuffer *pThis, - PRUint32 width, - PRUint32 height, - PRUint32 bpp, - PRBool * supported - ); - - nsresult (*GetVisibleRegion)( - IFramebuffer *pThis, - PRUint8 * rectangles, - PRUint32 count, - PRUint32 * countCopied - ); - - nsresult (*SetVisibleRegion)( - IFramebuffer *pThis, - PRUint8 * rectangles, - PRUint32 count - ); - - nsresult (*ProcessVHWACommand)( - IFramebuffer *pThis, - PRUint8 * command - ); - - nsresult (*Notify3DEvent)( - IFramebuffer *pThis, - PRUint32 type, - PRUint8 * data - ); - -}; - -struct IFramebuffer -{ - struct IFramebuffer_vtbl *vtbl; -}; -/* End of struct IFramebuffer Declaration */ - - -/* Start of struct IFramebufferOverlay Declaration */ -# define IFRAMEBUFFEROVERLAY_IID_STR "0bcc1c7e-e415-47d2-bfdb-e4c705fb0f4= 7" -# define IFRAMEBUFFEROVERLAY_IID { \ - 0x0bcc1c7e, 0xe415, 0x47d2, \ - { 0xbf, 0xdb, 0xe4, 0xc7, 0x05, 0xfb, 0x0f, 0x47 } \ -} -struct IFramebufferOverlay_vtbl -{ - struct IFramebuffer_vtbl iframebuffer; - - nsresult (*GetX)(IFramebufferOverlay *pThis, PRUint32 *x); - - nsresult (*GetY)(IFramebufferOverlay *pThis, PRUint32 *y); - - nsresult (*GetVisible)(IFramebufferOverlay *pThis, PRBool *visible); - nsresult (*SetVisible)(IFramebufferOverlay *pThis, PRBool visible); - - nsresult (*GetAlpha)(IFramebufferOverlay *pThis, PRUint32 *alpha); - nsresult (*SetAlpha)(IFramebufferOverlay *pThis, PRUint32 alpha); - - nsresult (*Move)( - IFramebufferOverlay *pThis, - PRUint32 x, - PRUint32 y - ); - -}; - -struct IFramebufferOverlay -{ - struct IFramebufferOverlay_vtbl *vtbl; -}; -/* End of struct IFramebufferOverlay Declaration */ - - -/* Start of struct IDisplay Declaration */ -# define IDISPLAY_IID_STR "480b372c-c0b5-4c23-9bd7-dcbb85b1594c" -# define IDISPLAY_IID { \ - 0x480b372c, 0xc0b5, 0x4c23, \ - { 0x9b, 0xd7, 0xdc, 0xbb, 0x85, 0xb1, 0x59, 0x4c } \ -} -struct IDisplay_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetScreenResolution)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 * bitsPerPixel, - PRInt32 * xOrigin, - PRInt32 * yOrigin - ); - - nsresult (*SetFramebuffer)( - IDisplay *pThis, - PRUint32 screenId, - IFramebuffer * framebuffer - ); - - nsresult (*GetFramebuffer)( - IDisplay *pThis, - PRUint32 screenId, - IFramebuffer * * framebuffer, - PRInt32 * xOrigin, - PRInt32 * yOrigin - ); - - nsresult (*SetVideoModeHint)( - IDisplay *pThis, - PRUint32 display, - PRBool enabled, - PRBool changeOrigin, - PRInt32 originX, - PRInt32 originY, - PRUint32 width, - PRUint32 height, - PRUint32 bitsPerPixel - ); - - nsresult (*SetSeamlessMode)( - IDisplay *pThis, - PRBool enabled - ); - - nsresult (*TakeScreenShot)( - IDisplay *pThis, - PRUint32 screenId, - PRUint8 * address, - PRUint32 width, - PRUint32 height - ); - - nsresult (*TakeScreenShotToArray)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 width, - PRUint32 height, - PRUint32 *screenDataSize, - PRUint8** screenData - ); - - nsresult (*TakeScreenShotPNGToArray)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 width, - PRUint32 height, - PRUint32 *screenDataSize, - PRUint8** screenData - ); - - nsresult (*DrawToScreen)( - IDisplay *pThis, - PRUint32 screenId, - PRUint8 * address, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - - nsresult (*InvalidateAndUpdate)(IDisplay *pThis ); - - nsresult (*ResizeCompleted)( - IDisplay *pThis, - PRUint32 screenId - ); - - nsresult (*CompleteVHWACommand)( - IDisplay *pThis, - PRUint8 * command - ); - - nsresult (*ViewportChanged)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - -}; - -struct IDisplay -{ - struct IDisplay_vtbl *vtbl; -}; -/* End of struct IDisplay Declaration */ - - -/* Start of struct INetworkAdapter Declaration */ -# define INETWORKADAPTER_IID_STR "efa0f965-63c7-4c60-afdf-b1cc9943b9c0" -# define INETWORKADAPTER_IID { \ - 0xefa0f965, 0x63c7, 0x4c60, \ - { 0xaf, 0xdf, 0xb1, 0xcc, 0x99, 0x43, 0xb9, 0xc0 } \ -} -struct INetworkAdapter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetAdapterType)(INetworkAdapter *pThis, PRUint32 *adapterTy= pe); - nsresult (*SetAdapterType)(INetworkAdapter *pThis, PRUint32 adapterTyp= e); - - nsresult (*GetSlot)(INetworkAdapter *pThis, PRUint32 *slot); - - nsresult (*GetEnabled)(INetworkAdapter *pThis, PRBool *enabled); - nsresult (*SetEnabled)(INetworkAdapter *pThis, PRBool enabled); - - nsresult (*GetMACAddress)(INetworkAdapter *pThis, PRUnichar * *MACAddr= ess); - nsresult (*SetMACAddress)(INetworkAdapter *pThis, PRUnichar * MACAddre= ss); - - nsresult (*GetAttachmentType)(INetworkAdapter *pThis, PRUint32 *attach= mentType); - nsresult (*SetAttachmentType)(INetworkAdapter *pThis, PRUint32 attachm= entType); - - nsresult (*GetBridgedInterface)(INetworkAdapter *pThis, PRUnichar * *b= ridgedInterface); - nsresult (*SetBridgedInterface)(INetworkAdapter *pThis, PRUnichar * br= idgedInterface); - - nsresult (*GetHostOnlyInterface)(INetworkAdapter *pThis, PRUnichar * *= hostOnlyInterface); - nsresult (*SetHostOnlyInterface)(INetworkAdapter *pThis, PRUnichar * h= ostOnlyInterface); - - nsresult (*GetInternalNetwork)(INetworkAdapter *pThis, PRUnichar * *in= ternalNetwork); - nsresult (*SetInternalNetwork)(INetworkAdapter *pThis, PRUnichar * int= ernalNetwork); - - nsresult (*GetNATNetwork)(INetworkAdapter *pThis, PRUnichar * *NATNetw= ork); - nsresult (*SetNATNetwork)(INetworkAdapter *pThis, PRUnichar * NATNetwo= rk); - - nsresult (*GetGenericDriver)(INetworkAdapter *pThis, PRUnichar * *gene= ricDriver); - nsresult (*SetGenericDriver)(INetworkAdapter *pThis, PRUnichar * gener= icDriver); - - nsresult (*GetCableConnected)(INetworkAdapter *pThis, PRBool *cableCon= nected); - nsresult (*SetCableConnected)(INetworkAdapter *pThis, PRBool cableConn= ected); - - nsresult (*GetLineSpeed)(INetworkAdapter *pThis, PRUint32 *lineSpeed); - nsresult (*SetLineSpeed)(INetworkAdapter *pThis, PRUint32 lineSpeed); - - nsresult (*GetPromiscModePolicy)(INetworkAdapter *pThis, PRUint32 *pro= miscModePolicy); - nsresult (*SetPromiscModePolicy)(INetworkAdapter *pThis, PRUint32 prom= iscModePolicy); - - nsresult (*GetTraceEnabled)(INetworkAdapter *pThis, PRBool *traceEnabl= ed); - nsresult (*SetTraceEnabled)(INetworkAdapter *pThis, PRBool traceEnable= d); - - nsresult (*GetTraceFile)(INetworkAdapter *pThis, PRUnichar * *traceFil= e); - nsresult (*SetTraceFile)(INetworkAdapter *pThis, PRUnichar * traceFile= ); - - nsresult (*GetNATEngine)(INetworkAdapter *pThis, INATEngine * *NATEngi= ne); - - nsresult (*GetBootPriority)(INetworkAdapter *pThis, PRUint32 *bootPrio= rity); - nsresult (*SetBootPriority)(INetworkAdapter *pThis, PRUint32 bootPrior= ity); - - nsresult (*GetBandwidthGroup)(INetworkAdapter *pThis, IBandwidthGroup = * *bandwidthGroup); - nsresult (*SetBandwidthGroup)(INetworkAdapter *pThis, IBandwidthGroup = * bandwidthGroup); - - nsresult (*GetProperty)( - INetworkAdapter *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult (*SetProperty)( - INetworkAdapter *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult (*GetProperties)( - INetworkAdapter *pThis, - PRUnichar * names, - PRUint32 *returnNamesSize, - PRUnichar *** returnNames, - PRUint32 *returnValuesSize, - PRUnichar *** returnValues - ); - -}; - -struct INetworkAdapter -{ - struct INetworkAdapter_vtbl *vtbl; -}; -/* End of struct INetworkAdapter Declaration */ - - -/* Start of struct ISerialPort Declaration */ -# define ISERIALPORT_IID_STR "937f6970-5103-4745-b78e-d28dcf1479a8" -# define ISERIALPORT_IID { \ - 0x937f6970, 0x5103, 0x4745, \ - { 0xb7, 0x8e, 0xd2, 0x8d, 0xcf, 0x14, 0x79, 0xa8 } \ -} -struct ISerialPort_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetSlot)(ISerialPort *pThis, PRUint32 *slot); - - nsresult (*GetEnabled)(ISerialPort *pThis, PRBool *enabled); - nsresult (*SetEnabled)(ISerialPort *pThis, PRBool enabled); - - nsresult (*GetIOBase)(ISerialPort *pThis, PRUint32 *IOBase); - nsresult (*SetIOBase)(ISerialPort *pThis, PRUint32 IOBase); - - nsresult (*GetIRQ)(ISerialPort *pThis, PRUint32 *IRQ); - nsresult (*SetIRQ)(ISerialPort *pThis, PRUint32 IRQ); - - nsresult (*GetHostMode)(ISerialPort *pThis, PRUint32 *hostMode); - nsresult (*SetHostMode)(ISerialPort *pThis, PRUint32 hostMode); - - nsresult (*GetServer)(ISerialPort *pThis, PRBool *server); - nsresult (*SetServer)(ISerialPort *pThis, PRBool server); - - nsresult (*GetPath)(ISerialPort *pThis, PRUnichar * *path); - nsresult (*SetPath)(ISerialPort *pThis, PRUnichar * path); - -}; - -struct ISerialPort -{ - struct ISerialPort_vtbl *vtbl; -}; -/* End of struct ISerialPort Declaration */ - - -/* Start of struct IParallelPort Declaration */ -# define IPARALLELPORT_IID_STR "0c925f06-dd10-4b77-8de8-294d738c3214" -# define IPARALLELPORT_IID { \ - 0x0c925f06, 0xdd10, 0x4b77, \ - { 0x8d, 0xe8, 0x29, 0x4d, 0x73, 0x8c, 0x32, 0x14 } \ -} -struct IParallelPort_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetSlot)(IParallelPort *pThis, PRUint32 *slot); - - nsresult (*GetEnabled)(IParallelPort *pThis, PRBool *enabled); - nsresult (*SetEnabled)(IParallelPort *pThis, PRBool enabled); - - nsresult (*GetIOBase)(IParallelPort *pThis, PRUint32 *IOBase); - nsresult (*SetIOBase)(IParallelPort *pThis, PRUint32 IOBase); - - nsresult (*GetIRQ)(IParallelPort *pThis, PRUint32 *IRQ); - nsresult (*SetIRQ)(IParallelPort *pThis, PRUint32 IRQ); - - nsresult (*GetPath)(IParallelPort *pThis, PRUnichar * *path); - nsresult (*SetPath)(IParallelPort *pThis, PRUnichar * path); - -}; - -struct IParallelPort -{ - struct IParallelPort_vtbl *vtbl; -}; -/* End of struct IParallelPort Declaration */ - - -/* Start of struct IMachineDebugger Declaration */ -# define IMACHINEDEBUGGER_IID_STR "5e4534dc-21b8-4f6b-8a08-eef50e1a0aa1" -# define IMACHINEDEBUGGER_IID { \ - 0x5e4534dc, 0x21b8, 0x4f6b, \ - { 0x8a, 0x08, 0xee, 0xf5, 0x0e, 0x1a, 0x0a, 0xa1 } \ -} -struct IMachineDebugger_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetSingleStep)(IMachineDebugger *pThis, PRBool *singleStep); - nsresult (*SetSingleStep)(IMachineDebugger *pThis, PRBool singleStep); - - nsresult (*GetRecompileUser)(IMachineDebugger *pThis, PRBool *recompil= eUser); - nsresult (*SetRecompileUser)(IMachineDebugger *pThis, PRBool recompile= User); - - nsresult (*GetRecompileSupervisor)(IMachineDebugger *pThis, PRBool *re= compileSupervisor); - nsresult (*SetRecompileSupervisor)(IMachineDebugger *pThis, PRBool rec= ompileSupervisor); - - nsresult (*GetExecuteAllInIEM)(IMachineDebugger *pThis, PRBool *execut= eAllInIEM); - nsresult (*SetExecuteAllInIEM)(IMachineDebugger *pThis, PRBool execute= AllInIEM); - - nsresult (*GetPATMEnabled)(IMachineDebugger *pThis, PRBool *PATMEnable= d); - nsresult (*SetPATMEnabled)(IMachineDebugger *pThis, PRBool PATMEnabled= ); - - nsresult (*GetCSAMEnabled)(IMachineDebugger *pThis, PRBool *CSAMEnable= d); - nsresult (*SetCSAMEnabled)(IMachineDebugger *pThis, PRBool CSAMEnabled= ); - - nsresult (*GetLogEnabled)(IMachineDebugger *pThis, PRBool *logEnabled); - nsresult (*SetLogEnabled)(IMachineDebugger *pThis, PRBool logEnabled); - - nsresult (*GetLogDbgFlags)(IMachineDebugger *pThis, PRUnichar * *logDb= gFlags); - - nsresult (*GetLogDbgGroups)(IMachineDebugger *pThis, PRUnichar * *logD= bgGroups); - - nsresult (*GetLogDbgDestinations)(IMachineDebugger *pThis, PRUnichar *= *logDbgDestinations); - - nsresult (*GetLogRelFlags)(IMachineDebugger *pThis, PRUnichar * *logRe= lFlags); - - nsresult (*GetLogRelGroups)(IMachineDebugger *pThis, PRUnichar * *logR= elGroups); - - nsresult (*GetLogRelDestinations)(IMachineDebugger *pThis, PRUnichar *= *logRelDestinations); - - nsresult (*GetHWVirtExEnabled)(IMachineDebugger *pThis, PRBool *HWVirt= ExEnabled); - - nsresult (*GetHWVirtExNestedPagingEnabled)(IMachineDebugger *pThis, PR= Bool *HWVirtExNestedPagingEnabled); - - nsresult (*GetHWVirtExVPIDEnabled)(IMachineDebugger *pThis, PRBool *HW= VirtExVPIDEnabled); - - nsresult (*GetHWVirtExUXEnabled)(IMachineDebugger *pThis, PRBool *HWVi= rtExUXEnabled); - - nsresult (*GetOSName)(IMachineDebugger *pThis, PRUnichar * *OSName); - - nsresult (*GetOSVersion)(IMachineDebugger *pThis, PRUnichar * *OSVersi= on); - - nsresult (*GetPAEEnabled)(IMachineDebugger *pThis, PRBool *PAEEnabled); - - nsresult (*GetVirtualTimeRate)(IMachineDebugger *pThis, PRUint32 *virt= ualTimeRate); - nsresult (*SetVirtualTimeRate)(IMachineDebugger *pThis, PRUint32 virtu= alTimeRate); - - nsresult (*GetVM)(IMachineDebugger *pThis, PRInt64 *VM); - - nsresult (*DumpGuestCore)( - IMachineDebugger *pThis, - PRUnichar * filename, - PRUnichar * compression - ); - - nsresult (*DumpHostProcessCore)( - IMachineDebugger *pThis, - PRUnichar * filename, - PRUnichar * compression - ); - - nsresult (*Info)( - IMachineDebugger *pThis, - PRUnichar * name, - PRUnichar * args, - PRUnichar * * info - ); - - nsresult (*InjectNMI)(IMachineDebugger *pThis ); - - nsresult (*ModifyLogGroups)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult (*ModifyLogFlags)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult (*ModifyLogDestinations)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult (*ReadPhysicalMemory)( - IMachineDebugger *pThis, - PRInt64 address, - PRUint32 size, - PRUint32 *bytesSize, - PRUint8** bytes - ); - - nsresult (*WritePhysicalMemory)( - IMachineDebugger *pThis, - PRInt64 address, - PRUint32 size, - PRUint32 bytesSize, - PRUint8* bytes - ); - - nsresult (*ReadVirtualMemory)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRInt64 address, - PRUint32 size, - PRUint32 *bytesSize, - PRUint8** bytes - ); - - nsresult (*WriteVirtualMemory)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRInt64 address, - PRUint32 size, - PRUint32 bytesSize, - PRUint8* bytes - ); - - nsresult (*DetectOS)( - IMachineDebugger *pThis, - PRUnichar * * os - ); - - nsresult (*GetRegister)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult (*GetRegisters)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *valuesSize, - PRUnichar *** values - ); - - nsresult (*SetRegister)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * name, - PRUnichar * value - ); - - nsresult (*SetRegisters)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUint32 namesSize, - PRUnichar ** names, - PRUint32 valuesSize, - PRUnichar ** values - ); - - nsresult (*DumpGuestStack)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * * stack - ); - - nsresult (*ResetStats)( - IMachineDebugger *pThis, - PRUnichar * pattern - ); - - nsresult (*DumpStats)( - IMachineDebugger *pThis, - PRUnichar * pattern - ); - - nsresult (*GetStats)( - IMachineDebugger *pThis, - PRUnichar * pattern, - PRBool withDescriptions, - PRUnichar * * stats - ); - -}; - -struct IMachineDebugger -{ - struct IMachineDebugger_vtbl *vtbl; -}; -/* End of struct IMachineDebugger Declaration */ - - -/* Start of struct IUSBDeviceFilters Declaration */ -# define IUSBDEVICEFILTERS_IID_STR "2ab550b2-53cc-4c2e-ae07-0adf4114e75c" -# define IUSBDEVICEFILTERS_IID { \ - 0x2ab550b2, 0x53cc, 0x4c2e, \ - { 0xae, 0x07, 0x0a, 0xdf, 0x41, 0x14, 0xe7, 0x5c } \ -} -struct IUSBDeviceFilters_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetDeviceFilters)(IUSBDeviceFilters *pThis, PRUint32 *devic= eFiltersSize, IUSBDeviceFilter * **deviceFilters); - - nsresult (*CreateDeviceFilter)( - IUSBDeviceFilters *pThis, - PRUnichar * name, - IUSBDeviceFilter * * filter - ); - - nsresult (*InsertDeviceFilter)( - IUSBDeviceFilters *pThis, - PRUint32 position, - IUSBDeviceFilter * filter - ); - - nsresult (*RemoveDeviceFilter)( - IUSBDeviceFilters *pThis, - PRUint32 position, - IUSBDeviceFilter * * filter - ); - -}; - -struct IUSBDeviceFilters -{ - struct IUSBDeviceFilters_vtbl *vtbl; -}; -/* End of struct IUSBDeviceFilters Declaration */ - - -/* Start of struct IUSBController Declaration */ -# define IUSBCONTROLLER_IID_STR "d2745291-65f7-4d75-9556-38047d802319" -# define IUSBCONTROLLER_IID { \ - 0xd2745291, 0x65f7, 0x4d75, \ - { 0x95, 0x56, 0x38, 0x04, 0x7d, 0x80, 0x23, 0x19 } \ -} -struct IUSBController_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IUSBController *pThis, PRUnichar * *name); - - nsresult (*GetType)(IUSBController *pThis, PRUint32 *type); - - nsresult (*GetUSBStandard)(IUSBController *pThis, PRUint16 *USBStandar= d); - -}; - -struct IUSBController -{ - struct IUSBController_vtbl *vtbl; -}; -/* End of struct IUSBController Declaration */ - - -/* Start of struct IUSBDevice Declaration */ -# define IUSBDEVICE_IID_STR "f8967b0b-4483-400f-92b5-8b675d98a85b" -# define IUSBDEVICE_IID { \ - 0xf8967b0b, 0x4483, 0x400f, \ - { 0x92, 0xb5, 0x8b, 0x67, 0x5d, 0x98, 0xa8, 0x5b } \ -} -struct IUSBDevice_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetId)(IUSBDevice *pThis, PRUnichar * *id); - - nsresult (*GetVendorId)(IUSBDevice *pThis, PRUint16 *vendorId); - - nsresult (*GetProductId)(IUSBDevice *pThis, PRUint16 *productId); - - nsresult (*GetRevision)(IUSBDevice *pThis, PRUint16 *revision); - - nsresult (*GetManufacturer)(IUSBDevice *pThis, PRUnichar * *manufactur= er); - - nsresult (*GetProduct)(IUSBDevice *pThis, PRUnichar * *product); - - nsresult (*GetSerialNumber)(IUSBDevice *pThis, PRUnichar * *serialNumb= er); - - nsresult (*GetAddress)(IUSBDevice *pThis, PRUnichar * *address); - - nsresult (*GetPort)(IUSBDevice *pThis, PRUint16 *port); - - nsresult (*GetVersion)(IUSBDevice *pThis, PRUint16 *version); - - nsresult (*GetPortVersion)(IUSBDevice *pThis, PRUint16 *portVersion); - - nsresult (*GetRemote)(IUSBDevice *pThis, PRBool *remote); - -}; - -struct IUSBDevice -{ - struct IUSBDevice_vtbl *vtbl; -}; -/* End of struct IUSBDevice Declaration */ - - -/* Start of struct IUSBDeviceFilter Declaration */ -# define IUSBDEVICEFILTER_IID_STR "d6831fb4-1a94-4c2c-96ef-8d0d6192066d" -# define IUSBDEVICEFILTER_IID { \ - 0xd6831fb4, 0x1a94, 0x4c2c, \ - { 0x96, 0xef, 0x8d, 0x0d, 0x61, 0x92, 0x06, 0x6d } \ -} -struct IUSBDeviceFilter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IUSBDeviceFilter *pThis, PRUnichar * *name); - nsresult (*SetName)(IUSBDeviceFilter *pThis, PRUnichar * name); - - nsresult (*GetActive)(IUSBDeviceFilter *pThis, PRBool *active); - nsresult (*SetActive)(IUSBDeviceFilter *pThis, PRBool active); - - nsresult (*GetVendorId)(IUSBDeviceFilter *pThis, PRUnichar * *vendorId= ); - nsresult (*SetVendorId)(IUSBDeviceFilter *pThis, PRUnichar * vendorId); - - nsresult (*GetProductId)(IUSBDeviceFilter *pThis, PRUnichar * *product= Id); - nsresult (*SetProductId)(IUSBDeviceFilter *pThis, PRUnichar * productI= d); - - nsresult (*GetRevision)(IUSBDeviceFilter *pThis, PRUnichar * *revision= ); - nsresult (*SetRevision)(IUSBDeviceFilter *pThis, PRUnichar * revision); - - nsresult (*GetManufacturer)(IUSBDeviceFilter *pThis, PRUnichar * *manu= facturer); - nsresult (*SetManufacturer)(IUSBDeviceFilter *pThis, PRUnichar * manuf= acturer); - - nsresult (*GetProduct)(IUSBDeviceFilter *pThis, PRUnichar * *product); - nsresult (*SetProduct)(IUSBDeviceFilter *pThis, PRUnichar * product); - - nsresult (*GetSerialNumber)(IUSBDeviceFilter *pThis, PRUnichar * *seri= alNumber); - nsresult (*SetSerialNumber)(IUSBDeviceFilter *pThis, PRUnichar * seria= lNumber); - - nsresult (*GetPort)(IUSBDeviceFilter *pThis, PRUnichar * *port); - nsresult (*SetPort)(IUSBDeviceFilter *pThis, PRUnichar * port); - - nsresult (*GetRemote)(IUSBDeviceFilter *pThis, PRUnichar * *remote); - nsresult (*SetRemote)(IUSBDeviceFilter *pThis, PRUnichar * remote); - - nsresult (*GetMaskedInterfaces)(IUSBDeviceFilter *pThis, PRUint32 *mas= kedInterfaces); - nsresult (*SetMaskedInterfaces)(IUSBDeviceFilter *pThis, PRUint32 mask= edInterfaces); - -}; - -struct IUSBDeviceFilter -{ - struct IUSBDeviceFilter_vtbl *vtbl; -}; -/* End of struct IUSBDeviceFilter Declaration */ - - -/* Start of struct IHostUSBDevice Declaration */ -# define IHOSTUSBDEVICE_IID_STR "173b4b44-d268-4334-a00d-b6521c9a740a" -# define IHOSTUSBDEVICE_IID { \ - 0x173b4b44, 0xd268, 0x4334, \ - { 0xa0, 0x0d, 0xb6, 0x52, 0x1c, 0x9a, 0x74, 0x0a } \ -} -struct IHostUSBDevice_vtbl -{ - struct IUSBDevice_vtbl iusbdevice; - - nsresult (*GetState)(IHostUSBDevice *pThis, PRUint32 *state); - -}; - -struct IHostUSBDevice -{ - struct IHostUSBDevice_vtbl *vtbl; -}; -/* End of struct IHostUSBDevice Declaration */ - - -/* Start of struct IHostUSBDeviceFilter Declaration */ -# define IHOSTUSBDEVICEFILTER_IID_STR "4cc70246-d74a-400f-8222-3900489c03= 74" -# define IHOSTUSBDEVICEFILTER_IID { \ - 0x4cc70246, 0xd74a, 0x400f, \ - { 0x82, 0x22, 0x39, 0x00, 0x48, 0x9c, 0x03, 0x74 } \ -} -struct IHostUSBDeviceFilter_vtbl -{ - struct IUSBDeviceFilter_vtbl iusbdevicefilter; - - nsresult (*GetAction)(IHostUSBDeviceFilter *pThis, PRUint32 *action); - nsresult (*SetAction)(IHostUSBDeviceFilter *pThis, PRUint32 action); - -}; - -struct IHostUSBDeviceFilter -{ - struct IHostUSBDeviceFilter_vtbl *vtbl; -}; -/* End of struct IHostUSBDeviceFilter Declaration */ - - -/* Start of struct IAudioAdapter Declaration */ -# define IAUDIOADAPTER_IID_STR "921873db-5f3f-4b69-91f9-7be9e535a2cb" -# define IAUDIOADAPTER_IID { \ - 0x921873db, 0x5f3f, 0x4b69, \ - { 0x91, 0xf9, 0x7b, 0xe9, 0xe5, 0x35, 0xa2, 0xcb } \ -} -struct IAudioAdapter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetEnabled)(IAudioAdapter *pThis, PRBool *enabled); - nsresult (*SetEnabled)(IAudioAdapter *pThis, PRBool enabled); - - nsresult (*GetAudioController)(IAudioAdapter *pThis, PRUint32 *audioCo= ntroller); - nsresult (*SetAudioController)(IAudioAdapter *pThis, PRUint32 audioCon= troller); - - nsresult (*GetAudioDriver)(IAudioAdapter *pThis, PRUint32 *audioDriver= ); - nsresult (*SetAudioDriver)(IAudioAdapter *pThis, PRUint32 audioDriver); - -}; - -struct IAudioAdapter -{ - struct IAudioAdapter_vtbl *vtbl; -}; -/* End of struct IAudioAdapter Declaration */ - - -/* Start of struct IVRDEServer Declaration */ -# define IVRDESERVER_IID_STR "d38de40a-c2c1-4e95-b5a4-167b05f5694c" -# define IVRDESERVER_IID { \ - 0xd38de40a, 0xc2c1, 0x4e95, \ - { 0xb5, 0xa4, 0x16, 0x7b, 0x05, 0xf5, 0x69, 0x4c } \ -} -struct IVRDEServer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetEnabled)(IVRDEServer *pThis, PRBool *enabled); - nsresult (*SetEnabled)(IVRDEServer *pThis, PRBool enabled); - - nsresult (*GetAuthType)(IVRDEServer *pThis, PRUint32 *authType); - nsresult (*SetAuthType)(IVRDEServer *pThis, PRUint32 authType); - - nsresult (*GetAuthTimeout)(IVRDEServer *pThis, PRUint32 *authTimeout); - nsresult (*SetAuthTimeout)(IVRDEServer *pThis, PRUint32 authTimeout); - - nsresult (*GetAllowMultiConnection)(IVRDEServer *pThis, PRBool *allowM= ultiConnection); - nsresult (*SetAllowMultiConnection)(IVRDEServer *pThis, PRBool allowMu= ltiConnection); - - nsresult (*GetReuseSingleConnection)(IVRDEServer *pThis, PRBool *reuse= SingleConnection); - nsresult (*SetReuseSingleConnection)(IVRDEServer *pThis, PRBool reuseS= ingleConnection); - - nsresult (*GetVRDEExtPack)(IVRDEServer *pThis, PRUnichar * *VRDEExtPac= k); - nsresult (*SetVRDEExtPack)(IVRDEServer *pThis, PRUnichar * VRDEExtPack= ); - - nsresult (*GetAuthLibrary)(IVRDEServer *pThis, PRUnichar * *authLibrar= y); - nsresult (*SetAuthLibrary)(IVRDEServer *pThis, PRUnichar * authLibrary= ); - - nsresult (*GetVRDEProperties)(IVRDEServer *pThis, PRUint32 *VRDEProper= tiesSize, PRUnichar * **VRDEProperties); - - nsresult (*SetVRDEProperty)( - IVRDEServer *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult (*GetVRDEProperty)( - IVRDEServer *pThis, - PRUnichar * key, - PRUnichar * * value - ); - -}; - -struct IVRDEServer -{ - struct IVRDEServer_vtbl *vtbl; -}; -/* End of struct IVRDEServer Declaration */ - - -/* Start of struct ISharedFolder Declaration */ -# define ISHAREDFOLDER_IID_STR "8388da11-b559-4574-a5b7-2bd7acd5cef8" -# define ISHAREDFOLDER_IID { \ - 0x8388da11, 0xb559, 0x4574, \ - { 0xa5, 0xb7, 0x2b, 0xd7, 0xac, 0xd5, 0xce, 0xf8 } \ -} -struct ISharedFolder_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(ISharedFolder *pThis, PRUnichar * *name); - - nsresult (*GetHostPath)(ISharedFolder *pThis, PRUnichar * *hostPath); - - nsresult (*GetAccessible)(ISharedFolder *pThis, PRBool *accessible); - - nsresult (*GetWritable)(ISharedFolder *pThis, PRBool *writable); - - nsresult (*GetAutoMount)(ISharedFolder *pThis, PRBool *autoMount); - - nsresult (*GetLastAccessError)(ISharedFolder *pThis, PRUnichar * *last= AccessError); - -}; - -struct ISharedFolder -{ - struct ISharedFolder_vtbl *vtbl; -}; -/* End of struct ISharedFolder Declaration */ - - -/* Start of struct IInternalSessionControl Declaration */ -# define IINTERNALSESSIONCONTROL_IID_STR "2d2124a7-0f62-4907-ae21-eee5a55= 9bdde" -# define IINTERNALSESSIONCONTROL_IID { \ - 0x2d2124a7, 0x0f62, 0x4907, \ - { 0xae, 0x21, 0xee, 0xe5, 0xa5, 0x59, 0xbd, 0xde } \ -} -struct IInternalSessionControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetPID)( - IInternalSessionControl *pThis, - PRUint32 * pid - ); - - nsresult (*GetRemoteConsole)( - IInternalSessionControl *pThis, - IConsole * * console - ); - - nsresult (*AssignRemoteMachine)( - IInternalSessionControl *pThis, - IMachine * machine, - IConsole * console - ); - - nsresult (*UpdateMachineState)( - IInternalSessionControl *pThis, - PRUint32 machineState - ); - - nsresult (*Uninitialize)(IInternalSessionControl *pThis ); - - nsresult (*OnNetworkAdapterChange)( - IInternalSessionControl *pThis, - INetworkAdapter * networkAdapter, - PRBool changeAdapter - ); - - nsresult (*OnSerialPortChange)( - IInternalSessionControl *pThis, - ISerialPort * serialPort - ); - - nsresult (*OnParallelPortChange)( - IInternalSessionControl *pThis, - IParallelPort * parallelPort - ); - - nsresult (*OnStorageControllerChange)(IInternalSessionControl *pThis ); - - nsresult (*OnMediumChange)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRBool force - ); - - nsresult (*OnStorageDeviceChange)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRBool remove, - PRBool silent - ); - - nsresult (*OnClipboardModeChange)( - IInternalSessionControl *pThis, - PRUint32 clipboardMode - ); - - nsresult (*OnDragAndDropModeChange)( - IInternalSessionControl *pThis, - PRUint32 dragAndDropMode - ); - - nsresult (*OnCPUChange)( - IInternalSessionControl *pThis, - PRUint32 cpu, - PRBool add - ); - - nsresult (*OnCPUExecutionCapChange)( - IInternalSessionControl *pThis, - PRUint32 executionCap - ); - - nsresult (*OnVRDEServerChange)( - IInternalSessionControl *pThis, - PRBool restart - ); - - nsresult (*OnVideoCaptureChange)(IInternalSessionControl *pThis ); - - nsresult (*OnUSBControllerChange)(IInternalSessionControl *pThis ); - - nsresult (*OnSharedFolderChange)( - IInternalSessionControl *pThis, - PRBool global - ); - - nsresult (*OnUSBDeviceAttach)( - IInternalSessionControl *pThis, - IUSBDevice * device, - IVirtualBoxErrorInfo * error, - PRUint32 maskedInterfaces - ); - - nsresult (*OnUSBDeviceDetach)( - IInternalSessionControl *pThis, - PRUnichar * id, - IVirtualBoxErrorInfo * error - ); - - nsresult (*OnShowWindow)( - IInternalSessionControl *pThis, - PRBool check, - PRBool * canShow, - PRInt64 * winId - ); - - nsresult (*OnBandwidthGroupChange)( - IInternalSessionControl *pThis, - IBandwidthGroup * bandwidthGroup - ); - - nsresult (*AccessGuestProperty)( - IInternalSessionControl *pThis, - PRUnichar * name, - PRUnichar * value, - PRUnichar * flags, - PRBool isSetter, - PRUnichar * * retValue, - PRInt64 * retTimestamp, - PRUnichar * * retFlags - ); - - nsresult (*EnumerateGuestProperties)( - IInternalSessionControl *pThis, - PRUnichar * patterns, - PRUint32 *keysSize, - PRUnichar *** keys, - PRUint32 *valuesSize, - PRUnichar *** values, - PRUint32 *timestampsSize, - PRInt64* timestamps, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult (*OnlineMergeMedium)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRUint32 sourceIdx, - PRUint32 targetIdx, - IProgress * progress - ); - - nsresult (*EnableVMMStatistics)( - IInternalSessionControl *pThis, - PRBool enable - ); - - nsresult (*PauseWithReason)( - IInternalSessionControl *pThis, - PRUint32 reason - ); - - nsresult (*ResumeWithReason)( - IInternalSessionControl *pThis, - PRUint32 reason - ); - - nsresult (*SaveStateWithReason)( - IInternalSessionControl *pThis, - PRUint32 reason, - IProgress * * progress - ); - -}; - -struct IInternalSessionControl -{ - struct IInternalSessionControl_vtbl *vtbl; -}; -/* End of struct IInternalSessionControl Declaration */ - - -/* Start of struct ISession Declaration */ -# define ISESSION_IID_STR "12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D" -# define ISESSION_IID { \ - 0x12F4DCDB, 0x12B2, 0x4EC1, \ - { 0xB7, 0xCD, 0xDD, 0xD9, 0xF6, 0xC5, 0xBF, 0x4D } \ -} -struct ISession_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetState)(ISession *pThis, PRUint32 *state); - - nsresult (*GetType)(ISession *pThis, PRUint32 *type); - - nsresult (*GetMachine)(ISession *pThis, IMachine * *machine); - - nsresult (*GetConsole)(ISession *pThis, IConsole * *console); - - nsresult (*UnlockMachine)(ISession *pThis ); - -}; - -struct ISession -{ - struct ISession_vtbl *vtbl; -}; -/* End of struct ISession Declaration */ - - -/* Start of struct IStorageController Declaration */ -# define ISTORAGECONTROLLER_IID_STR "a1556333-09b6-46d9-bfb7-fc239b7fbe1e" -# define ISTORAGECONTROLLER_IID { \ - 0xa1556333, 0x09b6, 0x46d9, \ - { 0xbf, 0xb7, 0xfc, 0x23, 0x9b, 0x7f, 0xbe, 0x1e } \ -} -struct IStorageController_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IStorageController *pThis, PRUnichar * *name); - - nsresult (*GetMaxDevicesPerPortCount)(IStorageController *pThis, PRUin= t32 *maxDevicesPerPortCount); - - nsresult (*GetMinPortCount)(IStorageController *pThis, PRUint32 *minPo= rtCount); - - nsresult (*GetMaxPortCount)(IStorageController *pThis, PRUint32 *maxPo= rtCount); - - nsresult (*GetInstance)(IStorageController *pThis, PRUint32 *instance); - nsresult (*SetInstance)(IStorageController *pThis, PRUint32 instance); - - nsresult (*GetPortCount)(IStorageController *pThis, PRUint32 *portCoun= t); - nsresult (*SetPortCount)(IStorageController *pThis, PRUint32 portCount= ); - - nsresult (*GetBus)(IStorageController *pThis, PRUint32 *bus); - - nsresult (*GetControllerType)(IStorageController *pThis, PRUint32 *con= trollerType); - nsresult (*SetControllerType)(IStorageController *pThis, PRUint32 cont= rollerType); - - nsresult (*GetUseHostIOCache)(IStorageController *pThis, PRBool *useHo= stIOCache); - nsresult (*SetUseHostIOCache)(IStorageController *pThis, PRBool useHos= tIOCache); - - nsresult (*GetBootable)(IStorageController *pThis, PRBool *bootable); - -}; - -struct IStorageController -{ - struct IStorageController_vtbl *vtbl; -}; -/* End of struct IStorageController Declaration */ - - -/* Start of struct IPerformanceMetric Declaration */ -# define IPERFORMANCEMETRIC_IID_STR "2a1a60ae-9345-4019-ad53-d34ba41cbfe9" -# define IPERFORMANCEMETRIC_IID { \ - 0x2a1a60ae, 0x9345, 0x4019, \ - { 0xad, 0x53, 0xd3, 0x4b, 0xa4, 0x1c, 0xbf, 0xe9 } \ -} -struct IPerformanceMetric_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetMetricName)(IPerformanceMetric *pThis, PRUnichar * *metr= icName); - - nsresult (*GetObject)(IPerformanceMetric *pThis, nsISupports * *object= ); - - nsresult (*GetDescription)(IPerformanceMetric *pThis, PRUnichar * *des= cription); - - nsresult (*GetPeriod)(IPerformanceMetric *pThis, PRUint32 *period); - - nsresult (*GetCount)(IPerformanceMetric *pThis, PRUint32 *count); - - nsresult (*GetUnit)(IPerformanceMetric *pThis, PRUnichar * *unit); - - nsresult (*GetMinimumValue)(IPerformanceMetric *pThis, PRInt32 *minimu= mValue); - - nsresult (*GetMaximumValue)(IPerformanceMetric *pThis, PRInt32 *maximu= mValue); - -}; - -struct IPerformanceMetric -{ - struct IPerformanceMetric_vtbl *vtbl; -}; -/* End of struct IPerformanceMetric Declaration */ - - -/* Start of struct IPerformanceCollector Declaration */ -# define IPERFORMANCECOLLECTOR_IID_STR "e22e1acb-ac4a-43bb-a31c-17321659b= 0c6" -# define IPERFORMANCECOLLECTOR_IID { \ - 0xe22e1acb, 0xac4a, 0x43bb, \ - { 0xa3, 0x1c, 0x17, 0x32, 0x16, 0x59, 0xb0, 0xc6 } \ -} -struct IPerformanceCollector_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetMetricNames)(IPerformanceCollector *pThis, PRUint32 *met= ricNamesSize, PRUnichar * **metricNames); - - nsresult (*GetMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *metricsSize, - IPerformanceMetric *** metrics - ); - - nsresult (*SetupMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 period, - PRUint32 count, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult (*EnableMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult (*DisableMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult (*QueryMetricsData)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *returnMetricNamesSize, - PRUnichar *** returnMetricNames, - PRUint32 *returnObjectsSize, - nsISupports ** returnObjects, - PRUint32 *returnUnitsSize, - PRUnichar *** returnUnits, - PRUint32 *returnScalesSize, - PRUint32* returnScales, - PRUint32 *returnSequenceNumbersSize, - PRUint32* returnSequenceNumbers, - PRUint32 *returnDataIndicesSize, - PRUint32* returnDataIndices, - PRUint32 *returnDataLengthsSize, - PRUint32* returnDataLengths, - PRUint32 *returnDataSize, - PRInt32** returnData - ); - -}; - -struct IPerformanceCollector -{ - struct IPerformanceCollector_vtbl *vtbl; -}; -/* End of struct IPerformanceCollector Declaration */ - - -/* Start of struct INATEngine Declaration */ -# define INATENGINE_IID_STR "26451b99-3b2d-4dcb-8e4b-d63654218175" -# define INATENGINE_IID { \ - 0x26451b99, 0x3b2d, 0x4dcb, \ - { 0x8e, 0x4b, 0xd6, 0x36, 0x54, 0x21, 0x81, 0x75 } \ -} -struct INATEngine_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetNetwork)(INATEngine *pThis, PRUnichar * *network); - nsresult (*SetNetwork)(INATEngine *pThis, PRUnichar * network); - - nsresult (*GetHostIP)(INATEngine *pThis, PRUnichar * *hostIP); - nsresult (*SetHostIP)(INATEngine *pThis, PRUnichar * hostIP); - - nsresult (*GetTFTPPrefix)(INATEngine *pThis, PRUnichar * *TFTPPrefix); - nsresult (*SetTFTPPrefix)(INATEngine *pThis, PRUnichar * TFTPPrefix); - - nsresult (*GetTFTPBootFile)(INATEngine *pThis, PRUnichar * *TFTPBootFi= le); - nsresult (*SetTFTPBootFile)(INATEngine *pThis, PRUnichar * TFTPBootFil= e); - - nsresult (*GetTFTPNextServer)(INATEngine *pThis, PRUnichar * *TFTPNext= Server); - nsresult (*SetTFTPNextServer)(INATEngine *pThis, PRUnichar * TFTPNextS= erver); - - nsresult (*GetAliasMode)(INATEngine *pThis, PRUint32 *aliasMode); - nsresult (*SetAliasMode)(INATEngine *pThis, PRUint32 aliasMode); - - nsresult (*GetDNSPassDomain)(INATEngine *pThis, PRBool *DNSPassDomain); - nsresult (*SetDNSPassDomain)(INATEngine *pThis, PRBool DNSPassDomain); - - nsresult (*GetDNSProxy)(INATEngine *pThis, PRBool *DNSProxy); - nsresult (*SetDNSProxy)(INATEngine *pThis, PRBool DNSProxy); - - nsresult (*GetDNSUseHostResolver)(INATEngine *pThis, PRBool *DNSUseHos= tResolver); - nsresult (*SetDNSUseHostResolver)(INATEngine *pThis, PRBool DNSUseHost= Resolver); - - nsresult (*GetRedirects)(INATEngine *pThis, PRUint32 *redirectsSize, P= RUnichar * **redirects); - - nsresult (*SetNetworkSettings)( - INATEngine *pThis, - PRUint32 mtu, - PRUint32 sockSnd, - PRUint32 sockRcv, - PRUint32 TcpWndSnd, - PRUint32 TcpWndRcv - ); - - nsresult (*GetNetworkSettings)( - INATEngine *pThis, - PRUint32 * mtu, - PRUint32 * sockSnd, - PRUint32 * sockRcv, - PRUint32 * TcpWndSnd, - PRUint32 * TcpWndRcv - ); - - nsresult (*AddRedirect)( - INATEngine *pThis, - PRUnichar * name, - PRUint32 proto, - PRUnichar * hostIP, - PRUint16 hostPort, - PRUnichar * guestIP, - PRUint16 guestPort - ); - - nsresult (*RemoveRedirect)( - INATEngine *pThis, - PRUnichar * name - ); - -}; - -struct INATEngine -{ - struct INATEngine_vtbl *vtbl; -}; -/* End of struct INATEngine Declaration */ - - -/* Start of struct IExtPackPlugIn Declaration */ -# define IEXTPACKPLUGIN_IID_STR "58000040-e718-4746-bbce-4b86d96da461" -# define IEXTPACKPLUGIN_IID { \ - 0x58000040, 0xe718, 0x4746, \ - { 0xbb, 0xce, 0x4b, 0x86, 0xd9, 0x6d, 0xa4, 0x61 } \ -} -struct IExtPackPlugIn_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IExtPackPlugIn *pThis, PRUnichar * *name); - - nsresult (*GetDescription)(IExtPackPlugIn *pThis, PRUnichar * *descrip= tion); - - nsresult (*GetFrontend)(IExtPackPlugIn *pThis, PRUnichar * *frontend); - - nsresult (*GetModulePath)(IExtPackPlugIn *pThis, PRUnichar * *modulePa= th); - -}; - -struct IExtPackPlugIn -{ - struct IExtPackPlugIn_vtbl *vtbl; -}; -/* End of struct IExtPackPlugIn Declaration */ - - -/* Start of struct IExtPackBase Declaration */ -# define IEXTPACKBASE_IID_STR "f79b75d8-2890-4f34-ffff-ffffa144e82c" -# define IEXTPACKBASE_IID { \ - 0xf79b75d8, 0x2890, 0x4f34, \ - { 0xff, 0xff, 0xff, 0xff, 0xa1, 0x44, 0xe8, 0x2c } \ -} -struct IExtPackBase_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IExtPackBase *pThis, PRUnichar * *name); - - nsresult (*GetDescription)(IExtPackBase *pThis, PRUnichar * *descripti= on); - - nsresult (*GetVersion)(IExtPackBase *pThis, PRUnichar * *version); - - nsresult (*GetRevision)(IExtPackBase *pThis, PRUint32 *revision); - - nsresult (*GetEdition)(IExtPackBase *pThis, PRUnichar * *edition); - - nsresult (*GetVRDEModule)(IExtPackBase *pThis, PRUnichar * *VRDEModule= ); - - nsresult (*GetPlugIns)(IExtPackBase *pThis, PRUint32 *plugInsSize, IEx= tPackPlugIn * **plugIns); - - nsresult (*GetUsable)(IExtPackBase *pThis, PRBool *usable); - - nsresult (*GetWhyUnusable)(IExtPackBase *pThis, PRUnichar * *whyUnusab= le); - - nsresult (*GetShowLicense)(IExtPackBase *pThis, PRBool *showLicense); - - nsresult (*GetLicense)(IExtPackBase *pThis, PRUnichar * *license); - - nsresult (*QueryLicense)( - IExtPackBase *pThis, - PRUnichar * preferredLocale, - PRUnichar * preferredLanguage, - PRUnichar * format, - PRUnichar * * licenseText - ); - -}; - -struct IExtPackBase -{ - struct IExtPackBase_vtbl *vtbl; -}; -/* End of struct IExtPackBase Declaration */ - - -/* Start of struct IExtPack Declaration */ -# define IEXTPACK_IID_STR "431685da-3618-4ebc-b038-833ba829b4b2" -# define IEXTPACK_IID { \ - 0x431685da, 0x3618, 0x4ebc, \ - { 0xb0, 0x38, 0x83, 0x3b, 0xa8, 0x29, 0xb4, 0xb2 } \ -} -struct IExtPack_vtbl -{ - struct IExtPackBase_vtbl iextpackbase; - - nsresult (*QueryObject)( - IExtPack *pThis, - PRUnichar * objUuid, - nsISupports * * returnInterface - ); - -}; - -struct IExtPack -{ - struct IExtPack_vtbl *vtbl; -}; -/* End of struct IExtPack Declaration */ - - -/* Start of struct IExtPackFile Declaration */ -# define IEXTPACKFILE_IID_STR "b6b49f55-efcc-4f08-b486-56e8d8afb10b" -# define IEXTPACKFILE_IID { \ - 0xb6b49f55, 0xefcc, 0x4f08, \ - { 0xb4, 0x86, 0x56, 0xe8, 0xd8, 0xaf, 0xb1, 0x0b } \ -} -struct IExtPackFile_vtbl -{ - struct IExtPackBase_vtbl iextpackbase; - - nsresult (*GetFilePath)(IExtPackFile *pThis, PRUnichar * *filePath); - - nsresult (*Install)( - IExtPackFile *pThis, - PRBool replace, - PRUnichar * displayInfo, - IProgress * * progess - ); - -}; - -struct IExtPackFile -{ - struct IExtPackFile_vtbl *vtbl; -}; -/* End of struct IExtPackFile Declaration */ - - -/* Start of struct IExtPackManager Declaration */ -# define IEXTPACKMANAGER_IID_STR "3295e6ce-b051-47b2-9514-2c588bfe7554" -# define IEXTPACKMANAGER_IID { \ - 0x3295e6ce, 0xb051, 0x47b2, \ - { 0x95, 0x14, 0x2c, 0x58, 0x8b, 0xfe, 0x75, 0x54 } \ -} -struct IExtPackManager_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetInstalledExtPacks)(IExtPackManager *pThis, PRUint32 *ins= talledExtPacksSize, IExtPack * **installedExtPacks); - - nsresult (*Find)( - IExtPackManager *pThis, - PRUnichar * name, - IExtPack * * returnData - ); - - nsresult (*OpenExtPackFile)( - IExtPackManager *pThis, - PRUnichar * path, - IExtPackFile * * file - ); - - nsresult (*Uninstall)( - IExtPackManager *pThis, - PRUnichar * name, - PRBool forcedRemoval, - PRUnichar * displayInfo, - IProgress * * progess - ); - - nsresult (*Cleanup)(IExtPackManager *pThis ); - - nsresult (*QueryAllPlugInsForFrontend)( - IExtPackManager *pThis, - PRUnichar * frontendName, - PRUint32 *plugInModulesSize, - PRUnichar *** plugInModules - ); - - nsresult (*IsExtPackUsable)( - IExtPackManager *pThis, - PRUnichar * name, - PRBool * usable - ); - -}; - -struct IExtPackManager -{ - struct IExtPackManager_vtbl *vtbl; -}; -/* End of struct IExtPackManager Declaration */ - - -/* Start of struct IBandwidthGroup Declaration */ -# define IBANDWIDTHGROUP_IID_STR "badea2d7-0261-4146-89f0-6a57cc34833d" -# define IBANDWIDTHGROUP_IID { \ - 0xbadea2d7, 0x0261, 0x4146, \ - { 0x89, 0xf0, 0x6a, 0x57, 0xcc, 0x34, 0x83, 0x3d } \ -} -struct IBandwidthGroup_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IBandwidthGroup *pThis, PRUnichar * *name); - - nsresult (*GetType)(IBandwidthGroup *pThis, PRUint32 *type); - - nsresult (*GetReference)(IBandwidthGroup *pThis, PRUint32 *reference); - - nsresult (*GetMaxBytesPerSec)(IBandwidthGroup *pThis, PRInt64 *maxByte= sPerSec); - nsresult (*SetMaxBytesPerSec)(IBandwidthGroup *pThis, PRInt64 maxBytes= PerSec); - -}; - -struct IBandwidthGroup -{ - struct IBandwidthGroup_vtbl *vtbl; -}; -/* End of struct IBandwidthGroup Declaration */ - - -/* Start of struct IBandwidthControl Declaration */ -# define IBANDWIDTHCONTROL_IID_STR "e2eb3930-d2f4-4f87-be17-0707e30f019f" -# define IBANDWIDTHCONTROL_IID { \ - 0xe2eb3930, 0xd2f4, 0x4f87, \ - { 0xbe, 0x17, 0x07, 0x07, 0xe3, 0x0f, 0x01, 0x9f } \ -} -struct IBandwidthControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetNumGroups)(IBandwidthControl *pThis, PRUint32 *numGroups= ); - - nsresult (*CreateBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name, - PRUint32 type, - PRInt64 maxBytesPerSec - ); - - nsresult (*DeleteBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name - ); - - nsresult (*GetBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name, - IBandwidthGroup * * bandwidthGroup - ); - - nsresult (*GetAllBandwidthGroups)( - IBandwidthControl *pThis, - PRUint32 *bandwidthGroupsSize, - IBandwidthGroup *** bandwidthGroups - ); - -}; - -struct IBandwidthControl -{ - struct IBandwidthControl_vtbl *vtbl; -}; -/* End of struct IBandwidthControl Declaration */ - - -/* Start of struct IVirtualBoxClient Declaration */ -# define IVIRTUALBOXCLIENT_IID_STR "d191281f-b0cb-4d83-a8fa-0d9fd6ba234c" -# define IVIRTUALBOXCLIENT_IID { \ - 0xd191281f, 0xb0cb, 0x4d83, \ - { 0xa8, 0xfa, 0x0d, 0x9f, 0xd6, 0xba, 0x23, 0x4c } \ -} -struct IVirtualBoxClient_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetVirtualBox)(IVirtualBoxClient *pThis, IVirtualBox * *vir= tualBox); - - nsresult (*GetSession)(IVirtualBoxClient *pThis, ISession * *session); - - nsresult (*GetEventSource)(IVirtualBoxClient *pThis, IEventSource * *e= ventSource); - - nsresult (*CheckMachineError)( - IVirtualBoxClient *pThis, - IMachine * machine - ); - -}; - -struct IVirtualBoxClient -{ - struct IVirtualBoxClient_vtbl *vtbl; -}; -/* End of struct IVirtualBoxClient Declaration */ - - -/* Start of struct IEventSource Declaration */ -# define IEVENTSOURCE_IID_STR "9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538" -# define IEVENTSOURCE_IID { \ - 0x9b6e1aee, 0x35f3, 0x4f4d, \ - { 0xb5, 0xbb, 0xed, 0x0e, 0xce, 0xfd, 0x85, 0x38 } \ -} -struct IEventSource_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*CreateListener)( - IEventSource *pThis, - IEventListener * * listener - ); - - nsresult (*CreateAggregator)( - IEventSource *pThis, - PRUint32 subordinatesSize, - IEventSource ** subordinates, - IEventSource * * result - ); - - nsresult (*RegisterListener)( - IEventSource *pThis, - IEventListener * listener, - PRUint32 interestingSize, - PRUint32* interesting, - PRBool active - ); - - nsresult (*UnregisterListener)( - IEventSource *pThis, - IEventListener * listener - ); - - nsresult (*FireEvent)( - IEventSource *pThis, - IEvent * event, - PRInt32 timeout, - PRBool * result - ); - - nsresult (*GetEvent)( - IEventSource *pThis, - IEventListener * listener, - PRInt32 timeout, - IEvent * * event - ); - - nsresult (*EventProcessed)( - IEventSource *pThis, - IEventListener * listener, - IEvent * event - ); - -}; - -struct IEventSource -{ - struct IEventSource_vtbl *vtbl; -}; -/* End of struct IEventSource Declaration */ - - -/* Start of struct IEventListener Declaration */ -# define IEVENTLISTENER_IID_STR "67099191-32e7-4f6c-85ee-422304c71b90" -# define IEVENTLISTENER_IID { \ - 0x67099191, 0x32e7, 0x4f6c, \ - { 0x85, 0xee, 0x42, 0x23, 0x04, 0xc7, 0x1b, 0x90 } \ -} -struct IEventListener_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*HandleEvent)( - IEventListener *pThis, - IEvent * event - ); - -}; - -struct IEventListener -{ - struct IEventListener_vtbl *vtbl; -}; -/* End of struct IEventListener Declaration */ - - -/* Start of struct IEvent Declaration */ -# define IEVENT_IID_STR "0ca2adba-8f30-401b-a8cd-fe31dbe839c0" -# define IEVENT_IID { \ - 0x0ca2adba, 0x8f30, 0x401b, \ - { 0xa8, 0xcd, 0xfe, 0x31, 0xdb, 0xe8, 0x39, 0xc0 } \ -} -struct IEvent_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetType)(IEvent *pThis, PRUint32 *type); - - nsresult (*GetSource)(IEvent *pThis, IEventSource * *source); - - nsresult (*GetWaitable)(IEvent *pThis, PRBool *waitable); - - nsresult (*SetProcessed)(IEvent *pThis ); - - nsresult (*WaitProcessed)( - IEvent *pThis, - PRInt32 timeout, - PRBool * result - ); - -}; - -struct IEvent -{ - struct IEvent_vtbl *vtbl; -}; -/* End of struct IEvent Declaration */ - - -/* Start of struct IReusableEvent Declaration */ -# define IREUSABLEEVENT_IID_STR "69bfb134-80f6-4266-8e20-16371f68fa25" -# define IREUSABLEEVENT_IID { \ - 0x69bfb134, 0x80f6, 0x4266, \ - { 0x8e, 0x20, 0x16, 0x37, 0x1f, 0x68, 0xfa, 0x25 } \ -} -struct IReusableEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetGeneration)(IReusableEvent *pThis, PRUint32 *generation); - - nsresult (*Reuse)(IReusableEvent *pThis ); - -}; - -struct IReusableEvent -{ - struct IReusableEvent_vtbl *vtbl; -}; -/* End of struct IReusableEvent Declaration */ - - -/* Start of struct IMachineEvent Declaration */ -# define IMACHINEEVENT_IID_STR "92ed7b1a-0d96-40ed-ae46-a564d484325e" -# define IMACHINEEVENT_IID { \ - 0x92ed7b1a, 0x0d96, 0x40ed, \ - { 0xae, 0x46, 0xa5, 0x64, 0xd4, 0x84, 0x32, 0x5e } \ -} -struct IMachineEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetMachineId)(IMachineEvent *pThis, PRUnichar * *machineId); - -}; - -struct IMachineEvent -{ - struct IMachineEvent_vtbl *vtbl; -}; -/* End of struct IMachineEvent Declaration */ - - -/* Start of struct IMachineStateChangedEvent Declaration */ -# define IMACHINESTATECHANGEDEVENT_IID_STR "5748F794-48DF-438D-85EB-98FFD= 70D18C9" -# define IMACHINESTATECHANGEDEVENT_IID { \ - 0x5748F794, 0x48DF, 0x438D, \ - { 0x85, 0xEB, 0x98, 0xFF, 0xD7, 0x0D, 0x18, 0xC9 } \ -} -struct IMachineStateChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetState)(IMachineStateChangedEvent *pThis, PRUint32 *state= ); - -}; - -struct IMachineStateChangedEvent -{ - struct IMachineStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IMachineStateChangedEvent Declaration */ - - -/* Start of struct IMachineDataChangedEvent Declaration */ -# define IMACHINEDATACHANGEDEVENT_IID_STR "abe94809-2e88-4436-83d7-50f3e6= 4d0503" -# define IMACHINEDATACHANGEDEVENT_IID { \ - 0xabe94809, 0x2e88, 0x4436, \ - { 0x83, 0xd7, 0x50, 0xf3, 0xe6, 0x4d, 0x05, 0x03 } \ -} -struct IMachineDataChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetTemporary)(IMachineDataChangedEvent *pThis, PRBool *temp= orary); - -}; - -struct IMachineDataChangedEvent -{ - struct IMachineDataChangedEvent_vtbl *vtbl; -}; -/* End of struct IMachineDataChangedEvent Declaration */ - - -/* Start of struct IMediumRegisteredEvent Declaration */ -# define IMEDIUMREGISTEREDEVENT_IID_STR "53fac49a-b7f1-4a5a-a4ef-a11dd9c2= a458" -# define IMEDIUMREGISTEREDEVENT_IID { \ - 0x53fac49a, 0xb7f1, 0x4a5a, \ - { 0xa4, 0xef, 0xa1, 0x1d, 0xd9, 0xc2, 0xa4, 0x58 } \ -} -struct IMediumRegisteredEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetMediumId)(IMediumRegisteredEvent *pThis, PRUnichar * *me= diumId); - - nsresult (*GetMediumType)(IMediumRegisteredEvent *pThis, PRUint32 *med= iumType); - - nsresult (*GetRegistered)(IMediumRegisteredEvent *pThis, PRBool *regis= tered); - -}; - -struct IMediumRegisteredEvent -{ - struct IMediumRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IMediumRegisteredEvent Declaration */ - - -/* Start of struct IMachineRegisteredEvent Declaration */ -# define IMACHINEREGISTEREDEVENT_IID_STR "c354a762-3ff2-4f2e-8f09-07382ee= 25088" -# define IMACHINEREGISTEREDEVENT_IID { \ - 0xc354a762, 0x3ff2, 0x4f2e, \ - { 0x8f, 0x09, 0x07, 0x38, 0x2e, 0xe2, 0x50, 0x88 } \ -} -struct IMachineRegisteredEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetRegistered)(IMachineRegisteredEvent *pThis, PRBool *regi= stered); - -}; - -struct IMachineRegisteredEvent -{ - struct IMachineRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IMachineRegisteredEvent Declaration */ - - -/* Start of struct ISessionStateChangedEvent Declaration */ -# define ISESSIONSTATECHANGEDEVENT_IID_STR "714a3eef-799a-4489-86cd-fe8e4= 5b2ff8e" -# define ISESSIONSTATECHANGEDEVENT_IID { \ - 0x714a3eef, 0x799a, 0x4489, \ - { 0x86, 0xcd, 0xfe, 0x8e, 0x45, 0xb2, 0xff, 0x8e } \ -} -struct ISessionStateChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetState)(ISessionStateChangedEvent *pThis, PRUint32 *state= ); - -}; - -struct ISessionStateChangedEvent -{ - struct ISessionStateChangedEvent_vtbl *vtbl; -}; -/* End of struct ISessionStateChangedEvent Declaration */ - - -/* Start of struct IGuestPropertyChangedEvent Declaration */ -# define IGUESTPROPERTYCHANGEDEVENT_IID_STR "3f63597a-26f1-4edb-8dd2-6bdd= d0912368" -# define IGUESTPROPERTYCHANGEDEVENT_IID { \ - 0x3f63597a, 0x26f1, 0x4edb, \ - { 0x8d, 0xd2, 0x6b, 0xdd, 0xd0, 0x91, 0x23, 0x68 } \ -} -struct IGuestPropertyChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetName)(IGuestPropertyChangedEvent *pThis, PRUnichar * *na= me); - - nsresult (*GetValue)(IGuestPropertyChangedEvent *pThis, PRUnichar * *v= alue); - - nsresult (*GetFlags)(IGuestPropertyChangedEvent *pThis, PRUnichar * *f= lags); - -}; - -struct IGuestPropertyChangedEvent -{ - struct IGuestPropertyChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestPropertyChangedEvent Declaration */ - - -/* Start of struct ISnapshotEvent Declaration */ -# define ISNAPSHOTEVENT_IID_STR "21637b0e-34b8-42d3-acfb-7e96daf77c22" -# define ISNAPSHOTEVENT_IID { \ - 0x21637b0e, 0x34b8, 0x42d3, \ - { 0xac, 0xfb, 0x7e, 0x96, 0xda, 0xf7, 0x7c, 0x22 } \ -} -struct ISnapshotEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetSnapshotId)(ISnapshotEvent *pThis, PRUnichar * *snapshot= Id); - -}; - -struct ISnapshotEvent -{ - struct ISnapshotEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotEvent Declaration */ - - -/* Start of struct ISnapshotTakenEvent Declaration */ -# define ISNAPSHOTTAKENEVENT_IID_STR "d27c0b3d-6038-422c-b45e-6d4a0503d9f= 1" -# define ISNAPSHOTTAKENEVENT_IID { \ - 0xd27c0b3d, 0x6038, 0x422c, \ - { 0xb4, 0x5e, 0x6d, 0x4a, 0x05, 0x03, 0xd9, 0xf1 } \ -} -struct ISnapshotTakenEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotTakenEvent -{ - struct ISnapshotTakenEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotTakenEvent Declaration */ - - -/* Start of struct ISnapshotDeletedEvent Declaration */ -# define ISNAPSHOTDELETEDEVENT_IID_STR "c48f3401-4a9e-43f4-b7a7-54bd285e2= 2f4" -# define ISNAPSHOTDELETEDEVENT_IID { \ - 0xc48f3401, 0x4a9e, 0x43f4, \ - { 0xb7, 0xa7, 0x54, 0xbd, 0x28, 0x5e, 0x22, 0xf4 } \ -} -struct ISnapshotDeletedEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotDeletedEvent -{ - struct ISnapshotDeletedEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotDeletedEvent Declaration */ - - -/* Start of struct ISnapshotChangedEvent Declaration */ -# define ISNAPSHOTCHANGEDEVENT_IID_STR "07541941-8079-447a-a33e-47a69c798= 0db" -# define ISNAPSHOTCHANGEDEVENT_IID { \ - 0x07541941, 0x8079, 0x447a, \ - { 0xa3, 0x3e, 0x47, 0xa6, 0x9c, 0x79, 0x80, 0xdb } \ -} -struct ISnapshotChangedEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotChangedEvent -{ - struct ISnapshotChangedEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotChangedEvent Declaration */ - - -/* Start of struct IMousePointerShapeChangedEvent Declaration */ -# define IMOUSEPOINTERSHAPECHANGEDEVENT_IID_STR "a6dcf6e8-416b-4181-8c4a-= 45ec95177aef" -# define IMOUSEPOINTERSHAPECHANGEDEVENT_IID { \ - 0xa6dcf6e8, 0x416b, 0x4181, \ - { 0x8c, 0x4a, 0x45, 0xec, 0x95, 0x17, 0x7a, 0xef } \ -} -struct IMousePointerShapeChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetVisible)(IMousePointerShapeChangedEvent *pThis, PRBool *= visible); - - nsresult (*GetAlpha)(IMousePointerShapeChangedEvent *pThis, PRBool *al= pha); - - nsresult (*GetXhot)(IMousePointerShapeChangedEvent *pThis, PRUint32 *x= hot); - - nsresult (*GetYhot)(IMousePointerShapeChangedEvent *pThis, PRUint32 *y= hot); - - nsresult (*GetWidth)(IMousePointerShapeChangedEvent *pThis, PRUint32 *= width); - - nsresult (*GetHeight)(IMousePointerShapeChangedEvent *pThis, PRUint32 = *height); - - nsresult (*GetShape)(IMousePointerShapeChangedEvent *pThis, PRUint32 *= shapeSize, PRUint8 **shape); - -}; - -struct IMousePointerShapeChangedEvent -{ - struct IMousePointerShapeChangedEvent_vtbl *vtbl; -}; -/* End of struct IMousePointerShapeChangedEvent Declaration */ - - -/* Start of struct IMouseCapabilityChangedEvent Declaration */ -# define IMOUSECAPABILITYCHANGEDEVENT_IID_STR "70e7779a-e64a-4908-804e-37= 1cad23a756" -# define IMOUSECAPABILITYCHANGEDEVENT_IID { \ - 0x70e7779a, 0xe64a, 0x4908, \ - { 0x80, 0x4e, 0x37, 0x1c, 0xad, 0x23, 0xa7, 0x56 } \ -} -struct IMouseCapabilityChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetSupportsAbsolute)(IMouseCapabilityChangedEvent *pThis, P= RBool *supportsAbsolute); - - nsresult (*GetSupportsRelative)(IMouseCapabilityChangedEvent *pThis, P= RBool *supportsRelative); - - nsresult (*GetSupportsMultiTouch)(IMouseCapabilityChangedEvent *pThis,= PRBool *supportsMultiTouch); - - nsresult (*GetNeedsHostCursor)(IMouseCapabilityChangedEvent *pThis, PR= Bool *needsHostCursor); - -}; - -struct IMouseCapabilityChangedEvent -{ - struct IMouseCapabilityChangedEvent_vtbl *vtbl; -}; -/* End of struct IMouseCapabilityChangedEvent Declaration */ - - -/* Start of struct IKeyboardLedsChangedEvent Declaration */ -# define IKEYBOARDLEDSCHANGEDEVENT_IID_STR "6DDEF35E-4737-457B-99FC-BC52C= 851A44F" -# define IKEYBOARDLEDSCHANGEDEVENT_IID { \ - 0x6DDEF35E, 0x4737, 0x457B, \ - { 0x99, 0xFC, 0xBC, 0x52, 0xC8, 0x51, 0xA4, 0x4F } \ -} -struct IKeyboardLedsChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetNumLock)(IKeyboardLedsChangedEvent *pThis, PRBool *numLo= ck); - - nsresult (*GetCapsLock)(IKeyboardLedsChangedEvent *pThis, PRBool *caps= Lock); - - nsresult (*GetScrollLock)(IKeyboardLedsChangedEvent *pThis, PRBool *sc= rollLock); - -}; - -struct IKeyboardLedsChangedEvent -{ - struct IKeyboardLedsChangedEvent_vtbl *vtbl; -}; -/* End of struct IKeyboardLedsChangedEvent Declaration */ - - -/* Start of struct IStateChangedEvent Declaration */ -# define ISTATECHANGEDEVENT_IID_STR "4376693C-CF37-453B-9289-3B0F521CAF27" -# define ISTATECHANGEDEVENT_IID { \ - 0x4376693C, 0xCF37, 0x453B, \ - { 0x92, 0x89, 0x3B, 0x0F, 0x52, 0x1C, 0xAF, 0x27 } \ -} -struct IStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetState)(IStateChangedEvent *pThis, PRUint32 *state); - -}; - -struct IStateChangedEvent -{ - struct IStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IStateChangedEvent Declaration */ - - -/* Start of struct IAdditionsStateChangedEvent Declaration */ -# define IADDITIONSSTATECHANGEDEVENT_IID_STR "D70F7915-DA7C-44C8-A7AC-9F1= 73490446A" -# define IADDITIONSSTATECHANGEDEVENT_IID { \ - 0xD70F7915, 0xDA7C, 0x44C8, \ - { 0xA7, 0xAC, 0x9F, 0x17, 0x34, 0x90, 0x44, 0x6A } \ -} -struct IAdditionsStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IAdditionsStateChangedEvent -{ - struct IAdditionsStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IAdditionsStateChangedEvent Declaration */ - - -/* Start of struct INetworkAdapterChangedEvent Declaration */ -# define INETWORKADAPTERCHANGEDEVENT_IID_STR "08889892-1EC6-4883-801D-77F= 56CFD0103" -# define INETWORKADAPTERCHANGEDEVENT_IID { \ - 0x08889892, 0x1EC6, 0x4883, \ - { 0x80, 0x1D, 0x77, 0xF5, 0x6C, 0xFD, 0x01, 0x03 } \ -} -struct INetworkAdapterChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetNetworkAdapter)(INetworkAdapterChangedEvent *pThis, INet= workAdapter * *networkAdapter); - -}; - -struct INetworkAdapterChangedEvent -{ - struct INetworkAdapterChangedEvent_vtbl *vtbl; -}; -/* End of struct INetworkAdapterChangedEvent Declaration */ - - -/* Start of struct ISerialPortChangedEvent Declaration */ -# define ISERIALPORTCHANGEDEVENT_IID_STR "3BA329DC-659C-488B-835C-4ECA7AE= 71C6C" -# define ISERIALPORTCHANGEDEVENT_IID { \ - 0x3BA329DC, 0x659C, 0x488B, \ - { 0x83, 0x5C, 0x4E, 0xCA, 0x7A, 0xE7, 0x1C, 0x6C } \ -} -struct ISerialPortChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetSerialPort)(ISerialPortChangedEvent *pThis, ISerialPort = * *serialPort); - -}; - -struct ISerialPortChangedEvent -{ - struct ISerialPortChangedEvent_vtbl *vtbl; -}; -/* End of struct ISerialPortChangedEvent Declaration */ - - -/* Start of struct IParallelPortChangedEvent Declaration */ -# define IPARALLELPORTCHANGEDEVENT_IID_STR "813C99FC-9849-4F47-813E-24A75= DC85615" -# define IPARALLELPORTCHANGEDEVENT_IID { \ - 0x813C99FC, 0x9849, 0x4F47, \ - { 0x81, 0x3E, 0x24, 0xA7, 0x5D, 0xC8, 0x56, 0x15 } \ -} -struct IParallelPortChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetParallelPort)(IParallelPortChangedEvent *pThis, IParalle= lPort * *parallelPort); - -}; - -struct IParallelPortChangedEvent -{ - struct IParallelPortChangedEvent_vtbl *vtbl; -}; -/* End of struct IParallelPortChangedEvent Declaration */ - - -/* Start of struct IStorageControllerChangedEvent Declaration */ -# define ISTORAGECONTROLLERCHANGEDEVENT_IID_STR "715212BF-DA59-426E-8230-= 3831FAA52C56" -# define ISTORAGECONTROLLERCHANGEDEVENT_IID { \ - 0x715212BF, 0xDA59, 0x426E, \ - { 0x82, 0x30, 0x38, 0x31, 0xFA, 0xA5, 0x2C, 0x56 } \ -} -struct IStorageControllerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IStorageControllerChangedEvent -{ - struct IStorageControllerChangedEvent_vtbl *vtbl; -}; -/* End of struct IStorageControllerChangedEvent Declaration */ - - -/* Start of struct IMediumChangedEvent Declaration */ -# define IMEDIUMCHANGEDEVENT_IID_STR "0FE2DA40-5637-472A-9736-72019EABD7D= E" -# define IMEDIUMCHANGEDEVENT_IID { \ - 0x0FE2DA40, 0x5637, 0x472A, \ - { 0x97, 0x36, 0x72, 0x01, 0x9E, 0xAB, 0xD7, 0xDE } \ -} -struct IMediumChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetMediumAttachment)(IMediumChangedEvent *pThis, IMediumAtt= achment * *mediumAttachment); - -}; - -struct IMediumChangedEvent -{ - struct IMediumChangedEvent_vtbl *vtbl; -}; -/* End of struct IMediumChangedEvent Declaration */ - - -/* Start of struct IClipboardModeChangedEvent Declaration */ -# define ICLIPBOARDMODECHANGEDEVENT_IID_STR "cac21692-7997-4595-a731-3a50= 9db604e5" -# define ICLIPBOARDMODECHANGEDEVENT_IID { \ - 0xcac21692, 0x7997, 0x4595, \ - { 0xa7, 0x31, 0x3a, 0x50, 0x9d, 0xb6, 0x04, 0xe5 } \ -} -struct IClipboardModeChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetClipboardMode)(IClipboardModeChangedEvent *pThis, PRUint= 32 *clipboardMode); - -}; - -struct IClipboardModeChangedEvent -{ - struct IClipboardModeChangedEvent_vtbl *vtbl; -}; -/* End of struct IClipboardModeChangedEvent Declaration */ - - -/* Start of struct IDragAndDropModeChangedEvent Declaration */ -# define IDRAGANDDROPMODECHANGEDEVENT_IID_STR "e90b8850-ac8e-4dff-8059-41= 00ae2c3c3d" -# define IDRAGANDDROPMODECHANGEDEVENT_IID { \ - 0xe90b8850, 0xac8e, 0x4dff, \ - { 0x80, 0x59, 0x41, 0x00, 0xae, 0x2c, 0x3c, 0x3d } \ -} -struct IDragAndDropModeChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetDragAndDropMode)(IDragAndDropModeChangedEvent *pThis, PR= Uint32 *dragAndDropMode); - -}; - -struct IDragAndDropModeChangedEvent -{ - struct IDragAndDropModeChangedEvent_vtbl *vtbl; -}; -/* End of struct IDragAndDropModeChangedEvent Declaration */ - - -/* Start of struct ICPUChangedEvent Declaration */ -# define ICPUCHANGEDEVENT_IID_STR "4da2dec7-71b2-4817-9a64-4ed12c17388e" -# define ICPUCHANGEDEVENT_IID { \ - 0x4da2dec7, 0x71b2, 0x4817, \ - { 0x9a, 0x64, 0x4e, 0xd1, 0x2c, 0x17, 0x38, 0x8e } \ -} -struct ICPUChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetCPU)(ICPUChangedEvent *pThis, PRUint32 *CPU); - - nsresult (*GetAdd)(ICPUChangedEvent *pThis, PRBool *add); - -}; - -struct ICPUChangedEvent -{ - struct ICPUChangedEvent_vtbl *vtbl; -}; -/* End of struct ICPUChangedEvent Declaration */ - - -/* Start of struct ICPUExecutionCapChangedEvent Declaration */ -# define ICPUEXECUTIONCAPCHANGEDEVENT_IID_STR "dfa7e4f5-b4a4-44ce-85a8-12= 7ac5eb59dc" -# define ICPUEXECUTIONCAPCHANGEDEVENT_IID { \ - 0xdfa7e4f5, 0xb4a4, 0x44ce, \ - { 0x85, 0xa8, 0x12, 0x7a, 0xc5, 0xeb, 0x59, 0xdc } \ -} -struct ICPUExecutionCapChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetExecutionCap)(ICPUExecutionCapChangedEvent *pThis, PRUin= t32 *executionCap); - -}; - -struct ICPUExecutionCapChangedEvent -{ - struct ICPUExecutionCapChangedEvent_vtbl *vtbl; -}; -/* End of struct ICPUExecutionCapChangedEvent Declaration */ - - -/* Start of struct IGuestKeyboardEvent Declaration */ -# define IGUESTKEYBOARDEVENT_IID_STR "88394258-7006-40d4-b339-472ee380184= 4" -# define IGUESTKEYBOARDEVENT_IID { \ - 0x88394258, 0x7006, 0x40d4, \ - { 0xb3, 0x39, 0x47, 0x2e, 0xe3, 0x80, 0x18, 0x44 } \ -} -struct IGuestKeyboardEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetScancodes)(IGuestKeyboardEvent *pThis, PRUint32 *scancod= esSize, PRInt32 **scancodes); - -}; - -struct IGuestKeyboardEvent -{ - struct IGuestKeyboardEvent_vtbl *vtbl; -}; -/* End of struct IGuestKeyboardEvent Declaration */ - - -/* Start of struct IGuestMouseEvent Declaration */ -# define IGUESTMOUSEEVENT_IID_STR "179f8647-319c-4e7e-8150-c5837bd265f6" -# define IGUESTMOUSEEVENT_IID { \ - 0x179f8647, 0x319c, 0x4e7e, \ - { 0x81, 0x50, 0xc5, 0x83, 0x7b, 0xd2, 0x65, 0xf6 } \ -} -struct IGuestMouseEvent_vtbl -{ - struct IReusableEvent_vtbl ireusableevent; - - nsresult (*GetMode)(IGuestMouseEvent *pThis, PRUint32 *mode); - - nsresult (*GetX)(IGuestMouseEvent *pThis, PRInt32 *x); - - nsresult (*GetY)(IGuestMouseEvent *pThis, PRInt32 *y); - - nsresult (*GetZ)(IGuestMouseEvent *pThis, PRInt32 *z); - - nsresult (*GetW)(IGuestMouseEvent *pThis, PRInt32 *w); - - nsresult (*GetButtons)(IGuestMouseEvent *pThis, PRInt32 *buttons); - -}; - -struct IGuestMouseEvent -{ - struct IGuestMouseEvent_vtbl *vtbl; -}; -/* End of struct IGuestMouseEvent Declaration */ - - -/* Start of struct IGuestMultiTouchEvent Declaration */ -# define IGUESTMULTITOUCHEVENT_IID_STR "be8a0eb5-f4f4-4dd0-9d30-c89b87324= 7ec" -# define IGUESTMULTITOUCHEVENT_IID { \ - 0xbe8a0eb5, 0xf4f4, 0x4dd0, \ - { 0x9d, 0x30, 0xc8, 0x9b, 0x87, 0x32, 0x47, 0xec } \ -} -struct IGuestMultiTouchEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetContactCount)(IGuestMultiTouchEvent *pThis, PRInt32 *con= tactCount); - - nsresult (*GetXPositions)(IGuestMultiTouchEvent *pThis, PRUint32 *xPos= itionsSize, PRInt16 **xPositions); - - nsresult (*GetYPositions)(IGuestMultiTouchEvent *pThis, PRUint32 *yPos= itionsSize, PRInt16 **yPositions); - - nsresult (*GetContactIds)(IGuestMultiTouchEvent *pThis, PRUint32 *cont= actIdsSize, PRUint16 **contactIds); - - nsresult (*GetContactFlags)(IGuestMultiTouchEvent *pThis, PRUint32 *co= ntactFlagsSize, PRUint16 **contactFlags); - - nsresult (*GetScanTime)(IGuestMultiTouchEvent *pThis, PRUint32 *scanTi= me); - -}; - -struct IGuestMultiTouchEvent -{ - struct IGuestMultiTouchEvent_vtbl *vtbl; -}; -/* End of struct IGuestMultiTouchEvent Declaration */ - - -/* Start of struct IGuestSessionEvent Declaration */ -# define IGUESTSESSIONEVENT_IID_STR "b9acd33f-647d-45ac-8fe9-f49b3183ba37" -# define IGUESTSESSIONEVENT_IID { \ - 0xb9acd33f, 0x647d, 0x45ac, \ - { 0x8f, 0xe9, 0xf4, 0x9b, 0x31, 0x83, 0xba, 0x37 } \ -} -struct IGuestSessionEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetSession)(IGuestSessionEvent *pThis, IGuestSession * *ses= sion); - -}; - -struct IGuestSessionEvent -{ - struct IGuestSessionEvent_vtbl *vtbl; -}; -/* End of struct IGuestSessionEvent Declaration */ - - -/* Start of struct IGuestSessionStateChangedEvent Declaration */ -# define IGUESTSESSIONSTATECHANGEDEVENT_IID_STR "327e3c00-ee61-462f-aed3-= 0dff6cbf9904" -# define IGUESTSESSIONSTATECHANGEDEVENT_IID { \ - 0x327e3c00, 0xee61, 0x462f, \ - { 0xae, 0xd3, 0x0d, 0xff, 0x6c, 0xbf, 0x99, 0x04 } \ -} -struct IGuestSessionStateChangedEvent_vtbl -{ - struct IGuestSessionEvent_vtbl iguestsessionevent; - - nsresult (*GetId)(IGuestSessionStateChangedEvent *pThis, PRUint32 *id); - - nsresult (*GetStatus)(IGuestSessionStateChangedEvent *pThis, PRUint32 = *status); - - nsresult (*GetError)(IGuestSessionStateChangedEvent *pThis, IVirtualBo= xErrorInfo * *error); - -}; - -struct IGuestSessionStateChangedEvent -{ - struct IGuestSessionStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestSessionStateChangedEvent Declaration */ - - -/* Start of struct IGuestSessionRegisteredEvent Declaration */ -# define IGUESTSESSIONREGISTEREDEVENT_IID_STR "b79de686-eabd-4fa6-960a-f1= 756c99ea1c" -# define IGUESTSESSIONREGISTEREDEVENT_IID { \ - 0xb79de686, 0xeabd, 0x4fa6, \ - { 0x96, 0x0a, 0xf1, 0x75, 0x6c, 0x99, 0xea, 0x1c } \ -} -struct IGuestSessionRegisteredEvent_vtbl -{ - struct IGuestSessionEvent_vtbl iguestsessionevent; - - nsresult (*GetRegistered)(IGuestSessionRegisteredEvent *pThis, PRBool = *registered); - -}; - -struct IGuestSessionRegisteredEvent -{ - struct IGuestSessionRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IGuestSessionRegisteredEvent Declaration */ - - -/* Start of struct IGuestProcessEvent Declaration */ -# define IGUESTPROCESSEVENT_IID_STR "2405f0e5-6588-40a3-9b0a-68c05ba52c4b" -# define IGUESTPROCESSEVENT_IID { \ - 0x2405f0e5, 0x6588, 0x40a3, \ - { 0x9b, 0x0a, 0x68, 0xc0, 0x5b, 0xa5, 0x2c, 0x4b } \ -} -struct IGuestProcessEvent_vtbl -{ - struct IGuestSessionEvent_vtbl iguestsessionevent; - - nsresult (*GetProcess)(IGuestProcessEvent *pThis, IGuestProcess * *pro= cess); - - nsresult (*GetPid)(IGuestProcessEvent *pThis, PRUint32 *pid); - -}; - -struct IGuestProcessEvent -{ - struct IGuestProcessEvent_vtbl *vtbl; -}; -/* End of struct IGuestProcessEvent Declaration */ - - -/* Start of struct IGuestProcessRegisteredEvent Declaration */ -# define IGUESTPROCESSREGISTEREDEVENT_IID_STR "1d89e2b3-c6ea-45b6-9d43-dc= 6f70cc9f02" -# define IGUESTPROCESSREGISTEREDEVENT_IID { \ - 0x1d89e2b3, 0xc6ea, 0x45b6, \ - { 0x9d, 0x43, 0xdc, 0x6f, 0x70, 0xcc, 0x9f, 0x02 } \ -} -struct IGuestProcessRegisteredEvent_vtbl -{ - struct IGuestProcessEvent_vtbl iguestprocessevent; - - nsresult (*GetRegistered)(IGuestProcessRegisteredEvent *pThis, PRBool = *registered); - -}; - -struct IGuestProcessRegisteredEvent -{ - struct IGuestProcessRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IGuestProcessRegisteredEvent Declaration */ - - -/* Start of struct IGuestProcessStateChangedEvent Declaration */ -# define IGUESTPROCESSSTATECHANGEDEVENT_IID_STR "c365fb7b-4430-499f-92c8-= 8bed814a567a" -# define IGUESTPROCESSSTATECHANGEDEVENT_IID { \ - 0xc365fb7b, 0x4430, 0x499f, \ - { 0x92, 0xc8, 0x8b, 0xed, 0x81, 0x4a, 0x56, 0x7a } \ -} -struct IGuestProcessStateChangedEvent_vtbl -{ - struct IGuestProcessEvent_vtbl iguestprocessevent; - - nsresult (*GetStatus)(IGuestProcessStateChangedEvent *pThis, PRUint32 = *status); - - nsresult (*GetError)(IGuestProcessStateChangedEvent *pThis, IVirtualBo= xErrorInfo * *error); - -}; - -struct IGuestProcessStateChangedEvent -{ - struct IGuestProcessStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestProcessStateChangedEvent Declaration */ - - -/* Start of struct IGuestProcessIOEvent Declaration */ -# define IGUESTPROCESSIOEVENT_IID_STR "9ea9227c-e9bb-49b3-bfc7-c5171e93ef= 38" -# define IGUESTPROCESSIOEVENT_IID { \ - 0x9ea9227c, 0xe9bb, 0x49b3, \ - { 0xbf, 0xc7, 0xc5, 0x17, 0x1e, 0x93, 0xef, 0x38 } \ -} -struct IGuestProcessIOEvent_vtbl -{ - struct IGuestProcessEvent_vtbl iguestprocessevent; - - nsresult (*GetHandle)(IGuestProcessIOEvent *pThis, PRUint32 *handle); - - nsresult (*GetProcessed)(IGuestProcessIOEvent *pThis, PRUint32 *proces= sed); - -}; - -struct IGuestProcessIOEvent -{ - struct IGuestProcessIOEvent_vtbl *vtbl; -}; -/* End of struct IGuestProcessIOEvent Declaration */ - - -/* Start of struct IGuestProcessInputNotifyEvent Declaration */ -# define IGUESTPROCESSINPUTNOTIFYEVENT_IID_STR "0de887f2-b7db-4616-aac6-c= fb94d89ba78" -# define IGUESTPROCESSINPUTNOTIFYEVENT_IID { \ - 0x0de887f2, 0xb7db, 0x4616, \ - { 0xaa, 0xc6, 0xcf, 0xb9, 0x4d, 0x89, 0xba, 0x78 } \ -} -struct IGuestProcessInputNotifyEvent_vtbl -{ - struct IGuestProcessIOEvent_vtbl iguestprocessioevent; - - nsresult (*GetStatus)(IGuestProcessInputNotifyEvent *pThis, PRUint32 *= status); - -}; - -struct IGuestProcessInputNotifyEvent -{ - struct IGuestProcessInputNotifyEvent_vtbl *vtbl; -}; -/* End of struct IGuestProcessInputNotifyEvent Declaration */ - - -/* Start of struct IGuestProcessOutputEvent Declaration */ -# define IGUESTPROCESSOUTPUTEVENT_IID_STR "d3d5f1ee-bcb2-4905-a7ab-cc8544= 8a742b" -# define IGUESTPROCESSOUTPUTEVENT_IID { \ - 0xd3d5f1ee, 0xbcb2, 0x4905, \ - { 0xa7, 0xab, 0xcc, 0x85, 0x44, 0x8a, 0x74, 0x2b } \ -} -struct IGuestProcessOutputEvent_vtbl -{ - struct IGuestProcessIOEvent_vtbl iguestprocessioevent; - - nsresult (*GetData)(IGuestProcessOutputEvent *pThis, PRUint32 *dataSiz= e, PRUint8 **data); - -}; - -struct IGuestProcessOutputEvent -{ - struct IGuestProcessOutputEvent_vtbl *vtbl; -}; -/* End of struct IGuestProcessOutputEvent Declaration */ - - -/* Start of struct IGuestFileEvent Declaration */ -# define IGUESTFILEEVENT_IID_STR "c8adb7b0-057d-4391-b928-f14b06b710c5" -# define IGUESTFILEEVENT_IID { \ - 0xc8adb7b0, 0x057d, 0x4391, \ - { 0xb9, 0x28, 0xf1, 0x4b, 0x06, 0xb7, 0x10, 0xc5 } \ -} -struct IGuestFileEvent_vtbl -{ - struct IGuestSessionEvent_vtbl iguestsessionevent; - - nsresult (*GetFile)(IGuestFileEvent *pThis, IGuestFile * *file); - -}; - -struct IGuestFileEvent -{ - struct IGuestFileEvent_vtbl *vtbl; -}; -/* End of struct IGuestFileEvent Declaration */ - - -/* Start of struct IGuestFileRegisteredEvent Declaration */ -# define IGUESTFILEREGISTEREDEVENT_IID_STR "d0d93830-70a2-487e-895e-d3fc9= 679f7b3" -# define IGUESTFILEREGISTEREDEVENT_IID { \ - 0xd0d93830, 0x70a2, 0x487e, \ - { 0x89, 0x5e, 0xd3, 0xfc, 0x96, 0x79, 0xf7, 0xb3 } \ -} -struct IGuestFileRegisteredEvent_vtbl -{ - struct IGuestFileEvent_vtbl iguestfileevent; - - nsresult (*GetRegistered)(IGuestFileRegisteredEvent *pThis, PRBool *re= gistered); - -}; - -struct IGuestFileRegisteredEvent -{ - struct IGuestFileRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IGuestFileRegisteredEvent Declaration */ - - -/* Start of struct IGuestFileStateChangedEvent Declaration */ -# define IGUESTFILESTATECHANGEDEVENT_IID_STR "d37fe88f-0979-486c-baa1-3ab= b144dc82d" -# define IGUESTFILESTATECHANGEDEVENT_IID { \ - 0xd37fe88f, 0x0979, 0x486c, \ - { 0xba, 0xa1, 0x3a, 0xbb, 0x14, 0x4d, 0xc8, 0x2d } \ -} -struct IGuestFileStateChangedEvent_vtbl -{ - struct IGuestFileEvent_vtbl iguestfileevent; - - nsresult (*GetStatus)(IGuestFileStateChangedEvent *pThis, PRUint32 *st= atus); - - nsresult (*GetError)(IGuestFileStateChangedEvent *pThis, IVirtualBoxEr= rorInfo * *error); - -}; - -struct IGuestFileStateChangedEvent -{ - struct IGuestFileStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestFileStateChangedEvent Declaration */ - - -/* Start of struct IGuestFileIOEvent Declaration */ -# define IGUESTFILEIOEVENT_IID_STR "b5191a7c-9536-4ef8-820e-3b0e17e5bbc8" -# define IGUESTFILEIOEVENT_IID { \ - 0xb5191a7c, 0x9536, 0x4ef8, \ - { 0x82, 0x0e, 0x3b, 0x0e, 0x17, 0xe5, 0xbb, 0xc8 } \ -} -struct IGuestFileIOEvent_vtbl -{ - struct IGuestFileEvent_vtbl iguestfileevent; - - nsresult (*GetOffset)(IGuestFileIOEvent *pThis, PRInt64 *offset); - - nsresult (*GetProcessed)(IGuestFileIOEvent *pThis, PRUint32 *processed= ); - -}; - -struct IGuestFileIOEvent -{ - struct IGuestFileIOEvent_vtbl *vtbl; -}; -/* End of struct IGuestFileIOEvent Declaration */ - - -/* Start of struct IGuestFileOffsetChangedEvent Declaration */ -# define IGUESTFILEOFFSETCHANGEDEVENT_IID_STR "e8f79a21-1207-4179-94cf-ca= 250036308f" -# define IGUESTFILEOFFSETCHANGEDEVENT_IID { \ - 0xe8f79a21, 0x1207, 0x4179, \ - { 0x94, 0xcf, 0xca, 0x25, 0x00, 0x36, 0x30, 0x8f } \ -} -struct IGuestFileOffsetChangedEvent_vtbl -{ - struct IGuestFileIOEvent_vtbl iguestfileioevent; - -}; - -struct IGuestFileOffsetChangedEvent -{ - struct IGuestFileOffsetChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestFileOffsetChangedEvent Declaration */ - - -/* Start of struct IGuestFileReadEvent Declaration */ -# define IGUESTFILEREADEVENT_IID_STR "4ee3cbcb-486f-40db-9150-deee3fd2418= 9" -# define IGUESTFILEREADEVENT_IID { \ - 0x4ee3cbcb, 0x486f, 0x40db, \ - { 0x91, 0x50, 0xde, 0xee, 0x3f, 0xd2, 0x41, 0x89 } \ -} -struct IGuestFileReadEvent_vtbl -{ - struct IGuestFileIOEvent_vtbl iguestfileioevent; - - nsresult (*GetData)(IGuestFileReadEvent *pThis, PRUint32 *dataSize, PR= Uint8 **data); - -}; - -struct IGuestFileReadEvent -{ - struct IGuestFileReadEvent_vtbl *vtbl; -}; -/* End of struct IGuestFileReadEvent Declaration */ - - -/* Start of struct IGuestFileWriteEvent Declaration */ -# define IGUESTFILEWRITEEVENT_IID_STR "e062a915-3cf5-4c0a-bc90-9b8d4cc94d= 89" -# define IGUESTFILEWRITEEVENT_IID { \ - 0xe062a915, 0x3cf5, 0x4c0a, \ - { 0xbc, 0x90, 0x9b, 0x8d, 0x4c, 0xc9, 0x4d, 0x89 } \ -} -struct IGuestFileWriteEvent_vtbl -{ - struct IGuestFileIOEvent_vtbl iguestfileioevent; - -}; - -struct IGuestFileWriteEvent -{ - struct IGuestFileWriteEvent_vtbl *vtbl; -}; -/* End of struct IGuestFileWriteEvent Declaration */ - - -/* Start of struct IVRDEServerChangedEvent Declaration */ -# define IVRDESERVERCHANGEDEVENT_IID_STR "a06fd66a-3188-4c8c-8756-1395e8c= b691c" -# define IVRDESERVERCHANGEDEVENT_IID { \ - 0xa06fd66a, 0x3188, 0x4c8c, \ - { 0x87, 0x56, 0x13, 0x95, 0xe8, 0xcb, 0x69, 0x1c } \ -} -struct IVRDEServerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IVRDEServerChangedEvent -{ - struct IVRDEServerChangedEvent_vtbl *vtbl; -}; -/* End of struct IVRDEServerChangedEvent Declaration */ - - -/* Start of struct IVRDEServerInfoChangedEvent Declaration */ -# define IVRDESERVERINFOCHANGEDEVENT_IID_STR "dd6a1080-e1b7-4339-a549-f08= 78115596e" -# define IVRDESERVERINFOCHANGEDEVENT_IID { \ - 0xdd6a1080, 0xe1b7, 0x4339, \ - { 0xa5, 0x49, 0xf0, 0x87, 0x81, 0x15, 0x59, 0x6e } \ -} -struct IVRDEServerInfoChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IVRDEServerInfoChangedEvent -{ - struct IVRDEServerInfoChangedEvent_vtbl *vtbl; -}; -/* End of struct IVRDEServerInfoChangedEvent Declaration */ - - -/* Start of struct IVideoCaptureChangedEvent Declaration */ -# define IVIDEOCAPTURECHANGEDEVENT_IID_STR "6215d169-25dd-4719-ab34-c9087= 01efb58" -# define IVIDEOCAPTURECHANGEDEVENT_IID { \ - 0x6215d169, 0x25dd, 0x4719, \ - { 0xab, 0x34, 0xc9, 0x08, 0x70, 0x1e, 0xfb, 0x58 } \ -} -struct IVideoCaptureChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IVideoCaptureChangedEvent -{ - struct IVideoCaptureChangedEvent_vtbl *vtbl; -}; -/* End of struct IVideoCaptureChangedEvent Declaration */ - - -/* Start of struct IUSBControllerChangedEvent Declaration */ -# define IUSBCONTROLLERCHANGEDEVENT_IID_STR "93BADC0C-61D9-4940-A084-E6BB= 29AF3D83" -# define IUSBCONTROLLERCHANGEDEVENT_IID { \ - 0x93BADC0C, 0x61D9, 0x4940, \ - { 0xA0, 0x84, 0xE6, 0xBB, 0x29, 0xAF, 0x3D, 0x83 } \ -} -struct IUSBControllerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IUSBControllerChangedEvent -{ - struct IUSBControllerChangedEvent_vtbl *vtbl; -}; -/* End of struct IUSBControllerChangedEvent Declaration */ - - -/* Start of struct IUSBDeviceStateChangedEvent Declaration */ -# define IUSBDEVICESTATECHANGEDEVENT_IID_STR "806da61b-6679-422a-b629-51b= 06b0c6d93" -# define IUSBDEVICESTATECHANGEDEVENT_IID { \ - 0x806da61b, 0x6679, 0x422a, \ - { 0xb6, 0x29, 0x51, 0xb0, 0x6b, 0x0c, 0x6d, 0x93 } \ -} -struct IUSBDeviceStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetDevice)(IUSBDeviceStateChangedEvent *pThis, IUSBDevice *= *device); - - nsresult (*GetAttached)(IUSBDeviceStateChangedEvent *pThis, PRBool *at= tached); - - nsresult (*GetError)(IUSBDeviceStateChangedEvent *pThis, IVirtualBoxEr= rorInfo * *error); - -}; - -struct IUSBDeviceStateChangedEvent -{ - struct IUSBDeviceStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IUSBDeviceStateChangedEvent Declaration */ - - -/* Start of struct ISharedFolderChangedEvent Declaration */ -# define ISHAREDFOLDERCHANGEDEVENT_IID_STR "B66349B5-3534-4239-B2DE-8E153= 5D94C0B" -# define ISHAREDFOLDERCHANGEDEVENT_IID { \ - 0xB66349B5, 0x3534, 0x4239, \ - { 0xB2, 0xDE, 0x8E, 0x15, 0x35, 0xD9, 0x4C, 0x0B } \ -} -struct ISharedFolderChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetScope)(ISharedFolderChangedEvent *pThis, PRUint32 *scope= ); - -}; - -struct ISharedFolderChangedEvent -{ - struct ISharedFolderChangedEvent_vtbl *vtbl; -}; -/* End of struct ISharedFolderChangedEvent Declaration */ - - -/* Start of struct IRuntimeErrorEvent Declaration */ -# define IRUNTIMEERROREVENT_IID_STR "883DD18B-0721-4CDE-867C-1A82ABAF914C" -# define IRUNTIMEERROREVENT_IID { \ - 0x883DD18B, 0x0721, 0x4CDE, \ - { 0x86, 0x7C, 0x1A, 0x82, 0xAB, 0xAF, 0x91, 0x4C } \ -} -struct IRuntimeErrorEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetFatal)(IRuntimeErrorEvent *pThis, PRBool *fatal); - - nsresult (*GetId)(IRuntimeErrorEvent *pThis, PRUnichar * *id); - - nsresult (*GetMessage)(IRuntimeErrorEvent *pThis, PRUnichar * *message= ); - -}; - -struct IRuntimeErrorEvent -{ - struct IRuntimeErrorEvent_vtbl *vtbl; -}; -/* End of struct IRuntimeErrorEvent Declaration */ - - -/* Start of struct IEventSourceChangedEvent Declaration */ -# define IEVENTSOURCECHANGEDEVENT_IID_STR "e7932cb8-f6d4-4ab6-9cbf-558eb8= 959a6a" -# define IEVENTSOURCECHANGEDEVENT_IID { \ - 0xe7932cb8, 0xf6d4, 0x4ab6, \ - { 0x9c, 0xbf, 0x55, 0x8e, 0xb8, 0x95, 0x9a, 0x6a } \ -} -struct IEventSourceChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetListener)(IEventSourceChangedEvent *pThis, IEventListene= r * *listener); - - nsresult (*GetAdd)(IEventSourceChangedEvent *pThis, PRBool *add); - -}; - -struct IEventSourceChangedEvent -{ - struct IEventSourceChangedEvent_vtbl *vtbl; -}; -/* End of struct IEventSourceChangedEvent Declaration */ - - -/* Start of struct IExtraDataChangedEvent Declaration */ -# define IEXTRADATACHANGEDEVENT_IID_STR "024F00CE-6E0B-492A-A8D0-968472A9= 4DC7" -# define IEXTRADATACHANGEDEVENT_IID { \ - 0x024F00CE, 0x6E0B, 0x492A, \ - { 0xA8, 0xD0, 0x96, 0x84, 0x72, 0xA9, 0x4D, 0xC7 } \ -} -struct IExtraDataChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetMachineId)(IExtraDataChangedEvent *pThis, PRUnichar * *m= achineId); - - nsresult (*GetKey)(IExtraDataChangedEvent *pThis, PRUnichar * *key); - - nsresult (*GetValue)(IExtraDataChangedEvent *pThis, PRUnichar * *value= ); - -}; - -struct IExtraDataChangedEvent -{ - struct IExtraDataChangedEvent_vtbl *vtbl; -}; -/* End of struct IExtraDataChangedEvent Declaration */ - - -/* Start of struct IVetoEvent Declaration */ -# define IVETOEVENT_IID_STR "9a1a4130-69fe-472f-ac10-c6fa25d75007" -# define IVETOEVENT_IID { \ - 0x9a1a4130, 0x69fe, 0x472f, \ - { 0xac, 0x10, 0xc6, 0xfa, 0x25, 0xd7, 0x50, 0x07 } \ -} -struct IVetoEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*AddVeto)( - IVetoEvent *pThis, - PRUnichar * reason - ); - - nsresult (*IsVetoed)( - IVetoEvent *pThis, - PRBool * result - ); - - nsresult (*GetVetos)( - IVetoEvent *pThis, - PRUint32 *resultSize, - PRUnichar *** result - ); - -}; - -struct IVetoEvent -{ - struct IVetoEvent_vtbl *vtbl; -}; -/* End of struct IVetoEvent Declaration */ - - -/* Start of struct IExtraDataCanChangeEvent Declaration */ -# define IEXTRADATACANCHANGEEVENT_IID_STR "245d88bd-800a-40f8-87a6-170d02= 249a55" -# define IEXTRADATACANCHANGEEVENT_IID { \ - 0x245d88bd, 0x800a, 0x40f8, \ - { 0x87, 0xa6, 0x17, 0x0d, 0x02, 0x24, 0x9a, 0x55 } \ -} -struct IExtraDataCanChangeEvent_vtbl -{ - struct IVetoEvent_vtbl ivetoevent; - - nsresult (*GetMachineId)(IExtraDataCanChangeEvent *pThis, PRUnichar * = *machineId); - - nsresult (*GetKey)(IExtraDataCanChangeEvent *pThis, PRUnichar * *key); - - nsresult (*GetValue)(IExtraDataCanChangeEvent *pThis, PRUnichar * *val= ue); - -}; - -struct IExtraDataCanChangeEvent -{ - struct IExtraDataCanChangeEvent_vtbl *vtbl; -}; -/* End of struct IExtraDataCanChangeEvent Declaration */ - - -/* Start of struct ICanShowWindowEvent Declaration */ -# define ICANSHOWWINDOWEVENT_IID_STR "adf292b0-92c9-4a77-9d35-e058b39fe0b= 9" -# define ICANSHOWWINDOWEVENT_IID { \ - 0xadf292b0, 0x92c9, 0x4a77, \ - { 0x9d, 0x35, 0xe0, 0x58, 0xb3, 0x9f, 0xe0, 0xb9 } \ -} -struct ICanShowWindowEvent_vtbl -{ - struct IVetoEvent_vtbl ivetoevent; - -}; - -struct ICanShowWindowEvent -{ - struct ICanShowWindowEvent_vtbl *vtbl; -}; -/* End of struct ICanShowWindowEvent Declaration */ - - -/* Start of struct IShowWindowEvent Declaration */ -# define ISHOWWINDOWEVENT_IID_STR "B0A0904D-2F05-4D28-855F-488F96BAD2B2" -# define ISHOWWINDOWEVENT_IID { \ - 0xB0A0904D, 0x2F05, 0x4D28, \ - { 0x85, 0x5F, 0x48, 0x8F, 0x96, 0xBA, 0xD2, 0xB2 } \ -} -struct IShowWindowEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetWinId)(IShowWindowEvent *pThis, PRInt64 *winId); - nsresult (*SetWinId)(IShowWindowEvent *pThis, PRInt64 winId); - -}; - -struct IShowWindowEvent -{ - struct IShowWindowEvent_vtbl *vtbl; -}; -/* End of struct IShowWindowEvent Declaration */ - - -/* Start of struct INATRedirectEvent Declaration */ -# define INATREDIRECTEVENT_IID_STR "24eef068-c380-4510-bc7c-19314a7352f1" -# define INATREDIRECTEVENT_IID { \ - 0x24eef068, 0xc380, 0x4510, \ - { 0xbc, 0x7c, 0x19, 0x31, 0x4a, 0x73, 0x52, 0xf1 } \ -} -struct INATRedirectEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetSlot)(INATRedirectEvent *pThis, PRUint32 *slot); - - nsresult (*GetRemove)(INATRedirectEvent *pThis, PRBool *remove); - - nsresult (*GetName)(INATRedirectEvent *pThis, PRUnichar * *name); - - nsresult (*GetProto)(INATRedirectEvent *pThis, PRUint32 *proto); - - nsresult (*GetHostIP)(INATRedirectEvent *pThis, PRUnichar * *hostIP); - - nsresult (*GetHostPort)(INATRedirectEvent *pThis, PRInt32 *hostPort); - - nsresult (*GetGuestIP)(INATRedirectEvent *pThis, PRUnichar * *guestIP); - - nsresult (*GetGuestPort)(INATRedirectEvent *pThis, PRInt32 *guestPort); - -}; - -struct INATRedirectEvent -{ - struct INATRedirectEvent_vtbl *vtbl; -}; -/* End of struct INATRedirectEvent Declaration */ - - -/* Start of struct IHostPCIDevicePlugEvent Declaration */ -# define IHOSTPCIDEVICEPLUGEVENT_IID_STR "a0bad6df-d612-47d3-89d4-db39925= 33948" -# define IHOSTPCIDEVICEPLUGEVENT_IID { \ - 0xa0bad6df, 0xd612, 0x47d3, \ - { 0x89, 0xd4, 0xdb, 0x39, 0x92, 0x53, 0x39, 0x48 } \ -} -struct IHostPCIDevicePlugEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetPlugged)(IHostPCIDevicePlugEvent *pThis, PRBool *plugged= ); - - nsresult (*GetSuccess)(IHostPCIDevicePlugEvent *pThis, PRBool *success= ); - - nsresult (*GetAttachment)(IHostPCIDevicePlugEvent *pThis, IPCIDeviceAt= tachment * *attachment); - - nsresult (*GetMessage)(IHostPCIDevicePlugEvent *pThis, PRUnichar * *me= ssage); - -}; - -struct IHostPCIDevicePlugEvent -{ - struct IHostPCIDevicePlugEvent_vtbl *vtbl; -}; -/* End of struct IHostPCIDevicePlugEvent Declaration */ - - -/* Start of struct IVBoxSVCAvailabilityChangedEvent Declaration */ -# define IVBOXSVCAVAILABILITYCHANGEDEVENT_IID_STR "97c78fcd-d4fc-485f-861= 3-5af88bfcfcdc" -# define IVBOXSVCAVAILABILITYCHANGEDEVENT_IID { \ - 0x97c78fcd, 0xd4fc, 0x485f, \ - { 0x86, 0x13, 0x5a, 0xf8, 0x8b, 0xfc, 0xfc, 0xdc } \ -} -struct IVBoxSVCAvailabilityChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetAvailable)(IVBoxSVCAvailabilityChangedEvent *pThis, PRBo= ol *available); - -}; - -struct IVBoxSVCAvailabilityChangedEvent -{ - struct IVBoxSVCAvailabilityChangedEvent_vtbl *vtbl; -}; -/* End of struct IVBoxSVCAvailabilityChangedEvent Declaration */ - - -/* Start of struct IBandwidthGroupChangedEvent Declaration */ -# define IBANDWIDTHGROUPCHANGEDEVENT_IID_STR "334df94a-7556-4cbc-8c04-043= 096b02d82" -# define IBANDWIDTHGROUPCHANGEDEVENT_IID { \ - 0x334df94a, 0x7556, 0x4cbc, \ - { 0x8c, 0x04, 0x04, 0x30, 0x96, 0xb0, 0x2d, 0x82 } \ -} -struct IBandwidthGroupChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetBandwidthGroup)(IBandwidthGroupChangedEvent *pThis, IBan= dwidthGroup * *bandwidthGroup); - -}; - -struct IBandwidthGroupChangedEvent -{ - struct IBandwidthGroupChangedEvent_vtbl *vtbl; -}; -/* End of struct IBandwidthGroupChangedEvent Declaration */ - - -/* Start of struct IGuestMonitorChangedEvent Declaration */ -# define IGUESTMONITORCHANGEDEVENT_IID_STR "0f7b8a22-c71f-4a36-8e5f-a77d0= 1d76090" -# define IGUESTMONITORCHANGEDEVENT_IID { \ - 0x0f7b8a22, 0xc71f, 0x4a36, \ - { 0x8e, 0x5f, 0xa7, 0x7d, 0x01, 0xd7, 0x60, 0x90 } \ -} -struct IGuestMonitorChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetChangeType)(IGuestMonitorChangedEvent *pThis, PRUint32 *= changeType); - - nsresult (*GetScreenId)(IGuestMonitorChangedEvent *pThis, PRUint32 *sc= reenId); - - nsresult (*GetOriginX)(IGuestMonitorChangedEvent *pThis, PRUint32 *ori= ginX); - - nsresult (*GetOriginY)(IGuestMonitorChangedEvent *pThis, PRUint32 *ori= ginY); - - nsresult (*GetWidth)(IGuestMonitorChangedEvent *pThis, PRUint32 *width= ); - - nsresult (*GetHeight)(IGuestMonitorChangedEvent *pThis, PRUint32 *heig= ht); - -}; - -struct IGuestMonitorChangedEvent -{ - struct IGuestMonitorChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestMonitorChangedEvent Declaration */ - - -/* Start of struct IGuestUserStateChangedEvent Declaration */ -# define IGUESTUSERSTATECHANGEDEVENT_IID_STR "39b4e759-1ec0-4c0f-857f-fbe= 2a737a256" -# define IGUESTUSERSTATECHANGEDEVENT_IID { \ - 0x39b4e759, 0x1ec0, 0x4c0f, \ - { 0x85, 0x7f, 0xfb, 0xe2, 0xa7, 0x37, 0xa2, 0x56 } \ -} -struct IGuestUserStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetName)(IGuestUserStateChangedEvent *pThis, PRUnichar * *n= ame); - - nsresult (*GetDomain)(IGuestUserStateChangedEvent *pThis, PRUnichar * = *domain); - - nsresult (*GetState)(IGuestUserStateChangedEvent *pThis, PRUint32 *sta= te); - - nsresult (*GetStateDetails)(IGuestUserStateChangedEvent *pThis, PRUnic= har * *stateDetails); - -}; - -struct IGuestUserStateChangedEvent -{ - struct IGuestUserStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestUserStateChangedEvent Declaration */ - - -/* Start of struct IStorageDeviceChangedEvent Declaration */ -# define ISTORAGEDEVICECHANGEDEVENT_IID_STR "232e9151-ae84-4b8e-b0f3-5c20= c35caac9" -# define ISTORAGEDEVICECHANGEDEVENT_IID { \ - 0x232e9151, 0xae84, 0x4b8e, \ - { 0xb0, 0xf3, 0x5c, 0x20, 0xc3, 0x5c, 0xaa, 0xc9 } \ -} -struct IStorageDeviceChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetStorageDevice)(IStorageDeviceChangedEvent *pThis, IMediu= mAttachment * *storageDevice); - - nsresult (*GetRemoved)(IStorageDeviceChangedEvent *pThis, PRBool *remo= ved); - - nsresult (*GetSilent)(IStorageDeviceChangedEvent *pThis, PRBool *silen= t); - -}; - -struct IStorageDeviceChangedEvent -{ - struct IStorageDeviceChangedEvent_vtbl *vtbl; -}; -/* End of struct IStorageDeviceChangedEvent Declaration */ - - -/* Start of struct INATNetworkChangedEvent Declaration */ -# define INATNETWORKCHANGEDEVENT_IID_STR "101ae042-1a29-4a19-92cf-0228577= 3f3b5" -# define INATNETWORKCHANGEDEVENT_IID { \ - 0x101ae042, 0x1a29, 0x4a19, \ - { 0x92, 0xcf, 0x02, 0x28, 0x57, 0x73, 0xf3, 0xb5 } \ -} -struct INATNetworkChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetNetworkName)(INATNetworkChangedEvent *pThis, PRUnichar *= *networkName); - -}; - -struct INATNetworkChangedEvent -{ - struct INATNetworkChangedEvent_vtbl *vtbl; -}; -/* End of struct INATNetworkChangedEvent Declaration */ - - -/* Start of struct INATNetworkStartStopEvent Declaration */ -# define INATNETWORKSTARTSTOPEVENT_IID_STR "269d8f6b-fa1e-4cee-91c7-6d849= 6bea3c1" -# define INATNETWORKSTARTSTOPEVENT_IID { \ - 0x269d8f6b, 0xfa1e, 0x4cee, \ - { 0x91, 0xc7, 0x6d, 0x84, 0x96, 0xbe, 0xa3, 0xc1 } \ -} -struct INATNetworkStartStopEvent_vtbl -{ - struct INATNetworkChangedEvent_vtbl inatnetworkchangedevent; - - nsresult (*GetStartEvent)(INATNetworkStartStopEvent *pThis, PRBool *st= artEvent); - -}; - -struct INATNetworkStartStopEvent -{ - struct INATNetworkStartStopEvent_vtbl *vtbl; -}; -/* End of struct INATNetworkStartStopEvent Declaration */ - - -/* Start of struct INATNetworkAlterEvent Declaration */ -# define INATNETWORKALTEREVENT_IID_STR "3f5a0822-163a-43b1-ad16-8d58b0ef6= e75" -# define INATNETWORKALTEREVENT_IID { \ - 0x3f5a0822, 0x163a, 0x43b1, \ - { 0xad, 0x16, 0x8d, 0x58, 0xb0, 0xef, 0x6e, 0x75 } \ -} -struct INATNetworkAlterEvent_vtbl -{ - struct INATNetworkChangedEvent_vtbl inatnetworkchangedevent; - -}; - -struct INATNetworkAlterEvent -{ - struct INATNetworkAlterEvent_vtbl *vtbl; -}; -/* End of struct INATNetworkAlterEvent Declaration */ - - -/* Start of struct INATNetworkCreationDeletionEvent Declaration */ -# define INATNETWORKCREATIONDELETIONEVENT_IID_STR "8d984a7e-b855-40b8-ab0= c-44d3515b4528" -# define INATNETWORKCREATIONDELETIONEVENT_IID { \ - 0x8d984a7e, 0xb855, 0x40b8, \ - { 0xab, 0x0c, 0x44, 0xd3, 0x51, 0x5b, 0x45, 0x28 } \ -} -struct INATNetworkCreationDeletionEvent_vtbl -{ - struct INATNetworkAlterEvent_vtbl inatnetworkalterevent; - - nsresult (*GetCreationEvent)(INATNetworkCreationDeletionEvent *pThis, = PRBool *creationEvent); - -}; - -struct INATNetworkCreationDeletionEvent -{ - struct INATNetworkCreationDeletionEvent_vtbl *vtbl; -}; -/* End of struct INATNetworkCreationDeletionEvent Declaration */ - - -/* Start of struct INATNetworkSettingEvent Declaration */ -# define INATNETWORKSETTINGEVENT_IID_STR "9db3a9e6-7f29-4aae-a627-5a282c8= 3092c" -# define INATNETWORKSETTINGEVENT_IID { \ - 0x9db3a9e6, 0x7f29, 0x4aae, \ - { 0xa6, 0x27, 0x5a, 0x28, 0x2c, 0x83, 0x09, 0x2c } \ -} -struct INATNetworkSettingEvent_vtbl -{ - struct INATNetworkAlterEvent_vtbl inatnetworkalterevent; - - nsresult (*GetEnabled)(INATNetworkSettingEvent *pThis, PRBool *enabled= ); - - nsresult (*GetNetwork)(INATNetworkSettingEvent *pThis, PRUnichar * *ne= twork); - - nsresult (*GetGateway)(INATNetworkSettingEvent *pThis, PRUnichar * *ga= teway); - - nsresult (*GetAdvertiseDefaultIPv6RouteEnabled)(INATNetworkSettingEven= t *pThis, PRBool *advertiseDefaultIPv6RouteEnabled); - - nsresult (*GetNeedDhcpServer)(INATNetworkSettingEvent *pThis, PRBool *= needDhcpServer); - -}; - -struct INATNetworkSettingEvent -{ - struct INATNetworkSettingEvent_vtbl *vtbl; -}; -/* End of struct INATNetworkSettingEvent Declaration */ - - -/* Start of struct INATNetworkPortForwardEvent Declaration */ -# define INATNETWORKPORTFORWARDEVENT_IID_STR "2514881b-23d0-430a-a7ff-7ed= 7f05534bc" -# define INATNETWORKPORTFORWARDEVENT_IID { \ - 0x2514881b, 0x23d0, 0x430a, \ - { 0xa7, 0xff, 0x7e, 0xd7, 0xf0, 0x55, 0x34, 0xbc } \ -} -struct INATNetworkPortForwardEvent_vtbl -{ - struct INATNetworkAlterEvent_vtbl inatnetworkalterevent; - - nsresult (*GetCreate)(INATNetworkPortForwardEvent *pThis, PRBool *crea= te); - - nsresult (*GetIpv6)(INATNetworkPortForwardEvent *pThis, PRBool *ipv6); - - nsresult (*GetName)(INATNetworkPortForwardEvent *pThis, PRUnichar * *n= ame); - - nsresult (*GetProto)(INATNetworkPortForwardEvent *pThis, PRUint32 *pro= to); - - nsresult (*GetHostIp)(INATNetworkPortForwardEvent *pThis, PRUnichar * = *hostIp); - - nsresult (*GetHostPort)(INATNetworkPortForwardEvent *pThis, PRInt32 *h= ostPort); - - nsresult (*GetGuestIp)(INATNetworkPortForwardEvent *pThis, PRUnichar *= *guestIp); - - nsresult (*GetGuestPort)(INATNetworkPortForwardEvent *pThis, PRInt32 *= guestPort); - -}; - -struct INATNetworkPortForwardEvent -{ - struct INATNetworkPortForwardEvent_vtbl *vtbl; -}; -/* End of struct INATNetworkPortForwardEvent Declaration */ - - -/* Start of struct IHostNameResolutionConfigurationChangeEvent Declaration= */ -# define IHOSTNAMERESOLUTIONCONFIGURATIONCHANGEEVENT_IID_STR "f9b9e1cf-cb= 63-47a1-84fb-02c4894b89a9" -# define IHOSTNAMERESOLUTIONCONFIGURATIONCHANGEEVENT_IID { \ - 0xf9b9e1cf, 0xcb63, 0x47a1, \ - { 0x84, 0xfb, 0x02, 0xc4, 0x89, 0x4b, 0x89, 0xa9 } \ -} -struct IHostNameResolutionConfigurationChangeEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IHostNameResolutionConfigurationChangeEvent -{ - struct IHostNameResolutionConfigurationChangeEvent_vtbl *vtbl; -}; -/* End of struct IHostNameResolutionConfigurationChangeEvent Declaration */ - - - -# define NS_VIRTUALBOX_CID { \ - 0xB1A7A4F2, 0x47B9, 0x4A1E, \ - { 0x82, 0xB2, 0x07, 0xCC, 0xD5, 0x32, 0x3C, 0x3F } \ -} -# define NS_VIRTUALBOX_CONTRACTID "@virtualbox.org/VirtualBox;1" -/* for compatibility with Win32 */ -# define CLSID_VirtualBox (nsCID) NS_VIRTUALBOX_CID - - - -# define NS_VIRTUALBOXCLIENT_CID { \ - 0xdd3fc71d, 0x26c0, 0x4fe1, \ - { 0xbf, 0x6f, 0x67, 0xf6, 0x33, 0x26, 0x5b, 0xba } \ -} -# define NS_VIRTUALBOXCLIENT_CONTRACTID "@virtualbox.org/VirtualBoxClient= ;1" -/* for compatibility with Win32 */ -# define CLSID_VirtualBoxClient (nsCID) NS_VIRTUALBOXCLIENT_CID - - - -# define NS_SESSION_CID { \ - 0x3C02F46D, 0xC9D2, 0x4F11, \ - { 0xA3, 0x84, 0x53, 0xF0, 0xCF, 0x91, 0x72, 0x14 } \ -} -# define NS_SESSION_CONTRACTID "@virtualbox.org/Session;1" -/* for compatibility with Win32 */ -# define CLSID_Session (nsCID) NS_SESSION_CID - - - -# endif /* !__cplusplus */ - -# ifdef IN_VBOXXPCOMC -# define VBOXXPCOMC_DECL(type) PR_EXPORT(type) -# else -# define VBOXXPCOMC_DECL(type) PR_IMPORT(type) -# endif - -# ifdef __cplusplus -extern "C" { -# endif - - -/** - * Function table for dynamic linking. - * Use VBoxGetFunctions() to obtain the pointer to it. - */ -typedef struct VBOXXPCOMC -{ - /** The size of the structure. */ - unsigned cb; - /** The structure version. */ - unsigned uVersion; - - unsigned int (*pfnGetVersion)(void); - - void (*pfnComInitialize)(const char *pszVirtualBoxIID, - IVirtualBox **ppVirtualBox, - const char *pszSessionIID, - ISession **ppSession); - void (*pfnComUninitialize)(void); - - void (*pfnComUnallocMem)(void *pv); - void (*pfnUtf16Free)(PRUnichar *pwszString); - void (*pfnUtf8Free)(char *pszString); - - int (*pfnUtf16ToUtf8)(const PRUnichar *pwszString, char **ppszString= ); - int (*pfnUtf8ToUtf16)(const char *pszString, PRUnichar **ppwszString= ); - - void (*pfnGetEventQueue)(nsIEventQueue **eventQueue); - - /** Tail version, same as uVersion. */ - unsigned uEndVersion; -} VBOXXPCOMC; -/** Pointer to a const VBoxXPCOMC function table. */ -typedef VBOXXPCOMC const *PCVBOXXPCOM; - -/** The current interface version. - * For use with VBoxGetXPCOMCFunctions and to be found in - * VBOXXPCOMC::uVersion. */ -# define VBOX_XPCOMC_VERSION 0x00020000U - -VBOXXPCOMC_DECL(PCVBOXXPCOM) VBoxGetXPCOMCFunctions(unsigned uVersion); -/** Typedef for VBoxGetXPCOMCFunctions. */ -typedef PCVBOXXPCOM (*PFNVBOXGETXPCOMCFUNCTIONS)(unsigned uVersion); - -/** The symbol name of VBoxGetXPCOMCFunctions. */ -# if defined(__OS2__) -# define VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME "_VBoxGetXPCOMCFunctions" -# else -# define VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME "VBoxGetXPCOMCFunctions" -# endif - - -# ifdef __cplusplus -} -# endif - -#endif /* !___VirtualBox_CXPCOM_h */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list From nobody Fri Apr 26 20:41:27 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1555074153; cv=none; d=zoho.com; s=zohoarc; b=Oqa1kZXYwYP9pUv3X62EXid8cJQkSh54oXWR6H0EAmwDfVKThN9ZD4bmiM13q3oGsisL/eLfjHryA7cPOqznkCLjnnhF7B2ZN28+DGjW/tQHJPk7wHfG2cHZIoGs7juq7TeABiMGtsedwAcFUnZN7tIpxE42HsV+hBF6tJhD1Ek= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1555074153; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=ne2EMqXgoSE44ym91MYiBIx2ZdI1sKqBLpYrOys1PBc=; b=dsgqJrHxmOb8wPPNAyRc8UHAwdXqVm9THU3fyVQLfit4rk8N0E4fvwrHWV/tnDMYKY5irHfhqL0fr2UOBHyFJTG7ZRGCtnjqpQ6fd9AK1NjkLZ2po3nfmg2rtEp7Cc/Kz0sYAZ2sG6nzUoIkDu2tzcO5j2lZJfzTKxMPU7LaR5U= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 15550741530830.0293063113028893; Fri, 12 Apr 2019 06:02:33 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 19ADC308CEA9; Fri, 12 Apr 2019 13:02:26 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DC2201001F41; Fri, 12 Apr 2019 13:02:25 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 7AB6C3FB30; Fri, 12 Apr 2019 13:02:24 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x3CD1GwT031852 for ; Fri, 12 Apr 2019 09:01:16 -0400 Received: by smtp.corp.redhat.com (Postfix) id 680A418505; Fri, 12 Apr 2019 13:01:16 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-112-27.ams2.redhat.com [10.36.112.27]) by smtp.corp.redhat.com (Postfix) with ESMTP id 23EA719747; Fri, 12 Apr 2019 13:01:14 +0000 (UTC) From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: libvir-list@redhat.com Date: Fri, 12 Apr 2019 14:00:40 +0100 Message-Id: <20190412130040.21306-8-berrange@redhat.com> In-Reply-To: <20190412130040.21306-1-berrange@redhat.com> References: <20190412130040.21306-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-Mailman-Approved-At: Fri, 12 Apr 2019 09:02:22 -0400 Subject: [libvirt] [PATCH v2 7/7] vbox: drop C API definition for release 4.3.4 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Fri, 12 Apr 2019 13:02:31 +0000 (UTC) Support for compiling this version was dropped in an earlier commit. Signed-off-by: Daniel P. Berrang=C3=A9 --- src/vbox/Makefile.inc.am | 1 - src/vbox/vbox_CAPI_v4_3_4.h | 10321 ---------------------------------- 2 files changed, 10322 deletions(-) delete mode 100644 src/vbox/vbox_CAPI_v4_3_4.h diff --git a/src/vbox/Makefile.inc.am b/src/vbox/Makefile.inc.am index d6b82f2f02..d0bff835f9 100644 --- a/src/vbox/Makefile.inc.am +++ b/src/vbox/Makefile.inc.am @@ -5,7 +5,6 @@ VBOX_DRIVER_SOURCES =3D \ vbox/vbox_driver.h \ vbox/vbox_snapshot_conf.c \ vbox/vbox_snapshot_conf.h \ - vbox/vbox_CAPI_v4_3_4.h \ vbox/vbox_V5_0.c \ vbox/vbox_CAPI_v5_0.h \ vbox/vbox_V5_1.c \ diff --git a/src/vbox/vbox_CAPI_v4_3_4.h b/src/vbox/vbox_CAPI_v4_3_4.h deleted file mode 100644 index 5187001bda..0000000000 --- a/src/vbox/vbox_CAPI_v4_3_4.h +++ /dev/null @@ -1,10321 +0,0 @@ -/* - * Libvirt notice: this file is derived from the VirtualBox SDK, with - * libvirt edits (fixing preprocessor indentation by cppi); do not - * regenerate in the context of libvirt. - */ -/* - * DO NOT EDIT! This is a generated file. - * - * XPCOM IDL (XPIDL) definition for VirtualBox Main API (COM interfaces) - * generated from XIDL (XML interface definition). - * - * Source : src/VBox/Main/idl/VirtualBox.xidl - * Generator : src/VBox/Main/idl/xpcidl.xsl - * - * This file contains portions from the following Mozilla XPCOM files: - * xpcom/include/xpcom/nsID.h - * xpcom/include/nsIException.h - * xpcom/include/nsprpub/prtypes.h - * xpcom/include/xpcom/nsISupportsBase.h - * - * These files were originally triple-licensed (MPL/GPL2/LGPL2.1). Oracle - * elects to distribute this derived work under the LGPL2.1 only. - */ - -/* - * Copyright (C) 2008-2012 Oracle Corporation - * - * This file is part of a free software library; you can redistribute - * it and/or modify it under the terms of the GNU Lesser General - * Public License version 2.1 as published by the Free Software - * Foundation and shipped in the "COPYING.LESSER" file with this library. - * The library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY of any kind. - * - * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if - * any license choice other than GPL or LGPL is available it will - * apply instead, Oracle elects to use only the Lesser General Public - * License version 2.1 (LGPLv2) at this time for any software where - * a choice of LGPL license versions is made available with the - * language indicating that LGPLv2 or any later version may be used, - * or where a choice of which version of the LGPL is applied is - * otherwise unspecified. - */ - -#ifndef ___VirtualBox_CXPCOM_h -# define ___VirtualBox_CXPCOM_h - -# ifdef __cplusplus -# include "VirtualBox_XPCOM.h" -# else /* !__cplusplus */ - -# include -# include "wchar.h" - -# if defined(WIN32) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) __declspec(dllimport) __type -# define PR_IMPORT_DATA(__type) __declspec(dllimport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_BEOS) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) extern __declspec(dllexport) __type -# define PR_IMPORT_DATA(__type) extern __declspec(dllexport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(WIN16) - -# define PR_CALLBACK_DECL __cdecl - -# if defined(_WINDLL) -# define PR_EXPORT(__type) extern __type _cdecl _export _loadds -# define PR_IMPORT(__type) extern __type _cdecl _export _loadds -# define PR_EXPORT_DATA(__type) extern __type _export -# define PR_IMPORT_DATA(__type) extern __type _export - -# define PR_EXTERN(__type) extern __type _cdecl _export _loadds -# define PR_IMPLEMENT(__type) __type _cdecl _export _loadds -# define PR_EXTERN_DATA(__type) extern __type _export -# define PR_IMPLEMENT_DATA(__type) __type _export - -# define PR_CALLBACK __cdecl __loadds -# define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK - -# else /* this must be .EXE */ -# define PR_EXPORT(__type) extern __type _cdecl _export -# define PR_IMPORT(__type) extern __type _cdecl _export -# define PR_EXPORT_DATA(__type) extern __type _export -# define PR_IMPORT_DATA(__type) extern __type _export - -# define PR_EXTERN(__type) extern __type _cdecl _export -# define PR_IMPLEMENT(__type) __type _cdecl _export -# define PR_EXTERN_DATA(__type) extern __type _export -# define PR_IMPLEMENT_DATA(__type) __type _export - -# define PR_CALLBACK __cdecl __loadds -# define PR_STATIC_CALLBACK(__x) __x PR_CALLBACK -# endif /* _WINDLL */ - -# elif defined(XP_MAC) - -# define PR_EXPORT(__type) extern __declspec(export) __type -# define PR_EXPORT_DATA(__type) extern __declspec(export) __type -# define PR_IMPORT(__type) extern __declspec(export) __type -# define PR_IMPORT_DATA(__type) extern __declspec(export) __type - -# define PR_EXTERN(__type) extern __declspec(export) __type -# define PR_IMPLEMENT(__type) __declspec(export) __type -# define PR_EXTERN_DATA(__type) extern __declspec(export) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(export) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_OS2) && defined(__declspec) - -# define PR_EXPORT(__type) extern __declspec(dllexport) __type -# define PR_EXPORT_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPORT(__type) __declspec(dllimport) __type -# define PR_IMPORT_DATA(__type) __declspec(dllimport) __type - -# define PR_EXTERN(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT(__type) __declspec(dllexport) __type -# define PR_EXTERN_DATA(__type) extern __declspec(dllexport) __type -# define PR_IMPLEMENT_DATA(__type) __declspec(dllexport) __type - -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x - -# elif defined(XP_OS2_VACPP) - -# define PR_EXPORT(__type) extern __type -# define PR_EXPORT_DATA(__type) extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type - -# define PR_EXTERN(__type) extern __type -# define PR_IMPLEMENT(__type) __type -# define PR_EXTERN_DATA(__type) extern __type -# define PR_IMPLEMENT_DATA(__type) __type -# define PR_CALLBACK _Optlink -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x PR_CALLBACK - -# else /* Unix */ - -# ifdef VBOX_HAVE_VISIBILITY_HIDDEN -# define PR_EXPORT(__type) __attribute__((visibility("default"))) exter= n __type -# define PR_EXPORT_DATA(__type) __attribute__((visibility("default"))) = extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type -# define PR_EXTERN(__type) __attribute__((visibility("default"))) exter= n __type -# define PR_IMPLEMENT(__type) __attribute__((visibility("default"))) __= type -# define PR_EXTERN_DATA(__type) __attribute__((visibility("default"))) = extern __type -# define PR_IMPLEMENT_DATA(__type) __attribute__((visibility("default")= )) __type -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x -# else -# define PR_EXPORT(__type) extern __type -# define PR_EXPORT_DATA(__type) extern __type -# define PR_IMPORT(__type) extern __type -# define PR_IMPORT_DATA(__type) extern __type -# define PR_EXTERN(__type) extern __type -# define PR_IMPLEMENT(__type) __type -# define PR_EXTERN_DATA(__type) extern __type -# define PR_IMPLEMENT_DATA(__type) __type -# define PR_CALLBACK -# define PR_CALLBACK_DECL -# define PR_STATIC_CALLBACK(__x) static __x -# endif -# endif - -# if defined(_NSPR_BUILD_) -# define NSPR_API(__type) PR_EXPORT(__type) -# define NSPR_DATA_API(__type) PR_EXPORT_DATA(__type) -# else -# define NSPR_API(__type) PR_IMPORT(__type) -# define NSPR_DATA_API(__type) PR_IMPORT_DATA(__type) -# endif - -typedef unsigned char PRUint8; -# if (defined(HPUX) && defined(__cplusplus) \ - && !defined(__GNUC__) && __cplusplus < 199707L) \ - || (defined(SCO) && defined(__cplusplus) \ - && !defined(__GNUC__) && __cplusplus =3D=3D 1L) -typedef char PRInt8; -# else -typedef signed char PRInt8; -# endif - -# define PR_INT8_MAX 127 -# define PR_INT8_MIN (-128) -# define PR_UINT8_MAX 255U - -typedef unsigned short PRUint16; -typedef short PRInt16; - -# define PR_INT16_MAX 32767 -# define PR_INT16_MIN (-32768) -# define PR_UINT16_MAX 65535U - -typedef unsigned int PRUint32; -typedef int PRInt32; -# define PR_INT32(x) x -# define PR_UINT32(x) x ## U - -# define PR_INT32_MAX PR_INT32(2147483647) -# define PR_INT32_MIN (-PR_INT32_MAX - 1) -# define PR_UINT32_MAX PR_UINT32(4294967295) - -typedef long PRInt64; -typedef unsigned long PRUint64; -typedef int PRIntn; -typedef unsigned int PRUintn; - -typedef double PRFloat64; -typedef size_t PRSize; - -typedef ptrdiff_t PRPtrdiff; - -typedef unsigned long PRUptrdiff; - -typedef PRIntn PRBool; - -# define PR_TRUE 1 -# define PR_FALSE 0 - -typedef PRUint8 PRPackedBool; - -/* -** Status code used by some routines that have a single point of failure or -** special status return. -*/ -typedef enum { PR_FAILURE =3D -1, PR_SUCCESS =3D 0 } PRStatus; - -# ifndef __PRUNICHAR__ -# define __PRUNICHAR__ -# if defined(WIN32) || defined(XP_MAC) -typedef wchar_t PRUnichar; -# else -typedef PRUint16 PRUnichar; -# endif -# endif - -typedef long PRWord; -typedef unsigned long PRUword; - -# define nsnull 0 -typedef PRUint32 nsresult; - -# if defined(__GNUC__) && (__GNUC__ > 2) -# define NS_LIKELY(x) (__builtin_expect((x), 1)) -# define NS_UNLIKELY(x) (__builtin_expect((x), 0)) -# else -# define NS_LIKELY(x) (x) -# define NS_UNLIKELY(x) (x) -# endif - -# define NS_FAILED(_nsresult) (NS_UNLIKELY((_nsresult) & 0x80000000)) -# define NS_SUCCEEDED(_nsresult) (NS_LIKELY(!((_nsresult) & 0x80000000))) - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_IntervalNow VBoxNsprPR_IntervalNow -# define PR_TicksPerSecond VBoxNsprPR_TicksPerSecond -# define PR_SecondsToInterval VBoxNsprPR_SecondsToInterval -# define PR_MillisecondsToInterval VBoxNsprPR_MillisecondsToInterval -# define PR_MicrosecondsToInterval VBoxNsprPR_MicrosecondsToInterval -# define PR_IntervalToSeconds VBoxNsprPR_IntervalToSeconds -# define PR_IntervalToMilliseconds VBoxNsprPR_IntervalToMilliseconds -# define PR_IntervalToMicroseconds VBoxNsprPR_IntervalToMicroseconds -# define PR_EnterMonitor VBoxNsprPR_EnterMonitor -# define PR_ExitMonitor VBoxNsprPR_ExitMonitor -# define PR_Notify VBoxNsprPR_Notify -# define PR_NotifyAll VBoxNsprPR_NotifyAll -# define PR_Wait VBoxNsprPR_Wait -# define PR_NewMonitor VBoxNsprPR_NewMonitor -# define PR_DestroyMonitor VBoxNsprPR_DestroyMonitor -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef PRUint32 PRIntervalTime; - -# define PR_INTERVAL_MIN 1000UL -# define PR_INTERVAL_MAX 100000UL -# define PR_INTERVAL_NO_WAIT 0UL -# define PR_INTERVAL_NO_TIMEOUT 0xffffffffUL - -NSPR_API(PRIntervalTime) PR_IntervalNow(void); -NSPR_API(PRUint32) PR_TicksPerSecond(void); -NSPR_API(PRIntervalTime) PR_SecondsToInterval(PRUint32 seconds); -NSPR_API(PRIntervalTime) PR_MillisecondsToInterval(PRUint32 milli); -NSPR_API(PRIntervalTime) PR_MicrosecondsToInterval(PRUint32 micro); -NSPR_API(PRUint32) PR_IntervalToSeconds(PRIntervalTime ticks); -NSPR_API(PRUint32) PR_IntervalToMilliseconds(PRIntervalTime ticks); -NSPR_API(PRUint32) PR_IntervalToMicroseconds(PRIntervalTime ticks); - -typedef struct PRMonitor PRMonitor; - -NSPR_API(PRMonitor*) PR_NewMonitor(void); -NSPR_API(void) PR_DestroyMonitor(PRMonitor *mon); -NSPR_API(void) PR_EnterMonitor(PRMonitor *mon); -NSPR_API(PRStatus) PR_ExitMonitor(PRMonitor *mon); -NSPR_API(PRStatus) PR_Wait(PRMonitor *mon, PRIntervalTime ticks); -NSPR_API(PRStatus) PR_Notify(PRMonitor *mon); -NSPR_API(PRStatus) PR_NotifyAll(PRMonitor *mon); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_CreateThread VBoxNsprPR_CreateThread -# define PR_JoinThread VBoxNsprPR_JoinThread -# define PR_Sleep VBoxNsprPR_Sleep -# define PR_GetCurrentThread VBoxNsprPR_GetCurrentThread -# define PR_GetThreadState VBoxNsprPR_GetThreadState -# define PR_SetThreadPrivate VBoxNsprPR_SetThreadPrivate -# define PR_GetThreadPrivate VBoxNsprPR_GetThreadPrivate -# define PR_NewThreadPrivateIndex VBoxNsprPR_NewThreadPrivateIndex -# define PR_GetThreadPriority VBoxNsprPR_GetThreadPriority -# define PR_SetThreadPriority VBoxNsprPR_SetThreadPriority -# define PR_Interrupt VBoxNsprPR_Interrupt -# define PR_ClearInterrupt VBoxNsprPR_ClearInterrupt -# define PR_BlockInterrupt VBoxNsprPR_BlockInterrupt -# define PR_UnblockInterrupt VBoxNsprPR_UnblockInterrupt -# define PR_GetThreadScope VBoxNsprPR_GetThreadScope -# define PR_GetThreadType VBoxNsprPR_GetThreadType -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRThread PRThread; -typedef struct PRThreadStack PRThreadStack; - -typedef enum PRThreadType { - PR_USER_THREAD, - PR_SYSTEM_THREAD -} PRThreadType; - -typedef enum PRThreadScope { - PR_LOCAL_THREAD, - PR_GLOBAL_THREAD, - PR_GLOBAL_BOUND_THREAD -} PRThreadScope; - -typedef enum PRThreadState { - PR_JOINABLE_THREAD, - PR_UNJOINABLE_THREAD -} PRThreadState; - -typedef enum PRThreadPriority -{ - PR_PRIORITY_FIRST =3D 0, /* just a placeholder */ - PR_PRIORITY_LOW =3D 0, /* the lowest possible priority */ - PR_PRIORITY_NORMAL =3D 1, /* most common expected priority */ - PR_PRIORITY_HIGH =3D 2, /* slightly more aggressive scheduling */ - PR_PRIORITY_URGENT =3D 3, /* it does little good to have more than= one */ - PR_PRIORITY_LAST =3D 3 /* this is just a placeholder */ -} PRThreadPriority; - -NSPR_API(PRThread*) PR_CreateThread(PRThreadType type, - void (PR_CALLBACK *start)(void *arg), - void *arg, - PRThreadPriority priority, - PRThreadScope scope, - PRThreadState state, - PRUint32 stackSize); -NSPR_API(PRStatus) PR_JoinThread(PRThread *thread); -NSPR_API(PRThread*) PR_GetCurrentThread(void); -# ifndef NO_NSPR_10_SUPPORT -# define PR_CurrentThread() PR_GetCurrentThread() /* for nspr1.0 compat.= */ -# endif /* NO_NSPR_10_SUPPORT */ -NSPR_API(PRThreadPriority) PR_GetThreadPriority(const PRThread *thread); -NSPR_API(void) PR_SetThreadPriority(PRThread *thread, PRThreadPriority pri= ority); - -typedef void (PR_CALLBACK *PRThreadPrivateDTOR)(void *priv); - -NSPR_API(PRStatus) PR_NewThreadPrivateIndex( - PRUintn *newIndex, PRThreadPrivateDTOR destructor); -NSPR_API(PRStatus) PR_SetThreadPrivate(PRUintn tpdIndex, void *priv); -NSPR_API(void*) PR_GetThreadPrivate(PRUintn tpdIndex); -NSPR_API(PRStatus) PR_Interrupt(PRThread *thread); -NSPR_API(void) PR_ClearInterrupt(void); -NSPR_API(void) PR_BlockInterrupt(void); -NSPR_API(void) PR_UnblockInterrupt(void); -NSPR_API(PRStatus) PR_Sleep(PRIntervalTime ticks); -NSPR_API(PRThreadScope) PR_GetThreadScope(const PRThread *thread); -NSPR_API(PRThreadType) PR_GetThreadType(const PRThread *thread); -NSPR_API(PRThreadState) PR_GetThreadState(const PRThread *thread); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_DestroyLock VBoxNsprPR_DestroyLock -# define PR_Lock VBoxNsprPR_Lock -# define PR_NewLock VBoxNsprPR_NewLock -# define PR_Unlock VBoxNsprPR_Unlock -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRLock PRLock; - -NSPR_API(PRLock*) PR_NewLock(void); -NSPR_API(void) PR_DestroyLock(PRLock *lock); -NSPR_API(void) PR_Lock(PRLock *lock); -NSPR_API(PRStatus) PR_Unlock(PRLock *lock); - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PR_NewCondVar VBoxNsprPR_NewCondVar -# define PR_DestroyCondVar VBoxNsprPR_DestroyCondVar -# define PR_WaitCondVar VBoxNsprPR_WaitCondVar -# define PR_NotifyCondVar VBoxNsprPR_NotifyCondVar -# define PR_NotifyAllCondVar VBoxNsprPR_NotifyAllCondVar -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PRCondVar PRCondVar; - -NSPR_API(PRCondVar*) PR_NewCondVar(PRLock *lock); -NSPR_API(void) PR_DestroyCondVar(PRCondVar *cvar); -NSPR_API(PRStatus) PR_WaitCondVar(PRCondVar *cvar, PRIntervalTime timeout); -NSPR_API(PRStatus) PR_NotifyCondVar(PRCondVar *cvar); -NSPR_API(PRStatus) PR_NotifyAllCondVar(PRCondVar *cvar); - -typedef struct PRCListStr PRCList; - -struct PRCListStr { - PRCList *next; - PRCList *prev; -}; - -# ifdef VBOX_WITH_XPCOM_NAMESPACE_CLEANUP -# define PL_DestroyEvent VBoxNsplPL_DestroyEvent -# define PL_HandleEvent VBoxNsplPL_HandleEvent -# define PL_InitEvent VBoxNsplPL_InitEvent -# define PL_CreateEventQueue VBoxNsplPL_CreateEventQueue -# define PL_CreateMonitoredEventQueue VBoxNsplPL_CreateMonitoredEventQue= ue -# define PL_CreateNativeEventQueue VBoxNsplPL_CreateNativeEventQueue -# define PL_DequeueEvent VBoxNsplPL_DequeueEvent -# define PL_DestroyEventQueue VBoxNsplPL_DestroyEventQueue -# define PL_EventAvailable VBoxNsplPL_EventAvailable -# define PL_EventLoop VBoxNsplPL_EventLoop -# define PL_GetEvent VBoxNsplPL_GetEvent -# define PL_GetEventOwner VBoxNsplPL_GetEventOwner -# define PL_GetEventQueueMonitor VBoxNsplPL_GetEventQueueMonitor -# define PL_GetEventQueueSelectFD VBoxNsplPL_GetEventQueueSelectFD -# define PL_MapEvents VBoxNsplPL_MapEvents -# define PL_PostEvent VBoxNsplPL_PostEvent -# define PL_PostSynchronousEvent VBoxNsplPL_PostSynchronousEvent -# define PL_ProcessEventsBeforeID VBoxNsplPL_ProcessEventsBeforeID -# define PL_ProcessPendingEvents VBoxNsplPL_ProcessPendingEvents -# define PL_RegisterEventIDFunc VBoxNsplPL_RegisterEventIDFunc -# define PL_RevokeEvents VBoxNsplPL_RevokeEvents -# define PL_UnregisterEventIDFunc VBoxNsplPL_UnregisterEventIDFunc -# define PL_WaitForEvent VBoxNsplPL_WaitForEvent -# define PL_IsQueueNative VBoxNsplPL_IsQueueNative -# define PL_IsQueueOnCurrentThread VBoxNsplPL_IsQueueOnCurrentThread -# define PL_FavorPerformanceHint VBoxNsplPL_FavorPerformanceHint -# endif /* VBOX_WITH_XPCOM_NAMESPACE_CLEANUP */ - -typedef struct PLEvent PLEvent; -typedef struct PLEventQueue PLEventQueue; - -PR_EXTERN(PLEventQueue*) -PL_CreateEventQueue(const char* name, PRThread* handlerThread); -PR_EXTERN(PLEventQueue *) - PL_CreateNativeEventQueue( - const char *name, - PRThread *handlerThread - ); -PR_EXTERN(PLEventQueue *) - PL_CreateMonitoredEventQueue( - const char *name, - PRThread *handlerThread - ); -PR_EXTERN(void) -PL_DestroyEventQueue(PLEventQueue* self); -PR_EXTERN(PRMonitor*) -PL_GetEventQueueMonitor(PLEventQueue* self); - -# define PL_ENTER_EVENT_QUEUE_MONITOR(queue) \ - PR_EnterMonitor(PL_GetEventQueueMonitor(queue)) - -# define PL_EXIT_EVENT_QUEUE_MONITOR(queue) \ - PR_ExitMonitor(PL_GetEventQueueMonitor(queue)) - -PR_EXTERN(PRStatus) PL_PostEvent(PLEventQueue* self, PLEvent* event); -PR_EXTERN(void*) PL_PostSynchronousEvent(PLEventQueue* self, PLEvent* even= t); -PR_EXTERN(PLEvent*) PL_GetEvent(PLEventQueue* self); -PR_EXTERN(PRBool) PL_EventAvailable(PLEventQueue* self); - -typedef void (PR_CALLBACK *PLEventFunProc)(PLEvent* event, void* data, PLE= ventQueue* queue); - -PR_EXTERN(void) PL_MapEvents(PLEventQueue* self, PLEventFunProc fun, void*= data); -PR_EXTERN(void) PL_RevokeEvents(PLEventQueue* self, void* owner); -PR_EXTERN(void) PL_ProcessPendingEvents(PLEventQueue* self); -PR_EXTERN(PLEvent*) PL_WaitForEvent(PLEventQueue* self); -PR_EXTERN(void) PL_EventLoop(PLEventQueue* self); -PR_EXTERN(PRInt32) PL_GetEventQueueSelectFD(PLEventQueue* self); -PR_EXTERN(PRBool) PL_IsQueueOnCurrentThread( PLEventQueue *queue ); -PR_EXTERN(PRBool) PL_IsQueueNative(PLEventQueue *queue); - -typedef void* (PR_CALLBACK *PLHandleEventProc)(PLEvent* self); -typedef void (PR_CALLBACK *PLDestroyEventProc)(PLEvent* self); -PR_EXTERN(void) -PL_InitEvent(PLEvent* self, void* owner, - PLHandleEventProc handler, - PLDestroyEventProc destructor); -PR_EXTERN(void*) PL_GetEventOwner(PLEvent* self); -PR_EXTERN(void) PL_HandleEvent(PLEvent* self); -PR_EXTERN(void) PL_DestroyEvent(PLEvent* self); -PR_EXTERN(void) PL_DequeueEvent(PLEvent* self, PLEventQueue* queue); -PR_EXTERN(void) PL_FavorPerformanceHint(PRBool favorPerformanceOverEventSt= arvation, PRUint32 starvationDelay); - -struct PLEvent { - PRCList link; - PLHandleEventProc handler; - PLDestroyEventProc destructor; - void* owner; - void* synchronousResult; - PRLock* lock; - PRCondVar* condVar; - PRBool handled; -# ifdef PL_POST_TIMINGS - PRIntervalTime postTime; -# endif -# ifdef XP_UNIX - unsigned long id; -# endif /* XP_UNIX */ - /* other fields follow... */ -}; - -# if defined(XP_WIN) || defined(XP_OS2) - -PR_EXTERN(HWND) - PL_GetNativeEventReceiverWindow( - PLEventQueue *eqp - ); -# endif /* XP_WIN || XP_OS2 */ - -# ifdef XP_UNIX - -PR_EXTERN(PRInt32) -PL_ProcessEventsBeforeID(PLEventQueue *aSelf, unsigned long aID); - -typedef unsigned long (PR_CALLBACK *PLGetEventIDFunc)(void *aClosure); - -PR_EXTERN(void) -PL_RegisterEventIDFunc(PLEventQueue *aSelf, PLGetEventIDFunc aFunc, - void *aClosure); -PR_EXTERN(void) PL_UnregisterEventIDFunc(PLEventQueue *aSelf); - -# endif /* XP_UNIX */ - -/* Standard "it worked" return value */ -# define NS_OK 0 - -# define NS_ERROR_BASE ((nsresult) 0xC1F30000) - -/* Returned when an instance is not initialized */ -# define NS_ERROR_NOT_INITIALIZED (NS_ERROR_BASE + 1) - -/* Returned when an instance is already initialized */ -# define NS_ERROR_ALREADY_INITIALIZED (NS_ERROR_BASE + 2) - -/* Returned by a not implemented function */ -# define NS_ERROR_NOT_IMPLEMENTED ((nsresult) 0x80004001L) - -/* Returned when a given interface is not supported. */ -# define NS_NOINTERFACE ((nsresult) 0x80004002L) -# define NS_ERROR_NO_INTERFACE NS_NOINTERFACE - -# define NS_ERROR_INVALID_POINTER ((nsresult) 0x80004003L) -# define NS_ERROR_NULL_POINTER NS_ERROR_INVALID_POINTER - -/* Returned when a function aborts */ -# define NS_ERROR_ABORT ((nsresult) 0x80004004L) - -/* Returned when a function fails */ -# define NS_ERROR_FAILURE ((nsresult) 0x80004005L) - -/* Returned when an unexpected error occurs */ -# define NS_ERROR_UNEXPECTED ((nsresult) 0x8000ffffL) - -/* Returned when a memory allocation fails */ -# define NS_ERROR_OUT_OF_MEMORY ((nsresult) 0x8007000eL) - -/* Returned when an illegal value is passed */ -# define NS_ERROR_ILLEGAL_VALUE ((nsresult) 0x80070057L) -# define NS_ERROR_INVALID_ARG NS_ERROR_ILLEGAL_VALUE - -/* Returned when a class doesn't allow aggregation */ -# define NS_ERROR_NO_AGGREGATION ((nsresult) 0x80040110L) - -/* Returned when an operation can't complete due to an unavailable resourc= e */ -# define NS_ERROR_NOT_AVAILABLE ((nsresult) 0x80040111L) - -/* Returned when a class is not registered */ -# define NS_ERROR_FACTORY_NOT_REGISTERED ((nsresult) 0x80040154L) - -/* Returned when a class cannot be registered, but may be tried again late= r */ -# define NS_ERROR_FACTORY_REGISTER_AGAIN ((nsresult) 0x80040155L) - -/* Returned when a dynamically loaded factory couldn't be found */ -# define NS_ERROR_FACTORY_NOT_LOADED ((nsresult) 0x800401f8L) - -/* Returned when a factory doesn't support signatures */ -# define NS_ERROR_FACTORY_NO_SIGNATURE_SUPPORT \ - (NS_ERROR_BASE + 0x101) - -/* Returned when a factory already is registered */ -# define NS_ERROR_FACTORY_EXISTS (NS_ERROR_BASE + 0x100) - - -/** - * An "interface id" which can be used to uniquely identify a given - * interface. - * A "unique identifier". This is modeled after OSF DCE UUIDs. - */ - -struct nsID { - PRUint32 m0; - PRUint16 m1; - PRUint16 m2; - PRUint8 m3[8]; -}; - -typedef struct nsID nsID; -typedef nsID nsIID; - -struct nsISupports; /* forward declaration */ -struct nsIStackFrame; /* forward declaration */ -struct nsIException; /* forward declaration */ -typedef struct nsISupports nsISupports; /* forward declaration */ -typedef struct nsIStackFrame nsIStackFrame; /* forward declaration */ -typedef struct nsIException nsIException; /* forward declaration */ - -/** - * IID for the nsISupports interface - * {00000000-0000-0000-c000-000000000046} - * - * To maintain binary compatibility with COM's IUnknown, we define the IID - * of nsISupports to be the same as that of COM's IUnknown. - */ -# define NS_ISUPPORTS_IID \ - { 0x00000000, 0x0000, 0x0000, \ - {0xc0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46} } - -/** - * Reference count values - * - * This is the return type for AddRef() and Release() in nsISupports. - * IUnknown of COM returns an unsigned long from equivalent functions. - * The following ifdef exists to maintain binary compatibility with - * IUnknown. - */ - -/** - * Basic component object model interface. Objects which implement - * this interface support runtime interface discovery (QueryInterface) - * and a reference counted memory model (AddRef/Release). This is - * modelled after the win32 IUnknown API. - */ -struct nsISupports_vtbl { - - /** - * @name Methods - */ - - /** - * A run time mechanism for interface discovery. - * @param aIID [in] A requested interface IID - * @param aInstancePtr [out] A pointer to an interface pointer to - * receive the result. - * @return NS_OK if the interface is supported by the associa= ted - * instance, NS_NOINTERFACE if it is not. - * NS_ERROR_INVALID_POINTER if aInstancePtr is NULL. - */ - nsresult (*QueryInterface)(nsISupports *pThis, const nsID *iid, void **r= esultp); - /** - * Increases the reference count for this interface. - * The associated instance will not be deleted unless - * the reference count is returned to zero. - * - * @return The resulting reference count. - */ - nsresult (*AddRef)(nsISupports *pThis); - - /** - * Decreases the reference count for this interface. - * Generally, if the reference count returns to zero, - * the associated instance is deleted. - * - * @return The resulting reference count. - */ - nsresult (*Release)(nsISupports *pThis); - -}; - -struct nsISupports { - struct nsISupports_vtbl *vtbl; -}; - -/* starting interface: nsIException */ -# define NS_IEXCEPTION_IID_STR "f3a8d3b4-c424-4edc-8bf6-8974c983ba78" - -# define NS_IEXCEPTION_IID \ - {0xf3a8d3b4, 0xc424, 0x4edc, \ - { 0x8b, 0xf6, 0x89, 0x74, 0xc9, 0x83, 0xba, 0x78 }} - -struct nsIException_vtbl { - - /* Methods from the Class nsISupports */ - struct nsISupports_vtbl nsisupports; - - /* readonly attribute string message; */ - nsresult (*GetMessage)(nsIException *pThis, PRUnichar * *aMessage); - - /* readonly attribute nsresult (*result; */ - nsresult (*GetResult)(nsIException *pThis, nsresult *aResult); - - /* readonly attribute string name; */ - nsresult (*GetName)(nsIException *pThis, PRUnichar * *aName); - - /* readonly attribute string filename; */ - nsresult (*GetFilename)(nsIException *pThis, PRUnichar * *aFilename); - - /* readonly attribute PRUint32 lineNumber; */ - nsresult (*GetLineNumber)(nsIException *pThis, PRUint32 *aLineNumber); - - /* readonly attribute PRUint32 columnNumber; */ - nsresult (*GetColumnNumber)(nsIException *pThis, PRUint32 *aColumnNumber= ); - - /* readonly attribute nsIStackFrame location; */ - nsresult (*GetLocation)(nsIException *pThis, nsIStackFrame * *aLocation); - - /* readonly attribute nsIException inner; */ - nsresult (*GetInner)(nsIException *pThis, nsIException * *aInner); - - /* readonly attribute nsISupports data; */ - nsresult (*GetData)(nsIException *pThis, nsISupports * *aData); - - /* string toString (); */ - nsresult (*ToString)(nsIException *pThis, PRUnichar **_retval); -}; - -struct nsIException { - struct nsIException_vtbl *vtbl; -}; - -/* starting interface: nsIStackFrame */ -# define NS_ISTACKFRAME_IID_STR "91d82105-7c62-4f8b-9779-154277c0ee90" - -# define NS_ISTACKFRAME_IID \ - {0x91d82105, 0x7c62, 0x4f8b, \ - { 0x97, 0x79, 0x15, 0x42, 0x77, 0xc0, 0xee, 0x90 }} - -struct nsIStackFrame_vtbl { - - /* Methods from the Class nsISupports */ - struct nsISupports_vtbl nsisupports; - - /* readonly attribute PRUint32 language; */ - nsresult (*GetLanguage)(nsIStackFrame *pThis, PRUint32 *aLanguage); - - /* readonly attribute string languageName; */ - nsresult (*GetLanguageName)(nsIStackFrame *pThis, PRUnichar * *aLanguage= Name); - - /* readonly attribute string filename; */ - nsresult (*GetFilename)(nsIStackFrame *pThis, PRUnichar * *aFilename); - - /* readonly attribute string name; */ - nsresult (*GetName)(nsIStackFrame *pThis, PRUnichar * *aName); - - /* readonly attribute PRInt32 lineNumber; */ - nsresult (*GetLineNumber)(nsIStackFrame *pThis, PRInt32 *aLineNumber); - - /* readonly attribute string sourceLine; */ - nsresult (*GetSourceLine)(nsIStackFrame *pThis, PRUnichar * *aSourceLine= ); - - /* readonly attribute nsIStackFrame caller; */ - nsresult (*GetCaller)(nsIStackFrame *pThis, nsIStackFrame * *aCaller); - - /* string toString (); */ - nsresult (*ToString)(nsIStackFrame *pThis, PRUnichar **_retval); -}; - -struct nsIStackFrame { - struct nsIStackFrame_vtbl *vtbl; -}; - -/* starting interface: nsIEventTarget */ -# define NS_IEVENTTARGET_IID_STR "ea99ad5b-cc67-4efb-97c9-2ef620a59f2a" - -# define NS_IEVENTTARGET_IID \ - {0xea99ad5b, 0xcc67, 0x4efb, \ - { 0x97, 0xc9, 0x2e, 0xf6, 0x20, 0xa5, 0x9f, 0x2a }} - -struct nsIEventTarget; -typedef struct nsIEventTarget nsIEventTarget; - -struct nsIEventTarget_vtbl { - - struct nsISupports_vtbl nsisupports; - - nsresult (*PostEvent)(nsIEventTarget *pThis, PLEvent * aEvent); - - nsresult (*IsOnCurrentThread)(nsIEventTarget *pThis, PRBool *_retval); - -}; - -struct nsIEventTarget { - struct nsIEventTarget_vtbl *vtbl; -}; - -/* starting interface: nsIEventQueue */ -# define NS_IEVENTQUEUE_IID_STR "176afb41-00a4-11d3-9f2a-00400553eef0" - -# define NS_IEVENTQUEUE_IID \ - {0x176afb41, 0x00a4, 0x11d3, \ - { 0x9f, 0x2a, 0x00, 0x40, 0x05, 0x53, 0xee, 0xf0 }} - -struct nsIEventQueue; -typedef struct nsIEventQueue nsIEventQueue; - -struct nsIEventQueue_vtbl { - - struct nsIEventTarget_vtbl nsieventtarget; - - nsresult (*InitEvent)(nsIEventQueue *pThis, PLEvent * aEvent, void * o= wner, PLHandleEventProc handler, PLDestroyEventProc destructor); - - nsresult (*PostSynchronousEvent)(nsIEventQueue *pThis, PLEvent * aEven= t, void * *aResult); - - nsresult (*PendingEvents)(nsIEventQueue *pThis, PRBool *_retval); - - nsresult (*ProcessPendingEvents)(nsIEventQueue *pThis); - - nsresult (*EventLoop)(nsIEventQueue *pThis); - - nsresult (*EventAvailable)(nsIEventQueue *pThis, PRBool *aResult); - - nsresult (*GetEvent)(nsIEventQueue *pThis, PLEvent * *_retval); - - nsresult (*HandleEvent)(nsIEventQueue *pThis, PLEvent * aEvent); - - nsresult (*WaitForEvent)(nsIEventQueue *pThis, PLEvent * *_retval); - - PRInt32 (*GetEventQueueSelectFD)(nsIEventQueue *pThis); - - nsresult (*Init)(nsIEventQueue *pThis, PRBool aNative); - - nsresult (*InitFromPRThread)(nsIEventQueue *pThis, PRThread * thread, = PRBool aNative); - - nsresult (*InitFromPLQueue)(nsIEventQueue *pThis, PLEventQueue * aQueu= e); - - nsresult (*EnterMonitor)(nsIEventQueue *pThis); - - nsresult (*ExitMonitor)(nsIEventQueue *pThis); - - nsresult (*RevokeEvents)(nsIEventQueue *pThis, void * owner); - - nsresult (*GetPLEventQueue)(nsIEventQueue *pThis, PLEventQueue * *_ret= val); - - nsresult (*IsQueueNative)(nsIEventQueue *pThis, PRBool *_retval); - - nsresult (*StopAcceptingEvents)(nsIEventQueue *pThis); - -}; - -struct nsIEventQueue { - struct nsIEventQueue_vtbl *vtbl; -}; - - -# 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 - - -struct IVirtualBoxErrorInfo; -struct INATNetwork; -struct IDHCPServer; -struct IVirtualBox; -struct IVFSExplorer; -struct IAppliance; -struct IVirtualSystemDescription; -struct IInternalMachineControl; -struct IBIOSSettings; -struct IPCIAddress; -struct IPCIDeviceAttachment; -struct IMachine; -struct IEmulatedUSB; -struct IVRDEServerInfo; -struct IConsole; -struct IHostNetworkInterface; -struct IHostVideoInputDevice; -struct IHost; -struct ISystemProperties; -struct IGuestOSType; -struct IAdditionsFacility; -struct IGuestSession; -struct IProcess; -struct IGuestProcess; -struct IDirectory; -struct IGuestDirectory; -struct IFile; -struct IGuestFile; -struct IFsObjInfo; -struct IGuestFsObjInfo; -struct IGuest; -struct IProgress; -struct ISnapshot; -struct IMediumAttachment; -struct IMedium; -struct IMediumFormat; -struct IToken; -struct IKeyboard; -struct IMouse; -struct IFramebuffer; -struct IFramebufferOverlay; -struct IDisplay; -struct INetworkAdapter; -struct ISerialPort; -struct IParallelPort; -struct IMachineDebugger; -struct IUSBDeviceFilters; -struct IUSBController; -struct IUSBDevice; -struct IUSBDeviceFilter; -struct IHostUSBDevice; -struct IHostUSBDeviceFilter; -struct IAudioAdapter; -struct IVRDEServer; -struct ISharedFolder; -struct IInternalSessionControl; -struct ISession; -struct IStorageController; -struct IManagedObjectRef; -struct IWebsessionManager; -struct IPerformanceMetric; -struct IPerformanceCollector; -struct INATEngine; -struct IExtPackPlugIn; -struct IExtPackBase; -struct IExtPack; -struct IExtPackFile; -struct IExtPackManager; -struct IBandwidthGroup; -struct IBandwidthControl; -struct IVirtualBoxClient; -struct IEventSource; -struct IEventListener; -struct IEvent; -struct IReusableEvent; -struct IMachineEvent; -struct IMachineStateChangedEvent; -struct IMachineDataChangedEvent; -struct IMediumRegisteredEvent; -struct IMachineRegisteredEvent; -struct ISessionStateChangedEvent; -struct IGuestPropertyChangedEvent; -struct ISnapshotEvent; -struct ISnapshotTakenEvent; -struct ISnapshotDeletedEvent; -struct ISnapshotChangedEvent; -struct IMousePointerShapeChangedEvent; -struct IMouseCapabilityChangedEvent; -struct IKeyboardLedsChangedEvent; -struct IStateChangedEvent; -struct IAdditionsStateChangedEvent; -struct INetworkAdapterChangedEvent; -struct ISerialPortChangedEvent; -struct IParallelPortChangedEvent; -struct IStorageControllerChangedEvent; -struct IMediumChangedEvent; -struct IClipboardModeChangedEvent; -struct IDragAndDropModeChangedEvent; -struct ICPUChangedEvent; -struct ICPUExecutionCapChangedEvent; -struct IGuestKeyboardEvent; -struct IGuestMouseEvent; -struct IGuestMultiTouchEvent; -struct IGuestSessionEvent; -struct IGuestSessionStateChangedEvent; -struct IGuestSessionRegisteredEvent; -struct IGuestProcessEvent; -struct IGuestProcessRegisteredEvent; -struct IGuestProcessStateChangedEvent; -struct IGuestProcessIOEvent; -struct IGuestProcessInputNotifyEvent; -struct IGuestProcessOutputEvent; -struct IGuestFileEvent; -struct IGuestFileRegisteredEvent; -struct IGuestFileStateChangedEvent; -struct IGuestFileIOEvent; -struct IGuestFileOffsetChangedEvent; -struct IGuestFileReadEvent; -struct IGuestFileWriteEvent; -struct IVRDEServerChangedEvent; -struct IVRDEServerInfoChangedEvent; -struct IVideoCaptureChangedEvent; -struct IUSBControllerChangedEvent; -struct IUSBDeviceStateChangedEvent; -struct ISharedFolderChangedEvent; -struct IRuntimeErrorEvent; -struct IEventSourceChangedEvent; -struct IExtraDataChangedEvent; -struct IVetoEvent; -struct IExtraDataCanChangeEvent; -struct ICanShowWindowEvent; -struct IShowWindowEvent; -struct INATRedirectEvent; -struct IHostPCIDevicePlugEvent; -struct IVBoxSVCAvailabilityChangedEvent; -struct IBandwidthGroupChangedEvent; -struct IGuestMonitorChangedEvent; -struct IGuestUserStateChangedEvent; -struct IStorageDeviceChangedEvent; -struct INATNetworkChangedEvent; -struct INATNetworkStartStopEvent; -struct INATNetworkAlterEvent; -struct INATNetworkCreationDeletionEvent; -struct INATNetworkSettingEvent; -struct INATNetworkPortForwardEvent; -struct IHostNameResolutionConfigurationChangeEvent; - -typedef struct IVirtualBoxErrorInfo IVirtualBoxErrorInfo; -typedef struct INATNetwork INATNetwork; -typedef struct IDHCPServer IDHCPServer; -typedef struct IVirtualBox IVirtualBox; -typedef struct IVFSExplorer IVFSExplorer; -typedef struct IAppliance IAppliance; -typedef struct IVirtualSystemDescription IVirtualSystemDescription; -typedef struct IInternalMachineControl IInternalMachineControl; -typedef struct IBIOSSettings IBIOSSettings; -typedef struct IPCIAddress IPCIAddress; -typedef struct IPCIDeviceAttachment IPCIDeviceAttachment; -typedef struct IMachine IMachine; -typedef struct IEmulatedUSB IEmulatedUSB; -typedef struct IVRDEServerInfo IVRDEServerInfo; -typedef struct IConsole IConsole; -typedef struct IHostNetworkInterface IHostNetworkInterface; -typedef struct IHostVideoInputDevice IHostVideoInputDevice; -typedef struct IHost IHost; -typedef struct ISystemProperties ISystemProperties; -typedef struct IGuestOSType IGuestOSType; -typedef struct IAdditionsFacility IAdditionsFacility; -typedef struct IGuestSession IGuestSession; -typedef struct IProcess IProcess; -typedef struct IGuestProcess IGuestProcess; -typedef struct IDirectory IDirectory; -typedef struct IGuestDirectory IGuestDirectory; -typedef struct IFile IFile; -typedef struct IGuestFile IGuestFile; -typedef struct IFsObjInfo IFsObjInfo; -typedef struct IGuestFsObjInfo IGuestFsObjInfo; -typedef struct IGuest IGuest; -typedef struct IProgress IProgress; -typedef struct ISnapshot ISnapshot; -typedef struct IMediumAttachment IMediumAttachment; -typedef struct IMedium IMedium; -typedef struct IMediumFormat IMediumFormat; -typedef struct IToken IToken; -typedef struct IKeyboard IKeyboard; -typedef struct IMouse IMouse; -typedef struct IFramebuffer IFramebuffer; -typedef struct IFramebufferOverlay IFramebufferOverlay; -typedef struct IDisplay IDisplay; -typedef struct INetworkAdapter INetworkAdapter; -typedef struct ISerialPort ISerialPort; -typedef struct IParallelPort IParallelPort; -typedef struct IMachineDebugger IMachineDebugger; -typedef struct IUSBDeviceFilters IUSBDeviceFilters; -typedef struct IUSBController IUSBController; -typedef struct IUSBDevice IUSBDevice; -typedef struct IUSBDeviceFilter IUSBDeviceFilter; -typedef struct IHostUSBDevice IHostUSBDevice; -typedef struct IHostUSBDeviceFilter IHostUSBDeviceFilter; -typedef struct IAudioAdapter IAudioAdapter; -typedef struct IVRDEServer IVRDEServer; -typedef struct ISharedFolder ISharedFolder; -typedef struct IInternalSessionControl IInternalSessionControl; -typedef struct ISession ISession; -typedef struct IStorageController IStorageController; -typedef struct IManagedObjectRef IManagedObjectRef; -typedef struct IWebsessionManager IWebsessionManager; -typedef struct IPerformanceMetric IPerformanceMetric; -typedef struct IPerformanceCollector IPerformanceCollector; -typedef struct INATEngine INATEngine; -typedef struct IExtPackPlugIn IExtPackPlugIn; -typedef struct IExtPackBase IExtPackBase; -typedef struct IExtPack IExtPack; -typedef struct IExtPackFile IExtPackFile; -typedef struct IExtPackManager IExtPackManager; -typedef struct IBandwidthGroup IBandwidthGroup; -typedef struct IBandwidthControl IBandwidthControl; -typedef struct IVirtualBoxClient IVirtualBoxClient; -typedef struct IEventSource IEventSource; -typedef struct IEventListener IEventListener; -typedef struct IEvent IEvent; -typedef struct IReusableEvent IReusableEvent; -typedef struct IMachineEvent IMachineEvent; -typedef struct IMachineStateChangedEvent IMachineStateChangedEvent; -typedef struct IMachineDataChangedEvent IMachineDataChangedEvent; -typedef struct IMediumRegisteredEvent IMediumRegisteredEvent; -typedef struct IMachineRegisteredEvent IMachineRegisteredEvent; -typedef struct ISessionStateChangedEvent ISessionStateChangedEvent; -typedef struct IGuestPropertyChangedEvent IGuestPropertyChangedEvent; -typedef struct ISnapshotEvent ISnapshotEvent; -typedef struct ISnapshotTakenEvent ISnapshotTakenEvent; -typedef struct ISnapshotDeletedEvent ISnapshotDeletedEvent; -typedef struct ISnapshotChangedEvent ISnapshotChangedEvent; -typedef struct IMousePointerShapeChangedEvent IMousePointerShapeChangedEve= nt; -typedef struct IMouseCapabilityChangedEvent IMouseCapabilityChangedEvent; -typedef struct IKeyboardLedsChangedEvent IKeyboardLedsChangedEvent; -typedef struct IStateChangedEvent IStateChangedEvent; -typedef struct IAdditionsStateChangedEvent IAdditionsStateChangedEvent; -typedef struct INetworkAdapterChangedEvent INetworkAdapterChangedEvent; -typedef struct ISerialPortChangedEvent ISerialPortChangedEvent; -typedef struct IParallelPortChangedEvent IParallelPortChangedEvent; -typedef struct IStorageControllerChangedEvent IStorageControllerChangedEve= nt; -typedef struct IMediumChangedEvent IMediumChangedEvent; -typedef struct IClipboardModeChangedEvent IClipboardModeChangedEvent; -typedef struct IDragAndDropModeChangedEvent IDragAndDropModeChangedEvent; -typedef struct ICPUChangedEvent ICPUChangedEvent; -typedef struct ICPUExecutionCapChangedEvent ICPUExecutionCapChangedEvent; -typedef struct IGuestKeyboardEvent IGuestKeyboardEvent; -typedef struct IGuestMouseEvent IGuestMouseEvent; -typedef struct IGuestMultiTouchEvent IGuestMultiTouchEvent; -typedef struct IGuestSessionEvent IGuestSessionEvent; -typedef struct IGuestSessionStateChangedEvent IGuestSessionStateChangedEve= nt; -typedef struct IGuestSessionRegisteredEvent IGuestSessionRegisteredEvent; -typedef struct IGuestProcessEvent IGuestProcessEvent; -typedef struct IGuestProcessRegisteredEvent IGuestProcessRegisteredEvent; -typedef struct IGuestProcessStateChangedEvent IGuestProcessStateChangedEve= nt; -typedef struct IGuestProcessIOEvent IGuestProcessIOEvent; -typedef struct IGuestProcessInputNotifyEvent IGuestProcessInputNotifyEvent; -typedef struct IGuestProcessOutputEvent IGuestProcessOutputEvent; -typedef struct IGuestFileEvent IGuestFileEvent; -typedef struct IGuestFileRegisteredEvent IGuestFileRegisteredEvent; -typedef struct IGuestFileStateChangedEvent IGuestFileStateChangedEvent; -typedef struct IGuestFileIOEvent IGuestFileIOEvent; -typedef struct IGuestFileOffsetChangedEvent IGuestFileOffsetChangedEvent; -typedef struct IGuestFileReadEvent IGuestFileReadEvent; -typedef struct IGuestFileWriteEvent IGuestFileWriteEvent; -typedef struct IVRDEServerChangedEvent IVRDEServerChangedEvent; -typedef struct IVRDEServerInfoChangedEvent IVRDEServerInfoChangedEvent; -typedef struct IVideoCaptureChangedEvent IVideoCaptureChangedEvent; -typedef struct IUSBControllerChangedEvent IUSBControllerChangedEvent; -typedef struct IUSBDeviceStateChangedEvent IUSBDeviceStateChangedEvent; -typedef struct ISharedFolderChangedEvent ISharedFolderChangedEvent; -typedef struct IRuntimeErrorEvent IRuntimeErrorEvent; -typedef struct IEventSourceChangedEvent IEventSourceChangedEvent; -typedef struct IExtraDataChangedEvent IExtraDataChangedEvent; -typedef struct IVetoEvent IVetoEvent; -typedef struct IExtraDataCanChangeEvent IExtraDataCanChangeEvent; -typedef struct ICanShowWindowEvent ICanShowWindowEvent; -typedef struct IShowWindowEvent IShowWindowEvent; -typedef struct INATRedirectEvent INATRedirectEvent; -typedef struct IHostPCIDevicePlugEvent IHostPCIDevicePlugEvent; -typedef struct IVBoxSVCAvailabilityChangedEvent IVBoxSVCAvailabilityChange= dEvent; -typedef struct IBandwidthGroupChangedEvent IBandwidthGroupChangedEvent; -typedef struct IGuestMonitorChangedEvent IGuestMonitorChangedEvent; -typedef struct IGuestUserStateChangedEvent IGuestUserStateChangedEvent; -typedef struct IStorageDeviceChangedEvent IStorageDeviceChangedEvent; -typedef struct INATNetworkChangedEvent INATNetworkChangedEvent; -typedef struct INATNetworkStartStopEvent INATNetworkStartStopEvent; -typedef struct INATNetworkAlterEvent INATNetworkAlterEvent; -typedef struct INATNetworkCreationDeletionEvent INATNetworkCreationDeletio= nEvent; -typedef struct INATNetworkSettingEvent INATNetworkSettingEvent; -typedef struct INATNetworkPortForwardEvent INATNetworkPortForwardEvent; -typedef struct IHostNameResolutionConfigurationChangeEvent IHostNameResolu= tionConfigurationChangeEvent; - -/* Start of enum SettingsVersion Declaration */ -# define SETTINGSVERSION_IID_STR "d5b15ca7-3de7-46b2-a63a-ddcce42bfa3f" -# define SETTINGSVERSION_IID { \ - 0xd5b15ca7, 0x3de7, 0x46b2, \ - { 0xa6, 0x3a, 0xdd, 0xcc, 0xe4, 0x2b, 0xfa, 0x3f } \ -} -enum SettingsVersion -{ - SettingsVersion_Null =3D 0, - SettingsVersion_v1_0 =3D 1, - SettingsVersion_v1_1 =3D 2, - SettingsVersion_v1_2 =3D 3, - SettingsVersion_v1_3pre =3D 4, - SettingsVersion_v1_3 =3D 5, - SettingsVersion_v1_4 =3D 6, - SettingsVersion_v1_5 =3D 7, - SettingsVersion_v1_6 =3D 8, - SettingsVersion_v1_7 =3D 9, - SettingsVersion_v1_8 =3D 10, - SettingsVersion_v1_9 =3D 11, - SettingsVersion_v1_10 =3D 12, - SettingsVersion_v1_11 =3D 13, - SettingsVersion_v1_12 =3D 14, - SettingsVersion_v1_13 =3D 15, - SettingsVersion_v1_14 =3D 16, - SettingsVersion_Future =3D 99999 -}; -/* End of enum SettingsVersion Declaration */ - - -/* Start of enum AccessMode Declaration */ -# define ACCESSMODE_IID_STR "1da0007c-ddf7-4be8-bcac-d84a1558785f" -# define ACCESSMODE_IID { \ - 0x1da0007c, 0xddf7, 0x4be8, \ - { 0xbc, 0xac, 0xd8, 0x4a, 0x15, 0x58, 0x78, 0x5f } \ -} -enum AccessMode -{ - AccessMode_ReadOnly =3D 1, - AccessMode_ReadWrite =3D 2 -}; -/* End of enum AccessMode Declaration */ - - -/* Start of enum MachineState Declaration */ -# define MACHINESTATE_IID_STR "ec6c6a9e-113d-4ff4-b44f-0b69f21c97fe" -# define MACHINESTATE_IID { \ - 0xec6c6a9e, 0x113d, 0x4ff4, \ - { 0xb4, 0x4f, 0x0b, 0x69, 0xf2, 0x1c, 0x97, 0xfe } \ -} -enum MachineState -{ - MachineState_Null =3D 0, - MachineState_PoweredOff =3D 1, - MachineState_Saved =3D 2, - MachineState_Teleported =3D 3, - MachineState_Aborted =3D 4, - MachineState_Running =3D 5, - MachineState_Paused =3D 6, - MachineState_Stuck =3D 7, - MachineState_Teleporting =3D 8, - MachineState_LiveSnapshotting =3D 9, - MachineState_Starting =3D 10, - MachineState_Stopping =3D 11, - MachineState_Saving =3D 12, - MachineState_Restoring =3D 13, - MachineState_TeleportingPausedVM =3D 14, - MachineState_TeleportingIn =3D 15, - MachineState_FaultTolerantSyncing =3D 16, - MachineState_DeletingSnapshotOnline =3D 17, - MachineState_DeletingSnapshotPaused =3D 18, - MachineState_RestoringSnapshot =3D 19, - MachineState_DeletingSnapshot =3D 20, - MachineState_SettingUp =3D 21, - MachineState_FirstOnline =3D 5, - MachineState_LastOnline =3D 18, - MachineState_FirstTransient =3D 8, - MachineState_LastTransient =3D 21 -}; -/* End of enum MachineState Declaration */ - - -/* Start of enum SessionState Declaration */ -# define SESSIONSTATE_IID_STR "cf2700c0-ea4b-47ae-9725-7810114b94d8" -# define SESSIONSTATE_IID { \ - 0xcf2700c0, 0xea4b, 0x47ae, \ - { 0x97, 0x25, 0x78, 0x10, 0x11, 0x4b, 0x94, 0xd8 } \ -} -enum SessionState -{ - SessionState_Null =3D 0, - SessionState_Unlocked =3D 1, - SessionState_Locked =3D 2, - SessionState_Spawning =3D 3, - SessionState_Unlocking =3D 4 -}; -/* End of enum SessionState Declaration */ - - -/* Start of enum CPUPropertyType Declaration */ -# define CPUPROPERTYTYPE_IID_STR "52bc41f4-a279-45da-88ab-3a1d86fb73eb" -# define CPUPROPERTYTYPE_IID { \ - 0x52bc41f4, 0xa279, 0x45da, \ - { 0x88, 0xab, 0x3a, 0x1d, 0x86, 0xfb, 0x73, 0xeb } \ -} -enum CPUPropertyType -{ - CPUPropertyType_Null =3D 0, - CPUPropertyType_PAE =3D 1, - CPUPropertyType_Synthetic =3D 2, - CPUPropertyType_LongMode =3D 3, - CPUPropertyType_TripleFaultReset =3D 4 -}; -/* End of enum CPUPropertyType Declaration */ - - -/* Start of enum HWVirtExPropertyType Declaration */ -# define HWVIRTEXPROPERTYTYPE_IID_STR "411ad0ea-aeeb-44cb-9d03-1624d0d025= ac" -# define HWVIRTEXPROPERTYTYPE_IID { \ - 0x411ad0ea, 0xaeeb, 0x44cb, \ - { 0x9d, 0x03, 0x16, 0x24, 0xd0, 0xd0, 0x25, 0xac } \ -} -enum HWVirtExPropertyType -{ - HWVirtExPropertyType_Null =3D 0, - HWVirtExPropertyType_Enabled =3D 1, - HWVirtExPropertyType_VPID =3D 2, - HWVirtExPropertyType_NestedPaging =3D 3, - HWVirtExPropertyType_UnrestrictedExecution =3D 4, - HWVirtExPropertyType_LargePages =3D 5, - HWVirtExPropertyType_Force =3D 6 -}; -/* End of enum HWVirtExPropertyType Declaration */ - - -/* Start of enum FaultToleranceState Declaration */ -# define FAULTTOLERANCESTATE_IID_STR "5124f7ec-6b67-493c-9dee-ee45a44114e= 1" -# define FAULTTOLERANCESTATE_IID { \ - 0x5124f7ec, 0x6b67, 0x493c, \ - { 0x9d, 0xee, 0xee, 0x45, 0xa4, 0x41, 0x14, 0xe1 } \ -} -enum FaultToleranceState -{ - FaultToleranceState_Inactive =3D 1, - FaultToleranceState_Master =3D 2, - FaultToleranceState_Standby =3D 3 -}; -/* End of enum FaultToleranceState Declaration */ - - -/* Start of enum LockType Declaration */ -# define LOCKTYPE_IID_STR "168a6a8e-12fd-4878-a1f9-38a750a56089" -# define LOCKTYPE_IID { \ - 0x168a6a8e, 0x12fd, 0x4878, \ - { 0xa1, 0xf9, 0x38, 0xa7, 0x50, 0xa5, 0x60, 0x89 } \ -} -enum LockType -{ - LockType_Write =3D 2, - LockType_Shared =3D 1, - LockType_VM =3D 3 -}; -/* End of enum LockType Declaration */ - - -/* Start of enum SessionType Declaration */ -# define SESSIONTYPE_IID_STR "A13C02CB-0C2C-421E-8317-AC0E8AAA153A" -# define SESSIONTYPE_IID { \ - 0xA13C02CB, 0x0C2C, 0x421E, \ - { 0x83, 0x17, 0xAC, 0x0E, 0x8A, 0xAA, 0x15, 0x3A } \ -} -enum SessionType -{ - SessionType_Null =3D 0, - SessionType_WriteLock =3D 1, - SessionType_Remote =3D 2, - SessionType_Shared =3D 3 -}; -/* End of enum SessionType Declaration */ - - -/* Start of enum DeviceType Declaration */ -# define DEVICETYPE_IID_STR "6d9420f7-0b56-4636-99f9-7346f1b01e57" -# define DEVICETYPE_IID { \ - 0x6d9420f7, 0x0b56, 0x4636, \ - { 0x99, 0xf9, 0x73, 0x46, 0xf1, 0xb0, 0x1e, 0x57 } \ -} -enum DeviceType -{ - DeviceType_Null =3D 0, - DeviceType_Floppy =3D 1, - DeviceType_DVD =3D 2, - DeviceType_HardDisk =3D 3, - DeviceType_Network =3D 4, - DeviceType_USB =3D 5, - DeviceType_SharedFolder =3D 6 -}; -/* End of enum DeviceType Declaration */ - - -/* Start of enum DeviceActivity Declaration */ -# define DEVICEACTIVITY_IID_STR "6FC8AEAA-130A-4eb5-8954-3F921422D707" -# define DEVICEACTIVITY_IID { \ - 0x6FC8AEAA, 0x130A, 0x4eb5, \ - { 0x89, 0x54, 0x3F, 0x92, 0x14, 0x22, 0xD7, 0x07 } \ -} -enum DeviceActivity -{ - DeviceActivity_Null =3D 0, - DeviceActivity_Idle =3D 1, - DeviceActivity_Reading =3D 2, - DeviceActivity_Writing =3D 3 -}; -/* End of enum DeviceActivity Declaration */ - - -/* Start of enum ClipboardMode Declaration */ -# define CLIPBOARDMODE_IID_STR "33364716-4008-4701-8f14-be0fa3d62950" -# define CLIPBOARDMODE_IID { \ - 0x33364716, 0x4008, 0x4701, \ - { 0x8f, 0x14, 0xbe, 0x0f, 0xa3, 0xd6, 0x29, 0x50 } \ -} -enum ClipboardMode -{ - ClipboardMode_Disabled =3D 0, - ClipboardMode_HostToGuest =3D 1, - ClipboardMode_GuestToHost =3D 2, - ClipboardMode_Bidirectional =3D 3 -}; -/* End of enum ClipboardMode Declaration */ - - -/* Start of enum DragAndDropMode Declaration */ -# define DRAGANDDROPMODE_IID_STR "b618ea0e-b6fb-4f8d-97f7-5e237e49b547" -# define DRAGANDDROPMODE_IID { \ - 0xb618ea0e, 0xb6fb, 0x4f8d, \ - { 0x97, 0xf7, 0x5e, 0x23, 0x7e, 0x49, 0xb5, 0x47 } \ -} -enum DragAndDropMode -{ - DragAndDropMode_Disabled =3D 0, - DragAndDropMode_HostToGuest =3D 1, - DragAndDropMode_GuestToHost =3D 2, - DragAndDropMode_Bidirectional =3D 3 -}; -/* End of enum DragAndDropMode Declaration */ - - -/* Start of enum Scope Declaration */ -# define SCOPE_IID_STR "7c91096e-499e-4eca-9f9b-9001438d7855" -# define SCOPE_IID { \ - 0x7c91096e, 0x499e, 0x4eca, \ - { 0x9f, 0x9b, 0x90, 0x01, 0x43, 0x8d, 0x78, 0x55 } \ -} -enum Scope -{ - Scope_Global =3D 0, - Scope_Machine =3D 1, - Scope_Session =3D 2 -}; -/* End of enum Scope Declaration */ - - -/* Start of enum BIOSBootMenuMode Declaration */ -# define BIOSBOOTMENUMODE_IID_STR "ae4fb9f7-29d2-45b4-b2c7-d579603135d5" -# define BIOSBOOTMENUMODE_IID { \ - 0xae4fb9f7, 0x29d2, 0x45b4, \ - { 0xb2, 0xc7, 0xd5, 0x79, 0x60, 0x31, 0x35, 0xd5 } \ -} -enum BIOSBootMenuMode -{ - BIOSBootMenuMode_Disabled =3D 0, - BIOSBootMenuMode_MenuOnly =3D 1, - BIOSBootMenuMode_MessageAndMenu =3D 2 -}; -/* End of enum BIOSBootMenuMode Declaration */ - - -/* Start of enum ProcessorFeature Declaration */ -# define PROCESSORFEATURE_IID_STR "64c38e6b-8bcf-45ad-ac03-9b406287c5bf" -# define PROCESSORFEATURE_IID { \ - 0x64c38e6b, 0x8bcf, 0x45ad, \ - { 0xac, 0x03, 0x9b, 0x40, 0x62, 0x87, 0xc5, 0xbf } \ -} -enum ProcessorFeature -{ - ProcessorFeature_HWVirtEx =3D 0, - ProcessorFeature_PAE =3D 1, - ProcessorFeature_LongMode =3D 2, - ProcessorFeature_NestedPaging =3D 3 -}; -/* End of enum ProcessorFeature Declaration */ - - -/* Start of enum FirmwareType Declaration */ -# define FIRMWARETYPE_IID_STR "b903f264-c230-483e-ac74-2b37ce60d371" -# define FIRMWARETYPE_IID { \ - 0xb903f264, 0xc230, 0x483e, \ - { 0xac, 0x74, 0x2b, 0x37, 0xce, 0x60, 0xd3, 0x71 } \ -} -enum FirmwareType -{ - FirmwareType_BIOS =3D 1, - FirmwareType_EFI =3D 2, - FirmwareType_EFI32 =3D 3, - FirmwareType_EFI64 =3D 4, - FirmwareType_EFIDUAL =3D 5 -}; -/* End of enum FirmwareType Declaration */ - - -/* Start of enum PointingHIDType Declaration */ -# define POINTINGHIDTYPE_IID_STR "19964e93-0050-45c4-9382-a7bccc53e666" -# define POINTINGHIDTYPE_IID { \ - 0x19964e93, 0x0050, 0x45c4, \ - { 0x93, 0x82, 0xa7, 0xbc, 0xcc, 0x53, 0xe6, 0x66 } \ -} -enum PointingHIDType -{ - PointingHIDType_None =3D 1, - PointingHIDType_PS2Mouse =3D 2, - PointingHIDType_USBMouse =3D 3, - PointingHIDType_USBTablet =3D 4, - PointingHIDType_ComboMouse =3D 5, - PointingHIDType_USBMultiTouch =3D 6 -}; -/* End of enum PointingHIDType Declaration */ - - -/* Start of enum KeyboardHIDType Declaration */ -# define KEYBOARDHIDTYPE_IID_STR "383e43d7-5c7c-4ec8-9cb8-eda1bccd6699" -# define KEYBOARDHIDTYPE_IID { \ - 0x383e43d7, 0x5c7c, 0x4ec8, \ - { 0x9c, 0xb8, 0xed, 0xa1, 0xbc, 0xcd, 0x66, 0x99 } \ -} -enum KeyboardHIDType -{ - KeyboardHIDType_None =3D 1, - KeyboardHIDType_PS2Keyboard =3D 2, - KeyboardHIDType_USBKeyboard =3D 3, - KeyboardHIDType_ComboKeyboard =3D 4 -}; -/* End of enum KeyboardHIDType Declaration */ - - -/* Start of enum DhcpOpt Declaration */ -# define DHCPOPT_IID_STR "40d99bd3-3ece-44d2-a07e-1085fe9c4f0b" -# define DHCPOPT_IID { \ - 0x40d99bd3, 0x3ece, 0x44d2, \ - { 0xa0, 0x7e, 0x10, 0x85, 0xfe, 0x9c, 0x4f, 0x0b } \ -} -enum DhcpOpt -{ - DhcpOpt_SubnetMask =3D 1, - DhcpOpt_TimeOffset =3D 2, - DhcpOpt_Router =3D 3, - DhcpOpt_TimeServer =3D 4, - DhcpOpt_NameServer =3D 5, - DhcpOpt_DomainNameServer =3D 6, - DhcpOpt_LogServer =3D 7, - DhcpOpt_Cookie =3D 8, - DhcpOpt_LPRServer =3D 9, - DhcpOpt_ImpressServer =3D 10, - DhcpOpt_ResourseLocationServer =3D 11, - DhcpOpt_HostName =3D 12, - DhcpOpt_BootFileSize =3D 13, - DhcpOpt_MeritDumpFile =3D 14, - DhcpOpt_DomainName =3D 15, - DhcpOpt_SwapServer =3D 16, - DhcpOpt_RootPath =3D 17, - DhcpOpt_ExtensionPath =3D 18, - DhcpOpt_IPForwardingEnableDisable =3D 19, - DhcpOpt_NonLocalSourceRoutingEnableDisable =3D 20, - DhcpOpt_PolicyFilter =3D 21, - DhcpOpt_MaximumDatagramReassemblySize =3D 22, - DhcpOpt_DefaultIPTime2Live =3D 23, - DhcpOpt_PathMTUAgingTimeout =3D 24, - DhcpOpt_IPLayerParametersPerInterface =3D 25, - DhcpOpt_InterfaceMTU =3D 26, - DhcpOpt_AllSubnetsAreLocal =3D 27, - DhcpOpt_BroadcastAddress =3D 28, - DhcpOpt_PerformMaskDiscovery =3D 29, - DhcpOpt_MaskSupplier =3D 30, - DhcpOpt_PerformRouteDiscovery =3D 31, - DhcpOpt_RouterSolicitationAddress =3D 32, - DhcpOpt_StaticRoute =3D 33, - DhcpOpt_TrailerEncapsulation =3D 34, - DhcpOpt_ARPCacheTimeout =3D 35, - DhcpOpt_EthernetEncapsulation =3D 36, - DhcpOpt_TCPDefaultTTL =3D 37, - DhcpOpt_TCPKeepAliveInterval =3D 38, - DhcpOpt_TCPKeepAliveGarbage =3D 39, - DhcpOpt_NetworkInformationServiceDomain =3D 40, - DhcpOpt_NetworkInformationServiceServers =3D 41, - DhcpOpt_NetworkTimeProtocolServers =3D 42, - DhcpOpt_VendorSpecificInformation =3D 43, - DhcpOpt_Option_44 =3D 44, - DhcpOpt_Option_45 =3D 45, - DhcpOpt_Option_46 =3D 46, - DhcpOpt_Option_47 =3D 47, - DhcpOpt_Option_48 =3D 48, - DhcpOpt_Option_49 =3D 49, - DhcpOpt_IPAddressLeaseTime =3D 51, - DhcpOpt_Option_64 =3D 64, - DhcpOpt_Option_65 =3D 65, - DhcpOpt_TFTPServerName =3D 66, - DhcpOpt_BootfileName =3D 67, - DhcpOpt_Option_68 =3D 68, - DhcpOpt_Option_69 =3D 69, - DhcpOpt_Option_70 =3D 70, - DhcpOpt_Option_71 =3D 71, - DhcpOpt_Option_72 =3D 72, - DhcpOpt_Option_73 =3D 73, - DhcpOpt_Option_74 =3D 74, - DhcpOpt_Option_75 =3D 75, - DhcpOpt_Option_119 =3D 119 -}; -/* End of enum DhcpOpt Declaration */ - - -/* Start of enum VFSType Declaration */ -# define VFSTYPE_IID_STR "813999ba-b949-48a8-9230-aadc6285e2f2" -# define VFSTYPE_IID { \ - 0x813999ba, 0xb949, 0x48a8, \ - { 0x92, 0x30, 0xaa, 0xdc, 0x62, 0x85, 0xe2, 0xf2 } \ -} -enum VFSType -{ - VFSType_File =3D 1, - VFSType_Cloud =3D 2, - VFSType_S3 =3D 3, - VFSType_WebDav =3D 4 -}; -/* End of enum VFSType Declaration */ - - -/* Start of enum VFSFileType Declaration */ -# define VFSFILETYPE_IID_STR "714333cd-44e2-415f-a245-d378fa9b1242" -# define VFSFILETYPE_IID { \ - 0x714333cd, 0x44e2, 0x415f, \ - { 0xa2, 0x45, 0xd3, 0x78, 0xfa, 0x9b, 0x12, 0x42 } \ -} -enum VFSFileType -{ - VFSFileType_Unknown =3D 1, - VFSFileType_Fifo =3D 2, - VFSFileType_DevChar =3D 3, - VFSFileType_Directory =3D 4, - VFSFileType_DevBlock =3D 5, - VFSFileType_File =3D 6, - VFSFileType_SymLink =3D 7, - VFSFileType_Socket =3D 8, - VFSFileType_WhiteOut =3D 9 -}; -/* End of enum VFSFileType Declaration */ - - -/* Start of enum ImportOptions Declaration */ -# define IMPORTOPTIONS_IID_STR "0a981523-3b20-4004-8ee3-dfd322202ace" -# define IMPORTOPTIONS_IID { \ - 0x0a981523, 0x3b20, 0x4004, \ - { 0x8e, 0xe3, 0xdf, 0xd3, 0x22, 0x20, 0x2a, 0xce } \ -} -enum ImportOptions -{ - ImportOptions_KeepAllMACs =3D 1, - ImportOptions_KeepNATMACs =3D 2 -}; -/* End of enum ImportOptions Declaration */ - - -/* Start of enum ExportOptions Declaration */ -# define EXPORTOPTIONS_IID_STR "8f45eb08-fd34-41ee-af95-a880bdee5554" -# define EXPORTOPTIONS_IID { \ - 0x8f45eb08, 0xfd34, 0x41ee, \ - { 0xaf, 0x95, 0xa8, 0x80, 0xbd, 0xee, 0x55, 0x54 } \ -} -enum ExportOptions -{ - ExportOptions_CreateManifest =3D 1, - ExportOptions_ExportDVDImages =3D 2 -}; -/* End of enum ExportOptions Declaration */ - - -/* Start of enum VirtualSystemDescriptionType Declaration */ -# define VIRTUALSYSTEMDESCRIPTIONTYPE_IID_STR "303c0900-a746-4612-8c67-79= 003e91f459" -# define VIRTUALSYSTEMDESCRIPTIONTYPE_IID { \ - 0x303c0900, 0xa746, 0x4612, \ - { 0x8c, 0x67, 0x79, 0x00, 0x3e, 0x91, 0xf4, 0x59 } \ -} -enum VirtualSystemDescriptionType -{ - VirtualSystemDescriptionType_Ignore =3D 1, - VirtualSystemDescriptionType_OS =3D 2, - VirtualSystemDescriptionType_Name =3D 3, - VirtualSystemDescriptionType_Product =3D 4, - VirtualSystemDescriptionType_Vendor =3D 5, - VirtualSystemDescriptionType_Version =3D 6, - VirtualSystemDescriptionType_ProductUrl =3D 7, - VirtualSystemDescriptionType_VendorUrl =3D 8, - VirtualSystemDescriptionType_Description =3D 9, - VirtualSystemDescriptionType_License =3D 10, - VirtualSystemDescriptionType_Miscellaneous =3D 11, - VirtualSystemDescriptionType_CPU =3D 12, - VirtualSystemDescriptionType_Memory =3D 13, - VirtualSystemDescriptionType_HardDiskControllerIDE =3D 14, - VirtualSystemDescriptionType_HardDiskControllerSATA =3D 15, - VirtualSystemDescriptionType_HardDiskControllerSCSI =3D 16, - VirtualSystemDescriptionType_HardDiskControllerSAS =3D 17, - VirtualSystemDescriptionType_HardDiskImage =3D 18, - VirtualSystemDescriptionType_Floppy =3D 19, - VirtualSystemDescriptionType_CDROM =3D 20, - VirtualSystemDescriptionType_NetworkAdapter =3D 21, - VirtualSystemDescriptionType_USBController =3D 22, - VirtualSystemDescriptionType_SoundCard =3D 23, - VirtualSystemDescriptionType_SettingsFile =3D 24 -}; -/* End of enum VirtualSystemDescriptionType Declaration */ - - -/* Start of enum VirtualSystemDescriptionValueType Declaration */ -# define VIRTUALSYSTEMDESCRIPTIONVALUETYPE_IID_STR "56d9403f-3425-4118-99= 19-36f2a9b8c77c" -# define VIRTUALSYSTEMDESCRIPTIONVALUETYPE_IID { \ - 0x56d9403f, 0x3425, 0x4118, \ - { 0x99, 0x19, 0x36, 0xf2, 0xa9, 0xb8, 0xc7, 0x7c } \ -} -enum VirtualSystemDescriptionValueType -{ - VirtualSystemDescriptionValueType_Reference =3D 1, - VirtualSystemDescriptionValueType_Original =3D 2, - VirtualSystemDescriptionValueType_Auto =3D 3, - VirtualSystemDescriptionValueType_ExtraConfig =3D 4 -}; -/* End of enum VirtualSystemDescriptionValueType Declaration */ - - -/* Start of enum GraphicsControllerType Declaration */ -# define GRAPHICSCONTROLLERTYPE_IID_STR "79c96ca0-9f39-4900-948e-68c41cbe= 127a" -# define GRAPHICSCONTROLLERTYPE_IID { \ - 0x79c96ca0, 0x9f39, 0x4900, \ - { 0x94, 0x8e, 0x68, 0xc4, 0x1c, 0xbe, 0x12, 0x7a } \ -} -enum GraphicsControllerType -{ - GraphicsControllerType_Null =3D 0, - GraphicsControllerType_VBoxVGA =3D 1 -}; -/* End of enum GraphicsControllerType Declaration */ - - -/* Start of enum CleanupMode Declaration */ -# define CLEANUPMODE_IID_STR "67897c50-7cca-47a9-83f6-ce8fd8eb5441" -# define CLEANUPMODE_IID { \ - 0x67897c50, 0x7cca, 0x47a9, \ - { 0x83, 0xf6, 0xce, 0x8f, 0xd8, 0xeb, 0x54, 0x41 } \ -} -enum CleanupMode -{ - CleanupMode_UnregisterOnly =3D 1, - CleanupMode_DetachAllReturnNone =3D 2, - CleanupMode_DetachAllReturnHardDisksOnly =3D 3, - CleanupMode_Full =3D 4 -}; -/* End of enum CleanupMode Declaration */ - - -/* Start of enum CloneMode Declaration */ -# define CLONEMODE_IID_STR "A7A159FE-5096-4B8D-8C3C-D033CB0B35A8" -# define CLONEMODE_IID { \ - 0xA7A159FE, 0x5096, 0x4B8D, \ - { 0x8C, 0x3C, 0xD0, 0x33, 0xCB, 0x0B, 0x35, 0xA8 } \ -} -enum CloneMode -{ - CloneMode_MachineState =3D 1, - CloneMode_MachineAndChildStates =3D 2, - CloneMode_AllStates =3D 3 -}; -/* End of enum CloneMode Declaration */ - - -/* Start of enum CloneOptions Declaration */ -# define CLONEOPTIONS_IID_STR "22243f8e-96ab-497c-8cf0-f40a566c630b" -# define CLONEOPTIONS_IID { \ - 0x22243f8e, 0x96ab, 0x497c, \ - { 0x8c, 0xf0, 0xf4, 0x0a, 0x56, 0x6c, 0x63, 0x0b } \ -} -enum CloneOptions -{ - CloneOptions_Link =3D 1, - CloneOptions_KeepAllMACs =3D 2, - CloneOptions_KeepNATMACs =3D 3, - CloneOptions_KeepDiskNames =3D 4 -}; -/* End of enum CloneOptions Declaration */ - - -/* Start of enum AutostopType Declaration */ -# define AUTOSTOPTYPE_IID_STR "6bb96740-cf34-470d-aab2-2cd48ea2e10e" -# define AUTOSTOPTYPE_IID { \ - 0x6bb96740, 0xcf34, 0x470d, \ - { 0xaa, 0xb2, 0x2c, 0xd4, 0x8e, 0xa2, 0xe1, 0x0e } \ -} -enum AutostopType -{ - AutostopType_Disabled =3D 1, - AutostopType_SaveState =3D 2, - AutostopType_PowerOff =3D 3, - AutostopType_AcpiShutdown =3D 4 -}; -/* End of enum AutostopType Declaration */ - - -/* Start of enum HostNetworkInterfaceMediumType Declaration */ -# define HOSTNETWORKINTERFACEMEDIUMTYPE_IID_STR "1aa54aaf-2497-45a2-bfb1-= 8eb225e93d5b" -# define HOSTNETWORKINTERFACEMEDIUMTYPE_IID { \ - 0x1aa54aaf, 0x2497, 0x45a2, \ - { 0xbf, 0xb1, 0x8e, 0xb2, 0x25, 0xe9, 0x3d, 0x5b } \ -} -enum HostNetworkInterfaceMediumType -{ - HostNetworkInterfaceMediumType_Unknown =3D 0, - HostNetworkInterfaceMediumType_Ethernet =3D 1, - HostNetworkInterfaceMediumType_PPP =3D 2, - HostNetworkInterfaceMediumType_SLIP =3D 3 -}; -/* End of enum HostNetworkInterfaceMediumType Declaration */ - - -/* Start of enum HostNetworkInterfaceStatus Declaration */ -# define HOSTNETWORKINTERFACESTATUS_IID_STR "CC474A69-2710-434B-8D99-C38E= 5D5A6F41" -# define HOSTNETWORKINTERFACESTATUS_IID { \ - 0xCC474A69, 0x2710, 0x434B, \ - { 0x8D, 0x99, 0xC3, 0x8E, 0x5D, 0x5A, 0x6F, 0x41 } \ -} -enum HostNetworkInterfaceStatus -{ - HostNetworkInterfaceStatus_Unknown =3D 0, - HostNetworkInterfaceStatus_Up =3D 1, - HostNetworkInterfaceStatus_Down =3D 2 -}; -/* End of enum HostNetworkInterfaceStatus Declaration */ - - -/* Start of enum HostNetworkInterfaceType Declaration */ -# define HOSTNETWORKINTERFACETYPE_IID_STR "67431b00-9946-48a2-bc02-b25c59= 19f4f3" -# define HOSTNETWORKINTERFACETYPE_IID { \ - 0x67431b00, 0x9946, 0x48a2, \ - { 0xbc, 0x02, 0xb2, 0x5c, 0x59, 0x19, 0xf4, 0xf3 } \ -} -enum HostNetworkInterfaceType -{ - HostNetworkInterfaceType_Bridged =3D 1, - HostNetworkInterfaceType_HostOnly =3D 2 -}; -/* End of enum HostNetworkInterfaceType Declaration */ - - -/* Start of enum AdditionsFacilityType Declaration */ -# define ADDITIONSFACILITYTYPE_IID_STR "98f7f957-89fb-49b6-a3b1-31e3285eb= 1d8" -# define ADDITIONSFACILITYTYPE_IID { \ - 0x98f7f957, 0x89fb, 0x49b6, \ - { 0xa3, 0xb1, 0x31, 0xe3, 0x28, 0x5e, 0xb1, 0xd8 } \ -} -enum AdditionsFacilityType -{ - AdditionsFacilityType_None =3D 0, - AdditionsFacilityType_VBoxGuestDriver =3D 20, - AdditionsFacilityType_AutoLogon =3D 90, - AdditionsFacilityType_VBoxService =3D 100, - AdditionsFacilityType_VBoxTrayClient =3D 101, - AdditionsFacilityType_Seamless =3D 1000, - AdditionsFacilityType_Graphics =3D 1100, - AdditionsFacilityType_All =3D 2147483646 -}; -/* End of enum AdditionsFacilityType Declaration */ - - -/* Start of enum AdditionsFacilityClass Declaration */ -# define ADDITIONSFACILITYCLASS_IID_STR "446451b2-c88d-4e5d-84c9-91bc7f53= 3f5f" -# define ADDITIONSFACILITYCLASS_IID { \ - 0x446451b2, 0xc88d, 0x4e5d, \ - { 0x84, 0xc9, 0x91, 0xbc, 0x7f, 0x53, 0x3f, 0x5f } \ -} -enum AdditionsFacilityClass -{ - AdditionsFacilityClass_None =3D 0, - AdditionsFacilityClass_Driver =3D 10, - AdditionsFacilityClass_Service =3D 30, - AdditionsFacilityClass_Program =3D 50, - AdditionsFacilityClass_Feature =3D 100, - AdditionsFacilityClass_ThirdParty =3D 999, - AdditionsFacilityClass_All =3D 2147483646 -}; -/* End of enum AdditionsFacilityClass Declaration */ - - -/* Start of enum AdditionsFacilityStatus Declaration */ -# define ADDITIONSFACILITYSTATUS_IID_STR "ce06f9e1-394e-4fe9-9368-5a88c56= 7dbde" -# define ADDITIONSFACILITYSTATUS_IID { \ - 0xce06f9e1, 0x394e, 0x4fe9, \ - { 0x93, 0x68, 0x5a, 0x88, 0xc5, 0x67, 0xdb, 0xde } \ -} -enum AdditionsFacilityStatus -{ - AdditionsFacilityStatus_Inactive =3D 0, - AdditionsFacilityStatus_Paused =3D 1, - AdditionsFacilityStatus_PreInit =3D 20, - AdditionsFacilityStatus_Init =3D 30, - AdditionsFacilityStatus_Active =3D 50, - AdditionsFacilityStatus_Terminating =3D 100, - AdditionsFacilityStatus_Terminated =3D 101, - AdditionsFacilityStatus_Failed =3D 800, - AdditionsFacilityStatus_Unknown =3D 999 -}; -/* End of enum AdditionsFacilityStatus Declaration */ - - -/* Start of enum AdditionsRunLevelType Declaration */ -# define ADDITIONSRUNLEVELTYPE_IID_STR "a25417ee-a9dd-4f5b-b0dc-377860087= 754" -# define ADDITIONSRUNLEVELTYPE_IID { \ - 0xa25417ee, 0xa9dd, 0x4f5b, \ - { 0xb0, 0xdc, 0x37, 0x78, 0x60, 0x08, 0x77, 0x54 } \ -} -enum AdditionsRunLevelType -{ - AdditionsRunLevelType_None =3D 0, - AdditionsRunLevelType_System =3D 1, - AdditionsRunLevelType_Userland =3D 2, - AdditionsRunLevelType_Desktop =3D 3 -}; -/* End of enum AdditionsRunLevelType Declaration */ - - -/* Start of enum AdditionsUpdateFlag Declaration */ -# define ADDITIONSUPDATEFLAG_IID_STR "726a818d-18d6-4389-94e8-3e9e6826171= a" -# define ADDITIONSUPDATEFLAG_IID { \ - 0x726a818d, 0x18d6, 0x4389, \ - { 0x94, 0xe8, 0x3e, 0x9e, 0x68, 0x26, 0x17, 0x1a } \ -} -enum AdditionsUpdateFlag -{ - AdditionsUpdateFlag_None =3D 0, - AdditionsUpdateFlag_WaitForUpdateStartOnly =3D 1 -}; -/* End of enum AdditionsUpdateFlag Declaration */ - - -/* Start of enum GuestSessionStatus Declaration */ -# define GUESTSESSIONSTATUS_IID_STR "ac2669da-4624-44f2-85b5-0b0bfb8d8673" -# define GUESTSESSIONSTATUS_IID { \ - 0xac2669da, 0x4624, 0x44f2, \ - { 0x85, 0xb5, 0x0b, 0x0b, 0xfb, 0x8d, 0x86, 0x73 } \ -} -enum GuestSessionStatus -{ - GuestSessionStatus_Undefined =3D 0, - GuestSessionStatus_Starting =3D 10, - GuestSessionStatus_Started =3D 100, - GuestSessionStatus_Terminating =3D 480, - GuestSessionStatus_Terminated =3D 500, - GuestSessionStatus_TimedOutKilled =3D 512, - GuestSessionStatus_TimedOutAbnormally =3D 513, - GuestSessionStatus_Down =3D 600, - GuestSessionStatus_Error =3D 800 -}; -/* End of enum GuestSessionStatus Declaration */ - - -/* Start of enum GuestSessionWaitForFlag Declaration */ -# define GUESTSESSIONWAITFORFLAG_IID_STR "bb7a372a-f635-4e11-a81a-e707f3a= 52ef5" -# define GUESTSESSIONWAITFORFLAG_IID { \ - 0xbb7a372a, 0xf635, 0x4e11, \ - { 0xa8, 0x1a, 0xe7, 0x07, 0xf3, 0xa5, 0x2e, 0xf5 } \ -} -enum GuestSessionWaitForFlag -{ - GuestSessionWaitForFlag_None =3D 0, - GuestSessionWaitForFlag_Start =3D 1, - GuestSessionWaitForFlag_Terminate =3D 2, - GuestSessionWaitForFlag_Status =3D 4 -}; -/* End of enum GuestSessionWaitForFlag Declaration */ - - -/* Start of enum GuestSessionWaitResult Declaration */ -# define GUESTSESSIONWAITRESULT_IID_STR "c0f6a8a5-fdb6-42bf-a582-56c6f82b= cd2d" -# define GUESTSESSIONWAITRESULT_IID { \ - 0xc0f6a8a5, 0xfdb6, 0x42bf, \ - { 0xa5, 0x82, 0x56, 0xc6, 0xf8, 0x2b, 0xcd, 0x2d } \ -} -enum GuestSessionWaitResult -{ - GuestSessionWaitResult_None =3D 0, - GuestSessionWaitResult_Start =3D 1, - GuestSessionWaitResult_Terminate =3D 2, - GuestSessionWaitResult_Status =3D 3, - GuestSessionWaitResult_Error =3D 4, - GuestSessionWaitResult_Timeout =3D 5, - GuestSessionWaitResult_WaitFlagNotSupported =3D 6 -}; -/* End of enum GuestSessionWaitResult Declaration */ - - -/* Start of enum GuestUserState Declaration */ -# define GUESTUSERSTATE_IID_STR "b2a82b02-fd3d-4fc2-ba84-6ba5ac8be198" -# define GUESTUSERSTATE_IID { \ - 0xb2a82b02, 0xfd3d, 0x4fc2, \ - { 0xba, 0x84, 0x6b, 0xa5, 0xac, 0x8b, 0xe1, 0x98 } \ -} -enum GuestUserState -{ - GuestUserState_Unknown =3D 0, - GuestUserState_LoggedIn =3D 1, - GuestUserState_LoggedOut =3D 2, - GuestUserState_Locked =3D 3, - GuestUserState_Unlocked =3D 4, - GuestUserState_Disabled =3D 5, - GuestUserState_Idle =3D 6, - GuestUserState_InUse =3D 7, - GuestUserState_Created =3D 8, - GuestUserState_Deleted =3D 9, - GuestUserState_SessionChanged =3D 10, - GuestUserState_CredentialsChanged =3D 11, - GuestUserState_RoleChanged =3D 12, - GuestUserState_GroupAdded =3D 13, - GuestUserState_GroupRemoved =3D 14, - GuestUserState_Elevated =3D 15 -}; -/* End of enum GuestUserState Declaration */ - - -/* Start of enum FileSeekType Declaration */ -# define FILESEEKTYPE_IID_STR "1b73f4f3-3515-4073-a506-76878d9e2541" -# define FILESEEKTYPE_IID { \ - 0x1b73f4f3, 0x3515, 0x4073, \ - { 0xa5, 0x06, 0x76, 0x87, 0x8d, 0x9e, 0x25, 0x41 } \ -} -enum FileSeekType -{ - FileSeekType_Set =3D 0, - FileSeekType_Current =3D 1 -}; -/* End of enum FileSeekType Declaration */ - - -/* Start of enum ProcessInputFlag Declaration */ -# define PROCESSINPUTFLAG_IID_STR "5d38c1dd-2604-4ddf-92e5-0c0cdd3bdbd5" -# define PROCESSINPUTFLAG_IID { \ - 0x5d38c1dd, 0x2604, 0x4ddf, \ - { 0x92, 0xe5, 0x0c, 0x0c, 0xdd, 0x3b, 0xdb, 0xd5 } \ -} -enum ProcessInputFlag -{ - ProcessInputFlag_None =3D 0, - ProcessInputFlag_EndOfFile =3D 1 -}; -/* End of enum ProcessInputFlag Declaration */ - - -/* Start of enum ProcessOutputFlag Declaration */ -# define PROCESSOUTPUTFLAG_IID_STR "9979e85a-52bb-40b7-870c-57115e27e0f1" -# define PROCESSOUTPUTFLAG_IID { \ - 0x9979e85a, 0x52bb, 0x40b7, \ - { 0x87, 0x0c, 0x57, 0x11, 0x5e, 0x27, 0xe0, 0xf1 } \ -} -enum ProcessOutputFlag -{ - ProcessOutputFlag_None =3D 0, - ProcessOutputFlag_StdErr =3D 1 -}; -/* End of enum ProcessOutputFlag Declaration */ - - -/* Start of enum ProcessWaitForFlag Declaration */ -# define PROCESSWAITFORFLAG_IID_STR "23b550c7-78e1-437e-98f0-65fd9757bcd2" -# define PROCESSWAITFORFLAG_IID { \ - 0x23b550c7, 0x78e1, 0x437e, \ - { 0x98, 0xf0, 0x65, 0xfd, 0x97, 0x57, 0xbc, 0xd2 } \ -} -enum ProcessWaitForFlag -{ - ProcessWaitForFlag_None =3D 0, - ProcessWaitForFlag_Start =3D 1, - ProcessWaitForFlag_Terminate =3D 2, - ProcessWaitForFlag_StdIn =3D 4, - ProcessWaitForFlag_StdOut =3D 8, - ProcessWaitForFlag_StdErr =3D 16 -}; -/* End of enum ProcessWaitForFlag Declaration */ - - -/* Start of enum ProcessWaitResult Declaration */ -# define PROCESSWAITRESULT_IID_STR "40719cbe-f192-4fe9-a231-6697b3c8e2b4" -# define PROCESSWAITRESULT_IID { \ - 0x40719cbe, 0xf192, 0x4fe9, \ - { 0xa2, 0x31, 0x66, 0x97, 0xb3, 0xc8, 0xe2, 0xb4 } \ -} -enum ProcessWaitResult -{ - ProcessWaitResult_None =3D 0, - ProcessWaitResult_Start =3D 1, - ProcessWaitResult_Terminate =3D 2, - ProcessWaitResult_Status =3D 3, - ProcessWaitResult_Error =3D 4, - ProcessWaitResult_Timeout =3D 5, - ProcessWaitResult_StdIn =3D 6, - ProcessWaitResult_StdOut =3D 7, - ProcessWaitResult_StdErr =3D 8, - ProcessWaitResult_WaitFlagNotSupported =3D 9 -}; -/* End of enum ProcessWaitResult Declaration */ - - -/* Start of enum CopyFileFlag Declaration */ -# define COPYFILEFLAG_IID_STR "23f79fdf-738a-493d-b80b-42d607c9b916" -# define COPYFILEFLAG_IID { \ - 0x23f79fdf, 0x738a, 0x493d, \ - { 0xb8, 0x0b, 0x42, 0xd6, 0x07, 0xc9, 0xb9, 0x16 } \ -} -enum CopyFileFlag -{ - CopyFileFlag_None =3D 0, - CopyFileFlag_Recursive =3D 1, - CopyFileFlag_Update =3D 2, - CopyFileFlag_FollowLinks =3D 4 -}; -/* End of enum CopyFileFlag Declaration */ - - -/* Start of enum DirectoryCreateFlag Declaration */ -# define DIRECTORYCREATEFLAG_IID_STR "bd721b0e-ced5-4f79-b368-249897c32a3= 6" -# define DIRECTORYCREATEFLAG_IID { \ - 0xbd721b0e, 0xced5, 0x4f79, \ - { 0xb3, 0x68, 0x24, 0x98, 0x97, 0xc3, 0x2a, 0x36 } \ -} -enum DirectoryCreateFlag -{ - DirectoryCreateFlag_None =3D 0, - DirectoryCreateFlag_Parents =3D 1 -}; -/* End of enum DirectoryCreateFlag Declaration */ - - -/* Start of enum DirectoryRemoveRecFlag Declaration */ -# define DIRECTORYREMOVERECFLAG_IID_STR "455aabf0-7692-48f6-9061-f21579b6= 5769" -# define DIRECTORYREMOVERECFLAG_IID { \ - 0x455aabf0, 0x7692, 0x48f6, \ - { 0x90, 0x61, 0xf2, 0x15, 0x79, 0xb6, 0x57, 0x69 } \ -} -enum DirectoryRemoveRecFlag -{ - DirectoryRemoveRecFlag_None =3D 0, - DirectoryRemoveRecFlag_ContentAndDir =3D 1, - DirectoryRemoveRecFlag_ContentOnly =3D 2 -}; -/* End of enum DirectoryRemoveRecFlag Declaration */ - - -/* Start of enum PathRenameFlag Declaration */ -# define PATHRENAMEFLAG_IID_STR "f3baa09f-c758-453d-b91c-c7787d76351d" -# define PATHRENAMEFLAG_IID { \ - 0xf3baa09f, 0xc758, 0x453d, \ - { 0xb9, 0x1c, 0xc7, 0x78, 0x7d, 0x76, 0x35, 0x1d } \ -} -enum PathRenameFlag -{ - PathRenameFlag_None =3D 0, - PathRenameFlag_NoReplace =3D 1, - PathRenameFlag_Replace =3D 2, - PathRenameFlag_NoSymlinks =3D 4 -}; -/* End of enum PathRenameFlag Declaration */ - - -/* Start of enum ProcessCreateFlag Declaration */ -# define PROCESSCREATEFLAG_IID_STR "35192799-bfde-405d-9bea-c735ab9998e4" -# define PROCESSCREATEFLAG_IID { \ - 0x35192799, 0xbfde, 0x405d, \ - { 0x9b, 0xea, 0xc7, 0x35, 0xab, 0x99, 0x98, 0xe4 } \ -} -enum ProcessCreateFlag -{ - ProcessCreateFlag_None =3D 0, - ProcessCreateFlag_WaitForProcessStartOnly =3D 1, - ProcessCreateFlag_IgnoreOrphanedProcesses =3D 2, - ProcessCreateFlag_Hidden =3D 4, - ProcessCreateFlag_NoProfile =3D 8, - ProcessCreateFlag_WaitForStdOut =3D 16, - ProcessCreateFlag_WaitForStdErr =3D 32, - ProcessCreateFlag_ExpandArguments =3D 64 -}; -/* End of enum ProcessCreateFlag Declaration */ - - -/* Start of enum ProcessPriority Declaration */ -# define PROCESSPRIORITY_IID_STR "ee8cac50-e232-49fe-806b-d1214d9c2e49" -# define PROCESSPRIORITY_IID { \ - 0xee8cac50, 0xe232, 0x49fe, \ - { 0x80, 0x6b, 0xd1, 0x21, 0x4d, 0x9c, 0x2e, 0x49 } \ -} -enum ProcessPriority -{ - ProcessPriority_Invalid =3D 0, - ProcessPriority_Default =3D 1 -}; -/* End of enum ProcessPriority Declaration */ - - -/* Start of enum SymlinkType Declaration */ -# define SYMLINKTYPE_IID_STR "37794668-f8f1-4714-98a5-6f8fa2ed0118" -# define SYMLINKTYPE_IID { \ - 0x37794668, 0xf8f1, 0x4714, \ - { 0x98, 0xa5, 0x6f, 0x8f, 0xa2, 0xed, 0x01, 0x18 } \ -} -enum SymlinkType -{ - SymlinkType_Unknown =3D 0, - SymlinkType_Directory =3D 1, - SymlinkType_File =3D 2 -}; -/* End of enum SymlinkType Declaration */ - - -/* Start of enum SymlinkReadFlag Declaration */ -# define SYMLINKREADFLAG_IID_STR "b7fe2b9d-790e-4b25-8adf-1ca33026931f" -# define SYMLINKREADFLAG_IID { \ - 0xb7fe2b9d, 0x790e, 0x4b25, \ - { 0x8a, 0xdf, 0x1c, 0xa3, 0x30, 0x26, 0x93, 0x1f } \ -} -enum SymlinkReadFlag -{ - SymlinkReadFlag_None =3D 0, - SymlinkReadFlag_NoSymlinks =3D 1 -}; -/* End of enum SymlinkReadFlag Declaration */ - - -/* Start of enum ProcessStatus Declaration */ -# define PROCESSSTATUS_IID_STR "4d52368f-5b48-4bfe-b486-acf89139b52f" -# define PROCESSSTATUS_IID { \ - 0x4d52368f, 0x5b48, 0x4bfe, \ - { 0xb4, 0x86, 0xac, 0xf8, 0x91, 0x39, 0xb5, 0x2f } \ -} -enum ProcessStatus -{ - ProcessStatus_Undefined =3D 0, - ProcessStatus_Starting =3D 10, - ProcessStatus_Started =3D 100, - ProcessStatus_Paused =3D 110, - ProcessStatus_Terminating =3D 480, - ProcessStatus_TerminatedNormally =3D 500, - ProcessStatus_TerminatedSignal =3D 510, - ProcessStatus_TerminatedAbnormally =3D 511, - ProcessStatus_TimedOutKilled =3D 512, - ProcessStatus_TimedOutAbnormally =3D 513, - ProcessStatus_Down =3D 600, - ProcessStatus_Error =3D 800 -}; -/* End of enum ProcessStatus Declaration */ - - -/* Start of enum ProcessInputStatus Declaration */ -# define PROCESSINPUTSTATUS_IID_STR "a4a0ef9c-29cc-4805-9803-c8215ae9da6c" -# define PROCESSINPUTSTATUS_IID { \ - 0xa4a0ef9c, 0x29cc, 0x4805, \ - { 0x98, 0x03, 0xc8, 0x21, 0x5a, 0xe9, 0xda, 0x6c } \ -} -enum ProcessInputStatus -{ - ProcessInputStatus_Undefined =3D 0, - ProcessInputStatus_Broken =3D 1, - ProcessInputStatus_Available =3D 10, - ProcessInputStatus_Written =3D 50, - ProcessInputStatus_Overflow =3D 100 -}; -/* End of enum ProcessInputStatus Declaration */ - - -/* Start of enum FileStatus Declaration */ -# define FILESTATUS_IID_STR "8c86468b-b97b-4080-8914-e29f5b0abd2c" -# define FILESTATUS_IID { \ - 0x8c86468b, 0xb97b, 0x4080, \ - { 0x89, 0x14, 0xe2, 0x9f, 0x5b, 0x0a, 0xbd, 0x2c } \ -} -enum FileStatus -{ - FileStatus_Undefined =3D 0, - FileStatus_Opening =3D 10, - FileStatus_Open =3D 100, - FileStatus_Closing =3D 150, - FileStatus_Closed =3D 200, - FileStatus_Down =3D 600, - FileStatus_Error =3D 800 -}; -/* End of enum FileStatus Declaration */ - - -/* Start of enum FsObjType Declaration */ -# define FSOBJTYPE_IID_STR "a1ed437c-b3c3-4ca2-b19c-4239d658d5e8" -# define FSOBJTYPE_IID { \ - 0xa1ed437c, 0xb3c3, 0x4ca2, \ - { 0xb1, 0x9c, 0x42, 0x39, 0xd6, 0x58, 0xd5, 0xe8 } \ -} -enum FsObjType -{ - FsObjType_Undefined =3D 0, - FsObjType_FIFO =3D 1, - FsObjType_DevChar =3D 10, - FsObjType_DevBlock =3D 11, - FsObjType_Directory =3D 50, - FsObjType_File =3D 80, - FsObjType_Symlink =3D 100, - FsObjType_Socket =3D 200, - FsObjType_Whiteout =3D 400 -}; -/* End of enum FsObjType Declaration */ - - -/* Start of enum DragAndDropAction Declaration */ -# define DRAGANDDROPACTION_IID_STR "47f3b162-c107-4fcd-bfa7-54b8135c441e" -# define DRAGANDDROPACTION_IID { \ - 0x47f3b162, 0xc107, 0x4fcd, \ - { 0xbf, 0xa7, 0x54, 0xb8, 0x13, 0x5c, 0x44, 0x1e } \ -} -enum DragAndDropAction -{ - DragAndDropAction_Ignore =3D 0, - DragAndDropAction_Copy =3D 1, - DragAndDropAction_Move =3D 2, - DragAndDropAction_Link =3D 3 -}; -/* End of enum DragAndDropAction Declaration */ - - -/* Start of enum DirectoryOpenFlag Declaration */ -# define DIRECTORYOPENFLAG_IID_STR "5138837a-8fd2-4194-a1b0-08f7bc3949d0" -# define DIRECTORYOPENFLAG_IID { \ - 0x5138837a, 0x8fd2, 0x4194, \ - { 0xa1, 0xb0, 0x08, 0xf7, 0xbc, 0x39, 0x49, 0xd0 } \ -} -enum DirectoryOpenFlag -{ - DirectoryOpenFlag_None =3D 0, - DirectoryOpenFlag_NoSymlinks =3D 1 -}; -/* End of enum DirectoryOpenFlag Declaration */ - - -/* Start of enum MediumState Declaration */ -# define MEDIUMSTATE_IID_STR "ef41e980-e012-43cd-9dea-479d4ef14d13" -# define MEDIUMSTATE_IID { \ - 0xef41e980, 0xe012, 0x43cd, \ - { 0x9d, 0xea, 0x47, 0x9d, 0x4e, 0xf1, 0x4d, 0x13 } \ -} -enum MediumState -{ - MediumState_NotCreated =3D 0, - MediumState_Created =3D 1, - MediumState_LockedRead =3D 2, - MediumState_LockedWrite =3D 3, - MediumState_Inaccessible =3D 4, - MediumState_Creating =3D 5, - MediumState_Deleting =3D 6 -}; -/* End of enum MediumState Declaration */ - - -/* Start of enum MediumType Declaration */ -# define MEDIUMTYPE_IID_STR "fe663fb5-c244-4e1b-9d81-c628b417dd04" -# define MEDIUMTYPE_IID { \ - 0xfe663fb5, 0xc244, 0x4e1b, \ - { 0x9d, 0x81, 0xc6, 0x28, 0xb4, 0x17, 0xdd, 0x04 } \ -} -enum MediumType -{ - MediumType_Normal =3D 0, - MediumType_Immutable =3D 1, - MediumType_Writethrough =3D 2, - MediumType_Shareable =3D 3, - MediumType_Readonly =3D 4, - MediumType_MultiAttach =3D 5 -}; -/* End of enum MediumType Declaration */ - - -/* Start of enum MediumVariant Declaration */ -# define MEDIUMVARIANT_IID_STR "80685b6b-e42f-497d-8271-e77bf3c61ada" -# define MEDIUMVARIANT_IID { \ - 0x80685b6b, 0xe42f, 0x497d, \ - { 0x82, 0x71, 0xe7, 0x7b, 0xf3, 0xc6, 0x1a, 0xda } \ -} -enum MediumVariant -{ - MediumVariant_Standard =3D 0, - MediumVariant_VmdkSplit2G =3D 0x01, - MediumVariant_VmdkRawDisk =3D 0x02, - MediumVariant_VmdkStreamOptimized =3D 0x04, - MediumVariant_VmdkESX =3D 0x08, - MediumVariant_Fixed =3D 0x10000, - MediumVariant_Diff =3D 0x20000, - MediumVariant_NoCreateDir =3D 0x40000000 -}; -/* End of enum MediumVariant Declaration */ - - -/* Start of enum DataType Declaration */ -# define DATATYPE_IID_STR "d90ea51e-a3f1-4a01-beb1-c1723c0d3ba7" -# define DATATYPE_IID { \ - 0xd90ea51e, 0xa3f1, 0x4a01, \ - { 0xbe, 0xb1, 0xc1, 0x72, 0x3c, 0x0d, 0x3b, 0xa7 } \ -} -enum DataType -{ - DataType_Int32 =3D 0, - DataType_Int8 =3D 1, - DataType_String =3D 2 -}; -/* End of enum DataType Declaration */ - - -/* Start of enum DataFlags Declaration */ -# define DATAFLAGS_IID_STR "86884dcf-1d6b-4f1b-b4bf-f5aa44959d60" -# define DATAFLAGS_IID { \ - 0x86884dcf, 0x1d6b, 0x4f1b, \ - { 0xb4, 0xbf, 0xf5, 0xaa, 0x44, 0x95, 0x9d, 0x60 } \ -} -enum DataFlags -{ - DataFlags_None =3D 0x00, - DataFlags_Mandatory =3D 0x01, - DataFlags_Expert =3D 0x02, - DataFlags_Array =3D 0x04, - DataFlags_FlagMask =3D 0x07 -}; -/* End of enum DataFlags Declaration */ - - -/* Start of enum MediumFormatCapabilities Declaration */ -# define MEDIUMFORMATCAPABILITIES_IID_STR "7342ba79-7ce0-4d94-8f86-5ed5a1= 85d9bd" -# define MEDIUMFORMATCAPABILITIES_IID { \ - 0x7342ba79, 0x7ce0, 0x4d94, \ - { 0x8f, 0x86, 0x5e, 0xd5, 0xa1, 0x85, 0xd9, 0xbd } \ -} -enum MediumFormatCapabilities -{ - MediumFormatCapabilities_Uuid =3D 0x01, - MediumFormatCapabilities_CreateFixed =3D 0x02, - MediumFormatCapabilities_CreateDynamic =3D 0x04, - MediumFormatCapabilities_CreateSplit2G =3D 0x08, - MediumFormatCapabilities_Differencing =3D 0x10, - MediumFormatCapabilities_Asynchronous =3D 0x20, - MediumFormatCapabilities_File =3D 0x40, - MediumFormatCapabilities_Properties =3D 0x80, - MediumFormatCapabilities_TcpNetworking =3D 0x100, - MediumFormatCapabilities_VFS =3D 0x200, - MediumFormatCapabilities_CapabilityMask =3D 0x3FF -}; -/* End of enum MediumFormatCapabilities Declaration */ - - -/* Start of enum MouseButtonState Declaration */ -# define MOUSEBUTTONSTATE_IID_STR "9ee094b8-b28a-4d56-a166-973cb588d7f8" -# define MOUSEBUTTONSTATE_IID { \ - 0x9ee094b8, 0xb28a, 0x4d56, \ - { 0xa1, 0x66, 0x97, 0x3c, 0xb5, 0x88, 0xd7, 0xf8 } \ -} -enum MouseButtonState -{ - MouseButtonState_LeftButton =3D 0x01, - MouseButtonState_RightButton =3D 0x02, - MouseButtonState_MiddleButton =3D 0x04, - MouseButtonState_WheelUp =3D 0x08, - MouseButtonState_WheelDown =3D 0x10, - MouseButtonState_XButton1 =3D 0x20, - MouseButtonState_XButton2 =3D 0x40, - MouseButtonState_MouseStateMask =3D 0x7F -}; -/* End of enum MouseButtonState Declaration */ - - -/* Start of enum TouchContactState Declaration */ -# define TOUCHCONTACTSTATE_IID_STR "3f942686-2506-421c-927c-90d4b45f4a38" -# define TOUCHCONTACTSTATE_IID { \ - 0x3f942686, 0x2506, 0x421c, \ - { 0x92, 0x7c, 0x90, 0xd4, 0xb4, 0x5f, 0x4a, 0x38 } \ -} -enum TouchContactState -{ - TouchContactState_None =3D 0x00, - TouchContactState_InContact =3D 0x01, - TouchContactState_InRange =3D 0x02, - TouchContactState_ContactStateMask =3D 0x03 -}; -/* End of enum TouchContactState Declaration */ - - -/* Start of enum FramebufferPixelFormat Declaration */ -# define FRAMEBUFFERPIXELFORMAT_IID_STR "7acfd5ed-29e3-45e3-8136-73c9224f= 3d2d" -# define FRAMEBUFFERPIXELFORMAT_IID { \ - 0x7acfd5ed, 0x29e3, 0x45e3, \ - { 0x81, 0x36, 0x73, 0xc9, 0x22, 0x4f, 0x3d, 0x2d } \ -} -enum FramebufferPixelFormat -{ - FramebufferPixelFormat_Opaque =3D 0, - FramebufferPixelFormat_FOURCC_RGB =3D 0x32424752 -}; -/* End of enum FramebufferPixelFormat Declaration */ - - -/* Start of enum NetworkAttachmentType Declaration */ -# define NETWORKATTACHMENTTYPE_IID_STR "524a8f9d-4b86-4b51-877d-1aa27c4eb= eac" -# define NETWORKATTACHMENTTYPE_IID { \ - 0x524a8f9d, 0x4b86, 0x4b51, \ - { 0x87, 0x7d, 0x1a, 0xa2, 0x7c, 0x4e, 0xbe, 0xac } \ -} -enum NetworkAttachmentType -{ - NetworkAttachmentType_Null =3D 0, - NetworkAttachmentType_NAT =3D 1, - NetworkAttachmentType_Bridged =3D 2, - NetworkAttachmentType_Internal =3D 3, - NetworkAttachmentType_HostOnly =3D 4, - NetworkAttachmentType_Generic =3D 5, - NetworkAttachmentType_NATNetwork =3D 6 -}; -/* End of enum NetworkAttachmentType Declaration */ - - -/* Start of enum NetworkAdapterType Declaration */ -# define NETWORKADAPTERTYPE_IID_STR "3c2281e4-d952-4e87-8c7d-24379cb6a81c" -# define NETWORKADAPTERTYPE_IID { \ - 0x3c2281e4, 0xd952, 0x4e87, \ - { 0x8c, 0x7d, 0x24, 0x37, 0x9c, 0xb6, 0xa8, 0x1c } \ -} -enum NetworkAdapterType -{ - NetworkAdapterType_Null =3D 0, - NetworkAdapterType_Am79C970A =3D 1, - NetworkAdapterType_Am79C973 =3D 2, - NetworkAdapterType_I82540EM =3D 3, - NetworkAdapterType_I82543GC =3D 4, - NetworkAdapterType_I82545EM =3D 5, - NetworkAdapterType_Virtio =3D 6 -}; -/* End of enum NetworkAdapterType Declaration */ - - -/* Start of enum NetworkAdapterPromiscModePolicy Declaration */ -# define NETWORKADAPTERPROMISCMODEPOLICY_IID_STR "c963768a-376f-4c85-8d84= -d8ced4b7269e" -# define NETWORKADAPTERPROMISCMODEPOLICY_IID { \ - 0xc963768a, 0x376f, 0x4c85, \ - { 0x8d, 0x84, 0xd8, 0xce, 0xd4, 0xb7, 0x26, 0x9e } \ -} -enum NetworkAdapterPromiscModePolicy -{ - NetworkAdapterPromiscModePolicy_Deny =3D 1, - NetworkAdapterPromiscModePolicy_AllowNetwork =3D 2, - NetworkAdapterPromiscModePolicy_AllowAll =3D 3 -}; -/* End of enum NetworkAdapterPromiscModePolicy Declaration */ - - -/* Start of enum PortMode Declaration */ -# define PORTMODE_IID_STR "533b5fe3-0185-4197-86a7-17e37dd39d76" -# define PORTMODE_IID { \ - 0x533b5fe3, 0x0185, 0x4197, \ - { 0x86, 0xa7, 0x17, 0xe3, 0x7d, 0xd3, 0x9d, 0x76 } \ -} -enum PortMode -{ - PortMode_Disconnected =3D 0, - PortMode_HostPipe =3D 1, - PortMode_HostDevice =3D 2, - PortMode_RawFile =3D 3 -}; -/* End of enum PortMode Declaration */ - - -/* Start of enum USBControllerType Declaration */ -# define USBCONTROLLERTYPE_IID_STR "8fdd1c6a-5412-41da-ab07-7baed7d6e18e" -# define USBCONTROLLERTYPE_IID { \ - 0x8fdd1c6a, 0x5412, 0x41da, \ - { 0xab, 0x07, 0x7b, 0xae, 0xd7, 0xd6, 0xe1, 0x8e } \ -} -enum USBControllerType -{ - USBControllerType_Null =3D 0, - USBControllerType_OHCI =3D 1, - USBControllerType_EHCI =3D 2, - USBControllerType_Last =3D 3 -}; -/* End of enum USBControllerType Declaration */ - - -/* Start of enum USBDeviceState Declaration */ -# define USBDEVICESTATE_IID_STR "b99a2e65-67fb-4882-82fd-f3e5e8193ab4" -# define USBDEVICESTATE_IID { \ - 0xb99a2e65, 0x67fb, 0x4882, \ - { 0x82, 0xfd, 0xf3, 0xe5, 0xe8, 0x19, 0x3a, 0xb4 } \ -} -enum USBDeviceState -{ - USBDeviceState_NotSupported =3D 0, - USBDeviceState_Unavailable =3D 1, - USBDeviceState_Busy =3D 2, - USBDeviceState_Available =3D 3, - USBDeviceState_Held =3D 4, - USBDeviceState_Captured =3D 5 -}; -/* End of enum USBDeviceState Declaration */ - - -/* Start of enum USBDeviceFilterAction Declaration */ -# define USBDEVICEFILTERACTION_IID_STR "cbc30a49-2f4e-43b5-9da6-121320475= 933" -# define USBDEVICEFILTERACTION_IID { \ - 0xcbc30a49, 0x2f4e, 0x43b5, \ - { 0x9d, 0xa6, 0x12, 0x13, 0x20, 0x47, 0x59, 0x33 } \ -} -enum USBDeviceFilterAction -{ - USBDeviceFilterAction_Null =3D 0, - USBDeviceFilterAction_Ignore =3D 1, - USBDeviceFilterAction_Hold =3D 2 -}; -/* End of enum USBDeviceFilterAction Declaration */ - - -/* Start of enum AudioDriverType Declaration */ -# define AUDIODRIVERTYPE_IID_STR "4bcc3d73-c2fe-40db-b72f-0c2ca9d68496" -# define AUDIODRIVERTYPE_IID { \ - 0x4bcc3d73, 0xc2fe, 0x40db, \ - { 0xb7, 0x2f, 0x0c, 0x2c, 0xa9, 0xd6, 0x84, 0x96 } \ -} -enum AudioDriverType -{ - AudioDriverType_Null =3D 0, - AudioDriverType_WinMM =3D 1, - AudioDriverType_OSS =3D 2, - AudioDriverType_ALSA =3D 3, - AudioDriverType_DirectSound =3D 4, - AudioDriverType_CoreAudio =3D 5, - AudioDriverType_MMPM =3D 6, - AudioDriverType_Pulse =3D 7, - AudioDriverType_SolAudio =3D 8 -}; -/* End of enum AudioDriverType Declaration */ - - -/* Start of enum AudioControllerType Declaration */ -# define AUDIOCONTROLLERTYPE_IID_STR "7afd395c-42c3-444e-8788-3ce80292f36= c" -# define AUDIOCONTROLLERTYPE_IID { \ - 0x7afd395c, 0x42c3, 0x444e, \ - { 0x87, 0x88, 0x3c, 0xe8, 0x02, 0x92, 0xf3, 0x6c } \ -} -enum AudioControllerType -{ - AudioControllerType_AC97 =3D 0, - AudioControllerType_SB16 =3D 1, - AudioControllerType_HDA =3D 2 -}; -/* End of enum AudioControllerType Declaration */ - - -/* Start of enum AuthType Declaration */ -# define AUTHTYPE_IID_STR "7eef6ef6-98c2-4dc2-ab35-10d2b292028d" -# define AUTHTYPE_IID { \ - 0x7eef6ef6, 0x98c2, 0x4dc2, \ - { 0xab, 0x35, 0x10, 0xd2, 0xb2, 0x92, 0x02, 0x8d } \ -} -enum AuthType -{ - AuthType_Null =3D 0, - AuthType_External =3D 1, - AuthType_Guest =3D 2 -}; -/* End of enum AuthType Declaration */ - - -/* Start of enum Reason Declaration */ -# define REASON_IID_STR "e7e8e097-299d-4e98-8bbc-c31c2d47d0cc" -# define REASON_IID { \ - 0xe7e8e097, 0x299d, 0x4e98, \ - { 0x8b, 0xbc, 0xc3, 0x1c, 0x2d, 0x47, 0xd0, 0xcc } \ -} -enum Reason -{ - Reason_Unspecified =3D 0, - Reason_HostSuspend =3D 1, - Reason_HostResume =3D 2, - Reason_HostBatteryLow =3D 3 -}; -/* End of enum Reason Declaration */ - - -/* Start of enum StorageBus Declaration */ -# define STORAGEBUS_IID_STR "eee67ab3-668d-4ef5-91e0-7025fe4a0d7a" -# define STORAGEBUS_IID { \ - 0xeee67ab3, 0x668d, 0x4ef5, \ - { 0x91, 0xe0, 0x70, 0x25, 0xfe, 0x4a, 0x0d, 0x7a } \ -} -enum StorageBus -{ - StorageBus_Null =3D 0, - StorageBus_IDE =3D 1, - StorageBus_SATA =3D 2, - StorageBus_SCSI =3D 3, - StorageBus_Floppy =3D 4, - StorageBus_SAS =3D 5 -}; -/* End of enum StorageBus Declaration */ - - -/* Start of enum StorageControllerType Declaration */ -# define STORAGECONTROLLERTYPE_IID_STR "8a412b8a-f43e-4456-bd37-b474f0879= a58" -# define STORAGECONTROLLERTYPE_IID { \ - 0x8a412b8a, 0xf43e, 0x4456, \ - { 0xbd, 0x37, 0xb4, 0x74, 0xf0, 0x87, 0x9a, 0x58 } \ -} -enum StorageControllerType -{ - StorageControllerType_Null =3D 0, - StorageControllerType_LsiLogic =3D 1, - StorageControllerType_BusLogic =3D 2, - StorageControllerType_IntelAhci =3D 3, - StorageControllerType_PIIX3 =3D 4, - StorageControllerType_PIIX4 =3D 5, - StorageControllerType_ICH6 =3D 6, - StorageControllerType_I82078 =3D 7, - StorageControllerType_LsiLogicSas =3D 8 -}; -/* End of enum StorageControllerType Declaration */ - - -/* Start of enum ChipsetType Declaration */ -# define CHIPSETTYPE_IID_STR "8b4096a8-a7c3-4d3b-bbb1-05a0a51ec394" -# define CHIPSETTYPE_IID { \ - 0x8b4096a8, 0xa7c3, 0x4d3b, \ - { 0xbb, 0xb1, 0x05, 0xa0, 0xa5, 0x1e, 0xc3, 0x94 } \ -} -enum ChipsetType -{ - ChipsetType_Null =3D 0, - ChipsetType_PIIX3 =3D 1, - ChipsetType_ICH9 =3D 2 -}; -/* End of enum ChipsetType Declaration */ - - -/* Start of enum NATAliasMode Declaration */ -# define NATALIASMODE_IID_STR "67772168-50d9-11df-9669-7fb714ee4fa1" -# define NATALIASMODE_IID { \ - 0x67772168, 0x50d9, 0x11df, \ - { 0x96, 0x69, 0x7f, 0xb7, 0x14, 0xee, 0x4f, 0xa1 } \ -} -enum NATAliasMode -{ - NATAliasMode_AliasLog =3D 0x1, - NATAliasMode_AliasProxyOnly =3D 0x02, - NATAliasMode_AliasUseSamePorts =3D 0x04 -}; -/* End of enum NATAliasMode Declaration */ - - -/* Start of enum NATProtocol Declaration */ -# define NATPROTOCOL_IID_STR "e90164be-eb03-11de-94af-fff9b1c1b19f" -# define NATPROTOCOL_IID { \ - 0xe90164be, 0xeb03, 0x11de, \ - { 0x94, 0xaf, 0xff, 0xf9, 0xb1, 0xc1, 0xb1, 0x9f } \ -} -enum NATProtocol -{ - NATProtocol_UDP =3D 0, - NATProtocol_TCP =3D 1 -}; -/* End of enum NATProtocol Declaration */ - - -/* Start of enum BandwidthGroupType Declaration */ -# define BANDWIDTHGROUPTYPE_IID_STR "1d92b67d-dc69-4be9-ad4c-93a01e1e0c8e" -# define BANDWIDTHGROUPTYPE_IID { \ - 0x1d92b67d, 0xdc69, 0x4be9, \ - { 0xad, 0x4c, 0x93, 0xa0, 0x1e, 0x1e, 0x0c, 0x8e } \ -} -enum BandwidthGroupType -{ - BandwidthGroupType_Null =3D 0, - BandwidthGroupType_Disk =3D 1, - BandwidthGroupType_Network =3D 2 -}; -/* End of enum BandwidthGroupType Declaration */ - - -/* Start of enum VBoxEventType Declaration */ -# define VBOXEVENTTYPE_IID_STR "5248e377-e578-47d7-b07b-84b1db6db8a8" -# define VBOXEVENTTYPE_IID { \ - 0x5248e377, 0xe578, 0x47d7, \ - { 0xb0, 0x7b, 0x84, 0xb1, 0xdb, 0x6d, 0xb8, 0xa8 } \ -} -enum VBoxEventType -{ - VBoxEventType_Invalid =3D 0, - VBoxEventType_Any =3D 1, - VBoxEventType_Vetoable =3D 2, - VBoxEventType_MachineEvent =3D 3, - VBoxEventType_SnapshotEvent =3D 4, - VBoxEventType_InputEvent =3D 5, - VBoxEventType_LastWildcard =3D 31, - VBoxEventType_OnMachineStateChanged =3D 32, - VBoxEventType_OnMachineDataChanged =3D 33, - VBoxEventType_OnExtraDataChanged =3D 34, - VBoxEventType_OnExtraDataCanChange =3D 35, - VBoxEventType_OnMediumRegistered =3D 36, - VBoxEventType_OnMachineRegistered =3D 37, - VBoxEventType_OnSessionStateChanged =3D 38, - VBoxEventType_OnSnapshotTaken =3D 39, - VBoxEventType_OnSnapshotDeleted =3D 40, - VBoxEventType_OnSnapshotChanged =3D 41, - VBoxEventType_OnGuestPropertyChanged =3D 42, - VBoxEventType_OnMousePointerShapeChanged =3D 43, - VBoxEventType_OnMouseCapabilityChanged =3D 44, - VBoxEventType_OnKeyboardLedsChanged =3D 45, - VBoxEventType_OnStateChanged =3D 46, - VBoxEventType_OnAdditionsStateChanged =3D 47, - VBoxEventType_OnNetworkAdapterChanged =3D 48, - VBoxEventType_OnSerialPortChanged =3D 49, - VBoxEventType_OnParallelPortChanged =3D 50, - VBoxEventType_OnStorageControllerChanged =3D 51, - VBoxEventType_OnMediumChanged =3D 52, - VBoxEventType_OnVRDEServerChanged =3D 53, - VBoxEventType_OnUSBControllerChanged =3D 54, - VBoxEventType_OnUSBDeviceStateChanged =3D 55, - VBoxEventType_OnSharedFolderChanged =3D 56, - VBoxEventType_OnRuntimeError =3D 57, - VBoxEventType_OnCanShowWindow =3D 58, - VBoxEventType_OnShowWindow =3D 59, - VBoxEventType_OnCPUChanged =3D 60, - VBoxEventType_OnVRDEServerInfoChanged =3D 61, - VBoxEventType_OnEventSourceChanged =3D 62, - VBoxEventType_OnCPUExecutionCapChanged =3D 63, - VBoxEventType_OnGuestKeyboard =3D 64, - VBoxEventType_OnGuestMouse =3D 65, - VBoxEventType_OnNATRedirect =3D 66, - VBoxEventType_OnHostPCIDevicePlug =3D 67, - VBoxEventType_OnVBoxSVCAvailabilityChanged =3D 68, - VBoxEventType_OnBandwidthGroupChanged =3D 69, - VBoxEventType_OnGuestMonitorChanged =3D 70, - VBoxEventType_OnStorageDeviceChanged =3D 71, - VBoxEventType_OnClipboardModeChanged =3D 72, - VBoxEventType_OnDragAndDropModeChanged =3D 73, - VBoxEventType_OnNATNetworkChanged =3D 74, - VBoxEventType_OnNATNetworkStartStop =3D 75, - VBoxEventType_OnNATNetworkAlter =3D 76, - VBoxEventType_OnNATNetworkCreationDeletion =3D 77, - VBoxEventType_OnNATNetworkSetting =3D 78, - VBoxEventType_OnNATNetworkPortForward =3D 79, - VBoxEventType_OnGuestSessionStateChanged =3D 80, - VBoxEventType_OnGuestSessionRegistered =3D 81, - VBoxEventType_OnGuestProcessRegistered =3D 82, - VBoxEventType_OnGuestProcessStateChanged =3D 83, - VBoxEventType_OnGuestProcessInputNotify =3D 84, - VBoxEventType_OnGuestProcessOutput =3D 85, - VBoxEventType_OnGuestFileRegistered =3D 86, - VBoxEventType_OnGuestFileStateChanged =3D 87, - VBoxEventType_OnGuestFileOffsetChanged =3D 88, - VBoxEventType_OnGuestFileRead =3D 89, - VBoxEventType_OnGuestFileWrite =3D 90, - VBoxEventType_OnVideoCaptureChanged =3D 91, - VBoxEventType_OnGuestUserStateChanged =3D 92, - VBoxEventType_OnGuestMultiTouch =3D 93, - VBoxEventType_OnHostNameResolutionConfigurationChange =3D 94, - VBoxEventType_Last =3D 95 -}; -/* End of enum VBoxEventType Declaration */ - - -/* Start of enum GuestMouseEventMode Declaration */ -# define GUESTMOUSEEVENTMODE_IID_STR "4b500146-ebba-4b7c-bc29-69c2d57a5ca= f" -# define GUESTMOUSEEVENTMODE_IID { \ - 0x4b500146, 0xebba, 0x4b7c, \ - { 0xbc, 0x29, 0x69, 0xc2, 0xd5, 0x7a, 0x5c, 0xaf } \ -} -enum GuestMouseEventMode -{ - GuestMouseEventMode_Relative =3D 0, - GuestMouseEventMode_Absolute =3D 1 -}; -/* End of enum GuestMouseEventMode Declaration */ - - -/* Start of enum GuestMonitorChangedEventType Declaration */ -# define GUESTMONITORCHANGEDEVENTTYPE_IID_STR "ef172985-7e36-4297-95be-e4= 6396968d66" -# define GUESTMONITORCHANGEDEVENTTYPE_IID { \ - 0xef172985, 0x7e36, 0x4297, \ - { 0x95, 0xbe, 0xe4, 0x63, 0x96, 0x96, 0x8d, 0x66 } \ -} -enum GuestMonitorChangedEventType -{ - GuestMonitorChangedEventType_Enabled =3D 0, - GuestMonitorChangedEventType_Disabled =3D 1, - GuestMonitorChangedEventType_NewOrigin =3D 2 -}; -/* End of enum GuestMonitorChangedEventType Declaration */ - - -/* Start of struct IVirtualBoxErrorInfo Declaration */ -# define IVIRTUALBOXERRORINFO_IID_STR "c1bcc6d5-7966-481d-ab0b-d0ed73e281= 35" -# define IVIRTUALBOXERRORINFO_IID { \ - 0xc1bcc6d5, 0x7966, 0x481d, \ - { 0xab, 0x0b, 0xd0, 0xed, 0x73, 0xe2, 0x81, 0x35 } \ -} -struct IVirtualBoxErrorInfo_vtbl -{ - struct nsIException_vtbl nsiexception; - - nsresult (*GetResultCode)(IVirtualBoxErrorInfo *pThis, PRInt32 *result= Code); - - nsresult (*GetResultDetail)(IVirtualBoxErrorInfo *pThis, PRInt32 *resu= ltDetail); - - nsresult (*GetInterfaceID)(IVirtualBoxErrorInfo *pThis, PRUnichar * *i= nterfaceID); - - nsresult (*GetComponent)(IVirtualBoxErrorInfo *pThis, PRUnichar * *com= ponent); - - nsresult (*GetText)(IVirtualBoxErrorInfo *pThis, PRUnichar * *text); - - nsresult (*GetNext)(IVirtualBoxErrorInfo *pThis, IVirtualBoxErrorInfo = * *next); - -}; - -struct IVirtualBoxErrorInfo -{ - struct IVirtualBoxErrorInfo_vtbl *vtbl; -}; -/* End of struct IVirtualBoxErrorInfo Declaration */ - - -/* Start of struct INATNetwork Declaration */ -# define INATNETWORK_IID_STR "a63c75da-4c99-4e9d-8351-eb73651c18cc" -# define INATNETWORK_IID { \ - 0xa63c75da, 0x4c99, 0x4e9d, \ - { 0x83, 0x51, 0xeb, 0x73, 0x65, 0x1c, 0x18, 0xcc } \ -} -struct INATNetwork_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetNetworkName)(INATNetwork *pThis, PRUnichar * *networkNam= e); - nsresult (*SetNetworkName)(INATNetwork *pThis, PRUnichar * networkName= ); - - nsresult (*GetEnabled)(INATNetwork *pThis, PRBool *enabled); - nsresult (*SetEnabled)(INATNetwork *pThis, PRBool enabled); - - nsresult (*GetNetwork)(INATNetwork *pThis, PRUnichar * *network); - nsresult (*SetNetwork)(INATNetwork *pThis, PRUnichar * network); - - nsresult (*GetGateway)(INATNetwork *pThis, PRUnichar * *gateway); - - nsresult (*GetIPv6Enabled)(INATNetwork *pThis, PRBool *IPv6Enabled); - nsresult (*SetIPv6Enabled)(INATNetwork *pThis, PRBool IPv6Enabled); - - nsresult (*GetIPv6Prefix)(INATNetwork *pThis, PRUnichar * *IPv6Prefix); - nsresult (*SetIPv6Prefix)(INATNetwork *pThis, PRUnichar * IPv6Prefix); - - nsresult (*GetAdvertiseDefaultIPv6RouteEnabled)(INATNetwork *pThis, PR= Bool *advertiseDefaultIPv6RouteEnabled); - nsresult (*SetAdvertiseDefaultIPv6RouteEnabled)(INATNetwork *pThis, PR= Bool advertiseDefaultIPv6RouteEnabled); - - nsresult (*GetNeedDhcpServer)(INATNetwork *pThis, PRBool *needDhcpServ= er); - nsresult (*SetNeedDhcpServer)(INATNetwork *pThis, PRBool needDhcpServe= r); - - nsresult (*GetEventSource)(INATNetwork *pThis, IEventSource * *eventSo= urce); - - nsresult (*GetPortForwardRules4)(INATNetwork *pThis, PRUint32 *portFor= wardRules4Size, PRUnichar * **portForwardRules4); - - nsresult (*GetLocalMappings)(INATNetwork *pThis, PRUint32 *localMappin= gsSize, PRUnichar * **localMappings); - - nsresult (*GetLoopbackIp6)(INATNetwork *pThis, PRInt32 *loopbackIp6); - nsresult (*SetLoopbackIp6)(INATNetwork *pThis, PRInt32 loopbackIp6); - - nsresult (*GetPortForwardRules6)(INATNetwork *pThis, PRUint32 *portFor= wardRules6Size, PRUnichar * **portForwardRules6); - - nsresult (*AddLocalMapping)( - INATNetwork *pThis, - PRUnichar * hostid, - PRInt32 offset - ); - - nsresult (*AddPortForwardRule)( - INATNetwork *pThis, - PRBool isIpv6, - PRUnichar * ruleName, - PRUint32 proto, - PRUnichar * hostIP, - PRUint16 hostPort, - PRUnichar * guestIP, - PRUint16 guestPort - ); - - nsresult (*RemovePortForwardRule)( - INATNetwork *pThis, - PRBool iSipv6, - PRUnichar * ruleName - ); - - nsresult (*Start)( - INATNetwork *pThis, - PRUnichar * trunkType - ); - - nsresult (*Stop)(INATNetwork *pThis ); - -}; - -struct INATNetwork -{ - struct INATNetwork_vtbl *vtbl; -}; -/* End of struct INATNetwork Declaration */ - - -/* Start of struct IDHCPServer Declaration */ -# define IDHCPSERVER_IID_STR "ff0774c5-1f62-4bc3-919c-7fc942bf1d25" -# define IDHCPSERVER_IID { \ - 0xff0774c5, 0x1f62, 0x4bc3, \ - { 0x91, 0x9c, 0x7f, 0xc9, 0x42, 0xbf, 0x1d, 0x25 } \ -} -struct IDHCPServer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetEventSource)(IDHCPServer *pThis, IEventSource * *eventSo= urce); - - nsresult (*GetEnabled)(IDHCPServer *pThis, PRBool *enabled); - nsresult (*SetEnabled)(IDHCPServer *pThis, PRBool enabled); - - nsresult (*GetIPAddress)(IDHCPServer *pThis, PRUnichar * *IPAddress); - - nsresult (*GetNetworkMask)(IDHCPServer *pThis, PRUnichar * *networkMas= k); - - nsresult (*GetNetworkName)(IDHCPServer *pThis, PRUnichar * *networkNam= e); - - nsresult (*GetLowerIP)(IDHCPServer *pThis, PRUnichar * *lowerIP); - - nsresult (*GetUpperIP)(IDHCPServer *pThis, PRUnichar * *upperIP); - - nsresult (*GetGlobalOptions)(IDHCPServer *pThis, PRUint32 *globalOptio= nsSize, PRUnichar * **globalOptions); - - nsresult (*GetVmConfigs)(IDHCPServer *pThis, PRUint32 *vmConfigsSize, = PRUnichar * **vmConfigs); - - nsresult (*AddGlobalOption)( - IDHCPServer *pThis, - PRUint32 option, - PRUnichar * value - ); - - nsresult (*AddVmSlotOption)( - IDHCPServer *pThis, - PRUnichar * vmname, - PRInt32 slot, - PRUint32 option, - PRUnichar * value - ); - - nsresult (*RemoveVmSlotOptions)( - IDHCPServer *pThis, - PRUnichar * vmname, - PRInt32 slot - ); - - nsresult (*GetVmSlotOptions)( - IDHCPServer *pThis, - PRUnichar * vmname, - PRInt32 slot, - PRUint32 *optionSize, - PRUnichar *** option - ); - - nsresult (*GetMacOptions)( - IDHCPServer *pThis, - PRUnichar * mac, - PRUint32 *optionSize, - PRUnichar *** option - ); - - nsresult (*SetConfiguration)( - IDHCPServer *pThis, - PRUnichar * IPAddress, - PRUnichar * networkMask, - PRUnichar * FromIPAddress, - PRUnichar * ToIPAddress - ); - - nsresult (*Start)( - IDHCPServer *pThis, - PRUnichar * networkName, - PRUnichar * trunkName, - PRUnichar * trunkType - ); - - nsresult (*Stop)(IDHCPServer *pThis ); - -}; - -struct IDHCPServer -{ - struct IDHCPServer_vtbl *vtbl; -}; -/* End of struct IDHCPServer Declaration */ - - -/* Start of struct IVirtualBox Declaration */ -# define IVIRTUALBOX_IID_STR "fafa4e17-1ee2-4905-a10e-fe7c18bf5554" -# define IVIRTUALBOX_IID { \ - 0xfafa4e17, 0x1ee2, 0x4905, \ - { 0xa1, 0x0e, 0xfe, 0x7c, 0x18, 0xbf, 0x55, 0x54 } \ -} -struct IVirtualBox_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetVersion)(IVirtualBox *pThis, PRUnichar * *version); - - nsresult (*GetVersionNormalized)(IVirtualBox *pThis, PRUnichar * *vers= ionNormalized); - - nsresult (*GetRevision)(IVirtualBox *pThis, PRUint32 *revision); - - nsresult (*GetPackageType)(IVirtualBox *pThis, PRUnichar * *packageTyp= e); - - nsresult (*GetAPIVersion)(IVirtualBox *pThis, PRUnichar * *APIVersion); - - nsresult (*GetHomeFolder)(IVirtualBox *pThis, PRUnichar * *homeFolder); - - nsresult (*GetSettingsFilePath)(IVirtualBox *pThis, PRUnichar * *setti= ngsFilePath); - - nsresult (*GetHost)(IVirtualBox *pThis, IHost * *host); - - nsresult (*GetSystemProperties)(IVirtualBox *pThis, ISystemProperties = * *systemProperties); - - nsresult (*GetMachines)(IVirtualBox *pThis, PRUint32 *machinesSize, IM= achine * **machines); - - nsresult (*GetMachineGroups)(IVirtualBox *pThis, PRUint32 *machineGrou= psSize, PRUnichar * **machineGroups); - - nsresult (*GetHardDisks)(IVirtualBox *pThis, PRUint32 *hardDisksSize, = IMedium * **hardDisks); - - nsresult (*GetDVDImages)(IVirtualBox *pThis, PRUint32 *DVDImagesSize, = IMedium * **DVDImages); - - nsresult (*GetFloppyImages)(IVirtualBox *pThis, PRUint32 *floppyImages= Size, IMedium * **floppyImages); - - nsresult (*GetProgressOperations)(IVirtualBox *pThis, PRUint32 *progre= ssOperationsSize, IProgress * **progressOperations); - - nsresult (*GetGuestOSTypes)(IVirtualBox *pThis, PRUint32 *guestOSTypes= Size, IGuestOSType * **guestOSTypes); - - nsresult (*GetSharedFolders)(IVirtualBox *pThis, PRUint32 *sharedFolde= rsSize, ISharedFolder * **sharedFolders); - - nsresult (*GetPerformanceCollector)(IVirtualBox *pThis, IPerformanceCo= llector * *performanceCollector); - - nsresult (*GetDHCPServers)(IVirtualBox *pThis, PRUint32 *DHCPServersSi= ze, IDHCPServer * **DHCPServers); - - nsresult (*GetNATNetworks)(IVirtualBox *pThis, PRUint32 *NATNetworksSi= ze, INATNetwork * **NATNetworks); - - nsresult (*GetEventSource)(IVirtualBox *pThis, IEventSource * *eventSo= urce); - - nsresult (*GetExtensionPackManager)(IVirtualBox *pThis, IExtPackManage= r * *extensionPackManager); - - nsresult (*GetInternalNetworks)(IVirtualBox *pThis, PRUint32 *internal= NetworksSize, PRUnichar * **internalNetworks); - - nsresult (*GetGenericNetworkDrivers)(IVirtualBox *pThis, PRUint32 *gen= ericNetworkDriversSize, PRUnichar * **genericNetworkDrivers); - - nsresult (*ComposeMachineFilename)( - IVirtualBox *pThis, - PRUnichar * name, - PRUnichar * group, - PRUnichar * createFlags, - PRUnichar * baseFolder, - PRUnichar * * file - ); - - nsresult (*CreateMachine)( - IVirtualBox *pThis, - PRUnichar * settingsFile, - PRUnichar * name, - PRUint32 groupsSize, - PRUnichar ** groups, - PRUnichar * osTypeId, - PRUnichar * flags, - IMachine * * machine - ); - - nsresult (*OpenMachine)( - IVirtualBox *pThis, - PRUnichar * settingsFile, - IMachine * * machine - ); - - nsresult (*RegisterMachine)( - IVirtualBox *pThis, - IMachine * machine - ); - - nsresult (*FindMachine)( - IVirtualBox *pThis, - PRUnichar * nameOrId, - IMachine * * machine - ); - - nsresult (*GetMachinesByGroups)( - IVirtualBox *pThis, - PRUint32 groupsSize, - PRUnichar ** groups, - PRUint32 *machinesSize, - IMachine *** machines - ); - - nsresult (*GetMachineStates)( - IVirtualBox *pThis, - PRUint32 machinesSize, - IMachine ** machines, - PRUint32 *statesSize, - PRUint32** states - ); - - nsresult (*CreateAppliance)( - IVirtualBox *pThis, - IAppliance * * appliance - ); - - nsresult (*CreateHardDisk)( - IVirtualBox *pThis, - PRUnichar * format, - PRUnichar * location, - IMedium * * medium - ); - - nsresult (*OpenMedium)( - IVirtualBox *pThis, - PRUnichar * location, - PRUint32 deviceType, - PRUint32 accessMode, - PRBool forceNewUuid, - IMedium * * medium - ); - - nsresult (*GetGuestOSType)( - IVirtualBox *pThis, - PRUnichar * id, - IGuestOSType * * type - ); - - nsresult (*CreateSharedFolder)( - IVirtualBox *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult (*RemoveSharedFolder)( - IVirtualBox *pThis, - PRUnichar * name - ); - - nsresult (*GetExtraDataKeys)( - IVirtualBox *pThis, - PRUint32 *keysSize, - PRUnichar *** keys - ); - - nsresult (*GetExtraData)( - IVirtualBox *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult (*SetExtraData)( - IVirtualBox *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult (*SetSettingsSecret)( - IVirtualBox *pThis, - PRUnichar * password - ); - - nsresult (*CreateDHCPServer)( - IVirtualBox *pThis, - PRUnichar * name, - IDHCPServer * * server - ); - - nsresult (*FindDHCPServerByNetworkName)( - IVirtualBox *pThis, - PRUnichar * name, - IDHCPServer * * server - ); - - nsresult (*RemoveDHCPServer)( - IVirtualBox *pThis, - IDHCPServer * server - ); - - nsresult (*CreateNATNetwork)( - IVirtualBox *pThis, - PRUnichar * networkName, - INATNetwork * * network - ); - - nsresult (*FindNATNetworkByName)( - IVirtualBox *pThis, - PRUnichar * networkName, - INATNetwork * * network - ); - - nsresult (*RemoveNATNetwork)( - IVirtualBox *pThis, - INATNetwork * network - ); - - nsresult (*CheckFirmwarePresent)( - IVirtualBox *pThis, - PRUint32 firmwareType, - PRUnichar * version, - PRUnichar * * url, - PRUnichar * * file, - PRBool * result - ); - -}; - -struct IVirtualBox -{ - struct IVirtualBox_vtbl *vtbl; -}; -/* End of struct IVirtualBox Declaration */ - - -/* Start of struct IVFSExplorer Declaration */ -# define IVFSEXPLORER_IID_STR "fb220201-2fd3-47e2-a5dc-2c2431d833cc" -# define IVFSEXPLORER_IID { \ - 0xfb220201, 0x2fd3, 0x47e2, \ - { 0xa5, 0xdc, 0x2c, 0x24, 0x31, 0xd8, 0x33, 0xcc } \ -} -struct IVFSExplorer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetPath)(IVFSExplorer *pThis, PRUnichar * *path); - - nsresult (*GetType)(IVFSExplorer *pThis, PRUint32 *type); - - nsresult (*Update)( - IVFSExplorer *pThis, - IProgress * * progress - ); - - nsresult (*Cd)( - IVFSExplorer *pThis, - PRUnichar * dir, - IProgress * * progress - ); - - nsresult (*CdUp)( - IVFSExplorer *pThis, - IProgress * * progress - ); - - nsresult (*EntryList)( - IVFSExplorer *pThis, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *typesSize, - PRUint32** types, - PRUint32 *sizesSize, - PRInt64** sizes, - PRUint32 *modesSize, - PRUint32** modes - ); - - nsresult (*Exists)( - IVFSExplorer *pThis, - PRUint32 namesSize, - PRUnichar ** names, - PRUint32 *existsSize, - PRUnichar *** exists - ); - - nsresult (*Remove)( - IVFSExplorer *pThis, - PRUint32 namesSize, - PRUnichar ** names, - IProgress * * progress - ); - -}; - -struct IVFSExplorer -{ - struct IVFSExplorer_vtbl *vtbl; -}; -/* End of struct IVFSExplorer Declaration */ - - -/* Start of struct IAppliance Declaration */ -# define IAPPLIANCE_IID_STR "3059cf9e-25c7-4f0b-9fa5-3c42e441670b" -# define IAPPLIANCE_IID { \ - 0x3059cf9e, 0x25c7, 0x4f0b, \ - { 0x9f, 0xa5, 0x3c, 0x42, 0xe4, 0x41, 0x67, 0x0b } \ -} -struct IAppliance_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetPath)(IAppliance *pThis, PRUnichar * *path); - - nsresult (*GetDisks)(IAppliance *pThis, PRUint32 *disksSize, PRUnichar= * **disks); - - nsresult (*GetVirtualSystemDescriptions)(IAppliance *pThis, PRUint32 *= virtualSystemDescriptionsSize, IVirtualSystemDescription * **virtualSystemD= escriptions); - - nsresult (*GetMachines)(IAppliance *pThis, PRUint32 *machinesSize, PRU= nichar * **machines); - - nsresult (*Read)( - IAppliance *pThis, - PRUnichar * file, - IProgress * * progress - ); - - nsresult (*Interpret)(IAppliance *pThis ); - - nsresult (*ImportMachines)( - IAppliance *pThis, - PRUint32 optionsSize, - PRUint32* options, - IProgress * * progress - ); - - nsresult (*CreateVFSExplorer)( - IAppliance *pThis, - PRUnichar * URI, - IVFSExplorer * * explorer - ); - - nsresult (*Write)( - IAppliance *pThis, - PRUnichar * format, - PRUint32 optionsSize, - PRUint32* options, - PRUnichar * path, - IProgress * * progress - ); - - nsresult (*GetWarnings)( - IAppliance *pThis, - PRUint32 *warningsSize, - PRUnichar *** warnings - ); - -}; - -struct IAppliance -{ - struct IAppliance_vtbl *vtbl; -}; -/* End of struct IAppliance Declaration */ - - -/* Start of struct IVirtualSystemDescription Declaration */ -# define IVIRTUALSYSTEMDESCRIPTION_IID_STR "d7525e6c-531a-4c51-8e04-41235= 083a3d8" -# define IVIRTUALSYSTEMDESCRIPTION_IID { \ - 0xd7525e6c, 0x531a, 0x4c51, \ - { 0x8e, 0x04, 0x41, 0x23, 0x50, 0x83, 0xa3, 0xd8 } \ -} -struct IVirtualSystemDescription_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetCount)(IVirtualSystemDescription *pThis, PRUint32 *count= ); - - nsresult (*GetDescription)( - IVirtualSystemDescription *pThis, - PRUint32 *typesSize, - PRUint32** types, - PRUint32 *refsSize, - PRUnichar *** refs, - PRUint32 *OVFValuesSize, - PRUnichar *** OVFValues, - PRUint32 *VBoxValuesSize, - PRUnichar *** VBoxValues, - PRUint32 *extraConfigValuesSize, - PRUnichar *** extraConfigValues - ); - - nsresult (*GetDescriptionByType)( - IVirtualSystemDescription *pThis, - PRUint32 type, - PRUint32 *typesSize, - PRUint32** types, - PRUint32 *refsSize, - PRUnichar *** refs, - PRUint32 *OVFValuesSize, - PRUnichar *** OVFValues, - PRUint32 *VBoxValuesSize, - PRUnichar *** VBoxValues, - PRUint32 *extraConfigValuesSize, - PRUnichar *** extraConfigValues - ); - - nsresult (*GetValuesByType)( - IVirtualSystemDescription *pThis, - PRUint32 type, - PRUint32 which, - PRUint32 *valuesSize, - PRUnichar *** values - ); - - nsresult (*SetFinalValues)( - IVirtualSystemDescription *pThis, - PRUint32 enabledSize, - PRBool* enabled, - PRUint32 VBoxValuesSize, - PRUnichar ** VBoxValues, - PRUint32 extraConfigValuesSize, - PRUnichar ** extraConfigValues - ); - - nsresult (*AddDescription)( - IVirtualSystemDescription *pThis, - PRUint32 type, - PRUnichar * VBoxValue, - PRUnichar * extraConfigValue - ); - -}; - -struct IVirtualSystemDescription -{ - struct IVirtualSystemDescription_vtbl *vtbl; -}; -/* End of struct IVirtualSystemDescription Declaration */ - - -/* Start of struct IInternalMachineControl Declaration */ -# define IINTERNALMACHINECONTROL_IID_STR "2d9ce4b7-0ab2-4931-ac4a-e45aa66= 465ef" -# define IINTERNALMACHINECONTROL_IID { \ - 0x2d9ce4b7, 0x0ab2, 0x4931, \ - { 0xac, 0x4a, 0xe4, 0x5a, 0xa6, 0x64, 0x65, 0xef } \ -} -struct IInternalMachineControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*SetRemoveSavedStateFile)( - IInternalMachineControl *pThis, - PRBool remove - ); - - nsresult (*UpdateState)( - IInternalMachineControl *pThis, - PRUint32 state - ); - - nsresult (*BeginPowerUp)( - IInternalMachineControl *pThis, - IProgress * progress - ); - - nsresult (*EndPowerUp)( - IInternalMachineControl *pThis, - PRInt32 result - ); - - nsresult (*BeginPoweringDown)( - IInternalMachineControl *pThis, - IProgress * * progress - ); - - nsresult (*EndPoweringDown)( - IInternalMachineControl *pThis, - PRInt32 result, - PRUnichar * errMsg - ); - - nsresult (*RunUSBDeviceFilters)( - IInternalMachineControl *pThis, - IUSBDevice * device, - PRBool * matched, - PRUint32 * maskedInterfaces - ); - - nsresult (*CaptureUSBDevice)( - IInternalMachineControl *pThis, - PRUnichar * id - ); - - nsresult (*DetachUSBDevice)( - IInternalMachineControl *pThis, - PRUnichar * id, - PRBool done - ); - - nsresult (*AutoCaptureUSBDevices)(IInternalMachineControl *pThis ); - - nsresult (*DetachAllUSBDevices)( - IInternalMachineControl *pThis, - PRBool done - ); - - nsresult (*OnSessionEnd)( - IInternalMachineControl *pThis, - ISession * session, - IProgress * * progress - ); - - nsresult (*BeginSavingState)( - IInternalMachineControl *pThis, - IProgress * * progress, - PRUnichar * * stateFilePath - ); - - nsresult (*EndSavingState)( - IInternalMachineControl *pThis, - PRInt32 result, - PRUnichar * errMsg - ); - - nsresult (*AdoptSavedState)( - IInternalMachineControl *pThis, - PRUnichar * savedStateFile - ); - - nsresult (*BeginTakingSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - PRUnichar * name, - PRUnichar * description, - IProgress * consoleProgress, - PRBool fTakingSnapshotOnline, - PRUnichar * * stateFilePath - ); - - nsresult (*EndTakingSnapshot)( - IInternalMachineControl *pThis, - PRBool success - ); - - nsresult (*DeleteSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - PRUnichar * startId, - PRUnichar * endId, - PRBool deleteAllChildren, - PRUint32 * machineState, - IProgress * * progress - ); - - nsresult (*FinishOnlineMergeMedium)(IInternalMachineControl *pThis ); - - nsresult (*RestoreSnapshot)( - IInternalMachineControl *pThis, - IConsole * initiator, - ISnapshot * snapshot, - PRUint32 * machineState, - IProgress * * progress - ); - - nsresult (*PullGuestProperties)( - IInternalMachineControl *pThis, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *valuesSize, - PRUnichar *** values, - PRUint32 *timestampsSize, - PRInt64** timestamps, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult (*PushGuestProperty)( - IInternalMachineControl *pThis, - PRUnichar * name, - PRUnichar * value, - PRInt64 timestamp, - PRUnichar * flags - ); - - nsresult (*LockMedia)(IInternalMachineControl *pThis ); - - nsresult (*UnlockMedia)(IInternalMachineControl *pThis ); - - nsresult (*EjectMedium)( - IInternalMachineControl *pThis, - IMediumAttachment * attachment, - IMediumAttachment * * newAttachment - ); - - nsresult (*ReportVmStatistics)( - IInternalMachineControl *pThis, - PRUint32 validStats, - PRUint32 cpuUser, - PRUint32 cpuKernel, - PRUint32 cpuIdle, - PRUint32 memTotal, - PRUint32 memFree, - PRUint32 memBalloon, - PRUint32 memShared, - PRUint32 memCache, - PRUint32 pagedTotal, - PRUint32 memAllocTotal, - PRUint32 memFreeTotal, - PRUint32 memBalloonTotal, - PRUint32 memSharedTotal, - PRUint32 vmNetRx, - PRUint32 vmNetTx - ); - -}; - -struct IInternalMachineControl -{ - struct IInternalMachineControl_vtbl *vtbl; -}; -/* End of struct IInternalMachineControl Declaration */ - - -/* Start of struct IBIOSSettings Declaration */ -# define IBIOSSETTINGS_IID_STR "38b54279-dc35-4f5e-a431-835b867c6b5e" -# define IBIOSSETTINGS_IID { \ - 0x38b54279, 0xdc35, 0x4f5e, \ - { 0xa4, 0x31, 0x83, 0x5b, 0x86, 0x7c, 0x6b, 0x5e } \ -} -struct IBIOSSettings_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetLogoFadeIn)(IBIOSSettings *pThis, PRBool *logoFadeIn); - nsresult (*SetLogoFadeIn)(IBIOSSettings *pThis, PRBool logoFadeIn); - - nsresult (*GetLogoFadeOut)(IBIOSSettings *pThis, PRBool *logoFadeOut); - nsresult (*SetLogoFadeOut)(IBIOSSettings *pThis, PRBool logoFadeOut); - - nsresult (*GetLogoDisplayTime)(IBIOSSettings *pThis, PRUint32 *logoDis= playTime); - nsresult (*SetLogoDisplayTime)(IBIOSSettings *pThis, PRUint32 logoDisp= layTime); - - nsresult (*GetLogoImagePath)(IBIOSSettings *pThis, PRUnichar * *logoIm= agePath); - nsresult (*SetLogoImagePath)(IBIOSSettings *pThis, PRUnichar * logoIma= gePath); - - nsresult (*GetBootMenuMode)(IBIOSSettings *pThis, PRUint32 *bootMenuMo= de); - nsresult (*SetBootMenuMode)(IBIOSSettings *pThis, PRUint32 bootMenuMod= e); - - nsresult (*GetACPIEnabled)(IBIOSSettings *pThis, PRBool *ACPIEnabled); - nsresult (*SetACPIEnabled)(IBIOSSettings *pThis, PRBool ACPIEnabled); - - nsresult (*GetIOAPICEnabled)(IBIOSSettings *pThis, PRBool *IOAPICEnabl= ed); - nsresult (*SetIOAPICEnabled)(IBIOSSettings *pThis, PRBool IOAPICEnable= d); - - nsresult (*GetTimeOffset)(IBIOSSettings *pThis, PRInt64 *timeOffset); - nsresult (*SetTimeOffset)(IBIOSSettings *pThis, PRInt64 timeOffset); - - nsresult (*GetPXEDebugEnabled)(IBIOSSettings *pThis, PRBool *PXEDebugE= nabled); - nsresult (*SetPXEDebugEnabled)(IBIOSSettings *pThis, PRBool PXEDebugEn= abled); - - nsresult (*GetNonVolatileStorageFile)(IBIOSSettings *pThis, PRUnichar = * *nonVolatileStorageFile); - -}; - -struct IBIOSSettings -{ - struct IBIOSSettings_vtbl *vtbl; -}; -/* End of struct IBIOSSettings Declaration */ - - -/* Start of struct IPCIAddress Declaration */ -# define IPCIADDRESS_IID_STR "c984d15f-e191-400b-840e-970f3dad7296" -# define IPCIADDRESS_IID { \ - 0xc984d15f, 0xe191, 0x400b, \ - { 0x84, 0x0e, 0x97, 0x0f, 0x3d, 0xad, 0x72, 0x96 } \ -} -struct IPCIAddress_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetBus)(IPCIAddress *pThis, PRInt16 *bus); - nsresult (*SetBus)(IPCIAddress *pThis, PRInt16 bus); - - nsresult (*GetDevice)(IPCIAddress *pThis, PRInt16 *device); - nsresult (*SetDevice)(IPCIAddress *pThis, PRInt16 device); - - nsresult (*GetDevFunction)(IPCIAddress *pThis, PRInt16 *devFunction); - nsresult (*SetDevFunction)(IPCIAddress *pThis, PRInt16 devFunction); - - nsresult (*AsLong)( - IPCIAddress *pThis, - PRInt32 * result - ); - - nsresult (*FromLong)( - IPCIAddress *pThis, - PRInt32 number - ); - -}; - -struct IPCIAddress -{ - struct IPCIAddress_vtbl *vtbl; -}; -/* End of struct IPCIAddress Declaration */ - - -/* Start of struct IPCIDeviceAttachment Declaration */ -# define IPCIDEVICEATTACHMENT_IID_STR "91f33d6f-e621-4f70-a77e-15f0e3c714= d5" -# define IPCIDEVICEATTACHMENT_IID { \ - 0x91f33d6f, 0xe621, 0x4f70, \ - { 0xa7, 0x7e, 0x15, 0xf0, 0xe3, 0xc7, 0x14, 0xd5 } \ -} -struct IPCIDeviceAttachment_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IPCIDeviceAttachment *pThis, PRUnichar * *name); - - nsresult (*GetIsPhysicalDevice)(IPCIDeviceAttachment *pThis, PRBool *i= sPhysicalDevice); - - nsresult (*GetHostAddress)(IPCIDeviceAttachment *pThis, PRInt32 *hostA= ddress); - - nsresult (*GetGuestAddress)(IPCIDeviceAttachment *pThis, PRInt32 *gues= tAddress); - -}; - -struct IPCIDeviceAttachment -{ - struct IPCIDeviceAttachment_vtbl *vtbl; -}; -/* End of struct IPCIDeviceAttachment Declaration */ - - -/* Start of struct IMachine Declaration */ -# define IMACHINE_IID_STR "480cf695-2d8d-4256-9c7c-cce4184fa048" -# define IMACHINE_IID { \ - 0x480cf695, 0x2d8d, 0x4256, \ - { 0x9c, 0x7c, 0xcc, 0xe4, 0x18, 0x4f, 0xa0, 0x48 } \ -} -struct IMachine_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetParent)(IMachine *pThis, IVirtualBox * *parent); - - nsresult (*GetIcon)(IMachine *pThis, PRUint32 *iconSize, PRUint8 **ico= n); - nsresult (*SetIcon)(IMachine *pThis, PRUint32 iconSize, PRUint8 *icon); - - nsresult (*GetAccessible)(IMachine *pThis, PRBool *accessible); - - nsresult (*GetAccessError)(IMachine *pThis, IVirtualBoxErrorInfo * *ac= cessError); - - nsresult (*GetName)(IMachine *pThis, PRUnichar * *name); - nsresult (*SetName)(IMachine *pThis, PRUnichar * name); - - nsresult (*GetDescription)(IMachine *pThis, PRUnichar * *description); - nsresult (*SetDescription)(IMachine *pThis, PRUnichar * description); - - nsresult (*GetId)(IMachine *pThis, PRUnichar * *id); - - nsresult (*GetGroups)(IMachine *pThis, PRUint32 *groupsSize, PRUnichar= * **groups); - nsresult (*SetGroups)(IMachine *pThis, PRUint32 groupsSize, PRUnichar = * *groups); - - nsresult (*GetOSTypeId)(IMachine *pThis, PRUnichar * *OSTypeId); - nsresult (*SetOSTypeId)(IMachine *pThis, PRUnichar * OSTypeId); - - nsresult (*GetHardwareVersion)(IMachine *pThis, PRUnichar * *hardwareV= ersion); - nsresult (*SetHardwareVersion)(IMachine *pThis, PRUnichar * hardwareVe= rsion); - - nsresult (*GetHardwareUUID)(IMachine *pThis, PRUnichar * *hardwareUUID= ); - nsresult (*SetHardwareUUID)(IMachine *pThis, PRUnichar * hardwareUUID); - - nsresult (*GetCPUCount)(IMachine *pThis, PRUint32 *CPUCount); - nsresult (*SetCPUCount)(IMachine *pThis, PRUint32 CPUCount); - - nsresult (*GetCPUHotPlugEnabled)(IMachine *pThis, PRBool *CPUHotPlugEn= abled); - nsresult (*SetCPUHotPlugEnabled)(IMachine *pThis, PRBool CPUHotPlugEna= bled); - - nsresult (*GetCPUExecutionCap)(IMachine *pThis, PRUint32 *CPUExecution= Cap); - nsresult (*SetCPUExecutionCap)(IMachine *pThis, PRUint32 CPUExecutionC= ap); - - nsresult (*GetMemorySize)(IMachine *pThis, PRUint32 *memorySize); - nsresult (*SetMemorySize)(IMachine *pThis, PRUint32 memorySize); - - nsresult (*GetMemoryBalloonSize)(IMachine *pThis, PRUint32 *memoryBall= oonSize); - nsresult (*SetMemoryBalloonSize)(IMachine *pThis, PRUint32 memoryBallo= onSize); - - nsresult (*GetPageFusionEnabled)(IMachine *pThis, PRBool *pageFusionEn= abled); - nsresult (*SetPageFusionEnabled)(IMachine *pThis, PRBool pageFusionEna= bled); - - nsresult (*GetGraphicsControllerType)(IMachine *pThis, PRUint32 *graph= icsControllerType); - nsresult (*SetGraphicsControllerType)(IMachine *pThis, PRUint32 graphi= csControllerType); - - nsresult (*GetVRAMSize)(IMachine *pThis, PRUint32 *VRAMSize); - nsresult (*SetVRAMSize)(IMachine *pThis, PRUint32 VRAMSize); - - nsresult (*GetAccelerate3DEnabled)(IMachine *pThis, PRBool *accelerate= 3DEnabled); - nsresult (*SetAccelerate3DEnabled)(IMachine *pThis, PRBool accelerate3= DEnabled); - - nsresult (*GetAccelerate2DVideoEnabled)(IMachine *pThis, PRBool *accel= erate2DVideoEnabled); - nsresult (*SetAccelerate2DVideoEnabled)(IMachine *pThis, PRBool accele= rate2DVideoEnabled); - - nsresult (*GetMonitorCount)(IMachine *pThis, PRUint32 *monitorCount); - nsresult (*SetMonitorCount)(IMachine *pThis, PRUint32 monitorCount); - - nsresult (*GetVideoCaptureEnabled)(IMachine *pThis, PRBool *videoCaptu= reEnabled); - nsresult (*SetVideoCaptureEnabled)(IMachine *pThis, PRBool videoCaptur= eEnabled); - - nsresult (*GetVideoCaptureScreens)(IMachine *pThis, PRUint32 *videoCap= tureScreensSize, PRBool **videoCaptureScreens); - nsresult (*SetVideoCaptureScreens)(IMachine *pThis, PRUint32 videoCapt= ureScreensSize, PRBool *videoCaptureScreens); - - nsresult (*GetVideoCaptureFile)(IMachine *pThis, PRUnichar * *videoCap= tureFile); - nsresult (*SetVideoCaptureFile)(IMachine *pThis, PRUnichar * videoCapt= ureFile); - - nsresult (*GetVideoCaptureWidth)(IMachine *pThis, PRUint32 *videoCaptu= reWidth); - nsresult (*SetVideoCaptureWidth)(IMachine *pThis, PRUint32 videoCaptur= eWidth); - - nsresult (*GetVideoCaptureHeight)(IMachine *pThis, PRUint32 *videoCapt= ureHeight); - nsresult (*SetVideoCaptureHeight)(IMachine *pThis, PRUint32 videoCaptu= reHeight); - - nsresult (*GetVideoCaptureRate)(IMachine *pThis, PRUint32 *videoCaptur= eRate); - nsresult (*SetVideoCaptureRate)(IMachine *pThis, PRUint32 videoCapture= Rate); - - nsresult (*GetVideoCaptureFPS)(IMachine *pThis, PRUint32 *videoCapture= FPS); - nsresult (*SetVideoCaptureFPS)(IMachine *pThis, PRUint32 videoCaptureF= PS); - - nsresult (*GetBIOSSettings)(IMachine *pThis, IBIOSSettings * *BIOSSett= ings); - - nsresult (*GetFirmwareType)(IMachine *pThis, PRUint32 *firmwareType); - nsresult (*SetFirmwareType)(IMachine *pThis, PRUint32 firmwareType); - - nsresult (*GetPointingHIDType)(IMachine *pThis, PRUint32 *pointingHIDT= ype); - nsresult (*SetPointingHIDType)(IMachine *pThis, PRUint32 pointingHIDTy= pe); - - nsresult (*GetKeyboardHIDType)(IMachine *pThis, PRUint32 *keyboardHIDT= ype); - nsresult (*SetKeyboardHIDType)(IMachine *pThis, PRUint32 keyboardHIDTy= pe); - - nsresult (*GetHPETEnabled)(IMachine *pThis, PRBool *HPETEnabled); - nsresult (*SetHPETEnabled)(IMachine *pThis, PRBool HPETEnabled); - - nsresult (*GetChipsetType)(IMachine *pThis, PRUint32 *chipsetType); - nsresult (*SetChipsetType)(IMachine *pThis, PRUint32 chipsetType); - - nsresult (*GetSnapshotFolder)(IMachine *pThis, PRUnichar * *snapshotFo= lder); - nsresult (*SetSnapshotFolder)(IMachine *pThis, PRUnichar * snapshotFol= der); - - nsresult (*GetVRDEServer)(IMachine *pThis, IVRDEServer * *VRDEServer); - - nsresult (*GetEmulatedUSBCardReaderEnabled)(IMachine *pThis, PRBool *e= mulatedUSBCardReaderEnabled); - nsresult (*SetEmulatedUSBCardReaderEnabled)(IMachine *pThis, PRBool em= ulatedUSBCardReaderEnabled); - - nsresult (*GetMediumAttachments)(IMachine *pThis, PRUint32 *mediumAtta= chmentsSize, IMediumAttachment * **mediumAttachments); - - nsresult (*GetUSBControllers)(IMachine *pThis, PRUint32 *USBController= sSize, IUSBController * **USBControllers); - - nsresult (*GetUSBDeviceFilters)(IMachine *pThis, IUSBDeviceFilters * *= USBDeviceFilters); - - nsresult (*GetAudioAdapter)(IMachine *pThis, IAudioAdapter * *audioAda= pter); - - nsresult (*GetStorageControllers)(IMachine *pThis, PRUint32 *storageCo= ntrollersSize, IStorageController * **storageControllers); - - nsresult (*GetSettingsFilePath)(IMachine *pThis, PRUnichar * *settings= FilePath); - - nsresult (*GetSettingsModified)(IMachine *pThis, PRBool *settingsModif= ied); - - nsresult (*GetSessionState)(IMachine *pThis, PRUint32 *sessionState); - - nsresult (*GetSessionType)(IMachine *pThis, PRUnichar * *sessionType); - - nsresult (*GetSessionPID)(IMachine *pThis, PRUint32 *sessionPID); - - nsresult (*GetState)(IMachine *pThis, PRUint32 *state); - - nsresult (*GetLastStateChange)(IMachine *pThis, PRInt64 *lastStateChan= ge); - - nsresult (*GetStateFilePath)(IMachine *pThis, PRUnichar * *stateFilePa= th); - - nsresult (*GetLogFolder)(IMachine *pThis, PRUnichar * *logFolder); - - nsresult (*GetCurrentSnapshot)(IMachine *pThis, ISnapshot * *currentSn= apshot); - - nsresult (*GetSnapshotCount)(IMachine *pThis, PRUint32 *snapshotCount); - - nsresult (*GetCurrentStateModified)(IMachine *pThis, PRBool *currentSt= ateModified); - - nsresult (*GetSharedFolders)(IMachine *pThis, PRUint32 *sharedFoldersS= ize, ISharedFolder * **sharedFolders); - - nsresult (*GetClipboardMode)(IMachine *pThis, PRUint32 *clipboardMode); - nsresult (*SetClipboardMode)(IMachine *pThis, PRUint32 clipboardMode); - - nsresult (*GetDragAndDropMode)(IMachine *pThis, PRUint32 *dragAndDropM= ode); - nsresult (*SetDragAndDropMode)(IMachine *pThis, PRUint32 dragAndDropMo= de); - - nsresult (*GetGuestPropertyNotificationPatterns)(IMachine *pThis, PRUn= ichar * *guestPropertyNotificationPatterns); - nsresult (*SetGuestPropertyNotificationPatterns)(IMachine *pThis, PRUn= ichar * guestPropertyNotificationPatterns); - - nsresult (*GetTeleporterEnabled)(IMachine *pThis, PRBool *teleporterEn= abled); - nsresult (*SetTeleporterEnabled)(IMachine *pThis, PRBool teleporterEna= bled); - - nsresult (*GetTeleporterPort)(IMachine *pThis, PRUint32 *teleporterPor= t); - nsresult (*SetTeleporterPort)(IMachine *pThis, PRUint32 teleporterPort= ); - - nsresult (*GetTeleporterAddress)(IMachine *pThis, PRUnichar * *telepor= terAddress); - nsresult (*SetTeleporterAddress)(IMachine *pThis, PRUnichar * teleport= erAddress); - - nsresult (*GetTeleporterPassword)(IMachine *pThis, PRUnichar * *telepo= rterPassword); - nsresult (*SetTeleporterPassword)(IMachine *pThis, PRUnichar * telepor= terPassword); - - nsresult (*GetFaultToleranceState)(IMachine *pThis, PRUint32 *faultTol= eranceState); - nsresult (*SetFaultToleranceState)(IMachine *pThis, PRUint32 faultTole= ranceState); - - nsresult (*GetFaultTolerancePort)(IMachine *pThis, PRUint32 *faultTole= rancePort); - nsresult (*SetFaultTolerancePort)(IMachine *pThis, PRUint32 faultToler= ancePort); - - nsresult (*GetFaultToleranceAddress)(IMachine *pThis, PRUnichar * *fau= ltToleranceAddress); - nsresult (*SetFaultToleranceAddress)(IMachine *pThis, PRUnichar * faul= tToleranceAddress); - - nsresult (*GetFaultTolerancePassword)(IMachine *pThis, PRUnichar * *fa= ultTolerancePassword); - nsresult (*SetFaultTolerancePassword)(IMachine *pThis, PRUnichar * fau= ltTolerancePassword); - - nsresult (*GetFaultToleranceSyncInterval)(IMachine *pThis, PRUint32 *f= aultToleranceSyncInterval); - nsresult (*SetFaultToleranceSyncInterval)(IMachine *pThis, PRUint32 fa= ultToleranceSyncInterval); - - nsresult (*GetRTCUseUTC)(IMachine *pThis, PRBool *RTCUseUTC); - nsresult (*SetRTCUseUTC)(IMachine *pThis, PRBool RTCUseUTC); - - nsresult (*GetIOCacheEnabled)(IMachine *pThis, PRBool *IOCacheEnabled); - nsresult (*SetIOCacheEnabled)(IMachine *pThis, PRBool IOCacheEnabled); - - nsresult (*GetIOCacheSize)(IMachine *pThis, PRUint32 *IOCacheSize); - nsresult (*SetIOCacheSize)(IMachine *pThis, PRUint32 IOCacheSize); - - nsresult (*GetPCIDeviceAssignments)(IMachine *pThis, PRUint32 *PCIDevi= ceAssignmentsSize, IPCIDeviceAttachment * **PCIDeviceAssignments); - - nsresult (*GetBandwidthControl)(IMachine *pThis, IBandwidthControl * *= bandwidthControl); - - nsresult (*GetTracingEnabled)(IMachine *pThis, PRBool *tracingEnabled); - nsresult (*SetTracingEnabled)(IMachine *pThis, PRBool tracingEnabled); - - nsresult (*GetTracingConfig)(IMachine *pThis, PRUnichar * *tracingConf= ig); - nsresult (*SetTracingConfig)(IMachine *pThis, PRUnichar * tracingConfi= g); - - nsresult (*GetAllowTracingToAccessVM)(IMachine *pThis, PRBool *allowTr= acingToAccessVM); - nsresult (*SetAllowTracingToAccessVM)(IMachine *pThis, PRBool allowTra= cingToAccessVM); - - nsresult (*GetAutostartEnabled)(IMachine *pThis, PRBool *autostartEnab= led); - nsresult (*SetAutostartEnabled)(IMachine *pThis, PRBool autostartEnabl= ed); - - nsresult (*GetAutostartDelay)(IMachine *pThis, PRUint32 *autostartDela= y); - nsresult (*SetAutostartDelay)(IMachine *pThis, PRUint32 autostartDelay= ); - - nsresult (*GetAutostopType)(IMachine *pThis, PRUint32 *autostopType); - nsresult (*SetAutostopType)(IMachine *pThis, PRUint32 autostopType); - - nsresult (*GetDefaultFrontend)(IMachine *pThis, PRUnichar * *defaultFr= ontend); - nsresult (*SetDefaultFrontend)(IMachine *pThis, PRUnichar * defaultFro= ntend); - - nsresult (*GetUSBProxyAvailable)(IMachine *pThis, PRBool *USBProxyAvai= lable); - - nsresult (*LockMachine)( - IMachine *pThis, - ISession * session, - PRUint32 lockType - ); - - nsresult (*LaunchVMProcess)( - IMachine *pThis, - ISession * session, - PRUnichar * type, - PRUnichar * environment, - IProgress * * progress - ); - - nsresult (*SetBootOrder)( - IMachine *pThis, - PRUint32 position, - PRUint32 device - ); - - nsresult (*GetBootOrder)( - IMachine *pThis, - PRUint32 position, - PRUint32 * device - ); - - nsresult (*AttachDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRUint32 type, - IMedium * medium - ); - - nsresult (*AttachDeviceWithoutMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRUint32 type - ); - - nsresult (*DetachDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device - ); - - nsresult (*PassthroughDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool passthrough - ); - - nsresult (*TemporaryEjectDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool temporaryEject - ); - - nsresult (*NonRotationalDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool nonRotational - ); - - nsresult (*SetAutoDiscardForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool discard - ); - - nsresult (*SetHotPluggableForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool hotPluggable - ); - - nsresult (*SetBandwidthGroupForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IBandwidthGroup * bandwidthGroup - ); - - nsresult (*SetNoBandwidthGroupForDevice)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device - ); - - nsresult (*UnmountMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - PRBool force - ); - - nsresult (*MountMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMedium * medium, - PRBool force - ); - - nsresult (*GetMedium)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMedium * * medium - ); - - nsresult (*GetMediumAttachmentsOfController)( - IMachine *pThis, - PRUnichar * name, - PRUint32 *mediumAttachmentsSize, - IMediumAttachment *** mediumAttachments - ); - - nsresult (*GetMediumAttachment)( - IMachine *pThis, - PRUnichar * name, - PRInt32 controllerPort, - PRInt32 device, - IMediumAttachment * * attachment - ); - - nsresult (*AttachHostPCIDevice)( - IMachine *pThis, - PRInt32 hostAddress, - PRInt32 desiredGuestAddress, - PRBool tryToUnbind - ); - - nsresult (*DetachHostPCIDevice)( - IMachine *pThis, - PRInt32 hostAddress - ); - - nsresult (*GetNetworkAdapter)( - IMachine *pThis, - PRUint32 slot, - INetworkAdapter * * adapter - ); - - nsresult (*AddStorageController)( - IMachine *pThis, - PRUnichar * name, - PRUint32 connectionType, - IStorageController * * controller - ); - - nsresult (*GetStorageControllerByName)( - IMachine *pThis, - PRUnichar * name, - IStorageController * * storageController - ); - - nsresult (*GetStorageControllerByInstance)( - IMachine *pThis, - PRUint32 instance, - IStorageController * * storageController - ); - - nsresult (*RemoveStorageController)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult (*SetStorageControllerBootable)( - IMachine *pThis, - PRUnichar * name, - PRBool bootable - ); - - nsresult (*AddUSBController)( - IMachine *pThis, - PRUnichar * name, - PRUint32 type, - IUSBController * * controller - ); - - nsresult (*RemoveUSBController)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult (*GetUSBControllerByName)( - IMachine *pThis, - PRUnichar * name, - IUSBController * * controller - ); - - nsresult (*GetUSBControllerCountByType)( - IMachine *pThis, - PRUint32 type, - PRUint32 * controllers - ); - - nsresult (*GetSerialPort)( - IMachine *pThis, - PRUint32 slot, - ISerialPort * * port - ); - - nsresult (*GetParallelPort)( - IMachine *pThis, - PRUint32 slot, - IParallelPort * * port - ); - - nsresult (*GetExtraDataKeys)( - IMachine *pThis, - PRUint32 *keysSize, - PRUnichar *** keys - ); - - nsresult (*GetExtraData)( - IMachine *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult (*SetExtraData)( - IMachine *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult (*GetCPUProperty)( - IMachine *pThis, - PRUint32 property, - PRBool * value - ); - - nsresult (*SetCPUProperty)( - IMachine *pThis, - PRUint32 property, - PRBool value - ); - - nsresult (*GetCPUIDLeaf)( - IMachine *pThis, - PRUint32 id, - PRUint32 * valEax, - PRUint32 * valEbx, - PRUint32 * valEcx, - PRUint32 * valEdx - ); - - nsresult (*SetCPUIDLeaf)( - IMachine *pThis, - PRUint32 id, - PRUint32 valEax, - PRUint32 valEbx, - PRUint32 valEcx, - PRUint32 valEdx - ); - - nsresult (*RemoveCPUIDLeaf)( - IMachine *pThis, - PRUint32 id - ); - - nsresult (*RemoveAllCPUIDLeaves)(IMachine *pThis ); - - nsresult (*GetHWVirtExProperty)( - IMachine *pThis, - PRUint32 property, - PRBool * value - ); - - nsresult (*SetHWVirtExProperty)( - IMachine *pThis, - PRUint32 property, - PRBool value - ); - - nsresult (*SetSettingsFilePath)( - IMachine *pThis, - PRUnichar * settingsFilePath, - IProgress * * progress - ); - - nsresult (*SaveSettings)(IMachine *pThis ); - - nsresult (*DiscardSettings)(IMachine *pThis ); - - nsresult (*Unregister)( - IMachine *pThis, - PRUint32 cleanupMode, - PRUint32 *mediaSize, - IMedium *** media - ); - - nsresult (*DeleteConfig)( - IMachine *pThis, - PRUint32 mediaSize, - IMedium ** media, - IProgress * * progress - ); - - nsresult (*ExportTo)( - IMachine *pThis, - IAppliance * appliance, - PRUnichar * location, - IVirtualSystemDescription * * description - ); - - nsresult (*FindSnapshot)( - IMachine *pThis, - PRUnichar * nameOrId, - ISnapshot * * snapshot - ); - - nsresult (*CreateSharedFolder)( - IMachine *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult (*RemoveSharedFolder)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult (*CanShowConsoleWindow)( - IMachine *pThis, - PRBool * canShow - ); - - nsresult (*ShowConsoleWindow)( - IMachine *pThis, - PRInt64 * winId - ); - - nsresult (*GetGuestProperty)( - IMachine *pThis, - PRUnichar * name, - PRUnichar * * value, - PRInt64 * timestamp, - PRUnichar * * flags - ); - - nsresult (*GetGuestPropertyValue)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * * value - ); - - nsresult (*GetGuestPropertyTimestamp)( - IMachine *pThis, - PRUnichar * property, - PRInt64 * value - ); - - nsresult (*SetGuestProperty)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * value, - PRUnichar * flags - ); - - nsresult (*SetGuestPropertyValue)( - IMachine *pThis, - PRUnichar * property, - PRUnichar * value - ); - - nsresult (*DeleteGuestProperty)( - IMachine *pThis, - PRUnichar * name - ); - - nsresult (*EnumerateGuestProperties)( - IMachine *pThis, - PRUnichar * patterns, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *valuesSize, - PRUnichar *** values, - PRUint32 *timestampsSize, - PRInt64** timestamps, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult (*QuerySavedGuestScreenInfo)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * originX, - PRUint32 * originY, - PRUint32 * width, - PRUint32 * height, - PRBool * enabled - ); - - nsresult (*QuerySavedThumbnailSize)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * size, - PRUint32 * width, - PRUint32 * height - ); - - nsresult (*ReadSavedThumbnailToArray)( - IMachine *pThis, - PRUint32 screenId, - PRBool BGR, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*ReadSavedThumbnailPNGToArray)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*QuerySavedScreenshotPNGSize)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * size, - PRUint32 * width, - PRUint32 * height - ); - - nsresult (*ReadSavedScreenshotPNGToArray)( - IMachine *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*HotPlugCPU)( - IMachine *pThis, - PRUint32 cpu - ); - - nsresult (*HotUnplugCPU)( - IMachine *pThis, - PRUint32 cpu - ); - - nsresult (*GetCPUStatus)( - IMachine *pThis, - PRUint32 cpu, - PRBool * attached - ); - - nsresult (*QueryLogFilename)( - IMachine *pThis, - PRUint32 idx, - PRUnichar * * filename - ); - - nsresult (*ReadLog)( - IMachine *pThis, - PRUint32 idx, - PRInt64 offset, - PRInt64 size, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*CloneTo)( - IMachine *pThis, - IMachine * target, - PRUint32 mode, - PRUint32 optionsSize, - PRUint32* options, - IProgress * * progress - ); - -}; - -struct IMachine -{ - struct IMachine_vtbl *vtbl; -}; -/* End of struct IMachine Declaration */ - - -/* Start of struct IEmulatedUSB Declaration */ -# define IEMULATEDUSB_IID_STR "38cc4dfd-8bb2-4d40-aebe-699eead8c2dd" -# define IEMULATEDUSB_IID { \ - 0x38cc4dfd, 0x8bb2, 0x4d40, \ - { 0xae, 0xbe, 0x69, 0x9e, 0xea, 0xd8, 0xc2, 0xdd } \ -} -struct IEmulatedUSB_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetWebcams)(IEmulatedUSB *pThis, PRUint32 *webcamsSize, PRU= nichar * **webcams); - - nsresult (*WebcamAttach)( - IEmulatedUSB *pThis, - PRUnichar * path, - PRUnichar * settings - ); - - nsresult (*WebcamDetach)( - IEmulatedUSB *pThis, - PRUnichar * path - ); - -}; - -struct IEmulatedUSB -{ - struct IEmulatedUSB_vtbl *vtbl; -}; -/* End of struct IEmulatedUSB Declaration */ - - -/* Start of struct IVRDEServerInfo Declaration */ -# define IVRDESERVERINFO_IID_STR "714434a1-58c3-4aab-9049-7652c5df113b" -# define IVRDESERVERINFO_IID { \ - 0x714434a1, 0x58c3, 0x4aab, \ - { 0x90, 0x49, 0x76, 0x52, 0xc5, 0xdf, 0x11, 0x3b } \ -} -struct IVRDEServerInfo_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetActive)(IVRDEServerInfo *pThis, PRBool *active); - - nsresult (*GetPort)(IVRDEServerInfo *pThis, PRInt32 *port); - - nsresult (*GetNumberOfClients)(IVRDEServerInfo *pThis, PRUint32 *numbe= rOfClients); - - nsresult (*GetBeginTime)(IVRDEServerInfo *pThis, PRInt64 *beginTime); - - nsresult (*GetEndTime)(IVRDEServerInfo *pThis, PRInt64 *endTime); - - nsresult (*GetBytesSent)(IVRDEServerInfo *pThis, PRInt64 *bytesSent); - - nsresult (*GetBytesSentTotal)(IVRDEServerInfo *pThis, PRInt64 *bytesSe= ntTotal); - - nsresult (*GetBytesReceived)(IVRDEServerInfo *pThis, PRInt64 *bytesRec= eived); - - nsresult (*GetBytesReceivedTotal)(IVRDEServerInfo *pThis, PRInt64 *byt= esReceivedTotal); - - nsresult (*GetUser)(IVRDEServerInfo *pThis, PRUnichar * *user); - - nsresult (*GetDomain)(IVRDEServerInfo *pThis, PRUnichar * *domain); - - nsresult (*GetClientName)(IVRDEServerInfo *pThis, PRUnichar * *clientN= ame); - - nsresult (*GetClientIP)(IVRDEServerInfo *pThis, PRUnichar * *clientIP); - - nsresult (*GetClientVersion)(IVRDEServerInfo *pThis, PRUint32 *clientV= ersion); - - nsresult (*GetEncryptionStyle)(IVRDEServerInfo *pThis, PRUint32 *encry= ptionStyle); - -}; - -struct IVRDEServerInfo -{ - struct IVRDEServerInfo_vtbl *vtbl; -}; -/* End of struct IVRDEServerInfo Declaration */ - - -/* Start of struct IConsole Declaration */ -# define ICONSOLE_IID_STR "8ab7c520-2442-4b66-8d74-4ff1e195d2b6" -# define ICONSOLE_IID { \ - 0x8ab7c520, 0x2442, 0x4b66, \ - { 0x8d, 0x74, 0x4f, 0xf1, 0xe1, 0x95, 0xd2, 0xb6 } \ -} -struct IConsole_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetMachine)(IConsole *pThis, IMachine * *machine); - - nsresult (*GetState)(IConsole *pThis, PRUint32 *state); - - nsresult (*GetGuest)(IConsole *pThis, IGuest * *guest); - - nsresult (*GetKeyboard)(IConsole *pThis, IKeyboard * *keyboard); - - nsresult (*GetMouse)(IConsole *pThis, IMouse * *mouse); - - nsresult (*GetDisplay)(IConsole *pThis, IDisplay * *display); - - nsresult (*GetDebugger)(IConsole *pThis, IMachineDebugger * *debugger); - - nsresult (*GetUSBDevices)(IConsole *pThis, PRUint32 *USBDevicesSize, I= USBDevice * **USBDevices); - - nsresult (*GetRemoteUSBDevices)(IConsole *pThis, PRUint32 *remoteUSBDe= vicesSize, IHostUSBDevice * **remoteUSBDevices); - - nsresult (*GetSharedFolders)(IConsole *pThis, PRUint32 *sharedFoldersS= ize, ISharedFolder * **sharedFolders); - - nsresult (*GetVRDEServerInfo)(IConsole *pThis, IVRDEServerInfo * *VRDE= ServerInfo); - - nsresult (*GetEventSource)(IConsole *pThis, IEventSource * *eventSourc= e); - - nsresult (*GetAttachedPCIDevices)(IConsole *pThis, PRUint32 *attachedP= CIDevicesSize, IPCIDeviceAttachment * **attachedPCIDevices); - - nsresult (*GetUseHostClipboard)(IConsole *pThis, PRBool *useHostClipbo= ard); - nsresult (*SetUseHostClipboard)(IConsole *pThis, PRBool useHostClipboa= rd); - - nsresult (*GetEmulatedUSB)(IConsole *pThis, IEmulatedUSB * *emulatedUS= B); - - nsresult (*PowerUp)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult (*PowerUpPaused)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult (*PowerDown)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult (*Reset)(IConsole *pThis ); - - nsresult (*Pause)(IConsole *pThis ); - - nsresult (*Resume)(IConsole *pThis ); - - nsresult (*PowerButton)(IConsole *pThis ); - - nsresult (*SleepButton)(IConsole *pThis ); - - nsresult (*GetPowerButtonHandled)( - IConsole *pThis, - PRBool * handled - ); - - nsresult (*GetGuestEnteredACPIMode)( - IConsole *pThis, - PRBool * entered - ); - - nsresult (*SaveState)( - IConsole *pThis, - IProgress * * progress - ); - - nsresult (*AdoptSavedState)( - IConsole *pThis, - PRUnichar * savedStateFile - ); - - nsresult (*DiscardSavedState)( - IConsole *pThis, - PRBool fRemoveFile - ); - - nsresult (*GetDeviceActivity)( - IConsole *pThis, - PRUint32 type, - PRUint32 * activity - ); - - nsresult (*AttachUSBDevice)( - IConsole *pThis, - PRUnichar * id - ); - - nsresult (*DetachUSBDevice)( - IConsole *pThis, - PRUnichar * id, - IUSBDevice * * device - ); - - nsresult (*FindUSBDeviceByAddress)( - IConsole *pThis, - PRUnichar * name, - IUSBDevice * * device - ); - - nsresult (*FindUSBDeviceById)( - IConsole *pThis, - PRUnichar * id, - IUSBDevice * * device - ); - - nsresult (*CreateSharedFolder)( - IConsole *pThis, - PRUnichar * name, - PRUnichar * hostPath, - PRBool writable, - PRBool automount - ); - - nsresult (*RemoveSharedFolder)( - IConsole *pThis, - PRUnichar * name - ); - - nsresult (*TakeSnapshot)( - IConsole *pThis, - PRUnichar * name, - PRUnichar * description, - IProgress * * progress - ); - - nsresult (*DeleteSnapshot)( - IConsole *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult (*DeleteSnapshotAndAllChildren)( - IConsole *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult (*DeleteSnapshotRange)( - IConsole *pThis, - PRUnichar * startId, - PRUnichar * endId, - IProgress * * progress - ); - - nsresult (*RestoreSnapshot)( - IConsole *pThis, - ISnapshot * snapshot, - IProgress * * progress - ); - - nsresult (*Teleport)( - IConsole *pThis, - PRUnichar * hostname, - PRUint32 tcpport, - PRUnichar * password, - PRUint32 maxDowntime, - IProgress * * progress - ); - -}; - -struct IConsole -{ - struct IConsole_vtbl *vtbl; -}; -/* End of struct IConsole Declaration */ - - -/* Start of struct IHostNetworkInterface Declaration */ -# define IHOSTNETWORKINTERFACE_IID_STR "f6e556f9-d598-409b-898c-8ba99d9b0= 5ae" -# define IHOSTNETWORKINTERFACE_IID { \ - 0xf6e556f9, 0xd598, 0x409b, \ - { 0x89, 0x8c, 0x8b, 0xa9, 0x9d, 0x9b, 0x05, 0xae } \ -} -struct IHostNetworkInterface_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IHostNetworkInterface *pThis, PRUnichar * *name); - - nsresult (*GetShortName)(IHostNetworkInterface *pThis, PRUnichar * *sh= ortName); - - nsresult (*GetId)(IHostNetworkInterface *pThis, PRUnichar * *id); - - nsresult (*GetNetworkName)(IHostNetworkInterface *pThis, PRUnichar * *= networkName); - - nsresult (*GetDHCPEnabled)(IHostNetworkInterface *pThis, PRBool *DHCPE= nabled); - - nsresult (*GetIPAddress)(IHostNetworkInterface *pThis, PRUnichar * *IP= Address); - - nsresult (*GetNetworkMask)(IHostNetworkInterface *pThis, PRUnichar * *= networkMask); - - nsresult (*GetIPV6Supported)(IHostNetworkInterface *pThis, PRBool *IPV= 6Supported); - - nsresult (*GetIPV6Address)(IHostNetworkInterface *pThis, PRUnichar * *= IPV6Address); - - nsresult (*GetIPV6NetworkMaskPrefixLength)(IHostNetworkInterface *pThi= s, PRUint32 *IPV6NetworkMaskPrefixLength); - - nsresult (*GetHardwareAddress)(IHostNetworkInterface *pThis, PRUnichar= * *hardwareAddress); - - nsresult (*GetMediumType)(IHostNetworkInterface *pThis, PRUint32 *medi= umType); - - nsresult (*GetStatus)(IHostNetworkInterface *pThis, PRUint32 *status); - - nsresult (*GetInterfaceType)(IHostNetworkInterface *pThis, PRUint32 *i= nterfaceType); - - nsresult (*EnableStaticIPConfig)( - IHostNetworkInterface *pThis, - PRUnichar * IPAddress, - PRUnichar * networkMask - ); - - nsresult (*EnableStaticIPConfigV6)( - IHostNetworkInterface *pThis, - PRUnichar * IPV6Address, - PRUint32 IPV6NetworkMaskPrefixLength - ); - - nsresult (*EnableDynamicIPConfig)(IHostNetworkInterface *pThis ); - - nsresult (*DHCPRediscover)(IHostNetworkInterface *pThis ); - -}; - -struct IHostNetworkInterface -{ - struct IHostNetworkInterface_vtbl *vtbl; -}; -/* End of struct IHostNetworkInterface Declaration */ - - -/* Start of struct IHostVideoInputDevice Declaration */ -# define IHOSTVIDEOINPUTDEVICE_IID_STR "a1ceae44-d65e-4156-9359-d390f93ee= 9a0" -# define IHOSTVIDEOINPUTDEVICE_IID { \ - 0xa1ceae44, 0xd65e, 0x4156, \ - { 0x93, 0x59, 0xd3, 0x90, 0xf9, 0x3e, 0xe9, 0xa0 } \ -} -struct IHostVideoInputDevice_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IHostVideoInputDevice *pThis, PRUnichar * *name); - - nsresult (*GetPath)(IHostVideoInputDevice *pThis, PRUnichar * *path); - - nsresult (*GetAlias)(IHostVideoInputDevice *pThis, PRUnichar * *alias); - -}; - -struct IHostVideoInputDevice -{ - struct IHostVideoInputDevice_vtbl *vtbl; -}; -/* End of struct IHostVideoInputDevice Declaration */ - - -/* Start of struct IHost Declaration */ -# define IHOST_IID_STR "93269330-48ca-4096-b4a2-1189df336267" -# define IHOST_IID { \ - 0x93269330, 0x48ca, 0x4096, \ - { 0xb4, 0xa2, 0x11, 0x89, 0xdf, 0x33, 0x62, 0x67 } \ -} -struct IHost_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetDVDDrives)(IHost *pThis, PRUint32 *DVDDrivesSize, IMediu= m * **DVDDrives); - - nsresult (*GetFloppyDrives)(IHost *pThis, PRUint32 *floppyDrivesSize, = IMedium * **floppyDrives); - - nsresult (*GetUSBDevices)(IHost *pThis, PRUint32 *USBDevicesSize, IHos= tUSBDevice * **USBDevices); - - nsresult (*GetUSBDeviceFilters)(IHost *pThis, PRUint32 *USBDeviceFilte= rsSize, IHostUSBDeviceFilter * **USBDeviceFilters); - - nsresult (*GetNetworkInterfaces)(IHost *pThis, PRUint32 *networkInterf= acesSize, IHostNetworkInterface * **networkInterfaces); - - nsresult (*GetNameServers)(IHost *pThis, PRUint32 *nameServersSize, PR= Unichar * **nameServers); - - nsresult (*GetDomainName)(IHost *pThis, PRUnichar * *domainName); - - nsresult (*GetSearchStrings)(IHost *pThis, PRUint32 *searchStringsSize= , PRUnichar * **searchStrings); - - nsresult (*GetProcessorCount)(IHost *pThis, PRUint32 *processorCount); - - nsresult (*GetProcessorOnlineCount)(IHost *pThis, PRUint32 *processorO= nlineCount); - - nsresult (*GetProcessorCoreCount)(IHost *pThis, PRUint32 *processorCor= eCount); - - nsresult (*GetProcessorOnlineCoreCount)(IHost *pThis, PRUint32 *proces= sorOnlineCoreCount); - - nsresult (*GetMemorySize)(IHost *pThis, PRUint32 *memorySize); - - nsresult (*GetMemoryAvailable)(IHost *pThis, PRUint32 *memoryAvailable= ); - - nsresult (*GetOperatingSystem)(IHost *pThis, PRUnichar * *operatingSys= tem); - - nsresult (*GetOSVersion)(IHost *pThis, PRUnichar * *OSVersion); - - nsresult (*GetUTCTime)(IHost *pThis, PRInt64 *UTCTime); - - nsresult (*GetAcceleration3DAvailable)(IHost *pThis, PRBool *accelerat= ion3DAvailable); - - nsresult (*GetVideoInputDevices)(IHost *pThis, PRUint32 *videoInputDev= icesSize, IHostVideoInputDevice * **videoInputDevices); - - nsresult (*GetProcessorSpeed)( - IHost *pThis, - PRUint32 cpuId, - PRUint32 * speed - ); - - nsresult (*GetProcessorFeature)( - IHost *pThis, - PRUint32 feature, - PRBool * supported - ); - - nsresult (*GetProcessorDescription)( - IHost *pThis, - PRUint32 cpuId, - PRUnichar * * description - ); - - nsresult (*GetProcessorCPUIDLeaf)( - IHost *pThis, - PRUint32 cpuId, - PRUint32 leaf, - PRUint32 subLeaf, - PRUint32 * valEax, - PRUint32 * valEbx, - PRUint32 * valEcx, - PRUint32 * valEdx - ); - - nsresult (*CreateHostOnlyNetworkInterface)( - IHost *pThis, - IHostNetworkInterface * * hostInterface, - IProgress * * progress - ); - - nsresult (*RemoveHostOnlyNetworkInterface)( - IHost *pThis, - PRUnichar * id, - IProgress * * progress - ); - - nsresult (*CreateUSBDeviceFilter)( - IHost *pThis, - PRUnichar * name, - IHostUSBDeviceFilter * * filter - ); - - nsresult (*InsertUSBDeviceFilter)( - IHost *pThis, - PRUint32 position, - IHostUSBDeviceFilter * filter - ); - - nsresult (*RemoveUSBDeviceFilter)( - IHost *pThis, - PRUint32 position - ); - - nsresult (*FindHostDVDDrive)( - IHost *pThis, - PRUnichar * name, - IMedium * * drive - ); - - nsresult (*FindHostFloppyDrive)( - IHost *pThis, - PRUnichar * name, - IMedium * * drive - ); - - nsresult (*FindHostNetworkInterfaceByName)( - IHost *pThis, - PRUnichar * name, - IHostNetworkInterface * * networkInterface - ); - - nsresult (*FindHostNetworkInterfaceById)( - IHost *pThis, - PRUnichar * id, - IHostNetworkInterface * * networkInterface - ); - - nsresult (*FindHostNetworkInterfacesOfType)( - IHost *pThis, - PRUint32 type, - PRUint32 *networkInterfacesSize, - IHostNetworkInterface *** networkInterfaces - ); - - nsresult (*FindUSBDeviceById)( - IHost *pThis, - PRUnichar * id, - IHostUSBDevice * * device - ); - - nsresult (*FindUSBDeviceByAddress)( - IHost *pThis, - PRUnichar * name, - IHostUSBDevice * * device - ); - - nsresult (*GenerateMACAddress)( - IHost *pThis, - PRUnichar * * address - ); - -}; - -struct IHost -{ - struct IHost_vtbl *vtbl; -}; -/* End of struct IHost Declaration */ - - -/* Start of struct ISystemProperties Declaration */ -# define ISYSTEMPROPERTIES_IID_STR "1254a96a-ae57-4484-946a-22d86c1f98af" -# define ISYSTEMPROPERTIES_IID { \ - 0x1254a96a, 0xae57, 0x4484, \ - { 0x94, 0x6a, 0x22, 0xd8, 0x6c, 0x1f, 0x98, 0xaf } \ -} -struct ISystemProperties_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetMinGuestRAM)(ISystemProperties *pThis, PRUint32 *minGues= tRAM); - - nsresult (*GetMaxGuestRAM)(ISystemProperties *pThis, PRUint32 *maxGues= tRAM); - - nsresult (*GetMinGuestVRAM)(ISystemProperties *pThis, PRUint32 *minGue= stVRAM); - - nsresult (*GetMaxGuestVRAM)(ISystemProperties *pThis, PRUint32 *maxGue= stVRAM); - - nsresult (*GetMinGuestCPUCount)(ISystemProperties *pThis, PRUint32 *mi= nGuestCPUCount); - - nsresult (*GetMaxGuestCPUCount)(ISystemProperties *pThis, PRUint32 *ma= xGuestCPUCount); - - nsresult (*GetMaxGuestMonitors)(ISystemProperties *pThis, PRUint32 *ma= xGuestMonitors); - - nsresult (*GetInfoVDSize)(ISystemProperties *pThis, PRInt64 *infoVDSiz= e); - - nsresult (*GetSerialPortCount)(ISystemProperties *pThis, PRUint32 *ser= ialPortCount); - - nsresult (*GetParallelPortCount)(ISystemProperties *pThis, PRUint32 *p= arallelPortCount); - - nsresult (*GetMaxBootPosition)(ISystemProperties *pThis, PRUint32 *max= BootPosition); - - nsresult (*GetExclusiveHwVirt)(ISystemProperties *pThis, PRBool *exclu= siveHwVirt); - nsresult (*SetExclusiveHwVirt)(ISystemProperties *pThis, PRBool exclus= iveHwVirt); - - nsresult (*GetDefaultMachineFolder)(ISystemProperties *pThis, PRUnicha= r * *defaultMachineFolder); - nsresult (*SetDefaultMachineFolder)(ISystemProperties *pThis, PRUnicha= r * defaultMachineFolder); - - nsresult (*GetLoggingLevel)(ISystemProperties *pThis, PRUnichar * *log= gingLevel); - nsresult (*SetLoggingLevel)(ISystemProperties *pThis, PRUnichar * logg= ingLevel); - - nsresult (*GetMediumFormats)(ISystemProperties *pThis, PRUint32 *mediu= mFormatsSize, IMediumFormat * **mediumFormats); - - nsresult (*GetDefaultHardDiskFormat)(ISystemProperties *pThis, PRUnich= ar * *defaultHardDiskFormat); - nsresult (*SetDefaultHardDiskFormat)(ISystemProperties *pThis, PRUnich= ar * defaultHardDiskFormat); - - nsresult (*GetFreeDiskSpaceWarning)(ISystemProperties *pThis, PRInt64 = *freeDiskSpaceWarning); - nsresult (*SetFreeDiskSpaceWarning)(ISystemProperties *pThis, PRInt64 = freeDiskSpaceWarning); - - nsresult (*GetFreeDiskSpacePercentWarning)(ISystemProperties *pThis, P= RUint32 *freeDiskSpacePercentWarning); - nsresult (*SetFreeDiskSpacePercentWarning)(ISystemProperties *pThis, P= RUint32 freeDiskSpacePercentWarning); - - nsresult (*GetFreeDiskSpaceError)(ISystemProperties *pThis, PRInt64 *f= reeDiskSpaceError); - nsresult (*SetFreeDiskSpaceError)(ISystemProperties *pThis, PRInt64 fr= eeDiskSpaceError); - - nsresult (*GetFreeDiskSpacePercentError)(ISystemProperties *pThis, PRU= int32 *freeDiskSpacePercentError); - nsresult (*SetFreeDiskSpacePercentError)(ISystemProperties *pThis, PRU= int32 freeDiskSpacePercentError); - - nsresult (*GetVRDEAuthLibrary)(ISystemProperties *pThis, PRUnichar * *= VRDEAuthLibrary); - nsresult (*SetVRDEAuthLibrary)(ISystemProperties *pThis, PRUnichar * V= RDEAuthLibrary); - - nsresult (*GetWebServiceAuthLibrary)(ISystemProperties *pThis, PRUnich= ar * *webServiceAuthLibrary); - nsresult (*SetWebServiceAuthLibrary)(ISystemProperties *pThis, PRUnich= ar * webServiceAuthLibrary); - - nsresult (*GetDefaultVRDEExtPack)(ISystemProperties *pThis, PRUnichar = * *defaultVRDEExtPack); - nsresult (*SetDefaultVRDEExtPack)(ISystemProperties *pThis, PRUnichar = * defaultVRDEExtPack); - - nsresult (*GetLogHistoryCount)(ISystemProperties *pThis, PRUint32 *log= HistoryCount); - nsresult (*SetLogHistoryCount)(ISystemProperties *pThis, PRUint32 logH= istoryCount); - - nsresult (*GetDefaultAudioDriver)(ISystemProperties *pThis, PRUint32 *= defaultAudioDriver); - - nsresult (*GetAutostartDatabasePath)(ISystemProperties *pThis, PRUnich= ar * *autostartDatabasePath); - nsresult (*SetAutostartDatabasePath)(ISystemProperties *pThis, PRUnich= ar * autostartDatabasePath); - - nsresult (*GetDefaultAdditionsISO)(ISystemProperties *pThis, PRUnichar= * *defaultAdditionsISO); - nsresult (*SetDefaultAdditionsISO)(ISystemProperties *pThis, PRUnichar= * defaultAdditionsISO); - - nsresult (*GetDefaultFrontend)(ISystemProperties *pThis, PRUnichar * *= defaultFrontend); - nsresult (*SetDefaultFrontend)(ISystemProperties *pThis, PRUnichar * d= efaultFrontend); - - nsresult (*GetMaxNetworkAdapters)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 * maxNetworkAdapters - ); - - nsresult (*GetMaxNetworkAdaptersOfType)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 type, - PRUint32 * maxNetworkAdapters - ); - - nsresult (*GetMaxDevicesPerPortForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * maxDevicesPerPort - ); - - nsresult (*GetMinPortCountForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * minPortCount - ); - - nsresult (*GetMaxPortCountForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 * maxPortCount - ); - - nsresult (*GetMaxInstancesOfStorageBus)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 bus, - PRUint32 * maxInstances - ); - - nsresult (*GetDeviceTypesForStorageBus)( - ISystemProperties *pThis, - PRUint32 bus, - PRUint32 *deviceTypesSize, - PRUint32** deviceTypes - ); - - nsresult (*GetDefaultIoCacheSettingForStorageController)( - ISystemProperties *pThis, - PRUint32 controllerType, - PRBool * enabled - ); - - nsresult (*GetMaxInstancesOfUSBControllerType)( - ISystemProperties *pThis, - PRUint32 chipset, - PRUint32 type, - PRUint32 * maxInstances - ); - -}; - -struct ISystemProperties -{ - struct ISystemProperties_vtbl *vtbl; -}; -/* End of struct ISystemProperties Declaration */ - - -/* Start of struct IGuestOSType Declaration */ -# define IGUESTOSTYPE_IID_STR "6d968f9a-858b-4c50-bf17-241f069e94c2" -# define IGUESTOSTYPE_IID { \ - 0x6d968f9a, 0x858b, 0x4c50, \ - { 0xbf, 0x17, 0x24, 0x1f, 0x06, 0x9e, 0x94, 0xc2 } \ -} -struct IGuestOSType_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetFamilyId)(IGuestOSType *pThis, PRUnichar * *familyId); - - nsresult (*GetFamilyDescription)(IGuestOSType *pThis, PRUnichar * *fam= ilyDescription); - - nsresult (*GetId)(IGuestOSType *pThis, PRUnichar * *id); - - nsresult (*GetDescription)(IGuestOSType *pThis, PRUnichar * *descripti= on); - - nsresult (*GetIs64Bit)(IGuestOSType *pThis, PRBool *is64Bit); - - nsresult (*GetRecommendedIOAPIC)(IGuestOSType *pThis, PRBool *recommen= dedIOAPIC); - - nsresult (*GetRecommendedVirtEx)(IGuestOSType *pThis, PRBool *recommen= dedVirtEx); - - nsresult (*GetRecommendedRAM)(IGuestOSType *pThis, PRUint32 *recommend= edRAM); - - nsresult (*GetRecommendedVRAM)(IGuestOSType *pThis, PRUint32 *recommen= dedVRAM); - - nsresult (*GetRecommended2DVideoAcceleration)(IGuestOSType *pThis, PRB= ool *recommended2DVideoAcceleration); - - nsresult (*GetRecommended3DAcceleration)(IGuestOSType *pThis, PRBool *= recommended3DAcceleration); - - nsresult (*GetRecommendedHDD)(IGuestOSType *pThis, PRInt64 *recommende= dHDD); - - nsresult (*GetAdapterType)(IGuestOSType *pThis, PRUint32 *adapterType); - - nsresult (*GetRecommendedPAE)(IGuestOSType *pThis, PRBool *recommended= PAE); - - nsresult (*GetRecommendedDVDStorageController)(IGuestOSType *pThis, PR= Uint32 *recommendedDVDStorageController); - - nsresult (*GetRecommendedDVDStorageBus)(IGuestOSType *pThis, PRUint32 = *recommendedDVDStorageBus); - - nsresult (*GetRecommendedHDStorageController)(IGuestOSType *pThis, PRU= int32 *recommendedHDStorageController); - - nsresult (*GetRecommendedHDStorageBus)(IGuestOSType *pThis, PRUint32 *= recommendedHDStorageBus); - - nsresult (*GetRecommendedFirmware)(IGuestOSType *pThis, PRUint32 *reco= mmendedFirmware); - - nsresult (*GetRecommendedUSBHID)(IGuestOSType *pThis, PRBool *recommen= dedUSBHID); - - nsresult (*GetRecommendedHPET)(IGuestOSType *pThis, PRBool *recommende= dHPET); - - nsresult (*GetRecommendedUSBTablet)(IGuestOSType *pThis, PRBool *recom= mendedUSBTablet); - - nsresult (*GetRecommendedRTCUseUTC)(IGuestOSType *pThis, PRBool *recom= mendedRTCUseUTC); - - nsresult (*GetRecommendedChipset)(IGuestOSType *pThis, PRUint32 *recom= mendedChipset); - - nsresult (*GetRecommendedAudioController)(IGuestOSType *pThis, PRUint3= 2 *recommendedAudioController); - - nsresult (*GetRecommendedFloppy)(IGuestOSType *pThis, PRBool *recommen= dedFloppy); - - nsresult (*GetRecommendedUSB)(IGuestOSType *pThis, PRBool *recommended= USB); - -}; - -struct IGuestOSType -{ - struct IGuestOSType_vtbl *vtbl; -}; -/* End of struct IGuestOSType Declaration */ - - -/* Start of struct IAdditionsFacility Declaration */ -# define IADDITIONSFACILITY_IID_STR "54992946-6af1-4e49-98ec-58b558b7291e" -# define IADDITIONSFACILITY_IID { \ - 0x54992946, 0x6af1, 0x4e49, \ - { 0x98, 0xec, 0x58, 0xb5, 0x58, 0xb7, 0x29, 0x1e } \ -} -struct IAdditionsFacility_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetClassType)(IAdditionsFacility *pThis, PRUint32 *classTyp= e); - - nsresult (*GetLastUpdated)(IAdditionsFacility *pThis, PRInt64 *lastUpd= ated); - - nsresult (*GetName)(IAdditionsFacility *pThis, PRUnichar * *name); - - nsresult (*GetStatus)(IAdditionsFacility *pThis, PRUint32 *status); - - nsresult (*GetType)(IAdditionsFacility *pThis, PRUint32 *type); - -}; - -struct IAdditionsFacility -{ - struct IAdditionsFacility_vtbl *vtbl; -}; -/* End of struct IAdditionsFacility Declaration */ - - -/* Start of struct IGuestSession Declaration */ -# define IGUESTSESSION_IID_STR "5b28703c-07b6-4fcb-afba-ac199b309752" -# define IGUESTSESSION_IID { \ - 0x5b28703c, 0x07b6, 0x4fcb, \ - { 0xaf, 0xba, 0xac, 0x19, 0x9b, 0x30, 0x97, 0x52 } \ -} -struct IGuestSession_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetUser)(IGuestSession *pThis, PRUnichar * *user); - - nsresult (*GetDomain)(IGuestSession *pThis, PRUnichar * *domain); - - nsresult (*GetName)(IGuestSession *pThis, PRUnichar * *name); - - nsresult (*GetId)(IGuestSession *pThis, PRUint32 *id); - - nsresult (*GetTimeout)(IGuestSession *pThis, PRUint32 *timeout); - nsresult (*SetTimeout)(IGuestSession *pThis, PRUint32 timeout); - - nsresult (*GetProtocolVersion)(IGuestSession *pThis, PRUint32 *protoco= lVersion); - - nsresult (*GetStatus)(IGuestSession *pThis, PRUint32 *status); - - nsresult (*GetEnvironment)(IGuestSession *pThis, PRUint32 *environment= Size, PRUnichar * **environment); - nsresult (*SetEnvironment)(IGuestSession *pThis, PRUint32 environmentS= ize, PRUnichar * *environment); - - nsresult (*GetProcesses)(IGuestSession *pThis, PRUint32 *processesSize= , IGuestProcess * **processes); - - nsresult (*GetDirectories)(IGuestSession *pThis, PRUint32 *directories= Size, IGuestDirectory * **directories); - - nsresult (*GetFiles)(IGuestSession *pThis, PRUint32 *filesSize, IGuest= File * **files); - - nsresult (*GetEventSource)(IGuestSession *pThis, IEventSource * *event= Source); - - nsresult (*Close)(IGuestSession *pThis ); - - nsresult (*CopyFrom)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - - nsresult (*CopyTo)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - - nsresult (*DirectoryCreate)( - IGuestSession *pThis, - PRUnichar * path, - PRUint32 mode, - PRUint32 flagsSize, - PRUint32* flags - ); - - nsresult (*DirectoryCreateTemp)( - IGuestSession *pThis, - PRUnichar * templateName, - PRUint32 mode, - PRUnichar * path, - PRBool secure, - PRUnichar * * directory - ); - - nsresult (*DirectoryExists)( - IGuestSession *pThis, - PRUnichar * path, - PRBool * exists - ); - - nsresult (*DirectoryOpen)( - IGuestSession *pThis, - PRUnichar * path, - PRUnichar * filter, - PRUint32 flagsSize, - PRUint32* flags, - IGuestDirectory * * directory - ); - - nsresult (*DirectoryQueryInfo)( - IGuestSession *pThis, - PRUnichar * path, - IGuestFsObjInfo * * info - ); - - nsresult (*DirectoryRemove)( - IGuestSession *pThis, - PRUnichar * path - ); - - nsresult (*DirectoryRemoveRecursive)( - IGuestSession *pThis, - PRUnichar * path, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - - nsresult (*DirectoryRename)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags - ); - - nsresult (*DirectorySetACL)( - IGuestSession *pThis, - PRUnichar * path, - PRUnichar * acl - ); - - nsresult (*EnvironmentClear)(IGuestSession *pThis ); - - nsresult (*EnvironmentGet)( - IGuestSession *pThis, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult (*EnvironmentSet)( - IGuestSession *pThis, - PRUnichar * name, - PRUnichar * value - ); - - nsresult (*EnvironmentUnset)( - IGuestSession *pThis, - PRUnichar * name - ); - - nsresult (*FileCreateTemp)( - IGuestSession *pThis, - PRUnichar * templateName, - PRUint32 mode, - PRUnichar * path, - PRBool secure, - IGuestFile * * file - ); - - nsresult (*FileExists)( - IGuestSession *pThis, - PRUnichar * path, - PRBool * exists - ); - - nsresult (*FileRemove)( - IGuestSession *pThis, - PRUnichar * path - ); - - nsresult (*FileOpen)( - IGuestSession *pThis, - PRUnichar * path, - PRUnichar * openMode, - PRUnichar * disposition, - PRUint32 creationMode, - IGuestFile * * file - ); - - nsresult (*FileOpenEx)( - IGuestSession *pThis, - PRUnichar * path, - PRUnichar * openMode, - PRUnichar * disposition, - PRUnichar * sharingMode, - PRUint32 creationMode, - PRInt64 offset, - IGuestFile * * file - ); - - nsresult (*FileQueryInfo)( - IGuestSession *pThis, - PRUnichar * path, - IGuestFsObjInfo * * info - ); - - nsresult (*FileQuerySize)( - IGuestSession *pThis, - PRUnichar * path, - PRInt64 * size - ); - - nsresult (*FileRename)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * dest, - PRUint32 flagsSize, - PRUint32* flags - ); - - nsresult (*FileSetACL)( - IGuestSession *pThis, - PRUnichar * file, - PRUnichar * acl - ); - - nsresult (*ProcessCreate)( - IGuestSession *pThis, - PRUnichar * command, - PRUint32 argumentsSize, - PRUnichar ** arguments, - PRUint32 environmentSize, - PRUnichar ** environment, - PRUint32 flagsSize, - PRUint32* flags, - PRUint32 timeoutMS, - IGuestProcess * * guestProcess - ); - - nsresult (*ProcessCreateEx)( - IGuestSession *pThis, - PRUnichar * command, - PRUint32 argumentsSize, - PRUnichar ** arguments, - PRUint32 environmentSize, - PRUnichar ** environment, - PRUint32 flagsSize, - PRUint32* flags, - PRUint32 timeoutMS, - PRUint32 priority, - PRUint32 affinitySize, - PRInt32* affinity, - IGuestProcess * * guestProcess - ); - - nsresult (*ProcessGet)( - IGuestSession *pThis, - PRUint32 pid, - IGuestProcess * * guestProcess - ); - - nsresult (*SymlinkCreate)( - IGuestSession *pThis, - PRUnichar * source, - PRUnichar * target, - PRUint32 type - ); - - nsresult (*SymlinkExists)( - IGuestSession *pThis, - PRUnichar * symlink, - PRBool * exists - ); - - nsresult (*SymlinkRead)( - IGuestSession *pThis, - PRUnichar * symlink, - PRUint32 flagsSize, - PRUint32* flags, - PRUnichar * * target - ); - - nsresult (*SymlinkRemoveDirectory)( - IGuestSession *pThis, - PRUnichar * path - ); - - nsresult (*SymlinkRemoveFile)( - IGuestSession *pThis, - PRUnichar * file - ); - - nsresult (*WaitFor)( - IGuestSession *pThis, - PRUint32 waitFor, - PRUint32 timeoutMS, - PRUint32 * reason - ); - - nsresult (*WaitForArray)( - IGuestSession *pThis, - PRUint32 waitForSize, - PRUint32* waitFor, - PRUint32 timeoutMS, - PRUint32 * reason - ); - -}; - -struct IGuestSession -{ - struct IGuestSession_vtbl *vtbl; -}; -/* End of struct IGuestSession Declaration */ - - -/* Start of struct IProcess Declaration */ -# define IPROCESS_IID_STR "5a4fe06d-8cb1-40ff-ac9e-9676e32f706e" -# define IPROCESS_IID { \ - 0x5a4fe06d, 0x8cb1, 0x40ff, \ - { 0xac, 0x9e, 0x96, 0x76, 0xe3, 0x2f, 0x70, 0x6e } \ -} -struct IProcess_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetArguments)(IProcess *pThis, PRUint32 *argumentsSize, PRU= nichar * **arguments); - - nsresult (*GetEnvironment)(IProcess *pThis, PRUint32 *environmentSize,= PRUnichar * **environment); - - nsresult (*GetEventSource)(IProcess *pThis, IEventSource * *eventSourc= e); - - nsresult (*GetExecutablePath)(IProcess *pThis, PRUnichar * *executable= Path); - - nsresult (*GetExitCode)(IProcess *pThis, PRInt32 *exitCode); - - nsresult (*GetName)(IProcess *pThis, PRUnichar * *name); - - nsresult (*GetPID)(IProcess *pThis, PRUint32 *PID); - - nsresult (*GetStatus)(IProcess *pThis, PRUint32 *status); - - nsresult (*WaitFor)( - IProcess *pThis, - PRUint32 waitFor, - PRUint32 timeoutMS, - PRUint32 * reason - ); - - nsresult (*WaitForArray)( - IProcess *pThis, - PRUint32 waitForSize, - PRUint32* waitFor, - PRUint32 timeoutMS, - PRUint32 * reason - ); - - nsresult (*Read)( - IProcess *pThis, - PRUint32 handle, - PRUint32 toRead, - PRUint32 timeoutMS, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*Write)( - IProcess *pThis, - PRUint32 handle, - PRUint32 flags, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - - nsresult (*WriteArray)( - IProcess *pThis, - PRUint32 handle, - PRUint32 flagsSize, - PRUint32* flags, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - - nsresult (*Terminate)(IProcess *pThis ); - -}; - -struct IProcess -{ - struct IProcess_vtbl *vtbl; -}; -/* End of struct IProcess Declaration */ - - -/* Start of struct IGuestProcess Declaration */ -# define IGUESTPROCESS_IID_STR "dfa39a36-5d43-4840-a025-67ea956b3111" -# define IGUESTPROCESS_IID { \ - 0xdfa39a36, 0x5d43, 0x4840, \ - { 0xa0, 0x25, 0x67, 0xea, 0x95, 0x6b, 0x31, 0x11 } \ -} -struct IGuestProcess_vtbl -{ - struct IProcess_vtbl iprocess; - -}; - -struct IGuestProcess -{ - struct IGuestProcess_vtbl *vtbl; -}; -/* End of struct IGuestProcess Declaration */ - - -/* Start of struct IDirectory Declaration */ -# define IDIRECTORY_IID_STR "1b70dd03-26d7-483a-8877-89bbb0f87b70" -# define IDIRECTORY_IID { \ - 0x1b70dd03, 0x26d7, 0x483a, \ - { 0x88, 0x77, 0x89, 0xbb, 0xb0, 0xf8, 0x7b, 0x70 } \ -} -struct IDirectory_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetDirectoryName)(IDirectory *pThis, PRUnichar * *directory= Name); - - nsresult (*GetFilter)(IDirectory *pThis, PRUnichar * *filter); - - nsresult (*Close)(IDirectory *pThis ); - - nsresult (*Read)( - IDirectory *pThis, - IFsObjInfo * * objInfo - ); - -}; - -struct IDirectory -{ - struct IDirectory_vtbl *vtbl; -}; -/* End of struct IDirectory Declaration */ - - -/* Start of struct IGuestDirectory Declaration */ -# define IGUESTDIRECTORY_IID_STR "af4a8ce0-0725-42b7-8826-46e3c7ba7357" -# define IGUESTDIRECTORY_IID { \ - 0xaf4a8ce0, 0x0725, 0x42b7, \ - { 0x88, 0x26, 0x46, 0xe3, 0xc7, 0xba, 0x73, 0x57 } \ -} -struct IGuestDirectory_vtbl -{ - struct IDirectory_vtbl idirectory; - -}; - -struct IGuestDirectory -{ - struct IGuestDirectory_vtbl *vtbl; -}; -/* End of struct IGuestDirectory Declaration */ - - -/* Start of struct IFile Declaration */ -# define IFILE_IID_STR "5ec56ea3-b55d-4bdb-8c4f-5f9fb26b894b" -# define IFILE_IID { \ - 0x5ec56ea3, 0xb55d, 0x4bdb, \ - { 0x8c, 0x4f, 0x5f, 0x9f, 0xb2, 0x6b, 0x89, 0x4b } \ -} -struct IFile_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetCreationMode)(IFile *pThis, PRUint32 *creationMode); - - nsresult (*GetDisposition)(IFile *pThis, PRUnichar * *disposition); - - nsresult (*GetEventSource)(IFile *pThis, IEventSource * *eventSource); - - nsresult (*GetFileName)(IFile *pThis, PRUnichar * *fileName); - - nsresult (*GetId)(IFile *pThis, PRUint32 *id); - - nsresult (*GetInitialSize)(IFile *pThis, PRInt64 *initialSize); - - nsresult (*GetOpenMode)(IFile *pThis, PRUnichar * *openMode); - - nsresult (*GetOffset)(IFile *pThis, PRInt64 *offset); - - nsresult (*GetStatus)(IFile *pThis, PRUint32 *status); - - nsresult (*Close)(IFile *pThis ); - - nsresult (*QueryInfo)( - IFile *pThis, - IFsObjInfo * * objInfo - ); - - nsresult (*Read)( - IFile *pThis, - PRUint32 toRead, - PRUint32 timeoutMS, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*ReadAt)( - IFile *pThis, - PRInt64 offset, - PRUint32 toRead, - PRUint32 timeoutMS, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*Seek)( - IFile *pThis, - PRInt64 offset, - PRUint32 whence - ); - - nsresult (*SetACL)( - IFile *pThis, - PRUnichar * acl - ); - - nsresult (*Write)( - IFile *pThis, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - - nsresult (*WriteAt)( - IFile *pThis, - PRInt64 offset, - PRUint32 dataSize, - PRUint8* data, - PRUint32 timeoutMS, - PRUint32 * written - ); - -}; - -struct IFile -{ - struct IFile_vtbl *vtbl; -}; -/* End of struct IFile Declaration */ - - -/* Start of struct IGuestFile Declaration */ -# define IGUESTFILE_IID_STR "60661aec-145f-4d11-b80e-8ea151598093" -# define IGUESTFILE_IID { \ - 0x60661aec, 0x145f, 0x4d11, \ - { 0xb8, 0x0e, 0x8e, 0xa1, 0x51, 0x59, 0x80, 0x93 } \ -} -struct IGuestFile_vtbl -{ - struct IFile_vtbl ifile; - -}; - -struct IGuestFile -{ - struct IGuestFile_vtbl *vtbl; -}; -/* End of struct IGuestFile Declaration */ - - -/* Start of struct IFsObjInfo Declaration */ -# define IFSOBJINFO_IID_STR "4047ba30-7006-4966-ae86-94164e5e20eb" -# define IFSOBJINFO_IID { \ - 0x4047ba30, 0x7006, 0x4966, \ - { 0xae, 0x86, 0x94, 0x16, 0x4e, 0x5e, 0x20, 0xeb } \ -} -struct IFsObjInfo_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetAccessTime)(IFsObjInfo *pThis, PRInt64 *accessTime); - - nsresult (*GetAllocatedSize)(IFsObjInfo *pThis, PRInt64 *allocatedSize= ); - - nsresult (*GetBirthTime)(IFsObjInfo *pThis, PRInt64 *birthTime); - - nsresult (*GetChangeTime)(IFsObjInfo *pThis, PRInt64 *changeTime); - - nsresult (*GetDeviceNumber)(IFsObjInfo *pThis, PRUint32 *deviceNumber); - - nsresult (*GetFileAttributes)(IFsObjInfo *pThis, PRUnichar * *fileAttr= ibutes); - - nsresult (*GetGenerationId)(IFsObjInfo *pThis, PRUint32 *generationId); - - nsresult (*GetGID)(IFsObjInfo *pThis, PRUint32 *GID); - - nsresult (*GetGroupName)(IFsObjInfo *pThis, PRUnichar * *groupName); - - nsresult (*GetHardLinks)(IFsObjInfo *pThis, PRUint32 *hardLinks); - - nsresult (*GetModificationTime)(IFsObjInfo *pThis, PRInt64 *modificati= onTime); - - nsresult (*GetName)(IFsObjInfo *pThis, PRUnichar * *name); - - nsresult (*GetNodeId)(IFsObjInfo *pThis, PRInt64 *nodeId); - - nsresult (*GetNodeIdDevice)(IFsObjInfo *pThis, PRUint32 *nodeIdDevice); - - nsresult (*GetObjectSize)(IFsObjInfo *pThis, PRInt64 *objectSize); - - nsresult (*GetType)(IFsObjInfo *pThis, PRUint32 *type); - - nsresult (*GetUID)(IFsObjInfo *pThis, PRUint32 *UID); - - nsresult (*GetUserFlags)(IFsObjInfo *pThis, PRUint32 *userFlags); - - nsresult (*GetUserName)(IFsObjInfo *pThis, PRUnichar * *userName); - -}; - -struct IFsObjInfo -{ - struct IFsObjInfo_vtbl *vtbl; -}; -/* End of struct IFsObjInfo Declaration */ - - -/* Start of struct IGuestFsObjInfo Declaration */ -# define IGUESTFSOBJINFO_IID_STR "d5cf678e-3484-4e4a-ac55-329e15462e18" -# define IGUESTFSOBJINFO_IID { \ - 0xd5cf678e, 0x3484, 0x4e4a, \ - { 0xac, 0x55, 0x32, 0x9e, 0x15, 0x46, 0x2e, 0x18 } \ -} -struct IGuestFsObjInfo_vtbl -{ - struct IFsObjInfo_vtbl ifsobjinfo; - -}; - -struct IGuestFsObjInfo -{ - struct IGuestFsObjInfo_vtbl *vtbl; -}; -/* End of struct IGuestFsObjInfo Declaration */ - - -/* Start of struct IGuest Declaration */ -# define IGUEST_IID_STR "8011a1b1-6adb-4ffb-a37e-20abdaee4650" -# define IGUEST_IID { \ - 0x8011a1b1, 0x6adb, 0x4ffb, \ - { 0xa3, 0x7e, 0x20, 0xab, 0xda, 0xee, 0x46, 0x50 } \ -} -struct IGuest_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetOSTypeId)(IGuest *pThis, PRUnichar * *OSTypeId); - - nsresult (*GetAdditionsRunLevel)(IGuest *pThis, PRUint32 *additionsRun= Level); - - nsresult (*GetAdditionsVersion)(IGuest *pThis, PRUnichar * *additionsV= ersion); - - nsresult (*GetAdditionsRevision)(IGuest *pThis, PRUint32 *additionsRev= ision); - - nsresult (*GetEventSource)(IGuest *pThis, IEventSource * *eventSource); - - nsresult (*GetFacilities)(IGuest *pThis, PRUint32 *facilitiesSize, IAd= ditionsFacility * **facilities); - - nsresult (*GetSessions)(IGuest *pThis, PRUint32 *sessionsSize, IGuestS= ession * **sessions); - - nsresult (*GetMemoryBalloonSize)(IGuest *pThis, PRUint32 *memoryBalloo= nSize); - nsresult (*SetMemoryBalloonSize)(IGuest *pThis, PRUint32 memoryBalloon= Size); - - nsresult (*GetStatisticsUpdateInterval)(IGuest *pThis, PRUint32 *stati= sticsUpdateInterval); - nsresult (*SetStatisticsUpdateInterval)(IGuest *pThis, PRUint32 statis= ticsUpdateInterval); - - nsresult (*InternalGetStatistics)( - IGuest *pThis, - PRUint32 * cpuUser, - PRUint32 * cpuKernel, - PRUint32 * cpuIdle, - PRUint32 * memTotal, - PRUint32 * memFree, - PRUint32 * memBalloon, - PRUint32 * memShared, - PRUint32 * memCache, - PRUint32 * pagedTotal, - PRUint32 * memAllocTotal, - PRUint32 * memFreeTotal, - PRUint32 * memBalloonTotal, - PRUint32 * memSharedTotal - ); - - nsresult (*GetFacilityStatus)( - IGuest *pThis, - PRUint32 facility, - PRInt64 * timestamp, - PRUint32 * status - ); - - nsresult (*GetAdditionsStatus)( - IGuest *pThis, - PRUint32 level, - PRBool * active - ); - - nsresult (*SetCredentials)( - IGuest *pThis, - PRUnichar * userName, - PRUnichar * password, - PRUnichar * domain, - PRBool allowInteractiveLogon - ); - - nsresult (*DragHGEnter)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 y, - PRUint32 x, - PRUint32 defaultAction, - PRUint32 allowedActionsSize, - PRUint32* allowedActions, - PRUint32 formatsSize, - PRUnichar ** formats, - PRUint32 * resultAction - ); - - nsresult (*DragHGMove)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 x, - PRUint32 y, - PRUint32 defaultAction, - PRUint32 allowedActionsSize, - PRUint32* allowedActions, - PRUint32 formatsSize, - PRUnichar ** formats, - PRUint32 * resultAction - ); - - nsresult (*DragHGLeave)( - IGuest *pThis, - PRUint32 screenId - ); - - nsresult (*DragHGDrop)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 x, - PRUint32 y, - PRUint32 defaultAction, - PRUint32 allowedActionsSize, - PRUint32* allowedActions, - PRUint32 formatsSize, - PRUnichar ** formats, - PRUnichar * * format, - PRUint32 * resultAction - ); - - nsresult (*DragHGPutData)( - IGuest *pThis, - PRUint32 screenId, - PRUnichar * format, - PRUint32 dataSize, - PRUint8* data, - IProgress * * progress - ); - - nsresult (*DragGHPending)( - IGuest *pThis, - PRUint32 screenId, - PRUint32 *formatsSize, - PRUnichar *** formats, - PRUint32 *allowedActionsSize, - PRUint32** allowedActions, - PRUint32 * defaultAction - ); - - nsresult (*DragGHDropped)( - IGuest *pThis, - PRUnichar * format, - PRUint32 action, - IProgress * * progress - ); - - nsresult (*DragGHGetData)( - IGuest *pThis, - PRUint32 *dataSize, - PRUint8** data - ); - - nsresult (*CreateSession)( - IGuest *pThis, - PRUnichar * user, - PRUnichar * password, - PRUnichar * domain, - PRUnichar * sessionName, - IGuestSession * * guestSession - ); - - nsresult (*FindSession)( - IGuest *pThis, - PRUnichar * sessionName, - PRUint32 *sessionsSize, - IGuestSession *** sessions - ); - - nsresult (*UpdateGuestAdditions)( - IGuest *pThis, - PRUnichar * source, - PRUint32 argumentsSize, - PRUnichar ** arguments, - PRUint32 flagsSize, - PRUint32* flags, - IProgress * * progress - ); - -}; - -struct IGuest -{ - struct IGuest_vtbl *vtbl; -}; -/* End of struct IGuest Declaration */ - - -/* Start of struct IProgress Declaration */ -# define IPROGRESS_IID_STR "c20238e4-3221-4d3f-8891-81ce92d9f913" -# define IPROGRESS_IID { \ - 0xc20238e4, 0x3221, 0x4d3f, \ - { 0x88, 0x91, 0x81, 0xce, 0x92, 0xd9, 0xf9, 0x13 } \ -} -struct IProgress_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetId)(IProgress *pThis, PRUnichar * *id); - - nsresult (*GetDescription)(IProgress *pThis, PRUnichar * *description); - - nsresult (*GetInitiator)(IProgress *pThis, nsISupports * *initiator); - - nsresult (*GetCancelable)(IProgress *pThis, PRBool *cancelable); - - nsresult (*GetPercent)(IProgress *pThis, PRUint32 *percent); - - nsresult (*GetTimeRemaining)(IProgress *pThis, PRInt32 *timeRemaining); - - nsresult (*GetCompleted)(IProgress *pThis, PRBool *completed); - - nsresult (*GetCanceled)(IProgress *pThis, PRBool *canceled); - - nsresult (*GetResultCode)(IProgress *pThis, PRInt32 *resultCode); - - nsresult (*GetErrorInfo)(IProgress *pThis, IVirtualBoxErrorInfo * *err= orInfo); - - nsresult (*GetOperationCount)(IProgress *pThis, PRUint32 *operationCou= nt); - - nsresult (*GetOperation)(IProgress *pThis, PRUint32 *operation); - - nsresult (*GetOperationDescription)(IProgress *pThis, PRUnichar * *ope= rationDescription); - - nsresult (*GetOperationPercent)(IProgress *pThis, PRUint32 *operationP= ercent); - - nsresult (*GetOperationWeight)(IProgress *pThis, PRUint32 *operationWe= ight); - - nsresult (*GetTimeout)(IProgress *pThis, PRUint32 *timeout); - nsresult (*SetTimeout)(IProgress *pThis, PRUint32 timeout); - - nsresult (*SetCurrentOperationProgress)( - IProgress *pThis, - PRUint32 percent - ); - - nsresult (*SetNextOperation)( - IProgress *pThis, - PRUnichar * nextOperationDescription, - PRUint32 nextOperationsWeight - ); - - nsresult (*WaitForCompletion)( - IProgress *pThis, - PRInt32 timeout - ); - - nsresult (*WaitForOperationCompletion)( - IProgress *pThis, - PRUint32 operation, - PRInt32 timeout - ); - - nsresult (*WaitForAsyncProgressCompletion)( - IProgress *pThis, - IProgress * pProgressAsync - ); - - nsresult (*Cancel)(IProgress *pThis ); - -}; - -struct IProgress -{ - struct IProgress_vtbl *vtbl; -}; -/* End of struct IProgress Declaration */ - - -/* Start of struct ISnapshot Declaration */ -# define ISNAPSHOT_IID_STR "0472823b-c6e7-472a-8e9f-d732e86b8463" -# define ISNAPSHOT_IID { \ - 0x0472823b, 0xc6e7, 0x472a, \ - { 0x8e, 0x9f, 0xd7, 0x32, 0xe8, 0x6b, 0x84, 0x63 } \ -} -struct ISnapshot_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetId)(ISnapshot *pThis, PRUnichar * *id); - - nsresult (*GetName)(ISnapshot *pThis, PRUnichar * *name); - nsresult (*SetName)(ISnapshot *pThis, PRUnichar * name); - - nsresult (*GetDescription)(ISnapshot *pThis, PRUnichar * *description); - nsresult (*SetDescription)(ISnapshot *pThis, PRUnichar * description); - - nsresult (*GetTimeStamp)(ISnapshot *pThis, PRInt64 *timeStamp); - - nsresult (*GetOnline)(ISnapshot *pThis, PRBool *online); - - nsresult (*GetMachine)(ISnapshot *pThis, IMachine * *machine); - - nsresult (*GetParent)(ISnapshot *pThis, ISnapshot * *parent); - - nsresult (*GetChildren)(ISnapshot *pThis, PRUint32 *childrenSize, ISna= pshot * **children); - - nsresult (*GetChildrenCount)( - ISnapshot *pThis, - PRUint32 * childrenCount - ); - -}; - -struct ISnapshot -{ - struct ISnapshot_vtbl *vtbl; -}; -/* End of struct ISnapshot Declaration */ - - -/* Start of struct IMediumAttachment Declaration */ -# define IMEDIUMATTACHMENT_IID_STR "4b252567-5d4e-4db8-b3c8-569ec1c9236c" -# define IMEDIUMATTACHMENT_IID { \ - 0x4b252567, 0x5d4e, 0x4db8, \ - { 0xb3, 0xc8, 0x56, 0x9e, 0xc1, 0xc9, 0x23, 0x6c } \ -} -struct IMediumAttachment_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetMedium)(IMediumAttachment *pThis, IMedium * *medium); - - nsresult (*GetController)(IMediumAttachment *pThis, PRUnichar * *contr= oller); - - nsresult (*GetPort)(IMediumAttachment *pThis, PRInt32 *port); - - nsresult (*GetDevice)(IMediumAttachment *pThis, PRInt32 *device); - - nsresult (*GetType)(IMediumAttachment *pThis, PRUint32 *type); - - nsresult (*GetPassthrough)(IMediumAttachment *pThis, PRBool *passthrou= gh); - - nsresult (*GetTemporaryEject)(IMediumAttachment *pThis, PRBool *tempor= aryEject); - - nsresult (*GetIsEjected)(IMediumAttachment *pThis, PRBool *isEjected); - - nsresult (*GetNonRotational)(IMediumAttachment *pThis, PRBool *nonRota= tional); - - nsresult (*GetDiscard)(IMediumAttachment *pThis, PRBool *discard); - - nsresult (*GetHotPluggable)(IMediumAttachment *pThis, PRBool *hotPlugg= able); - - nsresult (*GetBandwidthGroup)(IMediumAttachment *pThis, IBandwidthGrou= p * *bandwidthGroup); - -}; - -struct IMediumAttachment -{ - struct IMediumAttachment_vtbl *vtbl; -}; -/* End of struct IMediumAttachment Declaration */ - - -/* Start of struct IMedium Declaration */ -# define IMEDIUM_IID_STR "05f2bbb6-a3a6-4fb9-9b49-6d0dda7142ac" -# define IMEDIUM_IID { \ - 0x05f2bbb6, 0xa3a6, 0x4fb9, \ - { 0x9b, 0x49, 0x6d, 0x0d, 0xda, 0x71, 0x42, 0xac } \ -} -struct IMedium_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetId)(IMedium *pThis, PRUnichar * *id); - - nsresult (*GetDescription)(IMedium *pThis, PRUnichar * *description); - nsresult (*SetDescription)(IMedium *pThis, PRUnichar * description); - - nsresult (*GetState)(IMedium *pThis, PRUint32 *state); - - nsresult (*GetVariant)(IMedium *pThis, PRUint32 *variantSize, PRUint32= **variant); - - nsresult (*GetLocation)(IMedium *pThis, PRUnichar * *location); - - nsresult (*GetName)(IMedium *pThis, PRUnichar * *name); - - nsresult (*GetDeviceType)(IMedium *pThis, PRUint32 *deviceType); - - nsresult (*GetHostDrive)(IMedium *pThis, PRBool *hostDrive); - - nsresult (*GetSize)(IMedium *pThis, PRInt64 *size); - - nsresult (*GetFormat)(IMedium *pThis, PRUnichar * *format); - - nsresult (*GetMediumFormat)(IMedium *pThis, IMediumFormat * *mediumFor= mat); - - nsresult (*GetType)(IMedium *pThis, PRUint32 *type); - nsresult (*SetType)(IMedium *pThis, PRUint32 type); - - nsresult (*GetAllowedTypes)(IMedium *pThis, PRUint32 *allowedTypesSize= , PRUint32 **allowedTypes); - - nsresult (*GetParent)(IMedium *pThis, IMedium * *parent); - - nsresult (*GetChildren)(IMedium *pThis, PRUint32 *childrenSize, IMediu= m * **children); - - nsresult (*GetBase)(IMedium *pThis, IMedium * *base); - - nsresult (*GetReadOnly)(IMedium *pThis, PRBool *readOnly); - - nsresult (*GetLogicalSize)(IMedium *pThis, PRInt64 *logicalSize); - - nsresult (*GetAutoReset)(IMedium *pThis, PRBool *autoReset); - nsresult (*SetAutoReset)(IMedium *pThis, PRBool autoReset); - - nsresult (*GetLastAccessError)(IMedium *pThis, PRUnichar * *lastAccess= Error); - - nsresult (*GetMachineIds)(IMedium *pThis, PRUint32 *machineIdsSize, PR= Unichar * **machineIds); - - nsresult (*SetIds)( - IMedium *pThis, - PRBool setImageId, - PRUnichar * imageId, - PRBool setParentId, - PRUnichar * parentId - ); - - nsresult (*RefreshState)( - IMedium *pThis, - PRUint32 * state - ); - - nsresult (*GetSnapshotIds)( - IMedium *pThis, - PRUnichar * machineId, - PRUint32 *snapshotIdsSize, - PRUnichar *** snapshotIds - ); - - nsresult (*LockRead)( - IMedium *pThis, - IToken * * token - ); - - nsresult (*LockWrite)( - IMedium *pThis, - IToken * * token - ); - - nsresult (*Close)(IMedium *pThis ); - - nsresult (*GetProperty)( - IMedium *pThis, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult (*SetProperty)( - IMedium *pThis, - PRUnichar * name, - PRUnichar * value - ); - - nsresult (*GetProperties)( - IMedium *pThis, - PRUnichar * names, - PRUint32 *returnNamesSize, - PRUnichar *** returnNames, - PRUint32 *returnValuesSize, - PRUnichar *** returnValues - ); - - nsresult (*SetProperties)( - IMedium *pThis, - PRUint32 namesSize, - PRUnichar ** names, - PRUint32 valuesSize, - PRUnichar ** values - ); - - nsresult (*CreateBaseStorage)( - IMedium *pThis, - PRInt64 logicalSize, - PRUint32 variantSize, - PRUint32* variant, - IProgress * * progress - ); - - nsresult (*DeleteStorage)( - IMedium *pThis, - IProgress * * progress - ); - - nsresult (*CreateDiffStorage)( - IMedium *pThis, - IMedium * target, - PRUint32 variantSize, - PRUint32* variant, - IProgress * * progress - ); - - nsresult (*MergeTo)( - IMedium *pThis, - IMedium * target, - IProgress * * progress - ); - - nsresult (*CloneTo)( - IMedium *pThis, - IMedium * target, - PRUint32 variantSize, - PRUint32* variant, - IMedium * parent, - IProgress * * progress - ); - - nsresult (*CloneToBase)( - IMedium *pThis, - IMedium * target, - PRUint32 variantSize, - PRUint32* variant, - IProgress * * progress - ); - - nsresult (*SetLocation)( - IMedium *pThis, - PRUnichar * location, - IProgress * * progress - ); - - nsresult (*Compact)( - IMedium *pThis, - IProgress * * progress - ); - - nsresult (*Resize)( - IMedium *pThis, - PRInt64 logicalSize, - IProgress * * progress - ); - - nsresult (*Reset)( - IMedium *pThis, - IProgress * * progress - ); - -}; - -struct IMedium -{ - struct IMedium_vtbl *vtbl; -}; -/* End of struct IMedium Declaration */ - - -/* Start of struct IMediumFormat Declaration */ -# define IMEDIUMFORMAT_IID_STR "6238e1cf-a17d-4ec1-8172-418bfb22b93a" -# define IMEDIUMFORMAT_IID { \ - 0x6238e1cf, 0xa17d, 0x4ec1, \ - { 0x81, 0x72, 0x41, 0x8b, 0xfb, 0x22, 0xb9, 0x3a } \ -} -struct IMediumFormat_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetId)(IMediumFormat *pThis, PRUnichar * *id); - - nsresult (*GetName)(IMediumFormat *pThis, PRUnichar * *name); - - nsresult (*GetCapabilities)(IMediumFormat *pThis, PRUint32 *capabiliti= esSize, PRUint32 **capabilities); - - nsresult (*DescribeFileExtensions)( - IMediumFormat *pThis, - PRUint32 *extensionsSize, - PRUnichar *** extensions, - PRUint32 *typesSize, - PRUint32** types - ); - - nsresult (*DescribeProperties)( - IMediumFormat *pThis, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *descriptionsSize, - PRUnichar *** descriptions, - PRUint32 *typesSize, - PRUint32** types, - PRUint32 *flagsSize, - PRUint32** flags, - PRUint32 *defaultsSize, - PRUnichar *** defaults - ); - -}; - -struct IMediumFormat -{ - struct IMediumFormat_vtbl *vtbl; -}; -/* End of struct IMediumFormat Declaration */ - - -/* Start of struct IToken Declaration */ -# define ITOKEN_IID_STR "3b1c4797-e289-4d4c-b74c-50c9b86a36f8" -# define ITOKEN_IID { \ - 0x3b1c4797, 0xe289, 0x4d4c, \ - { 0xb7, 0x4c, 0x50, 0xc9, 0xb8, 0x6a, 0x36, 0xf8 } \ -} -struct IToken_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*Abandon)(IToken *pThis ); - - nsresult (*Dummy)(IToken *pThis ); - -}; - -struct IToken -{ - struct IToken_vtbl *vtbl; -}; -/* End of struct IToken Declaration */ - - -/* Start of struct IKeyboard Declaration */ -# define IKEYBOARD_IID_STR "f6916ec5-a881-4237-898f-7de58cf88672" -# define IKEYBOARD_IID { \ - 0xf6916ec5, 0xa881, 0x4237, \ - { 0x89, 0x8f, 0x7d, 0xe5, 0x8c, 0xf8, 0x86, 0x72 } \ -} -struct IKeyboard_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetEventSource)(IKeyboard *pThis, IEventSource * *eventSour= ce); - - nsresult (*PutScancode)( - IKeyboard *pThis, - PRInt32 scancode - ); - - nsresult (*PutScancodes)( - IKeyboard *pThis, - PRUint32 scancodesSize, - PRInt32* scancodes, - PRUint32 * codesStored - ); - - nsresult (*PutCAD)(IKeyboard *pThis ); - -}; - -struct IKeyboard -{ - struct IKeyboard_vtbl *vtbl; -}; -/* End of struct IKeyboard Declaration */ - - -/* Start of struct IMouse Declaration */ -# define IMOUSE_IID_STR "ee770393-415f-4421-b2d5-28b73cacf86a" -# define IMOUSE_IID { \ - 0xee770393, 0x415f, 0x4421, \ - { 0xb2, 0xd5, 0x28, 0xb7, 0x3c, 0xac, 0xf8, 0x6a } \ -} -struct IMouse_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetAbsoluteSupported)(IMouse *pThis, PRBool *absoluteSuppor= ted); - - nsresult (*GetRelativeSupported)(IMouse *pThis, PRBool *relativeSuppor= ted); - - nsresult (*GetMultiTouchSupported)(IMouse *pThis, PRBool *multiTouchSu= pported); - - nsresult (*GetNeedsHostCursor)(IMouse *pThis, PRBool *needsHostCursor); - - nsresult (*GetEventSource)(IMouse *pThis, IEventSource * *eventSource); - - nsresult (*PutMouseEvent)( - IMouse *pThis, - PRInt32 dx, - PRInt32 dy, - PRInt32 dz, - PRInt32 dw, - PRInt32 buttonState - ); - - nsresult (*PutMouseEventAbsolute)( - IMouse *pThis, - PRInt32 x, - PRInt32 y, - PRInt32 dz, - PRInt32 dw, - PRInt32 buttonState - ); - - nsresult (*PutEventMultiTouch)( - IMouse *pThis, - PRInt32 count, - PRUint32 contactsSize, - PRInt64* contacts, - PRUint32 scanTime - ); - - nsresult (*PutEventMultiTouchString)( - IMouse *pThis, - PRInt32 count, - PRUnichar * contacts, - PRUint32 scanTime - ); - -}; - -struct IMouse -{ - struct IMouse_vtbl *vtbl; -}; -/* End of struct IMouse Declaration */ - - -/* Start of struct IFramebuffer Declaration */ -# define IFRAMEBUFFER_IID_STR "e3f122c0-adab-4fc9-a8dc-da112fb48428" -# define IFRAMEBUFFER_IID { \ - 0xe3f122c0, 0xadab, 0x4fc9, \ - { 0xa8, 0xdc, 0xda, 0x11, 0x2f, 0xb4, 0x84, 0x28 } \ -} -struct IFramebuffer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetAddress)(IFramebuffer *pThis, PRUint8 * *address); - - nsresult (*GetWidth)(IFramebuffer *pThis, PRUint32 *width); - - nsresult (*GetHeight)(IFramebuffer *pThis, PRUint32 *height); - - nsresult (*GetBitsPerPixel)(IFramebuffer *pThis, PRUint32 *bitsPerPixe= l); - - nsresult (*GetBytesPerLine)(IFramebuffer *pThis, PRUint32 *bytesPerLin= e); - - nsresult (*GetPixelFormat)(IFramebuffer *pThis, PRUint32 *pixelFormat); - - nsresult (*GetUsesGuestVRAM)(IFramebuffer *pThis, PRBool *usesGuestVRA= M); - - nsresult (*GetHeightReduction)(IFramebuffer *pThis, PRUint32 *heightRe= duction); - - nsresult (*GetOverlay)(IFramebuffer *pThis, IFramebufferOverlay * *ove= rlay); - - nsresult (*GetWinId)(IFramebuffer *pThis, PRInt64 *winId); - - nsresult (*Lock)(IFramebuffer *pThis ); - - nsresult (*Unlock)(IFramebuffer *pThis ); - - nsresult (*NotifyUpdate)( - IFramebuffer *pThis, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - - nsresult (*RequestResize)( - IFramebuffer *pThis, - PRUint32 screenId, - PRUint32 pixelFormat, - PRUint8 * VRAM, - PRUint32 bitsPerPixel, - PRUint32 bytesPerLine, - PRUint32 width, - PRUint32 height, - PRBool * finished - ); - - nsresult (*VideoModeSupported)( - IFramebuffer *pThis, - PRUint32 width, - PRUint32 height, - PRUint32 bpp, - PRBool * supported - ); - - nsresult (*GetVisibleRegion)( - IFramebuffer *pThis, - PRUint8 * rectangles, - PRUint32 count, - PRUint32 * countCopied - ); - - nsresult (*SetVisibleRegion)( - IFramebuffer *pThis, - PRUint8 * rectangles, - PRUint32 count - ); - - nsresult (*ProcessVHWACommand)( - IFramebuffer *pThis, - PRUint8 * command - ); - - nsresult (*Notify3DEvent)( - IFramebuffer *pThis, - PRUint32 type, - PRUint8 * data - ); - -}; - -struct IFramebuffer -{ - struct IFramebuffer_vtbl *vtbl; -}; -/* End of struct IFramebuffer Declaration */ - - -/* Start of struct IFramebufferOverlay Declaration */ -# define IFRAMEBUFFEROVERLAY_IID_STR "0bcc1c7e-e415-47d2-bfdb-e4c705fb0f4= 7" -# define IFRAMEBUFFEROVERLAY_IID { \ - 0x0bcc1c7e, 0xe415, 0x47d2, \ - { 0xbf, 0xdb, 0xe4, 0xc7, 0x05, 0xfb, 0x0f, 0x47 } \ -} -struct IFramebufferOverlay_vtbl -{ - struct IFramebuffer_vtbl iframebuffer; - - nsresult (*GetX)(IFramebufferOverlay *pThis, PRUint32 *x); - - nsresult (*GetY)(IFramebufferOverlay *pThis, PRUint32 *y); - - nsresult (*GetVisible)(IFramebufferOverlay *pThis, PRBool *visible); - nsresult (*SetVisible)(IFramebufferOverlay *pThis, PRBool visible); - - nsresult (*GetAlpha)(IFramebufferOverlay *pThis, PRUint32 *alpha); - nsresult (*SetAlpha)(IFramebufferOverlay *pThis, PRUint32 alpha); - - nsresult (*Move)( - IFramebufferOverlay *pThis, - PRUint32 x, - PRUint32 y - ); - -}; - -struct IFramebufferOverlay -{ - struct IFramebufferOverlay_vtbl *vtbl; -}; -/* End of struct IFramebufferOverlay Declaration */ - - -/* Start of struct IDisplay Declaration */ -# define IDISPLAY_IID_STR "480b372c-c0b5-4c23-9bd7-dcbb85b1594c" -# define IDISPLAY_IID { \ - 0x480b372c, 0xc0b5, 0x4c23, \ - { 0x9b, 0xd7, 0xdc, 0xbb, 0x85, 0xb1, 0x59, 0x4c } \ -} -struct IDisplay_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetScreenResolution)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 * width, - PRUint32 * height, - PRUint32 * bitsPerPixel, - PRInt32 * xOrigin, - PRInt32 * yOrigin - ); - - nsresult (*SetFramebuffer)( - IDisplay *pThis, - PRUint32 screenId, - IFramebuffer * framebuffer - ); - - nsresult (*GetFramebuffer)( - IDisplay *pThis, - PRUint32 screenId, - IFramebuffer * * framebuffer, - PRInt32 * xOrigin, - PRInt32 * yOrigin - ); - - nsresult (*SetVideoModeHint)( - IDisplay *pThis, - PRUint32 display, - PRBool enabled, - PRBool changeOrigin, - PRInt32 originX, - PRInt32 originY, - PRUint32 width, - PRUint32 height, - PRUint32 bitsPerPixel - ); - - nsresult (*SetSeamlessMode)( - IDisplay *pThis, - PRBool enabled - ); - - nsresult (*TakeScreenShot)( - IDisplay *pThis, - PRUint32 screenId, - PRUint8 * address, - PRUint32 width, - PRUint32 height - ); - - nsresult (*TakeScreenShotToArray)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 width, - PRUint32 height, - PRUint32 *screenDataSize, - PRUint8** screenData - ); - - nsresult (*TakeScreenShotPNGToArray)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 width, - PRUint32 height, - PRUint32 *screenDataSize, - PRUint8** screenData - ); - - nsresult (*DrawToScreen)( - IDisplay *pThis, - PRUint32 screenId, - PRUint8 * address, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - - nsresult (*InvalidateAndUpdate)(IDisplay *pThis ); - - nsresult (*ResizeCompleted)( - IDisplay *pThis, - PRUint32 screenId - ); - - nsresult (*CompleteVHWACommand)( - IDisplay *pThis, - PRUint8 * command - ); - - nsresult (*ViewportChanged)( - IDisplay *pThis, - PRUint32 screenId, - PRUint32 x, - PRUint32 y, - PRUint32 width, - PRUint32 height - ); - -}; - -struct IDisplay -{ - struct IDisplay_vtbl *vtbl; -}; -/* End of struct IDisplay Declaration */ - - -/* Start of struct INetworkAdapter Declaration */ -# define INETWORKADAPTER_IID_STR "efa0f965-63c7-4c60-afdf-b1cc9943b9c0" -# define INETWORKADAPTER_IID { \ - 0xefa0f965, 0x63c7, 0x4c60, \ - { 0xaf, 0xdf, 0xb1, 0xcc, 0x99, 0x43, 0xb9, 0xc0 } \ -} -struct INetworkAdapter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetAdapterType)(INetworkAdapter *pThis, PRUint32 *adapterTy= pe); - nsresult (*SetAdapterType)(INetworkAdapter *pThis, PRUint32 adapterTyp= e); - - nsresult (*GetSlot)(INetworkAdapter *pThis, PRUint32 *slot); - - nsresult (*GetEnabled)(INetworkAdapter *pThis, PRBool *enabled); - nsresult (*SetEnabled)(INetworkAdapter *pThis, PRBool enabled); - - nsresult (*GetMACAddress)(INetworkAdapter *pThis, PRUnichar * *MACAddr= ess); - nsresult (*SetMACAddress)(INetworkAdapter *pThis, PRUnichar * MACAddre= ss); - - nsresult (*GetAttachmentType)(INetworkAdapter *pThis, PRUint32 *attach= mentType); - nsresult (*SetAttachmentType)(INetworkAdapter *pThis, PRUint32 attachm= entType); - - nsresult (*GetBridgedInterface)(INetworkAdapter *pThis, PRUnichar * *b= ridgedInterface); - nsresult (*SetBridgedInterface)(INetworkAdapter *pThis, PRUnichar * br= idgedInterface); - - nsresult (*GetHostOnlyInterface)(INetworkAdapter *pThis, PRUnichar * *= hostOnlyInterface); - nsresult (*SetHostOnlyInterface)(INetworkAdapter *pThis, PRUnichar * h= ostOnlyInterface); - - nsresult (*GetInternalNetwork)(INetworkAdapter *pThis, PRUnichar * *in= ternalNetwork); - nsresult (*SetInternalNetwork)(INetworkAdapter *pThis, PRUnichar * int= ernalNetwork); - - nsresult (*GetNATNetwork)(INetworkAdapter *pThis, PRUnichar * *NATNetw= ork); - nsresult (*SetNATNetwork)(INetworkAdapter *pThis, PRUnichar * NATNetwo= rk); - - nsresult (*GetGenericDriver)(INetworkAdapter *pThis, PRUnichar * *gene= ricDriver); - nsresult (*SetGenericDriver)(INetworkAdapter *pThis, PRUnichar * gener= icDriver); - - nsresult (*GetCableConnected)(INetworkAdapter *pThis, PRBool *cableCon= nected); - nsresult (*SetCableConnected)(INetworkAdapter *pThis, PRBool cableConn= ected); - - nsresult (*GetLineSpeed)(INetworkAdapter *pThis, PRUint32 *lineSpeed); - nsresult (*SetLineSpeed)(INetworkAdapter *pThis, PRUint32 lineSpeed); - - nsresult (*GetPromiscModePolicy)(INetworkAdapter *pThis, PRUint32 *pro= miscModePolicy); - nsresult (*SetPromiscModePolicy)(INetworkAdapter *pThis, PRUint32 prom= iscModePolicy); - - nsresult (*GetTraceEnabled)(INetworkAdapter *pThis, PRBool *traceEnabl= ed); - nsresult (*SetTraceEnabled)(INetworkAdapter *pThis, PRBool traceEnable= d); - - nsresult (*GetTraceFile)(INetworkAdapter *pThis, PRUnichar * *traceFil= e); - nsresult (*SetTraceFile)(INetworkAdapter *pThis, PRUnichar * traceFile= ); - - nsresult (*GetNATEngine)(INetworkAdapter *pThis, INATEngine * *NATEngi= ne); - - nsresult (*GetBootPriority)(INetworkAdapter *pThis, PRUint32 *bootPrio= rity); - nsresult (*SetBootPriority)(INetworkAdapter *pThis, PRUint32 bootPrior= ity); - - nsresult (*GetBandwidthGroup)(INetworkAdapter *pThis, IBandwidthGroup = * *bandwidthGroup); - nsresult (*SetBandwidthGroup)(INetworkAdapter *pThis, IBandwidthGroup = * bandwidthGroup); - - nsresult (*GetProperty)( - INetworkAdapter *pThis, - PRUnichar * key, - PRUnichar * * value - ); - - nsresult (*SetProperty)( - INetworkAdapter *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult (*GetProperties)( - INetworkAdapter *pThis, - PRUnichar * names, - PRUint32 *returnNamesSize, - PRUnichar *** returnNames, - PRUint32 *returnValuesSize, - PRUnichar *** returnValues - ); - -}; - -struct INetworkAdapter -{ - struct INetworkAdapter_vtbl *vtbl; -}; -/* End of struct INetworkAdapter Declaration */ - - -/* Start of struct ISerialPort Declaration */ -# define ISERIALPORT_IID_STR "937f6970-5103-4745-b78e-d28dcf1479a8" -# define ISERIALPORT_IID { \ - 0x937f6970, 0x5103, 0x4745, \ - { 0xb7, 0x8e, 0xd2, 0x8d, 0xcf, 0x14, 0x79, 0xa8 } \ -} -struct ISerialPort_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetSlot)(ISerialPort *pThis, PRUint32 *slot); - - nsresult (*GetEnabled)(ISerialPort *pThis, PRBool *enabled); - nsresult (*SetEnabled)(ISerialPort *pThis, PRBool enabled); - - nsresult (*GetIOBase)(ISerialPort *pThis, PRUint32 *IOBase); - nsresult (*SetIOBase)(ISerialPort *pThis, PRUint32 IOBase); - - nsresult (*GetIRQ)(ISerialPort *pThis, PRUint32 *IRQ); - nsresult (*SetIRQ)(ISerialPort *pThis, PRUint32 IRQ); - - nsresult (*GetHostMode)(ISerialPort *pThis, PRUint32 *hostMode); - nsresult (*SetHostMode)(ISerialPort *pThis, PRUint32 hostMode); - - nsresult (*GetServer)(ISerialPort *pThis, PRBool *server); - nsresult (*SetServer)(ISerialPort *pThis, PRBool server); - - nsresult (*GetPath)(ISerialPort *pThis, PRUnichar * *path); - nsresult (*SetPath)(ISerialPort *pThis, PRUnichar * path); - -}; - -struct ISerialPort -{ - struct ISerialPort_vtbl *vtbl; -}; -/* End of struct ISerialPort Declaration */ - - -/* Start of struct IParallelPort Declaration */ -# define IPARALLELPORT_IID_STR "0c925f06-dd10-4b77-8de8-294d738c3214" -# define IPARALLELPORT_IID { \ - 0x0c925f06, 0xdd10, 0x4b77, \ - { 0x8d, 0xe8, 0x29, 0x4d, 0x73, 0x8c, 0x32, 0x14 } \ -} -struct IParallelPort_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetSlot)(IParallelPort *pThis, PRUint32 *slot); - - nsresult (*GetEnabled)(IParallelPort *pThis, PRBool *enabled); - nsresult (*SetEnabled)(IParallelPort *pThis, PRBool enabled); - - nsresult (*GetIOBase)(IParallelPort *pThis, PRUint32 *IOBase); - nsresult (*SetIOBase)(IParallelPort *pThis, PRUint32 IOBase); - - nsresult (*GetIRQ)(IParallelPort *pThis, PRUint32 *IRQ); - nsresult (*SetIRQ)(IParallelPort *pThis, PRUint32 IRQ); - - nsresult (*GetPath)(IParallelPort *pThis, PRUnichar * *path); - nsresult (*SetPath)(IParallelPort *pThis, PRUnichar * path); - -}; - -struct IParallelPort -{ - struct IParallelPort_vtbl *vtbl; -}; -/* End of struct IParallelPort Declaration */ - - -/* Start of struct IMachineDebugger Declaration */ -# define IMACHINEDEBUGGER_IID_STR "5e4534dc-21b8-4f6b-8a08-eef50e1a0aa1" -# define IMACHINEDEBUGGER_IID { \ - 0x5e4534dc, 0x21b8, 0x4f6b, \ - { 0x8a, 0x08, 0xee, 0xf5, 0x0e, 0x1a, 0x0a, 0xa1 } \ -} -struct IMachineDebugger_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetSingleStep)(IMachineDebugger *pThis, PRBool *singleStep); - nsresult (*SetSingleStep)(IMachineDebugger *pThis, PRBool singleStep); - - nsresult (*GetRecompileUser)(IMachineDebugger *pThis, PRBool *recompil= eUser); - nsresult (*SetRecompileUser)(IMachineDebugger *pThis, PRBool recompile= User); - - nsresult (*GetRecompileSupervisor)(IMachineDebugger *pThis, PRBool *re= compileSupervisor); - nsresult (*SetRecompileSupervisor)(IMachineDebugger *pThis, PRBool rec= ompileSupervisor); - - nsresult (*GetExecuteAllInIEM)(IMachineDebugger *pThis, PRBool *execut= eAllInIEM); - nsresult (*SetExecuteAllInIEM)(IMachineDebugger *pThis, PRBool execute= AllInIEM); - - nsresult (*GetPATMEnabled)(IMachineDebugger *pThis, PRBool *PATMEnable= d); - nsresult (*SetPATMEnabled)(IMachineDebugger *pThis, PRBool PATMEnabled= ); - - nsresult (*GetCSAMEnabled)(IMachineDebugger *pThis, PRBool *CSAMEnable= d); - nsresult (*SetCSAMEnabled)(IMachineDebugger *pThis, PRBool CSAMEnabled= ); - - nsresult (*GetLogEnabled)(IMachineDebugger *pThis, PRBool *logEnabled); - nsresult (*SetLogEnabled)(IMachineDebugger *pThis, PRBool logEnabled); - - nsresult (*GetLogDbgFlags)(IMachineDebugger *pThis, PRUnichar * *logDb= gFlags); - - nsresult (*GetLogDbgGroups)(IMachineDebugger *pThis, PRUnichar * *logD= bgGroups); - - nsresult (*GetLogDbgDestinations)(IMachineDebugger *pThis, PRUnichar *= *logDbgDestinations); - - nsresult (*GetLogRelFlags)(IMachineDebugger *pThis, PRUnichar * *logRe= lFlags); - - nsresult (*GetLogRelGroups)(IMachineDebugger *pThis, PRUnichar * *logR= elGroups); - - nsresult (*GetLogRelDestinations)(IMachineDebugger *pThis, PRUnichar *= *logRelDestinations); - - nsresult (*GetHWVirtExEnabled)(IMachineDebugger *pThis, PRBool *HWVirt= ExEnabled); - - nsresult (*GetHWVirtExNestedPagingEnabled)(IMachineDebugger *pThis, PR= Bool *HWVirtExNestedPagingEnabled); - - nsresult (*GetHWVirtExVPIDEnabled)(IMachineDebugger *pThis, PRBool *HW= VirtExVPIDEnabled); - - nsresult (*GetHWVirtExUXEnabled)(IMachineDebugger *pThis, PRBool *HWVi= rtExUXEnabled); - - nsresult (*GetOSName)(IMachineDebugger *pThis, PRUnichar * *OSName); - - nsresult (*GetOSVersion)(IMachineDebugger *pThis, PRUnichar * *OSVersi= on); - - nsresult (*GetPAEEnabled)(IMachineDebugger *pThis, PRBool *PAEEnabled); - - nsresult (*GetVirtualTimeRate)(IMachineDebugger *pThis, PRUint32 *virt= ualTimeRate); - nsresult (*SetVirtualTimeRate)(IMachineDebugger *pThis, PRUint32 virtu= alTimeRate); - - nsresult (*GetVM)(IMachineDebugger *pThis, PRInt64 *VM); - - nsresult (*DumpGuestCore)( - IMachineDebugger *pThis, - PRUnichar * filename, - PRUnichar * compression - ); - - nsresult (*DumpHostProcessCore)( - IMachineDebugger *pThis, - PRUnichar * filename, - PRUnichar * compression - ); - - nsresult (*Info)( - IMachineDebugger *pThis, - PRUnichar * name, - PRUnichar * args, - PRUnichar * * info - ); - - nsresult (*InjectNMI)(IMachineDebugger *pThis ); - - nsresult (*ModifyLogGroups)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult (*ModifyLogFlags)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult (*ModifyLogDestinations)( - IMachineDebugger *pThis, - PRUnichar * settings - ); - - nsresult (*ReadPhysicalMemory)( - IMachineDebugger *pThis, - PRInt64 address, - PRUint32 size, - PRUint32 *bytesSize, - PRUint8** bytes - ); - - nsresult (*WritePhysicalMemory)( - IMachineDebugger *pThis, - PRInt64 address, - PRUint32 size, - PRUint32 bytesSize, - PRUint8* bytes - ); - - nsresult (*ReadVirtualMemory)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRInt64 address, - PRUint32 size, - PRUint32 *bytesSize, - PRUint8** bytes - ); - - nsresult (*WriteVirtualMemory)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRInt64 address, - PRUint32 size, - PRUint32 bytesSize, - PRUint8* bytes - ); - - nsresult (*DetectOS)( - IMachineDebugger *pThis, - PRUnichar * * os - ); - - nsresult (*GetRegister)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * name, - PRUnichar * * value - ); - - nsresult (*GetRegisters)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUint32 *namesSize, - PRUnichar *** names, - PRUint32 *valuesSize, - PRUnichar *** values - ); - - nsresult (*SetRegister)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * name, - PRUnichar * value - ); - - nsresult (*SetRegisters)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUint32 namesSize, - PRUnichar ** names, - PRUint32 valuesSize, - PRUnichar ** values - ); - - nsresult (*DumpGuestStack)( - IMachineDebugger *pThis, - PRUint32 cpuId, - PRUnichar * * stack - ); - - nsresult (*ResetStats)( - IMachineDebugger *pThis, - PRUnichar * pattern - ); - - nsresult (*DumpStats)( - IMachineDebugger *pThis, - PRUnichar * pattern - ); - - nsresult (*GetStats)( - IMachineDebugger *pThis, - PRUnichar * pattern, - PRBool withDescriptions, - PRUnichar * * stats - ); - -}; - -struct IMachineDebugger -{ - struct IMachineDebugger_vtbl *vtbl; -}; -/* End of struct IMachineDebugger Declaration */ - - -/* Start of struct IUSBDeviceFilters Declaration */ -# define IUSBDEVICEFILTERS_IID_STR "2ab550b2-53cc-4c2e-ae07-0adf4114e75c" -# define IUSBDEVICEFILTERS_IID { \ - 0x2ab550b2, 0x53cc, 0x4c2e, \ - { 0xae, 0x07, 0x0a, 0xdf, 0x41, 0x14, 0xe7, 0x5c } \ -} -struct IUSBDeviceFilters_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetDeviceFilters)(IUSBDeviceFilters *pThis, PRUint32 *devic= eFiltersSize, IUSBDeviceFilter * **deviceFilters); - - nsresult (*CreateDeviceFilter)( - IUSBDeviceFilters *pThis, - PRUnichar * name, - IUSBDeviceFilter * * filter - ); - - nsresult (*InsertDeviceFilter)( - IUSBDeviceFilters *pThis, - PRUint32 position, - IUSBDeviceFilter * filter - ); - - nsresult (*RemoveDeviceFilter)( - IUSBDeviceFilters *pThis, - PRUint32 position, - IUSBDeviceFilter * * filter - ); - -}; - -struct IUSBDeviceFilters -{ - struct IUSBDeviceFilters_vtbl *vtbl; -}; -/* End of struct IUSBDeviceFilters Declaration */ - - -/* Start of struct IUSBController Declaration */ -# define IUSBCONTROLLER_IID_STR "d2745291-65f7-4d75-9556-38047d802319" -# define IUSBCONTROLLER_IID { \ - 0xd2745291, 0x65f7, 0x4d75, \ - { 0x95, 0x56, 0x38, 0x04, 0x7d, 0x80, 0x23, 0x19 } \ -} -struct IUSBController_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IUSBController *pThis, PRUnichar * *name); - - nsresult (*GetType)(IUSBController *pThis, PRUint32 *type); - - nsresult (*GetUSBStandard)(IUSBController *pThis, PRUint16 *USBStandar= d); - -}; - -struct IUSBController -{ - struct IUSBController_vtbl *vtbl; -}; -/* End of struct IUSBController Declaration */ - - -/* Start of struct IUSBDevice Declaration */ -# define IUSBDEVICE_IID_STR "f8967b0b-4483-400f-92b5-8b675d98a85b" -# define IUSBDEVICE_IID { \ - 0xf8967b0b, 0x4483, 0x400f, \ - { 0x92, 0xb5, 0x8b, 0x67, 0x5d, 0x98, 0xa8, 0x5b } \ -} -struct IUSBDevice_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetId)(IUSBDevice *pThis, PRUnichar * *id); - - nsresult (*GetVendorId)(IUSBDevice *pThis, PRUint16 *vendorId); - - nsresult (*GetProductId)(IUSBDevice *pThis, PRUint16 *productId); - - nsresult (*GetRevision)(IUSBDevice *pThis, PRUint16 *revision); - - nsresult (*GetManufacturer)(IUSBDevice *pThis, PRUnichar * *manufactur= er); - - nsresult (*GetProduct)(IUSBDevice *pThis, PRUnichar * *product); - - nsresult (*GetSerialNumber)(IUSBDevice *pThis, PRUnichar * *serialNumb= er); - - nsresult (*GetAddress)(IUSBDevice *pThis, PRUnichar * *address); - - nsresult (*GetPort)(IUSBDevice *pThis, PRUint16 *port); - - nsresult (*GetVersion)(IUSBDevice *pThis, PRUint16 *version); - - nsresult (*GetPortVersion)(IUSBDevice *pThis, PRUint16 *portVersion); - - nsresult (*GetRemote)(IUSBDevice *pThis, PRBool *remote); - -}; - -struct IUSBDevice -{ - struct IUSBDevice_vtbl *vtbl; -}; -/* End of struct IUSBDevice Declaration */ - - -/* Start of struct IUSBDeviceFilter Declaration */ -# define IUSBDEVICEFILTER_IID_STR "d6831fb4-1a94-4c2c-96ef-8d0d6192066d" -# define IUSBDEVICEFILTER_IID { \ - 0xd6831fb4, 0x1a94, 0x4c2c, \ - { 0x96, 0xef, 0x8d, 0x0d, 0x61, 0x92, 0x06, 0x6d } \ -} -struct IUSBDeviceFilter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IUSBDeviceFilter *pThis, PRUnichar * *name); - nsresult (*SetName)(IUSBDeviceFilter *pThis, PRUnichar * name); - - nsresult (*GetActive)(IUSBDeviceFilter *pThis, PRBool *active); - nsresult (*SetActive)(IUSBDeviceFilter *pThis, PRBool active); - - nsresult (*GetVendorId)(IUSBDeviceFilter *pThis, PRUnichar * *vendorId= ); - nsresult (*SetVendorId)(IUSBDeviceFilter *pThis, PRUnichar * vendorId); - - nsresult (*GetProductId)(IUSBDeviceFilter *pThis, PRUnichar * *product= Id); - nsresult (*SetProductId)(IUSBDeviceFilter *pThis, PRUnichar * productI= d); - - nsresult (*GetRevision)(IUSBDeviceFilter *pThis, PRUnichar * *revision= ); - nsresult (*SetRevision)(IUSBDeviceFilter *pThis, PRUnichar * revision); - - nsresult (*GetManufacturer)(IUSBDeviceFilter *pThis, PRUnichar * *manu= facturer); - nsresult (*SetManufacturer)(IUSBDeviceFilter *pThis, PRUnichar * manuf= acturer); - - nsresult (*GetProduct)(IUSBDeviceFilter *pThis, PRUnichar * *product); - nsresult (*SetProduct)(IUSBDeviceFilter *pThis, PRUnichar * product); - - nsresult (*GetSerialNumber)(IUSBDeviceFilter *pThis, PRUnichar * *seri= alNumber); - nsresult (*SetSerialNumber)(IUSBDeviceFilter *pThis, PRUnichar * seria= lNumber); - - nsresult (*GetPort)(IUSBDeviceFilter *pThis, PRUnichar * *port); - nsresult (*SetPort)(IUSBDeviceFilter *pThis, PRUnichar * port); - - nsresult (*GetRemote)(IUSBDeviceFilter *pThis, PRUnichar * *remote); - nsresult (*SetRemote)(IUSBDeviceFilter *pThis, PRUnichar * remote); - - nsresult (*GetMaskedInterfaces)(IUSBDeviceFilter *pThis, PRUint32 *mas= kedInterfaces); - nsresult (*SetMaskedInterfaces)(IUSBDeviceFilter *pThis, PRUint32 mask= edInterfaces); - -}; - -struct IUSBDeviceFilter -{ - struct IUSBDeviceFilter_vtbl *vtbl; -}; -/* End of struct IUSBDeviceFilter Declaration */ - - -/* Start of struct IHostUSBDevice Declaration */ -# define IHOSTUSBDEVICE_IID_STR "173b4b44-d268-4334-a00d-b6521c9a740a" -# define IHOSTUSBDEVICE_IID { \ - 0x173b4b44, 0xd268, 0x4334, \ - { 0xa0, 0x0d, 0xb6, 0x52, 0x1c, 0x9a, 0x74, 0x0a } \ -} -struct IHostUSBDevice_vtbl -{ - struct IUSBDevice_vtbl iusbdevice; - - nsresult (*GetState)(IHostUSBDevice *pThis, PRUint32 *state); - -}; - -struct IHostUSBDevice -{ - struct IHostUSBDevice_vtbl *vtbl; -}; -/* End of struct IHostUSBDevice Declaration */ - - -/* Start of struct IHostUSBDeviceFilter Declaration */ -# define IHOSTUSBDEVICEFILTER_IID_STR "4cc70246-d74a-400f-8222-3900489c03= 74" -# define IHOSTUSBDEVICEFILTER_IID { \ - 0x4cc70246, 0xd74a, 0x400f, \ - { 0x82, 0x22, 0x39, 0x00, 0x48, 0x9c, 0x03, 0x74 } \ -} -struct IHostUSBDeviceFilter_vtbl -{ - struct IUSBDeviceFilter_vtbl iusbdevicefilter; - - nsresult (*GetAction)(IHostUSBDeviceFilter *pThis, PRUint32 *action); - nsresult (*SetAction)(IHostUSBDeviceFilter *pThis, PRUint32 action); - -}; - -struct IHostUSBDeviceFilter -{ - struct IHostUSBDeviceFilter_vtbl *vtbl; -}; -/* End of struct IHostUSBDeviceFilter Declaration */ - - -/* Start of struct IAudioAdapter Declaration */ -# define IAUDIOADAPTER_IID_STR "921873db-5f3f-4b69-91f9-7be9e535a2cb" -# define IAUDIOADAPTER_IID { \ - 0x921873db, 0x5f3f, 0x4b69, \ - { 0x91, 0xf9, 0x7b, 0xe9, 0xe5, 0x35, 0xa2, 0xcb } \ -} -struct IAudioAdapter_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetEnabled)(IAudioAdapter *pThis, PRBool *enabled); - nsresult (*SetEnabled)(IAudioAdapter *pThis, PRBool enabled); - - nsresult (*GetAudioController)(IAudioAdapter *pThis, PRUint32 *audioCo= ntroller); - nsresult (*SetAudioController)(IAudioAdapter *pThis, PRUint32 audioCon= troller); - - nsresult (*GetAudioDriver)(IAudioAdapter *pThis, PRUint32 *audioDriver= ); - nsresult (*SetAudioDriver)(IAudioAdapter *pThis, PRUint32 audioDriver); - -}; - -struct IAudioAdapter -{ - struct IAudioAdapter_vtbl *vtbl; -}; -/* End of struct IAudioAdapter Declaration */ - - -/* Start of struct IVRDEServer Declaration */ -# define IVRDESERVER_IID_STR "d38de40a-c2c1-4e95-b5a4-167b05f5694c" -# define IVRDESERVER_IID { \ - 0xd38de40a, 0xc2c1, 0x4e95, \ - { 0xb5, 0xa4, 0x16, 0x7b, 0x05, 0xf5, 0x69, 0x4c } \ -} -struct IVRDEServer_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetEnabled)(IVRDEServer *pThis, PRBool *enabled); - nsresult (*SetEnabled)(IVRDEServer *pThis, PRBool enabled); - - nsresult (*GetAuthType)(IVRDEServer *pThis, PRUint32 *authType); - nsresult (*SetAuthType)(IVRDEServer *pThis, PRUint32 authType); - - nsresult (*GetAuthTimeout)(IVRDEServer *pThis, PRUint32 *authTimeout); - nsresult (*SetAuthTimeout)(IVRDEServer *pThis, PRUint32 authTimeout); - - nsresult (*GetAllowMultiConnection)(IVRDEServer *pThis, PRBool *allowM= ultiConnection); - nsresult (*SetAllowMultiConnection)(IVRDEServer *pThis, PRBool allowMu= ltiConnection); - - nsresult (*GetReuseSingleConnection)(IVRDEServer *pThis, PRBool *reuse= SingleConnection); - nsresult (*SetReuseSingleConnection)(IVRDEServer *pThis, PRBool reuseS= ingleConnection); - - nsresult (*GetVRDEExtPack)(IVRDEServer *pThis, PRUnichar * *VRDEExtPac= k); - nsresult (*SetVRDEExtPack)(IVRDEServer *pThis, PRUnichar * VRDEExtPack= ); - - nsresult (*GetAuthLibrary)(IVRDEServer *pThis, PRUnichar * *authLibrar= y); - nsresult (*SetAuthLibrary)(IVRDEServer *pThis, PRUnichar * authLibrary= ); - - nsresult (*GetVRDEProperties)(IVRDEServer *pThis, PRUint32 *VRDEProper= tiesSize, PRUnichar * **VRDEProperties); - - nsresult (*SetVRDEProperty)( - IVRDEServer *pThis, - PRUnichar * key, - PRUnichar * value - ); - - nsresult (*GetVRDEProperty)( - IVRDEServer *pThis, - PRUnichar * key, - PRUnichar * * value - ); - -}; - -struct IVRDEServer -{ - struct IVRDEServer_vtbl *vtbl; -}; -/* End of struct IVRDEServer Declaration */ - - -/* Start of struct ISharedFolder Declaration */ -# define ISHAREDFOLDER_IID_STR "8388da11-b559-4574-a5b7-2bd7acd5cef8" -# define ISHAREDFOLDER_IID { \ - 0x8388da11, 0xb559, 0x4574, \ - { 0xa5, 0xb7, 0x2b, 0xd7, 0xac, 0xd5, 0xce, 0xf8 } \ -} -struct ISharedFolder_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(ISharedFolder *pThis, PRUnichar * *name); - - nsresult (*GetHostPath)(ISharedFolder *pThis, PRUnichar * *hostPath); - - nsresult (*GetAccessible)(ISharedFolder *pThis, PRBool *accessible); - - nsresult (*GetWritable)(ISharedFolder *pThis, PRBool *writable); - - nsresult (*GetAutoMount)(ISharedFolder *pThis, PRBool *autoMount); - - nsresult (*GetLastAccessError)(ISharedFolder *pThis, PRUnichar * *last= AccessError); - -}; - -struct ISharedFolder -{ - struct ISharedFolder_vtbl *vtbl; -}; -/* End of struct ISharedFolder Declaration */ - - -/* Start of struct IInternalSessionControl Declaration */ -# define IINTERNALSESSIONCONTROL_IID_STR "2d2124a7-0f62-4907-ae21-eee5a55= 9bdde" -# define IINTERNALSESSIONCONTROL_IID { \ - 0x2d2124a7, 0x0f62, 0x4907, \ - { 0xae, 0x21, 0xee, 0xe5, 0xa5, 0x59, 0xbd, 0xde } \ -} -struct IInternalSessionControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetPID)( - IInternalSessionControl *pThis, - PRUint32 * pid - ); - - nsresult (*GetRemoteConsole)( - IInternalSessionControl *pThis, - IConsole * * console - ); - - nsresult (*AssignRemoteMachine)( - IInternalSessionControl *pThis, - IMachine * machine, - IConsole * console - ); - - nsresult (*UpdateMachineState)( - IInternalSessionControl *pThis, - PRUint32 machineState - ); - - nsresult (*Uninitialize)(IInternalSessionControl *pThis ); - - nsresult (*OnNetworkAdapterChange)( - IInternalSessionControl *pThis, - INetworkAdapter * networkAdapter, - PRBool changeAdapter - ); - - nsresult (*OnSerialPortChange)( - IInternalSessionControl *pThis, - ISerialPort * serialPort - ); - - nsresult (*OnParallelPortChange)( - IInternalSessionControl *pThis, - IParallelPort * parallelPort - ); - - nsresult (*OnStorageControllerChange)(IInternalSessionControl *pThis ); - - nsresult (*OnMediumChange)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRBool force - ); - - nsresult (*OnStorageDeviceChange)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRBool remove, - PRBool silent - ); - - nsresult (*OnClipboardModeChange)( - IInternalSessionControl *pThis, - PRUint32 clipboardMode - ); - - nsresult (*OnDragAndDropModeChange)( - IInternalSessionControl *pThis, - PRUint32 dragAndDropMode - ); - - nsresult (*OnCPUChange)( - IInternalSessionControl *pThis, - PRUint32 cpu, - PRBool add - ); - - nsresult (*OnCPUExecutionCapChange)( - IInternalSessionControl *pThis, - PRUint32 executionCap - ); - - nsresult (*OnVRDEServerChange)( - IInternalSessionControl *pThis, - PRBool restart - ); - - nsresult (*OnVideoCaptureChange)(IInternalSessionControl *pThis ); - - nsresult (*OnUSBControllerChange)(IInternalSessionControl *pThis ); - - nsresult (*OnSharedFolderChange)( - IInternalSessionControl *pThis, - PRBool global - ); - - nsresult (*OnUSBDeviceAttach)( - IInternalSessionControl *pThis, - IUSBDevice * device, - IVirtualBoxErrorInfo * error, - PRUint32 maskedInterfaces - ); - - nsresult (*OnUSBDeviceDetach)( - IInternalSessionControl *pThis, - PRUnichar * id, - IVirtualBoxErrorInfo * error - ); - - nsresult (*OnShowWindow)( - IInternalSessionControl *pThis, - PRBool check, - PRBool * canShow, - PRInt64 * winId - ); - - nsresult (*OnBandwidthGroupChange)( - IInternalSessionControl *pThis, - IBandwidthGroup * bandwidthGroup - ); - - nsresult (*AccessGuestProperty)( - IInternalSessionControl *pThis, - PRUnichar * name, - PRUnichar * value, - PRUnichar * flags, - PRBool isSetter, - PRUnichar * * retValue, - PRInt64 * retTimestamp, - PRUnichar * * retFlags - ); - - nsresult (*EnumerateGuestProperties)( - IInternalSessionControl *pThis, - PRUnichar * patterns, - PRUint32 *keysSize, - PRUnichar *** keys, - PRUint32 *valuesSize, - PRUnichar *** values, - PRUint32 *timestampsSize, - PRInt64** timestamps, - PRUint32 *flagsSize, - PRUnichar *** flags - ); - - nsresult (*OnlineMergeMedium)( - IInternalSessionControl *pThis, - IMediumAttachment * mediumAttachment, - PRUint32 sourceIdx, - PRUint32 targetIdx, - IProgress * progress - ); - - nsresult (*EnableVMMStatistics)( - IInternalSessionControl *pThis, - PRBool enable - ); - - nsresult (*PauseWithReason)( - IInternalSessionControl *pThis, - PRUint32 reason - ); - - nsresult (*ResumeWithReason)( - IInternalSessionControl *pThis, - PRUint32 reason - ); - - nsresult (*SaveStateWithReason)( - IInternalSessionControl *pThis, - PRUint32 reason, - IProgress * * progress - ); - -}; - -struct IInternalSessionControl -{ - struct IInternalSessionControl_vtbl *vtbl; -}; -/* End of struct IInternalSessionControl Declaration */ - - -/* Start of struct ISession Declaration */ -# define ISESSION_IID_STR "12F4DCDB-12B2-4EC1-B7CD-DDD9F6C5BF4D" -# define ISESSION_IID { \ - 0x12F4DCDB, 0x12B2, 0x4EC1, \ - { 0xB7, 0xCD, 0xDD, 0xD9, 0xF6, 0xC5, 0xBF, 0x4D } \ -} -struct ISession_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetState)(ISession *pThis, PRUint32 *state); - - nsresult (*GetType)(ISession *pThis, PRUint32 *type); - - nsresult (*GetMachine)(ISession *pThis, IMachine * *machine); - - nsresult (*GetConsole)(ISession *pThis, IConsole * *console); - - nsresult (*UnlockMachine)(ISession *pThis ); - -}; - -struct ISession -{ - struct ISession_vtbl *vtbl; -}; -/* End of struct ISession Declaration */ - - -/* Start of struct IStorageController Declaration */ -# define ISTORAGECONTROLLER_IID_STR "a1556333-09b6-46d9-bfb7-fc239b7fbe1e" -# define ISTORAGECONTROLLER_IID { \ - 0xa1556333, 0x09b6, 0x46d9, \ - { 0xbf, 0xb7, 0xfc, 0x23, 0x9b, 0x7f, 0xbe, 0x1e } \ -} -struct IStorageController_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IStorageController *pThis, PRUnichar * *name); - - nsresult (*GetMaxDevicesPerPortCount)(IStorageController *pThis, PRUin= t32 *maxDevicesPerPortCount); - - nsresult (*GetMinPortCount)(IStorageController *pThis, PRUint32 *minPo= rtCount); - - nsresult (*GetMaxPortCount)(IStorageController *pThis, PRUint32 *maxPo= rtCount); - - nsresult (*GetInstance)(IStorageController *pThis, PRUint32 *instance); - nsresult (*SetInstance)(IStorageController *pThis, PRUint32 instance); - - nsresult (*GetPortCount)(IStorageController *pThis, PRUint32 *portCoun= t); - nsresult (*SetPortCount)(IStorageController *pThis, PRUint32 portCount= ); - - nsresult (*GetBus)(IStorageController *pThis, PRUint32 *bus); - - nsresult (*GetControllerType)(IStorageController *pThis, PRUint32 *con= trollerType); - nsresult (*SetControllerType)(IStorageController *pThis, PRUint32 cont= rollerType); - - nsresult (*GetUseHostIOCache)(IStorageController *pThis, PRBool *useHo= stIOCache); - nsresult (*SetUseHostIOCache)(IStorageController *pThis, PRBool useHos= tIOCache); - - nsresult (*GetBootable)(IStorageController *pThis, PRBool *bootable); - -}; - -struct IStorageController -{ - struct IStorageController_vtbl *vtbl; -}; -/* End of struct IStorageController Declaration */ - - -/* Start of struct IPerformanceMetric Declaration */ -# define IPERFORMANCEMETRIC_IID_STR "2a1a60ae-9345-4019-ad53-d34ba41cbfe9" -# define IPERFORMANCEMETRIC_IID { \ - 0x2a1a60ae, 0x9345, 0x4019, \ - { 0xad, 0x53, 0xd3, 0x4b, 0xa4, 0x1c, 0xbf, 0xe9 } \ -} -struct IPerformanceMetric_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetMetricName)(IPerformanceMetric *pThis, PRUnichar * *metr= icName); - - nsresult (*GetObject)(IPerformanceMetric *pThis, nsISupports * *object= ); - - nsresult (*GetDescription)(IPerformanceMetric *pThis, PRUnichar * *des= cription); - - nsresult (*GetPeriod)(IPerformanceMetric *pThis, PRUint32 *period); - - nsresult (*GetCount)(IPerformanceMetric *pThis, PRUint32 *count); - - nsresult (*GetUnit)(IPerformanceMetric *pThis, PRUnichar * *unit); - - nsresult (*GetMinimumValue)(IPerformanceMetric *pThis, PRInt32 *minimu= mValue); - - nsresult (*GetMaximumValue)(IPerformanceMetric *pThis, PRInt32 *maximu= mValue); - -}; - -struct IPerformanceMetric -{ - struct IPerformanceMetric_vtbl *vtbl; -}; -/* End of struct IPerformanceMetric Declaration */ - - -/* Start of struct IPerformanceCollector Declaration */ -# define IPERFORMANCECOLLECTOR_IID_STR "e22e1acb-ac4a-43bb-a31c-17321659b= 0c6" -# define IPERFORMANCECOLLECTOR_IID { \ - 0xe22e1acb, 0xac4a, 0x43bb, \ - { 0xa3, 0x1c, 0x17, 0x32, 0x16, 0x59, 0xb0, 0xc6 } \ -} -struct IPerformanceCollector_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetMetricNames)(IPerformanceCollector *pThis, PRUint32 *met= ricNamesSize, PRUnichar * **metricNames); - - nsresult (*GetMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *metricsSize, - IPerformanceMetric *** metrics - ); - - nsresult (*SetupMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 period, - PRUint32 count, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult (*EnableMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult (*DisableMetrics)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *affectedMetricsSize, - IPerformanceMetric *** affectedMetrics - ); - - nsresult (*QueryMetricsData)( - IPerformanceCollector *pThis, - PRUint32 metricNamesSize, - PRUnichar ** metricNames, - PRUint32 objectsSize, - nsISupports ** objects, - PRUint32 *returnMetricNamesSize, - PRUnichar *** returnMetricNames, - PRUint32 *returnObjectsSize, - nsISupports *** returnObjects, - PRUint32 *returnUnitsSize, - PRUnichar *** returnUnits, - PRUint32 *returnScalesSize, - PRUint32** returnScales, - PRUint32 *returnSequenceNumbersSize, - PRUint32** returnSequenceNumbers, - PRUint32 *returnDataIndicesSize, - PRUint32** returnDataIndices, - PRUint32 *returnDataLengthsSize, - PRUint32** returnDataLengths, - PRUint32 *returnDataSize, - PRInt32** returnData - ); - -}; - -struct IPerformanceCollector -{ - struct IPerformanceCollector_vtbl *vtbl; -}; -/* End of struct IPerformanceCollector Declaration */ - - -/* Start of struct INATEngine Declaration */ -# define INATENGINE_IID_STR "26451b99-3b2d-4dcb-8e4b-d63654218175" -# define INATENGINE_IID { \ - 0x26451b99, 0x3b2d, 0x4dcb, \ - { 0x8e, 0x4b, 0xd6, 0x36, 0x54, 0x21, 0x81, 0x75 } \ -} -struct INATEngine_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetNetwork)(INATEngine *pThis, PRUnichar * *network); - nsresult (*SetNetwork)(INATEngine *pThis, PRUnichar * network); - - nsresult (*GetHostIP)(INATEngine *pThis, PRUnichar * *hostIP); - nsresult (*SetHostIP)(INATEngine *pThis, PRUnichar * hostIP); - - nsresult (*GetTFTPPrefix)(INATEngine *pThis, PRUnichar * *TFTPPrefix); - nsresult (*SetTFTPPrefix)(INATEngine *pThis, PRUnichar * TFTPPrefix); - - nsresult (*GetTFTPBootFile)(INATEngine *pThis, PRUnichar * *TFTPBootFi= le); - nsresult (*SetTFTPBootFile)(INATEngine *pThis, PRUnichar * TFTPBootFil= e); - - nsresult (*GetTFTPNextServer)(INATEngine *pThis, PRUnichar * *TFTPNext= Server); - nsresult (*SetTFTPNextServer)(INATEngine *pThis, PRUnichar * TFTPNextS= erver); - - nsresult (*GetAliasMode)(INATEngine *pThis, PRUint32 *aliasMode); - nsresult (*SetAliasMode)(INATEngine *pThis, PRUint32 aliasMode); - - nsresult (*GetDNSPassDomain)(INATEngine *pThis, PRBool *DNSPassDomain); - nsresult (*SetDNSPassDomain)(INATEngine *pThis, PRBool DNSPassDomain); - - nsresult (*GetDNSProxy)(INATEngine *pThis, PRBool *DNSProxy); - nsresult (*SetDNSProxy)(INATEngine *pThis, PRBool DNSProxy); - - nsresult (*GetDNSUseHostResolver)(INATEngine *pThis, PRBool *DNSUseHos= tResolver); - nsresult (*SetDNSUseHostResolver)(INATEngine *pThis, PRBool DNSUseHost= Resolver); - - nsresult (*GetRedirects)(INATEngine *pThis, PRUint32 *redirectsSize, P= RUnichar * **redirects); - - nsresult (*SetNetworkSettings)( - INATEngine *pThis, - PRUint32 mtu, - PRUint32 sockSnd, - PRUint32 sockRcv, - PRUint32 TcpWndSnd, - PRUint32 TcpWndRcv - ); - - nsresult (*GetNetworkSettings)( - INATEngine *pThis, - PRUint32 * mtu, - PRUint32 * sockSnd, - PRUint32 * sockRcv, - PRUint32 * TcpWndSnd, - PRUint32 * TcpWndRcv - ); - - nsresult (*AddRedirect)( - INATEngine *pThis, - PRUnichar * name, - PRUint32 proto, - PRUnichar * hostIP, - PRUint16 hostPort, - PRUnichar * guestIP, - PRUint16 guestPort - ); - - nsresult (*RemoveRedirect)( - INATEngine *pThis, - PRUnichar * name - ); - -}; - -struct INATEngine -{ - struct INATEngine_vtbl *vtbl; -}; -/* End of struct INATEngine Declaration */ - - -/* Start of struct IExtPackPlugIn Declaration */ -# define IEXTPACKPLUGIN_IID_STR "58000040-e718-4746-bbce-4b86d96da461" -# define IEXTPACKPLUGIN_IID { \ - 0x58000040, 0xe718, 0x4746, \ - { 0xbb, 0xce, 0x4b, 0x86, 0xd9, 0x6d, 0xa4, 0x61 } \ -} -struct IExtPackPlugIn_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IExtPackPlugIn *pThis, PRUnichar * *name); - - nsresult (*GetDescription)(IExtPackPlugIn *pThis, PRUnichar * *descrip= tion); - - nsresult (*GetFrontend)(IExtPackPlugIn *pThis, PRUnichar * *frontend); - - nsresult (*GetModulePath)(IExtPackPlugIn *pThis, PRUnichar * *modulePa= th); - -}; - -struct IExtPackPlugIn -{ - struct IExtPackPlugIn_vtbl *vtbl; -}; -/* End of struct IExtPackPlugIn Declaration */ - - -/* Start of struct IExtPackBase Declaration */ -# define IEXTPACKBASE_IID_STR "f79b75d8-2890-4f34-ffff-ffffa144e82c" -# define IEXTPACKBASE_IID { \ - 0xf79b75d8, 0x2890, 0x4f34, \ - { 0xff, 0xff, 0xff, 0xff, 0xa1, 0x44, 0xe8, 0x2c } \ -} -struct IExtPackBase_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IExtPackBase *pThis, PRUnichar * *name); - - nsresult (*GetDescription)(IExtPackBase *pThis, PRUnichar * *descripti= on); - - nsresult (*GetVersion)(IExtPackBase *pThis, PRUnichar * *version); - - nsresult (*GetRevision)(IExtPackBase *pThis, PRUint32 *revision); - - nsresult (*GetEdition)(IExtPackBase *pThis, PRUnichar * *edition); - - nsresult (*GetVRDEModule)(IExtPackBase *pThis, PRUnichar * *VRDEModule= ); - - nsresult (*GetPlugIns)(IExtPackBase *pThis, PRUint32 *plugInsSize, IEx= tPackPlugIn * **plugIns); - - nsresult (*GetUsable)(IExtPackBase *pThis, PRBool *usable); - - nsresult (*GetWhyUnusable)(IExtPackBase *pThis, PRUnichar * *whyUnusab= le); - - nsresult (*GetShowLicense)(IExtPackBase *pThis, PRBool *showLicense); - - nsresult (*GetLicense)(IExtPackBase *pThis, PRUnichar * *license); - - nsresult (*QueryLicense)( - IExtPackBase *pThis, - PRUnichar * preferredLocale, - PRUnichar * preferredLanguage, - PRUnichar * format, - PRUnichar * * licenseText - ); - -}; - -struct IExtPackBase -{ - struct IExtPackBase_vtbl *vtbl; -}; -/* End of struct IExtPackBase Declaration */ - - -/* Start of struct IExtPack Declaration */ -# define IEXTPACK_IID_STR "431685da-3618-4ebc-b038-833ba829b4b2" -# define IEXTPACK_IID { \ - 0x431685da, 0x3618, 0x4ebc, \ - { 0xb0, 0x38, 0x83, 0x3b, 0xa8, 0x29, 0xb4, 0xb2 } \ -} -struct IExtPack_vtbl -{ - struct IExtPackBase_vtbl iextpackbase; - - nsresult (*QueryObject)( - IExtPack *pThis, - PRUnichar * objUuid, - nsISupports * * returnInterface - ); - -}; - -struct IExtPack -{ - struct IExtPack_vtbl *vtbl; -}; -/* End of struct IExtPack Declaration */ - - -/* Start of struct IExtPackFile Declaration */ -# define IEXTPACKFILE_IID_STR "b6b49f55-efcc-4f08-b486-56e8d8afb10b" -# define IEXTPACKFILE_IID { \ - 0xb6b49f55, 0xefcc, 0x4f08, \ - { 0xb4, 0x86, 0x56, 0xe8, 0xd8, 0xaf, 0xb1, 0x0b } \ -} -struct IExtPackFile_vtbl -{ - struct IExtPackBase_vtbl iextpackbase; - - nsresult (*GetFilePath)(IExtPackFile *pThis, PRUnichar * *filePath); - - nsresult (*Install)( - IExtPackFile *pThis, - PRBool replace, - PRUnichar * displayInfo, - IProgress * * progess - ); - -}; - -struct IExtPackFile -{ - struct IExtPackFile_vtbl *vtbl; -}; -/* End of struct IExtPackFile Declaration */ - - -/* Start of struct IExtPackManager Declaration */ -# define IEXTPACKMANAGER_IID_STR "3295e6ce-b051-47b2-9514-2c588bfe7554" -# define IEXTPACKMANAGER_IID { \ - 0x3295e6ce, 0xb051, 0x47b2, \ - { 0x95, 0x14, 0x2c, 0x58, 0x8b, 0xfe, 0x75, 0x54 } \ -} -struct IExtPackManager_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetInstalledExtPacks)(IExtPackManager *pThis, PRUint32 *ins= talledExtPacksSize, IExtPack * **installedExtPacks); - - nsresult (*Find)( - IExtPackManager *pThis, - PRUnichar * name, - IExtPack * * returnData - ); - - nsresult (*OpenExtPackFile)( - IExtPackManager *pThis, - PRUnichar * path, - IExtPackFile * * file - ); - - nsresult (*Uninstall)( - IExtPackManager *pThis, - PRUnichar * name, - PRBool forcedRemoval, - PRUnichar * displayInfo, - IProgress * * progess - ); - - nsresult (*Cleanup)(IExtPackManager *pThis ); - - nsresult (*QueryAllPlugInsForFrontend)( - IExtPackManager *pThis, - PRUnichar * frontendName, - PRUint32 *plugInModulesSize, - PRUnichar *** plugInModules - ); - - nsresult (*IsExtPackUsable)( - IExtPackManager *pThis, - PRUnichar * name, - PRBool * usable - ); - -}; - -struct IExtPackManager -{ - struct IExtPackManager_vtbl *vtbl; -}; -/* End of struct IExtPackManager Declaration */ - - -/* Start of struct IBandwidthGroup Declaration */ -# define IBANDWIDTHGROUP_IID_STR "badea2d7-0261-4146-89f0-6a57cc34833d" -# define IBANDWIDTHGROUP_IID { \ - 0xbadea2d7, 0x0261, 0x4146, \ - { 0x89, 0xf0, 0x6a, 0x57, 0xcc, 0x34, 0x83, 0x3d } \ -} -struct IBandwidthGroup_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetName)(IBandwidthGroup *pThis, PRUnichar * *name); - - nsresult (*GetType)(IBandwidthGroup *pThis, PRUint32 *type); - - nsresult (*GetReference)(IBandwidthGroup *pThis, PRUint32 *reference); - - nsresult (*GetMaxBytesPerSec)(IBandwidthGroup *pThis, PRInt64 *maxByte= sPerSec); - nsresult (*SetMaxBytesPerSec)(IBandwidthGroup *pThis, PRInt64 maxBytes= PerSec); - -}; - -struct IBandwidthGroup -{ - struct IBandwidthGroup_vtbl *vtbl; -}; -/* End of struct IBandwidthGroup Declaration */ - - -/* Start of struct IBandwidthControl Declaration */ -# define IBANDWIDTHCONTROL_IID_STR "e2eb3930-d2f4-4f87-be17-0707e30f019f" -# define IBANDWIDTHCONTROL_IID { \ - 0xe2eb3930, 0xd2f4, 0x4f87, \ - { 0xbe, 0x17, 0x07, 0x07, 0xe3, 0x0f, 0x01, 0x9f } \ -} -struct IBandwidthControl_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetNumGroups)(IBandwidthControl *pThis, PRUint32 *numGroups= ); - - nsresult (*CreateBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name, - PRUint32 type, - PRInt64 maxBytesPerSec - ); - - nsresult (*DeleteBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name - ); - - nsresult (*GetBandwidthGroup)( - IBandwidthControl *pThis, - PRUnichar * name, - IBandwidthGroup * * bandwidthGroup - ); - - nsresult (*GetAllBandwidthGroups)( - IBandwidthControl *pThis, - PRUint32 *bandwidthGroupsSize, - IBandwidthGroup *** bandwidthGroups - ); - -}; - -struct IBandwidthControl -{ - struct IBandwidthControl_vtbl *vtbl; -}; -/* End of struct IBandwidthControl Declaration */ - - -/* Start of struct IVirtualBoxClient Declaration */ -# define IVIRTUALBOXCLIENT_IID_STR "d191281f-b0cb-4d83-a8fa-0d9fd6ba234c" -# define IVIRTUALBOXCLIENT_IID { \ - 0xd191281f, 0xb0cb, 0x4d83, \ - { 0xa8, 0xfa, 0x0d, 0x9f, 0xd6, 0xba, 0x23, 0x4c } \ -} -struct IVirtualBoxClient_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetVirtualBox)(IVirtualBoxClient *pThis, IVirtualBox * *vir= tualBox); - - nsresult (*GetSession)(IVirtualBoxClient *pThis, ISession * *session); - - nsresult (*GetEventSource)(IVirtualBoxClient *pThis, IEventSource * *e= ventSource); - - nsresult (*CheckMachineError)( - IVirtualBoxClient *pThis, - IMachine * machine - ); - -}; - -struct IVirtualBoxClient -{ - struct IVirtualBoxClient_vtbl *vtbl; -}; -/* End of struct IVirtualBoxClient Declaration */ - - -/* Start of struct IEventSource Declaration */ -# define IEVENTSOURCE_IID_STR "9b6e1aee-35f3-4f4d-b5bb-ed0ecefd8538" -# define IEVENTSOURCE_IID { \ - 0x9b6e1aee, 0x35f3, 0x4f4d, \ - { 0xb5, 0xbb, 0xed, 0x0e, 0xce, 0xfd, 0x85, 0x38 } \ -} -struct IEventSource_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*CreateListener)( - IEventSource *pThis, - IEventListener * * listener - ); - - nsresult (*CreateAggregator)( - IEventSource *pThis, - PRUint32 subordinatesSize, - IEventSource ** subordinates, - IEventSource * * result - ); - - nsresult (*RegisterListener)( - IEventSource *pThis, - IEventListener * listener, - PRUint32 interestingSize, - PRUint32* interesting, - PRBool active - ); - - nsresult (*UnregisterListener)( - IEventSource *pThis, - IEventListener * listener - ); - - nsresult (*FireEvent)( - IEventSource *pThis, - IEvent * event, - PRInt32 timeout, - PRBool * result - ); - - nsresult (*GetEvent)( - IEventSource *pThis, - IEventListener * listener, - PRInt32 timeout, - IEvent * * event - ); - - nsresult (*EventProcessed)( - IEventSource *pThis, - IEventListener * listener, - IEvent * event - ); - -}; - -struct IEventSource -{ - struct IEventSource_vtbl *vtbl; -}; -/* End of struct IEventSource Declaration */ - - -/* Start of struct IEventListener Declaration */ -# define IEVENTLISTENER_IID_STR "67099191-32e7-4f6c-85ee-422304c71b90" -# define IEVENTLISTENER_IID { \ - 0x67099191, 0x32e7, 0x4f6c, \ - { 0x85, 0xee, 0x42, 0x23, 0x04, 0xc7, 0x1b, 0x90 } \ -} -struct IEventListener_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*HandleEvent)( - IEventListener *pThis, - IEvent * event - ); - -}; - -struct IEventListener -{ - struct IEventListener_vtbl *vtbl; -}; -/* End of struct IEventListener Declaration */ - - -/* Start of struct IEvent Declaration */ -# define IEVENT_IID_STR "0ca2adba-8f30-401b-a8cd-fe31dbe839c0" -# define IEVENT_IID { \ - 0x0ca2adba, 0x8f30, 0x401b, \ - { 0xa8, 0xcd, 0xfe, 0x31, 0xdb, 0xe8, 0x39, 0xc0 } \ -} -struct IEvent_vtbl -{ - struct nsISupports_vtbl nsisupports; - - nsresult (*GetType)(IEvent *pThis, PRUint32 *type); - - nsresult (*GetSource)(IEvent *pThis, IEventSource * *source); - - nsresult (*GetWaitable)(IEvent *pThis, PRBool *waitable); - - nsresult (*SetProcessed)(IEvent *pThis ); - - nsresult (*WaitProcessed)( - IEvent *pThis, - PRInt32 timeout, - PRBool * result - ); - -}; - -struct IEvent -{ - struct IEvent_vtbl *vtbl; -}; -/* End of struct IEvent Declaration */ - - -/* Start of struct IReusableEvent Declaration */ -# define IREUSABLEEVENT_IID_STR "69bfb134-80f6-4266-8e20-16371f68fa25" -# define IREUSABLEEVENT_IID { \ - 0x69bfb134, 0x80f6, 0x4266, \ - { 0x8e, 0x20, 0x16, 0x37, 0x1f, 0x68, 0xfa, 0x25 } \ -} -struct IReusableEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetGeneration)(IReusableEvent *pThis, PRUint32 *generation); - - nsresult (*Reuse)(IReusableEvent *pThis ); - -}; - -struct IReusableEvent -{ - struct IReusableEvent_vtbl *vtbl; -}; -/* End of struct IReusableEvent Declaration */ - - -/* Start of struct IMachineEvent Declaration */ -# define IMACHINEEVENT_IID_STR "92ed7b1a-0d96-40ed-ae46-a564d484325e" -# define IMACHINEEVENT_IID { \ - 0x92ed7b1a, 0x0d96, 0x40ed, \ - { 0xae, 0x46, 0xa5, 0x64, 0xd4, 0x84, 0x32, 0x5e } \ -} -struct IMachineEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetMachineId)(IMachineEvent *pThis, PRUnichar * *machineId); - -}; - -struct IMachineEvent -{ - struct IMachineEvent_vtbl *vtbl; -}; -/* End of struct IMachineEvent Declaration */ - - -/* Start of struct IMachineStateChangedEvent Declaration */ -# define IMACHINESTATECHANGEDEVENT_IID_STR "5748F794-48DF-438D-85EB-98FFD= 70D18C9" -# define IMACHINESTATECHANGEDEVENT_IID { \ - 0x5748F794, 0x48DF, 0x438D, \ - { 0x85, 0xEB, 0x98, 0xFF, 0xD7, 0x0D, 0x18, 0xC9 } \ -} -struct IMachineStateChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetState)(IMachineStateChangedEvent *pThis, PRUint32 *state= ); - -}; - -struct IMachineStateChangedEvent -{ - struct IMachineStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IMachineStateChangedEvent Declaration */ - - -/* Start of struct IMachineDataChangedEvent Declaration */ -# define IMACHINEDATACHANGEDEVENT_IID_STR "abe94809-2e88-4436-83d7-50f3e6= 4d0503" -# define IMACHINEDATACHANGEDEVENT_IID { \ - 0xabe94809, 0x2e88, 0x4436, \ - { 0x83, 0xd7, 0x50, 0xf3, 0xe6, 0x4d, 0x05, 0x03 } \ -} -struct IMachineDataChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetTemporary)(IMachineDataChangedEvent *pThis, PRBool *temp= orary); - -}; - -struct IMachineDataChangedEvent -{ - struct IMachineDataChangedEvent_vtbl *vtbl; -}; -/* End of struct IMachineDataChangedEvent Declaration */ - - -/* Start of struct IMediumRegisteredEvent Declaration */ -# define IMEDIUMREGISTEREDEVENT_IID_STR "53fac49a-b7f1-4a5a-a4ef-a11dd9c2= a458" -# define IMEDIUMREGISTEREDEVENT_IID { \ - 0x53fac49a, 0xb7f1, 0x4a5a, \ - { 0xa4, 0xef, 0xa1, 0x1d, 0xd9, 0xc2, 0xa4, 0x58 } \ -} -struct IMediumRegisteredEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetMediumId)(IMediumRegisteredEvent *pThis, PRUnichar * *me= diumId); - - nsresult (*GetMediumType)(IMediumRegisteredEvent *pThis, PRUint32 *med= iumType); - - nsresult (*GetRegistered)(IMediumRegisteredEvent *pThis, PRBool *regis= tered); - -}; - -struct IMediumRegisteredEvent -{ - struct IMediumRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IMediumRegisteredEvent Declaration */ - - -/* Start of struct IMachineRegisteredEvent Declaration */ -# define IMACHINEREGISTEREDEVENT_IID_STR "c354a762-3ff2-4f2e-8f09-07382ee= 25088" -# define IMACHINEREGISTEREDEVENT_IID { \ - 0xc354a762, 0x3ff2, 0x4f2e, \ - { 0x8f, 0x09, 0x07, 0x38, 0x2e, 0xe2, 0x50, 0x88 } \ -} -struct IMachineRegisteredEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetRegistered)(IMachineRegisteredEvent *pThis, PRBool *regi= stered); - -}; - -struct IMachineRegisteredEvent -{ - struct IMachineRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IMachineRegisteredEvent Declaration */ - - -/* Start of struct ISessionStateChangedEvent Declaration */ -# define ISESSIONSTATECHANGEDEVENT_IID_STR "714a3eef-799a-4489-86cd-fe8e4= 5b2ff8e" -# define ISESSIONSTATECHANGEDEVENT_IID { \ - 0x714a3eef, 0x799a, 0x4489, \ - { 0x86, 0xcd, 0xfe, 0x8e, 0x45, 0xb2, 0xff, 0x8e } \ -} -struct ISessionStateChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetState)(ISessionStateChangedEvent *pThis, PRUint32 *state= ); - -}; - -struct ISessionStateChangedEvent -{ - struct ISessionStateChangedEvent_vtbl *vtbl; -}; -/* End of struct ISessionStateChangedEvent Declaration */ - - -/* Start of struct IGuestPropertyChangedEvent Declaration */ -# define IGUESTPROPERTYCHANGEDEVENT_IID_STR "3f63597a-26f1-4edb-8dd2-6bdd= d0912368" -# define IGUESTPROPERTYCHANGEDEVENT_IID { \ - 0x3f63597a, 0x26f1, 0x4edb, \ - { 0x8d, 0xd2, 0x6b, 0xdd, 0xd0, 0x91, 0x23, 0x68 } \ -} -struct IGuestPropertyChangedEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetName)(IGuestPropertyChangedEvent *pThis, PRUnichar * *na= me); - - nsresult (*GetValue)(IGuestPropertyChangedEvent *pThis, PRUnichar * *v= alue); - - nsresult (*GetFlags)(IGuestPropertyChangedEvent *pThis, PRUnichar * *f= lags); - -}; - -struct IGuestPropertyChangedEvent -{ - struct IGuestPropertyChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestPropertyChangedEvent Declaration */ - - -/* Start of struct ISnapshotEvent Declaration */ -# define ISNAPSHOTEVENT_IID_STR "21637b0e-34b8-42d3-acfb-7e96daf77c22" -# define ISNAPSHOTEVENT_IID { \ - 0x21637b0e, 0x34b8, 0x42d3, \ - { 0xac, 0xfb, 0x7e, 0x96, 0xda, 0xf7, 0x7c, 0x22 } \ -} -struct ISnapshotEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetSnapshotId)(ISnapshotEvent *pThis, PRUnichar * *snapshot= Id); - -}; - -struct ISnapshotEvent -{ - struct ISnapshotEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotEvent Declaration */ - - -/* Start of struct ISnapshotTakenEvent Declaration */ -# define ISNAPSHOTTAKENEVENT_IID_STR "d27c0b3d-6038-422c-b45e-6d4a0503d9f= 1" -# define ISNAPSHOTTAKENEVENT_IID { \ - 0xd27c0b3d, 0x6038, 0x422c, \ - { 0xb4, 0x5e, 0x6d, 0x4a, 0x05, 0x03, 0xd9, 0xf1 } \ -} -struct ISnapshotTakenEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotTakenEvent -{ - struct ISnapshotTakenEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotTakenEvent Declaration */ - - -/* Start of struct ISnapshotDeletedEvent Declaration */ -# define ISNAPSHOTDELETEDEVENT_IID_STR "c48f3401-4a9e-43f4-b7a7-54bd285e2= 2f4" -# define ISNAPSHOTDELETEDEVENT_IID { \ - 0xc48f3401, 0x4a9e, 0x43f4, \ - { 0xb7, 0xa7, 0x54, 0xbd, 0x28, 0x5e, 0x22, 0xf4 } \ -} -struct ISnapshotDeletedEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotDeletedEvent -{ - struct ISnapshotDeletedEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotDeletedEvent Declaration */ - - -/* Start of struct ISnapshotChangedEvent Declaration */ -# define ISNAPSHOTCHANGEDEVENT_IID_STR "07541941-8079-447a-a33e-47a69c798= 0db" -# define ISNAPSHOTCHANGEDEVENT_IID { \ - 0x07541941, 0x8079, 0x447a, \ - { 0xa3, 0x3e, 0x47, 0xa6, 0x9c, 0x79, 0x80, 0xdb } \ -} -struct ISnapshotChangedEvent_vtbl -{ - struct ISnapshotEvent_vtbl isnapshotevent; - -}; - -struct ISnapshotChangedEvent -{ - struct ISnapshotChangedEvent_vtbl *vtbl; -}; -/* End of struct ISnapshotChangedEvent Declaration */ - - -/* Start of struct IMousePointerShapeChangedEvent Declaration */ -# define IMOUSEPOINTERSHAPECHANGEDEVENT_IID_STR "a6dcf6e8-416b-4181-8c4a-= 45ec95177aef" -# define IMOUSEPOINTERSHAPECHANGEDEVENT_IID { \ - 0xa6dcf6e8, 0x416b, 0x4181, \ - { 0x8c, 0x4a, 0x45, 0xec, 0x95, 0x17, 0x7a, 0xef } \ -} -struct IMousePointerShapeChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetVisible)(IMousePointerShapeChangedEvent *pThis, PRBool *= visible); - - nsresult (*GetAlpha)(IMousePointerShapeChangedEvent *pThis, PRBool *al= pha); - - nsresult (*GetXhot)(IMousePointerShapeChangedEvent *pThis, PRUint32 *x= hot); - - nsresult (*GetYhot)(IMousePointerShapeChangedEvent *pThis, PRUint32 *y= hot); - - nsresult (*GetWidth)(IMousePointerShapeChangedEvent *pThis, PRUint32 *= width); - - nsresult (*GetHeight)(IMousePointerShapeChangedEvent *pThis, PRUint32 = *height); - - nsresult (*GetShape)(IMousePointerShapeChangedEvent *pThis, PRUint32 *= shapeSize, PRUint8 **shape); - -}; - -struct IMousePointerShapeChangedEvent -{ - struct IMousePointerShapeChangedEvent_vtbl *vtbl; -}; -/* End of struct IMousePointerShapeChangedEvent Declaration */ - - -/* Start of struct IMouseCapabilityChangedEvent Declaration */ -# define IMOUSECAPABILITYCHANGEDEVENT_IID_STR "70e7779a-e64a-4908-804e-37= 1cad23a756" -# define IMOUSECAPABILITYCHANGEDEVENT_IID { \ - 0x70e7779a, 0xe64a, 0x4908, \ - { 0x80, 0x4e, 0x37, 0x1c, 0xad, 0x23, 0xa7, 0x56 } \ -} -struct IMouseCapabilityChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetSupportsAbsolute)(IMouseCapabilityChangedEvent *pThis, P= RBool *supportsAbsolute); - - nsresult (*GetSupportsRelative)(IMouseCapabilityChangedEvent *pThis, P= RBool *supportsRelative); - - nsresult (*GetSupportsMultiTouch)(IMouseCapabilityChangedEvent *pThis,= PRBool *supportsMultiTouch); - - nsresult (*GetNeedsHostCursor)(IMouseCapabilityChangedEvent *pThis, PR= Bool *needsHostCursor); - -}; - -struct IMouseCapabilityChangedEvent -{ - struct IMouseCapabilityChangedEvent_vtbl *vtbl; -}; -/* End of struct IMouseCapabilityChangedEvent Declaration */ - - -/* Start of struct IKeyboardLedsChangedEvent Declaration */ -# define IKEYBOARDLEDSCHANGEDEVENT_IID_STR "6DDEF35E-4737-457B-99FC-BC52C= 851A44F" -# define IKEYBOARDLEDSCHANGEDEVENT_IID { \ - 0x6DDEF35E, 0x4737, 0x457B, \ - { 0x99, 0xFC, 0xBC, 0x52, 0xC8, 0x51, 0xA4, 0x4F } \ -} -struct IKeyboardLedsChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetNumLock)(IKeyboardLedsChangedEvent *pThis, PRBool *numLo= ck); - - nsresult (*GetCapsLock)(IKeyboardLedsChangedEvent *pThis, PRBool *caps= Lock); - - nsresult (*GetScrollLock)(IKeyboardLedsChangedEvent *pThis, PRBool *sc= rollLock); - -}; - -struct IKeyboardLedsChangedEvent -{ - struct IKeyboardLedsChangedEvent_vtbl *vtbl; -}; -/* End of struct IKeyboardLedsChangedEvent Declaration */ - - -/* Start of struct IStateChangedEvent Declaration */ -# define ISTATECHANGEDEVENT_IID_STR "4376693C-CF37-453B-9289-3B0F521CAF27" -# define ISTATECHANGEDEVENT_IID { \ - 0x4376693C, 0xCF37, 0x453B, \ - { 0x92, 0x89, 0x3B, 0x0F, 0x52, 0x1C, 0xAF, 0x27 } \ -} -struct IStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetState)(IStateChangedEvent *pThis, PRUint32 *state); - -}; - -struct IStateChangedEvent -{ - struct IStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IStateChangedEvent Declaration */ - - -/* Start of struct IAdditionsStateChangedEvent Declaration */ -# define IADDITIONSSTATECHANGEDEVENT_IID_STR "D70F7915-DA7C-44C8-A7AC-9F1= 73490446A" -# define IADDITIONSSTATECHANGEDEVENT_IID { \ - 0xD70F7915, 0xDA7C, 0x44C8, \ - { 0xA7, 0xAC, 0x9F, 0x17, 0x34, 0x90, 0x44, 0x6A } \ -} -struct IAdditionsStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IAdditionsStateChangedEvent -{ - struct IAdditionsStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IAdditionsStateChangedEvent Declaration */ - - -/* Start of struct INetworkAdapterChangedEvent Declaration */ -# define INETWORKADAPTERCHANGEDEVENT_IID_STR "08889892-1EC6-4883-801D-77F= 56CFD0103" -# define INETWORKADAPTERCHANGEDEVENT_IID { \ - 0x08889892, 0x1EC6, 0x4883, \ - { 0x80, 0x1D, 0x77, 0xF5, 0x6C, 0xFD, 0x01, 0x03 } \ -} -struct INetworkAdapterChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetNetworkAdapter)(INetworkAdapterChangedEvent *pThis, INet= workAdapter * *networkAdapter); - -}; - -struct INetworkAdapterChangedEvent -{ - struct INetworkAdapterChangedEvent_vtbl *vtbl; -}; -/* End of struct INetworkAdapterChangedEvent Declaration */ - - -/* Start of struct ISerialPortChangedEvent Declaration */ -# define ISERIALPORTCHANGEDEVENT_IID_STR "3BA329DC-659C-488B-835C-4ECA7AE= 71C6C" -# define ISERIALPORTCHANGEDEVENT_IID { \ - 0x3BA329DC, 0x659C, 0x488B, \ - { 0x83, 0x5C, 0x4E, 0xCA, 0x7A, 0xE7, 0x1C, 0x6C } \ -} -struct ISerialPortChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetSerialPort)(ISerialPortChangedEvent *pThis, ISerialPort = * *serialPort); - -}; - -struct ISerialPortChangedEvent -{ - struct ISerialPortChangedEvent_vtbl *vtbl; -}; -/* End of struct ISerialPortChangedEvent Declaration */ - - -/* Start of struct IParallelPortChangedEvent Declaration */ -# define IPARALLELPORTCHANGEDEVENT_IID_STR "813C99FC-9849-4F47-813E-24A75= DC85615" -# define IPARALLELPORTCHANGEDEVENT_IID { \ - 0x813C99FC, 0x9849, 0x4F47, \ - { 0x81, 0x3E, 0x24, 0xA7, 0x5D, 0xC8, 0x56, 0x15 } \ -} -struct IParallelPortChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetParallelPort)(IParallelPortChangedEvent *pThis, IParalle= lPort * *parallelPort); - -}; - -struct IParallelPortChangedEvent -{ - struct IParallelPortChangedEvent_vtbl *vtbl; -}; -/* End of struct IParallelPortChangedEvent Declaration */ - - -/* Start of struct IStorageControllerChangedEvent Declaration */ -# define ISTORAGECONTROLLERCHANGEDEVENT_IID_STR "715212BF-DA59-426E-8230-= 3831FAA52C56" -# define ISTORAGECONTROLLERCHANGEDEVENT_IID { \ - 0x715212BF, 0xDA59, 0x426E, \ - { 0x82, 0x30, 0x38, 0x31, 0xFA, 0xA5, 0x2C, 0x56 } \ -} -struct IStorageControllerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IStorageControllerChangedEvent -{ - struct IStorageControllerChangedEvent_vtbl *vtbl; -}; -/* End of struct IStorageControllerChangedEvent Declaration */ - - -/* Start of struct IMediumChangedEvent Declaration */ -# define IMEDIUMCHANGEDEVENT_IID_STR "0FE2DA40-5637-472A-9736-72019EABD7D= E" -# define IMEDIUMCHANGEDEVENT_IID { \ - 0x0FE2DA40, 0x5637, 0x472A, \ - { 0x97, 0x36, 0x72, 0x01, 0x9E, 0xAB, 0xD7, 0xDE } \ -} -struct IMediumChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetMediumAttachment)(IMediumChangedEvent *pThis, IMediumAtt= achment * *mediumAttachment); - -}; - -struct IMediumChangedEvent -{ - struct IMediumChangedEvent_vtbl *vtbl; -}; -/* End of struct IMediumChangedEvent Declaration */ - - -/* Start of struct IClipboardModeChangedEvent Declaration */ -# define ICLIPBOARDMODECHANGEDEVENT_IID_STR "cac21692-7997-4595-a731-3a50= 9db604e5" -# define ICLIPBOARDMODECHANGEDEVENT_IID { \ - 0xcac21692, 0x7997, 0x4595, \ - { 0xa7, 0x31, 0x3a, 0x50, 0x9d, 0xb6, 0x04, 0xe5 } \ -} -struct IClipboardModeChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetClipboardMode)(IClipboardModeChangedEvent *pThis, PRUint= 32 *clipboardMode); - -}; - -struct IClipboardModeChangedEvent -{ - struct IClipboardModeChangedEvent_vtbl *vtbl; -}; -/* End of struct IClipboardModeChangedEvent Declaration */ - - -/* Start of struct IDragAndDropModeChangedEvent Declaration */ -# define IDRAGANDDROPMODECHANGEDEVENT_IID_STR "e90b8850-ac8e-4dff-8059-41= 00ae2c3c3d" -# define IDRAGANDDROPMODECHANGEDEVENT_IID { \ - 0xe90b8850, 0xac8e, 0x4dff, \ - { 0x80, 0x59, 0x41, 0x00, 0xae, 0x2c, 0x3c, 0x3d } \ -} -struct IDragAndDropModeChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetDragAndDropMode)(IDragAndDropModeChangedEvent *pThis, PR= Uint32 *dragAndDropMode); - -}; - -struct IDragAndDropModeChangedEvent -{ - struct IDragAndDropModeChangedEvent_vtbl *vtbl; -}; -/* End of struct IDragAndDropModeChangedEvent Declaration */ - - -/* Start of struct ICPUChangedEvent Declaration */ -# define ICPUCHANGEDEVENT_IID_STR "4da2dec7-71b2-4817-9a64-4ed12c17388e" -# define ICPUCHANGEDEVENT_IID { \ - 0x4da2dec7, 0x71b2, 0x4817, \ - { 0x9a, 0x64, 0x4e, 0xd1, 0x2c, 0x17, 0x38, 0x8e } \ -} -struct ICPUChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetCPU)(ICPUChangedEvent *pThis, PRUint32 *CPU); - - nsresult (*GetAdd)(ICPUChangedEvent *pThis, PRBool *add); - -}; - -struct ICPUChangedEvent -{ - struct ICPUChangedEvent_vtbl *vtbl; -}; -/* End of struct ICPUChangedEvent Declaration */ - - -/* Start of struct ICPUExecutionCapChangedEvent Declaration */ -# define ICPUEXECUTIONCAPCHANGEDEVENT_IID_STR "dfa7e4f5-b4a4-44ce-85a8-12= 7ac5eb59dc" -# define ICPUEXECUTIONCAPCHANGEDEVENT_IID { \ - 0xdfa7e4f5, 0xb4a4, 0x44ce, \ - { 0x85, 0xa8, 0x12, 0x7a, 0xc5, 0xeb, 0x59, 0xdc } \ -} -struct ICPUExecutionCapChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetExecutionCap)(ICPUExecutionCapChangedEvent *pThis, PRUin= t32 *executionCap); - -}; - -struct ICPUExecutionCapChangedEvent -{ - struct ICPUExecutionCapChangedEvent_vtbl *vtbl; -}; -/* End of struct ICPUExecutionCapChangedEvent Declaration */ - - -/* Start of struct IGuestKeyboardEvent Declaration */ -# define IGUESTKEYBOARDEVENT_IID_STR "88394258-7006-40d4-b339-472ee380184= 4" -# define IGUESTKEYBOARDEVENT_IID { \ - 0x88394258, 0x7006, 0x40d4, \ - { 0xb3, 0x39, 0x47, 0x2e, 0xe3, 0x80, 0x18, 0x44 } \ -} -struct IGuestKeyboardEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetScancodes)(IGuestKeyboardEvent *pThis, PRUint32 *scancod= esSize, PRInt32 **scancodes); - -}; - -struct IGuestKeyboardEvent -{ - struct IGuestKeyboardEvent_vtbl *vtbl; -}; -/* End of struct IGuestKeyboardEvent Declaration */ - - -/* Start of struct IGuestMouseEvent Declaration */ -# define IGUESTMOUSEEVENT_IID_STR "179f8647-319c-4e7e-8150-c5837bd265f6" -# define IGUESTMOUSEEVENT_IID { \ - 0x179f8647, 0x319c, 0x4e7e, \ - { 0x81, 0x50, 0xc5, 0x83, 0x7b, 0xd2, 0x65, 0xf6 } \ -} -struct IGuestMouseEvent_vtbl -{ - struct IReusableEvent_vtbl ireusableevent; - - nsresult (*GetMode)(IGuestMouseEvent *pThis, PRUint32 *mode); - - nsresult (*GetX)(IGuestMouseEvent *pThis, PRInt32 *x); - - nsresult (*GetY)(IGuestMouseEvent *pThis, PRInt32 *y); - - nsresult (*GetZ)(IGuestMouseEvent *pThis, PRInt32 *z); - - nsresult (*GetW)(IGuestMouseEvent *pThis, PRInt32 *w); - - nsresult (*GetButtons)(IGuestMouseEvent *pThis, PRInt32 *buttons); - -}; - -struct IGuestMouseEvent -{ - struct IGuestMouseEvent_vtbl *vtbl; -}; -/* End of struct IGuestMouseEvent Declaration */ - - -/* Start of struct IGuestMultiTouchEvent Declaration */ -# define IGUESTMULTITOUCHEVENT_IID_STR "be8a0eb5-f4f4-4dd0-9d30-c89b87324= 7ec" -# define IGUESTMULTITOUCHEVENT_IID { \ - 0xbe8a0eb5, 0xf4f4, 0x4dd0, \ - { 0x9d, 0x30, 0xc8, 0x9b, 0x87, 0x32, 0x47, 0xec } \ -} -struct IGuestMultiTouchEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetContactCount)(IGuestMultiTouchEvent *pThis, PRInt32 *con= tactCount); - - nsresult (*GetXPositions)(IGuestMultiTouchEvent *pThis, PRUint32 *xPos= itionsSize, PRInt16 **xPositions); - - nsresult (*GetYPositions)(IGuestMultiTouchEvent *pThis, PRUint32 *yPos= itionsSize, PRInt16 **yPositions); - - nsresult (*GetContactIds)(IGuestMultiTouchEvent *pThis, PRUint32 *cont= actIdsSize, PRUint16 **contactIds); - - nsresult (*GetContactFlags)(IGuestMultiTouchEvent *pThis, PRUint32 *co= ntactFlagsSize, PRUint16 **contactFlags); - - nsresult (*GetScanTime)(IGuestMultiTouchEvent *pThis, PRUint32 *scanTi= me); - -}; - -struct IGuestMultiTouchEvent -{ - struct IGuestMultiTouchEvent_vtbl *vtbl; -}; -/* End of struct IGuestMultiTouchEvent Declaration */ - - -/* Start of struct IGuestSessionEvent Declaration */ -# define IGUESTSESSIONEVENT_IID_STR "b9acd33f-647d-45ac-8fe9-f49b3183ba37" -# define IGUESTSESSIONEVENT_IID { \ - 0xb9acd33f, 0x647d, 0x45ac, \ - { 0x8f, 0xe9, 0xf4, 0x9b, 0x31, 0x83, 0xba, 0x37 } \ -} -struct IGuestSessionEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetSession)(IGuestSessionEvent *pThis, IGuestSession * *ses= sion); - -}; - -struct IGuestSessionEvent -{ - struct IGuestSessionEvent_vtbl *vtbl; -}; -/* End of struct IGuestSessionEvent Declaration */ - - -/* Start of struct IGuestSessionStateChangedEvent Declaration */ -# define IGUESTSESSIONSTATECHANGEDEVENT_IID_STR "327e3c00-ee61-462f-aed3-= 0dff6cbf9904" -# define IGUESTSESSIONSTATECHANGEDEVENT_IID { \ - 0x327e3c00, 0xee61, 0x462f, \ - { 0xae, 0xd3, 0x0d, 0xff, 0x6c, 0xbf, 0x99, 0x04 } \ -} -struct IGuestSessionStateChangedEvent_vtbl -{ - struct IGuestSessionEvent_vtbl iguestsessionevent; - - nsresult (*GetId)(IGuestSessionStateChangedEvent *pThis, PRUint32 *id); - - nsresult (*GetStatus)(IGuestSessionStateChangedEvent *pThis, PRUint32 = *status); - - nsresult (*GetError)(IGuestSessionStateChangedEvent *pThis, IVirtualBo= xErrorInfo * *error); - -}; - -struct IGuestSessionStateChangedEvent -{ - struct IGuestSessionStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestSessionStateChangedEvent Declaration */ - - -/* Start of struct IGuestSessionRegisteredEvent Declaration */ -# define IGUESTSESSIONREGISTEREDEVENT_IID_STR "b79de686-eabd-4fa6-960a-f1= 756c99ea1c" -# define IGUESTSESSIONREGISTEREDEVENT_IID { \ - 0xb79de686, 0xeabd, 0x4fa6, \ - { 0x96, 0x0a, 0xf1, 0x75, 0x6c, 0x99, 0xea, 0x1c } \ -} -struct IGuestSessionRegisteredEvent_vtbl -{ - struct IGuestSessionEvent_vtbl iguestsessionevent; - - nsresult (*GetRegistered)(IGuestSessionRegisteredEvent *pThis, PRBool = *registered); - -}; - -struct IGuestSessionRegisteredEvent -{ - struct IGuestSessionRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IGuestSessionRegisteredEvent Declaration */ - - -/* Start of struct IGuestProcessEvent Declaration */ -# define IGUESTPROCESSEVENT_IID_STR "2405f0e5-6588-40a3-9b0a-68c05ba52c4b" -# define IGUESTPROCESSEVENT_IID { \ - 0x2405f0e5, 0x6588, 0x40a3, \ - { 0x9b, 0x0a, 0x68, 0xc0, 0x5b, 0xa5, 0x2c, 0x4b } \ -} -struct IGuestProcessEvent_vtbl -{ - struct IGuestSessionEvent_vtbl iguestsessionevent; - - nsresult (*GetProcess)(IGuestProcessEvent *pThis, IGuestProcess * *pro= cess); - - nsresult (*GetPid)(IGuestProcessEvent *pThis, PRUint32 *pid); - -}; - -struct IGuestProcessEvent -{ - struct IGuestProcessEvent_vtbl *vtbl; -}; -/* End of struct IGuestProcessEvent Declaration */ - - -/* Start of struct IGuestProcessRegisteredEvent Declaration */ -# define IGUESTPROCESSREGISTEREDEVENT_IID_STR "1d89e2b3-c6ea-45b6-9d43-dc= 6f70cc9f02" -# define IGUESTPROCESSREGISTEREDEVENT_IID { \ - 0x1d89e2b3, 0xc6ea, 0x45b6, \ - { 0x9d, 0x43, 0xdc, 0x6f, 0x70, 0xcc, 0x9f, 0x02 } \ -} -struct IGuestProcessRegisteredEvent_vtbl -{ - struct IGuestProcessEvent_vtbl iguestprocessevent; - - nsresult (*GetRegistered)(IGuestProcessRegisteredEvent *pThis, PRBool = *registered); - -}; - -struct IGuestProcessRegisteredEvent -{ - struct IGuestProcessRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IGuestProcessRegisteredEvent Declaration */ - - -/* Start of struct IGuestProcessStateChangedEvent Declaration */ -# define IGUESTPROCESSSTATECHANGEDEVENT_IID_STR "c365fb7b-4430-499f-92c8-= 8bed814a567a" -# define IGUESTPROCESSSTATECHANGEDEVENT_IID { \ - 0xc365fb7b, 0x4430, 0x499f, \ - { 0x92, 0xc8, 0x8b, 0xed, 0x81, 0x4a, 0x56, 0x7a } \ -} -struct IGuestProcessStateChangedEvent_vtbl -{ - struct IGuestProcessEvent_vtbl iguestprocessevent; - - nsresult (*GetStatus)(IGuestProcessStateChangedEvent *pThis, PRUint32 = *status); - - nsresult (*GetError)(IGuestProcessStateChangedEvent *pThis, IVirtualBo= xErrorInfo * *error); - -}; - -struct IGuestProcessStateChangedEvent -{ - struct IGuestProcessStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestProcessStateChangedEvent Declaration */ - - -/* Start of struct IGuestProcessIOEvent Declaration */ -# define IGUESTPROCESSIOEVENT_IID_STR "9ea9227c-e9bb-49b3-bfc7-c5171e93ef= 38" -# define IGUESTPROCESSIOEVENT_IID { \ - 0x9ea9227c, 0xe9bb, 0x49b3, \ - { 0xbf, 0xc7, 0xc5, 0x17, 0x1e, 0x93, 0xef, 0x38 } \ -} -struct IGuestProcessIOEvent_vtbl -{ - struct IGuestProcessEvent_vtbl iguestprocessevent; - - nsresult (*GetHandle)(IGuestProcessIOEvent *pThis, PRUint32 *handle); - - nsresult (*GetProcessed)(IGuestProcessIOEvent *pThis, PRUint32 *proces= sed); - -}; - -struct IGuestProcessIOEvent -{ - struct IGuestProcessIOEvent_vtbl *vtbl; -}; -/* End of struct IGuestProcessIOEvent Declaration */ - - -/* Start of struct IGuestProcessInputNotifyEvent Declaration */ -# define IGUESTPROCESSINPUTNOTIFYEVENT_IID_STR "0de887f2-b7db-4616-aac6-c= fb94d89ba78" -# define IGUESTPROCESSINPUTNOTIFYEVENT_IID { \ - 0x0de887f2, 0xb7db, 0x4616, \ - { 0xaa, 0xc6, 0xcf, 0xb9, 0x4d, 0x89, 0xba, 0x78 } \ -} -struct IGuestProcessInputNotifyEvent_vtbl -{ - struct IGuestProcessIOEvent_vtbl iguestprocessioevent; - - nsresult (*GetStatus)(IGuestProcessInputNotifyEvent *pThis, PRUint32 *= status); - -}; - -struct IGuestProcessInputNotifyEvent -{ - struct IGuestProcessInputNotifyEvent_vtbl *vtbl; -}; -/* End of struct IGuestProcessInputNotifyEvent Declaration */ - - -/* Start of struct IGuestProcessOutputEvent Declaration */ -# define IGUESTPROCESSOUTPUTEVENT_IID_STR "d3d5f1ee-bcb2-4905-a7ab-cc8544= 8a742b" -# define IGUESTPROCESSOUTPUTEVENT_IID { \ - 0xd3d5f1ee, 0xbcb2, 0x4905, \ - { 0xa7, 0xab, 0xcc, 0x85, 0x44, 0x8a, 0x74, 0x2b } \ -} -struct IGuestProcessOutputEvent_vtbl -{ - struct IGuestProcessIOEvent_vtbl iguestprocessioevent; - - nsresult (*GetData)(IGuestProcessOutputEvent *pThis, PRUint32 *dataSiz= e, PRUint8 **data); - -}; - -struct IGuestProcessOutputEvent -{ - struct IGuestProcessOutputEvent_vtbl *vtbl; -}; -/* End of struct IGuestProcessOutputEvent Declaration */ - - -/* Start of struct IGuestFileEvent Declaration */ -# define IGUESTFILEEVENT_IID_STR "c8adb7b0-057d-4391-b928-f14b06b710c5" -# define IGUESTFILEEVENT_IID { \ - 0xc8adb7b0, 0x057d, 0x4391, \ - { 0xb9, 0x28, 0xf1, 0x4b, 0x06, 0xb7, 0x10, 0xc5 } \ -} -struct IGuestFileEvent_vtbl -{ - struct IGuestSessionEvent_vtbl iguestsessionevent; - - nsresult (*GetFile)(IGuestFileEvent *pThis, IGuestFile * *file); - -}; - -struct IGuestFileEvent -{ - struct IGuestFileEvent_vtbl *vtbl; -}; -/* End of struct IGuestFileEvent Declaration */ - - -/* Start of struct IGuestFileRegisteredEvent Declaration */ -# define IGUESTFILEREGISTEREDEVENT_IID_STR "d0d93830-70a2-487e-895e-d3fc9= 679f7b3" -# define IGUESTFILEREGISTEREDEVENT_IID { \ - 0xd0d93830, 0x70a2, 0x487e, \ - { 0x89, 0x5e, 0xd3, 0xfc, 0x96, 0x79, 0xf7, 0xb3 } \ -} -struct IGuestFileRegisteredEvent_vtbl -{ - struct IGuestFileEvent_vtbl iguestfileevent; - - nsresult (*GetRegistered)(IGuestFileRegisteredEvent *pThis, PRBool *re= gistered); - -}; - -struct IGuestFileRegisteredEvent -{ - struct IGuestFileRegisteredEvent_vtbl *vtbl; -}; -/* End of struct IGuestFileRegisteredEvent Declaration */ - - -/* Start of struct IGuestFileStateChangedEvent Declaration */ -# define IGUESTFILESTATECHANGEDEVENT_IID_STR "d37fe88f-0979-486c-baa1-3ab= b144dc82d" -# define IGUESTFILESTATECHANGEDEVENT_IID { \ - 0xd37fe88f, 0x0979, 0x486c, \ - { 0xba, 0xa1, 0x3a, 0xbb, 0x14, 0x4d, 0xc8, 0x2d } \ -} -struct IGuestFileStateChangedEvent_vtbl -{ - struct IGuestFileEvent_vtbl iguestfileevent; - - nsresult (*GetStatus)(IGuestFileStateChangedEvent *pThis, PRUint32 *st= atus); - - nsresult (*GetError)(IGuestFileStateChangedEvent *pThis, IVirtualBoxEr= rorInfo * *error); - -}; - -struct IGuestFileStateChangedEvent -{ - struct IGuestFileStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestFileStateChangedEvent Declaration */ - - -/* Start of struct IGuestFileIOEvent Declaration */ -# define IGUESTFILEIOEVENT_IID_STR "b5191a7c-9536-4ef8-820e-3b0e17e5bbc8" -# define IGUESTFILEIOEVENT_IID { \ - 0xb5191a7c, 0x9536, 0x4ef8, \ - { 0x82, 0x0e, 0x3b, 0x0e, 0x17, 0xe5, 0xbb, 0xc8 } \ -} -struct IGuestFileIOEvent_vtbl -{ - struct IGuestFileEvent_vtbl iguestfileevent; - - nsresult (*GetOffset)(IGuestFileIOEvent *pThis, PRInt64 *offset); - - nsresult (*GetProcessed)(IGuestFileIOEvent *pThis, PRUint32 *processed= ); - -}; - -struct IGuestFileIOEvent -{ - struct IGuestFileIOEvent_vtbl *vtbl; -}; -/* End of struct IGuestFileIOEvent Declaration */ - - -/* Start of struct IGuestFileOffsetChangedEvent Declaration */ -# define IGUESTFILEOFFSETCHANGEDEVENT_IID_STR "e8f79a21-1207-4179-94cf-ca= 250036308f" -# define IGUESTFILEOFFSETCHANGEDEVENT_IID { \ - 0xe8f79a21, 0x1207, 0x4179, \ - { 0x94, 0xcf, 0xca, 0x25, 0x00, 0x36, 0x30, 0x8f } \ -} -struct IGuestFileOffsetChangedEvent_vtbl -{ - struct IGuestFileIOEvent_vtbl iguestfileioevent; - -}; - -struct IGuestFileOffsetChangedEvent -{ - struct IGuestFileOffsetChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestFileOffsetChangedEvent Declaration */ - - -/* Start of struct IGuestFileReadEvent Declaration */ -# define IGUESTFILEREADEVENT_IID_STR "4ee3cbcb-486f-40db-9150-deee3fd2418= 9" -# define IGUESTFILEREADEVENT_IID { \ - 0x4ee3cbcb, 0x486f, 0x40db, \ - { 0x91, 0x50, 0xde, 0xee, 0x3f, 0xd2, 0x41, 0x89 } \ -} -struct IGuestFileReadEvent_vtbl -{ - struct IGuestFileIOEvent_vtbl iguestfileioevent; - - nsresult (*GetData)(IGuestFileReadEvent *pThis, PRUint32 *dataSize, PR= Uint8 **data); - -}; - -struct IGuestFileReadEvent -{ - struct IGuestFileReadEvent_vtbl *vtbl; -}; -/* End of struct IGuestFileReadEvent Declaration */ - - -/* Start of struct IGuestFileWriteEvent Declaration */ -# define IGUESTFILEWRITEEVENT_IID_STR "e062a915-3cf5-4c0a-bc90-9b8d4cc94d= 89" -# define IGUESTFILEWRITEEVENT_IID { \ - 0xe062a915, 0x3cf5, 0x4c0a, \ - { 0xbc, 0x90, 0x9b, 0x8d, 0x4c, 0xc9, 0x4d, 0x89 } \ -} -struct IGuestFileWriteEvent_vtbl -{ - struct IGuestFileIOEvent_vtbl iguestfileioevent; - -}; - -struct IGuestFileWriteEvent -{ - struct IGuestFileWriteEvent_vtbl *vtbl; -}; -/* End of struct IGuestFileWriteEvent Declaration */ - - -/* Start of struct IVRDEServerChangedEvent Declaration */ -# define IVRDESERVERCHANGEDEVENT_IID_STR "a06fd66a-3188-4c8c-8756-1395e8c= b691c" -# define IVRDESERVERCHANGEDEVENT_IID { \ - 0xa06fd66a, 0x3188, 0x4c8c, \ - { 0x87, 0x56, 0x13, 0x95, 0xe8, 0xcb, 0x69, 0x1c } \ -} -struct IVRDEServerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IVRDEServerChangedEvent -{ - struct IVRDEServerChangedEvent_vtbl *vtbl; -}; -/* End of struct IVRDEServerChangedEvent Declaration */ - - -/* Start of struct IVRDEServerInfoChangedEvent Declaration */ -# define IVRDESERVERINFOCHANGEDEVENT_IID_STR "dd6a1080-e1b7-4339-a549-f08= 78115596e" -# define IVRDESERVERINFOCHANGEDEVENT_IID { \ - 0xdd6a1080, 0xe1b7, 0x4339, \ - { 0xa5, 0x49, 0xf0, 0x87, 0x81, 0x15, 0x59, 0x6e } \ -} -struct IVRDEServerInfoChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IVRDEServerInfoChangedEvent -{ - struct IVRDEServerInfoChangedEvent_vtbl *vtbl; -}; -/* End of struct IVRDEServerInfoChangedEvent Declaration */ - - -/* Start of struct IVideoCaptureChangedEvent Declaration */ -# define IVIDEOCAPTURECHANGEDEVENT_IID_STR "6215d169-25dd-4719-ab34-c9087= 01efb58" -# define IVIDEOCAPTURECHANGEDEVENT_IID { \ - 0x6215d169, 0x25dd, 0x4719, \ - { 0xab, 0x34, 0xc9, 0x08, 0x70, 0x1e, 0xfb, 0x58 } \ -} -struct IVideoCaptureChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IVideoCaptureChangedEvent -{ - struct IVideoCaptureChangedEvent_vtbl *vtbl; -}; -/* End of struct IVideoCaptureChangedEvent Declaration */ - - -/* Start of struct IUSBControllerChangedEvent Declaration */ -# define IUSBCONTROLLERCHANGEDEVENT_IID_STR "93BADC0C-61D9-4940-A084-E6BB= 29AF3D83" -# define IUSBCONTROLLERCHANGEDEVENT_IID { \ - 0x93BADC0C, 0x61D9, 0x4940, \ - { 0xA0, 0x84, 0xE6, 0xBB, 0x29, 0xAF, 0x3D, 0x83 } \ -} -struct IUSBControllerChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IUSBControllerChangedEvent -{ - struct IUSBControllerChangedEvent_vtbl *vtbl; -}; -/* End of struct IUSBControllerChangedEvent Declaration */ - - -/* Start of struct IUSBDeviceStateChangedEvent Declaration */ -# define IUSBDEVICESTATECHANGEDEVENT_IID_STR "806da61b-6679-422a-b629-51b= 06b0c6d93" -# define IUSBDEVICESTATECHANGEDEVENT_IID { \ - 0x806da61b, 0x6679, 0x422a, \ - { 0xb6, 0x29, 0x51, 0xb0, 0x6b, 0x0c, 0x6d, 0x93 } \ -} -struct IUSBDeviceStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetDevice)(IUSBDeviceStateChangedEvent *pThis, IUSBDevice *= *device); - - nsresult (*GetAttached)(IUSBDeviceStateChangedEvent *pThis, PRBool *at= tached); - - nsresult (*GetError)(IUSBDeviceStateChangedEvent *pThis, IVirtualBoxEr= rorInfo * *error); - -}; - -struct IUSBDeviceStateChangedEvent -{ - struct IUSBDeviceStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IUSBDeviceStateChangedEvent Declaration */ - - -/* Start of struct ISharedFolderChangedEvent Declaration */ -# define ISHAREDFOLDERCHANGEDEVENT_IID_STR "B66349B5-3534-4239-B2DE-8E153= 5D94C0B" -# define ISHAREDFOLDERCHANGEDEVENT_IID { \ - 0xB66349B5, 0x3534, 0x4239, \ - { 0xB2, 0xDE, 0x8E, 0x15, 0x35, 0xD9, 0x4C, 0x0B } \ -} -struct ISharedFolderChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetScope)(ISharedFolderChangedEvent *pThis, PRUint32 *scope= ); - -}; - -struct ISharedFolderChangedEvent -{ - struct ISharedFolderChangedEvent_vtbl *vtbl; -}; -/* End of struct ISharedFolderChangedEvent Declaration */ - - -/* Start of struct IRuntimeErrorEvent Declaration */ -# define IRUNTIMEERROREVENT_IID_STR "883DD18B-0721-4CDE-867C-1A82ABAF914C" -# define IRUNTIMEERROREVENT_IID { \ - 0x883DD18B, 0x0721, 0x4CDE, \ - { 0x86, 0x7C, 0x1A, 0x82, 0xAB, 0xAF, 0x91, 0x4C } \ -} -struct IRuntimeErrorEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetFatal)(IRuntimeErrorEvent *pThis, PRBool *fatal); - - nsresult (*GetId)(IRuntimeErrorEvent *pThis, PRUnichar * *id); - - nsresult (*GetMessage)(IRuntimeErrorEvent *pThis, PRUnichar * *message= ); - -}; - -struct IRuntimeErrorEvent -{ - struct IRuntimeErrorEvent_vtbl *vtbl; -}; -/* End of struct IRuntimeErrorEvent Declaration */ - - -/* Start of struct IEventSourceChangedEvent Declaration */ -# define IEVENTSOURCECHANGEDEVENT_IID_STR "e7932cb8-f6d4-4ab6-9cbf-558eb8= 959a6a" -# define IEVENTSOURCECHANGEDEVENT_IID { \ - 0xe7932cb8, 0xf6d4, 0x4ab6, \ - { 0x9c, 0xbf, 0x55, 0x8e, 0xb8, 0x95, 0x9a, 0x6a } \ -} -struct IEventSourceChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetListener)(IEventSourceChangedEvent *pThis, IEventListene= r * *listener); - - nsresult (*GetAdd)(IEventSourceChangedEvent *pThis, PRBool *add); - -}; - -struct IEventSourceChangedEvent -{ - struct IEventSourceChangedEvent_vtbl *vtbl; -}; -/* End of struct IEventSourceChangedEvent Declaration */ - - -/* Start of struct IExtraDataChangedEvent Declaration */ -# define IEXTRADATACHANGEDEVENT_IID_STR "024F00CE-6E0B-492A-A8D0-968472A9= 4DC7" -# define IEXTRADATACHANGEDEVENT_IID { \ - 0x024F00CE, 0x6E0B, 0x492A, \ - { 0xA8, 0xD0, 0x96, 0x84, 0x72, 0xA9, 0x4D, 0xC7 } \ -} -struct IExtraDataChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetMachineId)(IExtraDataChangedEvent *pThis, PRUnichar * *m= achineId); - - nsresult (*GetKey)(IExtraDataChangedEvent *pThis, PRUnichar * *key); - - nsresult (*GetValue)(IExtraDataChangedEvent *pThis, PRUnichar * *value= ); - -}; - -struct IExtraDataChangedEvent -{ - struct IExtraDataChangedEvent_vtbl *vtbl; -}; -/* End of struct IExtraDataChangedEvent Declaration */ - - -/* Start of struct IVetoEvent Declaration */ -# define IVETOEVENT_IID_STR "9a1a4130-69fe-472f-ac10-c6fa25d75007" -# define IVETOEVENT_IID { \ - 0x9a1a4130, 0x69fe, 0x472f, \ - { 0xac, 0x10, 0xc6, 0xfa, 0x25, 0xd7, 0x50, 0x07 } \ -} -struct IVetoEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*AddVeto)( - IVetoEvent *pThis, - PRUnichar * reason - ); - - nsresult (*IsVetoed)( - IVetoEvent *pThis, - PRBool * result - ); - - nsresult (*GetVetos)( - IVetoEvent *pThis, - PRUint32 *resultSize, - PRUnichar *** result - ); - -}; - -struct IVetoEvent -{ - struct IVetoEvent_vtbl *vtbl; -}; -/* End of struct IVetoEvent Declaration */ - - -/* Start of struct IExtraDataCanChangeEvent Declaration */ -# define IEXTRADATACANCHANGEEVENT_IID_STR "245d88bd-800a-40f8-87a6-170d02= 249a55" -# define IEXTRADATACANCHANGEEVENT_IID { \ - 0x245d88bd, 0x800a, 0x40f8, \ - { 0x87, 0xa6, 0x17, 0x0d, 0x02, 0x24, 0x9a, 0x55 } \ -} -struct IExtraDataCanChangeEvent_vtbl -{ - struct IVetoEvent_vtbl ivetoevent; - - nsresult (*GetMachineId)(IExtraDataCanChangeEvent *pThis, PRUnichar * = *machineId); - - nsresult (*GetKey)(IExtraDataCanChangeEvent *pThis, PRUnichar * *key); - - nsresult (*GetValue)(IExtraDataCanChangeEvent *pThis, PRUnichar * *val= ue); - -}; - -struct IExtraDataCanChangeEvent -{ - struct IExtraDataCanChangeEvent_vtbl *vtbl; -}; -/* End of struct IExtraDataCanChangeEvent Declaration */ - - -/* Start of struct ICanShowWindowEvent Declaration */ -# define ICANSHOWWINDOWEVENT_IID_STR "adf292b0-92c9-4a77-9d35-e058b39fe0b= 9" -# define ICANSHOWWINDOWEVENT_IID { \ - 0xadf292b0, 0x92c9, 0x4a77, \ - { 0x9d, 0x35, 0xe0, 0x58, 0xb3, 0x9f, 0xe0, 0xb9 } \ -} -struct ICanShowWindowEvent_vtbl -{ - struct IVetoEvent_vtbl ivetoevent; - -}; - -struct ICanShowWindowEvent -{ - struct ICanShowWindowEvent_vtbl *vtbl; -}; -/* End of struct ICanShowWindowEvent Declaration */ - - -/* Start of struct IShowWindowEvent Declaration */ -# define ISHOWWINDOWEVENT_IID_STR "B0A0904D-2F05-4D28-855F-488F96BAD2B2" -# define ISHOWWINDOWEVENT_IID { \ - 0xB0A0904D, 0x2F05, 0x4D28, \ - { 0x85, 0x5F, 0x48, 0x8F, 0x96, 0xBA, 0xD2, 0xB2 } \ -} -struct IShowWindowEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetWinId)(IShowWindowEvent *pThis, PRInt64 *winId); - nsresult (*SetWinId)(IShowWindowEvent *pThis, PRInt64 winId); - -}; - -struct IShowWindowEvent -{ - struct IShowWindowEvent_vtbl *vtbl; -}; -/* End of struct IShowWindowEvent Declaration */ - - -/* Start of struct INATRedirectEvent Declaration */ -# define INATREDIRECTEVENT_IID_STR "24eef068-c380-4510-bc7c-19314a7352f1" -# define INATREDIRECTEVENT_IID { \ - 0x24eef068, 0xc380, 0x4510, \ - { 0xbc, 0x7c, 0x19, 0x31, 0x4a, 0x73, 0x52, 0xf1 } \ -} -struct INATRedirectEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetSlot)(INATRedirectEvent *pThis, PRUint32 *slot); - - nsresult (*GetRemove)(INATRedirectEvent *pThis, PRBool *remove); - - nsresult (*GetName)(INATRedirectEvent *pThis, PRUnichar * *name); - - nsresult (*GetProto)(INATRedirectEvent *pThis, PRUint32 *proto); - - nsresult (*GetHostIP)(INATRedirectEvent *pThis, PRUnichar * *hostIP); - - nsresult (*GetHostPort)(INATRedirectEvent *pThis, PRInt32 *hostPort); - - nsresult (*GetGuestIP)(INATRedirectEvent *pThis, PRUnichar * *guestIP); - - nsresult (*GetGuestPort)(INATRedirectEvent *pThis, PRInt32 *guestPort); - -}; - -struct INATRedirectEvent -{ - struct INATRedirectEvent_vtbl *vtbl; -}; -/* End of struct INATRedirectEvent Declaration */ - - -/* Start of struct IHostPCIDevicePlugEvent Declaration */ -# define IHOSTPCIDEVICEPLUGEVENT_IID_STR "a0bad6df-d612-47d3-89d4-db39925= 33948" -# define IHOSTPCIDEVICEPLUGEVENT_IID { \ - 0xa0bad6df, 0xd612, 0x47d3, \ - { 0x89, 0xd4, 0xdb, 0x39, 0x92, 0x53, 0x39, 0x48 } \ -} -struct IHostPCIDevicePlugEvent_vtbl -{ - struct IMachineEvent_vtbl imachineevent; - - nsresult (*GetPlugged)(IHostPCIDevicePlugEvent *pThis, PRBool *plugged= ); - - nsresult (*GetSuccess)(IHostPCIDevicePlugEvent *pThis, PRBool *success= ); - - nsresult (*GetAttachment)(IHostPCIDevicePlugEvent *pThis, IPCIDeviceAt= tachment * *attachment); - - nsresult (*GetMessage)(IHostPCIDevicePlugEvent *pThis, PRUnichar * *me= ssage); - -}; - -struct IHostPCIDevicePlugEvent -{ - struct IHostPCIDevicePlugEvent_vtbl *vtbl; -}; -/* End of struct IHostPCIDevicePlugEvent Declaration */ - - -/* Start of struct IVBoxSVCAvailabilityChangedEvent Declaration */ -# define IVBOXSVCAVAILABILITYCHANGEDEVENT_IID_STR "97c78fcd-d4fc-485f-861= 3-5af88bfcfcdc" -# define IVBOXSVCAVAILABILITYCHANGEDEVENT_IID { \ - 0x97c78fcd, 0xd4fc, 0x485f, \ - { 0x86, 0x13, 0x5a, 0xf8, 0x8b, 0xfc, 0xfc, 0xdc } \ -} -struct IVBoxSVCAvailabilityChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetAvailable)(IVBoxSVCAvailabilityChangedEvent *pThis, PRBo= ol *available); - -}; - -struct IVBoxSVCAvailabilityChangedEvent -{ - struct IVBoxSVCAvailabilityChangedEvent_vtbl *vtbl; -}; -/* End of struct IVBoxSVCAvailabilityChangedEvent Declaration */ - - -/* Start of struct IBandwidthGroupChangedEvent Declaration */ -# define IBANDWIDTHGROUPCHANGEDEVENT_IID_STR "334df94a-7556-4cbc-8c04-043= 096b02d82" -# define IBANDWIDTHGROUPCHANGEDEVENT_IID { \ - 0x334df94a, 0x7556, 0x4cbc, \ - { 0x8c, 0x04, 0x04, 0x30, 0x96, 0xb0, 0x2d, 0x82 } \ -} -struct IBandwidthGroupChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetBandwidthGroup)(IBandwidthGroupChangedEvent *pThis, IBan= dwidthGroup * *bandwidthGroup); - -}; - -struct IBandwidthGroupChangedEvent -{ - struct IBandwidthGroupChangedEvent_vtbl *vtbl; -}; -/* End of struct IBandwidthGroupChangedEvent Declaration */ - - -/* Start of struct IGuestMonitorChangedEvent Declaration */ -# define IGUESTMONITORCHANGEDEVENT_IID_STR "0f7b8a22-c71f-4a36-8e5f-a77d0= 1d76090" -# define IGUESTMONITORCHANGEDEVENT_IID { \ - 0x0f7b8a22, 0xc71f, 0x4a36, \ - { 0x8e, 0x5f, 0xa7, 0x7d, 0x01, 0xd7, 0x60, 0x90 } \ -} -struct IGuestMonitorChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetChangeType)(IGuestMonitorChangedEvent *pThis, PRUint32 *= changeType); - - nsresult (*GetScreenId)(IGuestMonitorChangedEvent *pThis, PRUint32 *sc= reenId); - - nsresult (*GetOriginX)(IGuestMonitorChangedEvent *pThis, PRUint32 *ori= ginX); - - nsresult (*GetOriginY)(IGuestMonitorChangedEvent *pThis, PRUint32 *ori= ginY); - - nsresult (*GetWidth)(IGuestMonitorChangedEvent *pThis, PRUint32 *width= ); - - nsresult (*GetHeight)(IGuestMonitorChangedEvent *pThis, PRUint32 *heig= ht); - -}; - -struct IGuestMonitorChangedEvent -{ - struct IGuestMonitorChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestMonitorChangedEvent Declaration */ - - -/* Start of struct IGuestUserStateChangedEvent Declaration */ -# define IGUESTUSERSTATECHANGEDEVENT_IID_STR "39b4e759-1ec0-4c0f-857f-fbe= 2a737a256" -# define IGUESTUSERSTATECHANGEDEVENT_IID { \ - 0x39b4e759, 0x1ec0, 0x4c0f, \ - { 0x85, 0x7f, 0xfb, 0xe2, 0xa7, 0x37, 0xa2, 0x56 } \ -} -struct IGuestUserStateChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetName)(IGuestUserStateChangedEvent *pThis, PRUnichar * *n= ame); - - nsresult (*GetDomain)(IGuestUserStateChangedEvent *pThis, PRUnichar * = *domain); - - nsresult (*GetState)(IGuestUserStateChangedEvent *pThis, PRUint32 *sta= te); - - nsresult (*GetStateDetails)(IGuestUserStateChangedEvent *pThis, PRUnic= har * *stateDetails); - -}; - -struct IGuestUserStateChangedEvent -{ - struct IGuestUserStateChangedEvent_vtbl *vtbl; -}; -/* End of struct IGuestUserStateChangedEvent Declaration */ - - -/* Start of struct IStorageDeviceChangedEvent Declaration */ -# define ISTORAGEDEVICECHANGEDEVENT_IID_STR "232e9151-ae84-4b8e-b0f3-5c20= c35caac9" -# define ISTORAGEDEVICECHANGEDEVENT_IID { \ - 0x232e9151, 0xae84, 0x4b8e, \ - { 0xb0, 0xf3, 0x5c, 0x20, 0xc3, 0x5c, 0xaa, 0xc9 } \ -} -struct IStorageDeviceChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetStorageDevice)(IStorageDeviceChangedEvent *pThis, IMediu= mAttachment * *storageDevice); - - nsresult (*GetRemoved)(IStorageDeviceChangedEvent *pThis, PRBool *remo= ved); - - nsresult (*GetSilent)(IStorageDeviceChangedEvent *pThis, PRBool *silen= t); - -}; - -struct IStorageDeviceChangedEvent -{ - struct IStorageDeviceChangedEvent_vtbl *vtbl; -}; -/* End of struct IStorageDeviceChangedEvent Declaration */ - - -/* Start of struct INATNetworkChangedEvent Declaration */ -# define INATNETWORKCHANGEDEVENT_IID_STR "101ae042-1a29-4a19-92cf-0228577= 3f3b5" -# define INATNETWORKCHANGEDEVENT_IID { \ - 0x101ae042, 0x1a29, 0x4a19, \ - { 0x92, 0xcf, 0x02, 0x28, 0x57, 0x73, 0xf3, 0xb5 } \ -} -struct INATNetworkChangedEvent_vtbl -{ - struct IEvent_vtbl ievent; - - nsresult (*GetNetworkName)(INATNetworkChangedEvent *pThis, PRUnichar *= *networkName); - -}; - -struct INATNetworkChangedEvent -{ - struct INATNetworkChangedEvent_vtbl *vtbl; -}; -/* End of struct INATNetworkChangedEvent Declaration */ - - -/* Start of struct INATNetworkStartStopEvent Declaration */ -# define INATNETWORKSTARTSTOPEVENT_IID_STR "269d8f6b-fa1e-4cee-91c7-6d849= 6bea3c1" -# define INATNETWORKSTARTSTOPEVENT_IID { \ - 0x269d8f6b, 0xfa1e, 0x4cee, \ - { 0x91, 0xc7, 0x6d, 0x84, 0x96, 0xbe, 0xa3, 0xc1 } \ -} -struct INATNetworkStartStopEvent_vtbl -{ - struct INATNetworkChangedEvent_vtbl inatnetworkchangedevent; - - nsresult (*GetStartEvent)(INATNetworkStartStopEvent *pThis, PRBool *st= artEvent); - -}; - -struct INATNetworkStartStopEvent -{ - struct INATNetworkStartStopEvent_vtbl *vtbl; -}; -/* End of struct INATNetworkStartStopEvent Declaration */ - - -/* Start of struct INATNetworkAlterEvent Declaration */ -# define INATNETWORKALTEREVENT_IID_STR "3f5a0822-163a-43b1-ad16-8d58b0ef6= e75" -# define INATNETWORKALTEREVENT_IID { \ - 0x3f5a0822, 0x163a, 0x43b1, \ - { 0xad, 0x16, 0x8d, 0x58, 0xb0, 0xef, 0x6e, 0x75 } \ -} -struct INATNetworkAlterEvent_vtbl -{ - struct INATNetworkChangedEvent_vtbl inatnetworkchangedevent; - -}; - -struct INATNetworkAlterEvent -{ - struct INATNetworkAlterEvent_vtbl *vtbl; -}; -/* End of struct INATNetworkAlterEvent Declaration */ - - -/* Start of struct INATNetworkCreationDeletionEvent Declaration */ -# define INATNETWORKCREATIONDELETIONEVENT_IID_STR "8d984a7e-b855-40b8-ab0= c-44d3515b4528" -# define INATNETWORKCREATIONDELETIONEVENT_IID { \ - 0x8d984a7e, 0xb855, 0x40b8, \ - { 0xab, 0x0c, 0x44, 0xd3, 0x51, 0x5b, 0x45, 0x28 } \ -} -struct INATNetworkCreationDeletionEvent_vtbl -{ - struct INATNetworkAlterEvent_vtbl inatnetworkalterevent; - - nsresult (*GetCreationEvent)(INATNetworkCreationDeletionEvent *pThis, = PRBool *creationEvent); - -}; - -struct INATNetworkCreationDeletionEvent -{ - struct INATNetworkCreationDeletionEvent_vtbl *vtbl; -}; -/* End of struct INATNetworkCreationDeletionEvent Declaration */ - - -/* Start of struct INATNetworkSettingEvent Declaration */ -# define INATNETWORKSETTINGEVENT_IID_STR "9db3a9e6-7f29-4aae-a627-5a282c8= 3092c" -# define INATNETWORKSETTINGEVENT_IID { \ - 0x9db3a9e6, 0x7f29, 0x4aae, \ - { 0xa6, 0x27, 0x5a, 0x28, 0x2c, 0x83, 0x09, 0x2c } \ -} -struct INATNetworkSettingEvent_vtbl -{ - struct INATNetworkAlterEvent_vtbl inatnetworkalterevent; - - nsresult (*GetEnabled)(INATNetworkSettingEvent *pThis, PRBool *enabled= ); - - nsresult (*GetNetwork)(INATNetworkSettingEvent *pThis, PRUnichar * *ne= twork); - - nsresult (*GetGateway)(INATNetworkSettingEvent *pThis, PRUnichar * *ga= teway); - - nsresult (*GetAdvertiseDefaultIPv6RouteEnabled)(INATNetworkSettingEven= t *pThis, PRBool *advertiseDefaultIPv6RouteEnabled); - - nsresult (*GetNeedDhcpServer)(INATNetworkSettingEvent *pThis, PRBool *= needDhcpServer); - -}; - -struct INATNetworkSettingEvent -{ - struct INATNetworkSettingEvent_vtbl *vtbl; -}; -/* End of struct INATNetworkSettingEvent Declaration */ - - -/* Start of struct INATNetworkPortForwardEvent Declaration */ -# define INATNETWORKPORTFORWARDEVENT_IID_STR "2514881b-23d0-430a-a7ff-7ed= 7f05534bc" -# define INATNETWORKPORTFORWARDEVENT_IID { \ - 0x2514881b, 0x23d0, 0x430a, \ - { 0xa7, 0xff, 0x7e, 0xd7, 0xf0, 0x55, 0x34, 0xbc } \ -} -struct INATNetworkPortForwardEvent_vtbl -{ - struct INATNetworkAlterEvent_vtbl inatnetworkalterevent; - - nsresult (*GetCreate)(INATNetworkPortForwardEvent *pThis, PRBool *crea= te); - - nsresult (*GetIpv6)(INATNetworkPortForwardEvent *pThis, PRBool *ipv6); - - nsresult (*GetName)(INATNetworkPortForwardEvent *pThis, PRUnichar * *n= ame); - - nsresult (*GetProto)(INATNetworkPortForwardEvent *pThis, PRUint32 *pro= to); - - nsresult (*GetHostIp)(INATNetworkPortForwardEvent *pThis, PRUnichar * = *hostIp); - - nsresult (*GetHostPort)(INATNetworkPortForwardEvent *pThis, PRInt32 *h= ostPort); - - nsresult (*GetGuestIp)(INATNetworkPortForwardEvent *pThis, PRUnichar *= *guestIp); - - nsresult (*GetGuestPort)(INATNetworkPortForwardEvent *pThis, PRInt32 *= guestPort); - -}; - -struct INATNetworkPortForwardEvent -{ - struct INATNetworkPortForwardEvent_vtbl *vtbl; -}; -/* End of struct INATNetworkPortForwardEvent Declaration */ - - -/* Start of struct IHostNameResolutionConfigurationChangeEvent Declaration= */ -# define IHOSTNAMERESOLUTIONCONFIGURATIONCHANGEEVENT_IID_STR "f9b9e1cf-cb= 63-47a1-84fb-02c4894b89a9" -# define IHOSTNAMERESOLUTIONCONFIGURATIONCHANGEEVENT_IID { \ - 0xf9b9e1cf, 0xcb63, 0x47a1, \ - { 0x84, 0xfb, 0x02, 0xc4, 0x89, 0x4b, 0x89, 0xa9 } \ -} -struct IHostNameResolutionConfigurationChangeEvent_vtbl -{ - struct IEvent_vtbl ievent; - -}; - -struct IHostNameResolutionConfigurationChangeEvent -{ - struct IHostNameResolutionConfigurationChangeEvent_vtbl *vtbl; -}; -/* End of struct IHostNameResolutionConfigurationChangeEvent Declaration */ - - - -# define NS_VIRTUALBOX_CID { \ - 0xB1A7A4F2, 0x47B9, 0x4A1E, \ - { 0x82, 0xB2, 0x07, 0xCC, 0xD5, 0x32, 0x3C, 0x3F } \ -} -# define NS_VIRTUALBOX_CONTRACTID "@virtualbox.org/VirtualBox;1" -/* for compatibility with Win32 */ -# define CLSID_VirtualBox (nsCID) NS_VIRTUALBOX_CID - - - -# define NS_VIRTUALBOXCLIENT_CID { \ - 0xdd3fc71d, 0x26c0, 0x4fe1, \ - { 0xbf, 0x6f, 0x67, 0xf6, 0x33, 0x26, 0x5b, 0xba } \ -} -# define NS_VIRTUALBOXCLIENT_CONTRACTID "@virtualbox.org/VirtualBoxClient= ;1" -/* for compatibility with Win32 */ -# define CLSID_VirtualBoxClient (nsCID) NS_VIRTUALBOXCLIENT_CID - - - -# define NS_SESSION_CID { \ - 0x3C02F46D, 0xC9D2, 0x4F11, \ - { 0xA3, 0x84, 0x53, 0xF0, 0xCF, 0x91, 0x72, 0x14 } \ -} -# define NS_SESSION_CONTRACTID "@virtualbox.org/Session;1" -/* for compatibility with Win32 */ -# define CLSID_Session (nsCID) NS_SESSION_CID - - - -# endif /* !__cplusplus */ - -# ifdef IN_VBOXXPCOMC -# define VBOXXPCOMC_DECL(type) PR_EXPORT(type) -# else -# define VBOXXPCOMC_DECL(type) PR_IMPORT(type) -# endif - -# ifdef __cplusplus -extern "C" { -# endif - - -/** - * Function table for dynamic linking. - * Use VBoxGetFunctions() to obtain the pointer to it. - */ -typedef struct VBOXXPCOMC -{ - /** The size of the structure. */ - unsigned cb; - /** The structure version. */ - unsigned uVersion; - - /** Gets the VirtualBox version, major * 1000000 + minor * 1000 + patc= h. */ - unsigned int (*pfnGetVersion)(void); - - /** Gets the VirtualBox API version, major * 1000 + minor, e.g. 4003. = */ - unsigned int (*pfnGetAPIVersion)(void); - - /** - * New and preferred way to initialize the C bindings for an API clien= t. - * - * This way is much more flexible, as it can easily handle multiple - * sessions (important with more complicated API clients, including - * multithreaded ones), and even VBoxSVC crashes can be detected and - * processed appropriately by listening for events from the associated - * event source in VirtualBoxClient. It is completely up to the client - * to decide what to do (terminate or continue after getting new - * object references to server-side objects). Must be called in the - * primary thread of the client, later API use can be done in any - * thread. - * - * Note that the returned reference is owned by the caller, and thus i= t's - * the caller's responsibility to handle the reference count appropria= tely. - * - * @param pszVirtualBoxClientIID pass IVIRTUALBOXCLIENT_IID_STR - * @param ppVirtualBoxClient output parameter for VirtualBoxCli= ent - * reference, handled as usual with XPCOM. - * @returns XPCOM error code - */ - nsresult (*pfnClientInitialize)(const char *pszVirtualBoxClientIID, - IVirtualBoxClient **ppVirtualBoxClient= ); - /** - * Uninitialize the C bindings for an API client. - * - * Should be called when the API client is about to terminate and does - * not want to use the C bindings any more. It will invalidate all - * object references. It is possible, however, to change one's mind, - * and call pfnClientInitialize again to continue using the API, as lo= ng - * as none of the object references from before the re-initialization - * are used. Must be called from the primary thread of the client. - */ - void (*pfnClientUninitialize)(void); - - /** - * Deprecated way to initialize the C bindings and getting important - * object references. Kept for backwards compatibility. - * - * If any returned reference is NULL then the initialization failed. - * Note that the returned references are owned by the C bindings. The - * number of calls to Release in the client code must match the number - * of calls to AddRef, and additionally at no point in time there can - * be more Release calls than AddRef calls. - * - * @param pszVirtualBoxIID pass IVIRTUALBOX_IID_STR - * @param ppVirtualBox output parameter for VirtualBox refere= nce, - * owned by C bindings - * @param pszSessionIID pass ISESSION_IID_STR - * @param ppSession output parameter for Session reference, - * owned by C bindings - */ - void (*pfnComInitialize)(const char *pszVirtualBoxIID, - IVirtualBox **ppVirtualBox, - const char *pszSessionIID, - ISession **ppSession); - /** - * Deprecated way to uninitialize the C bindings for an API client. - * Kept for backwards compatibility and must be used if the C bindings - * were initialized using pfnComInitialize. */ - void (*pfnComUninitialize)(void); - - /** - * Free memory managed by XPCOM. - * - * @param pv pointer to memory block to be freed - */ - void (*pfnComUnallocMem)(void *pv); - - /** - * Convert string from UTF-16 encoding to UTF-8 encoding. - * - * @param pwszString input string - * @param ppszString output string - * @returns IPRT status code - */ - int (*pfnUtf16ToUtf8)(const PRUnichar *pwszString, char **ppszString= ); - /** - * Convert string from UTF-8 encoding to UTF-16 encoding. - * - * @param pszString input string - * @param ppwszString output string - * @returns IPRT status code - */ - int (*pfnUtf8ToUtf16)(const char *pszString, PRUnichar **ppwszString= ); - /** - * Free memory returned by pfnUtf16ToUtf8. Do not use for anything els= e. - * - * @param pszString string to be freed. - */ - void (*pfnUtf8Free)(char *pszString); - /** - * Free memory returned by pfnUtf8ToUtf16. Do not use for anything els= e. - * - * @param pwszString string to be freed. - */ - void (*pfnUtf16Free)(PRUnichar *pwszString); - - /** - * Get main XPCOM event queue. - * - * @param ppEventQueue output parameter for nsIEventQueue referen= ce, - * owned by C bindings. - */ - void (*pfnGetEventQueue)(nsIEventQueue **ppEventQueue); - - /** - * Get current XPCOM exception. - * - * @param ppException output parameter for nsIException referenc= e, - * may be @c NULL if no exception object has been created= by - * a previous XPCOM call. - * @returns XPCOM error code - */ - nsresult (*pfnGetException)(nsIException **ppException); - /** - * Clears current XPCOM exception. - * - * @returns XPCOM error code - */ - nsresult (*pfnClearException)(void); - - /** Tail version, same as uVersion. */ - unsigned uEndVersion; -} VBOXXPCOMC; -/** Pointer to a const VBoxXPCOMC function table. */ -typedef VBOXXPCOMC const *PCVBOXXPCOM; - -/** The current interface version. - * For use with VBoxGetXPCOMCFunctions and to be found in - * VBOXXPCOMC::uVersion. */ -# define VBOX_XPCOMC_VERSION 0x00030000U - -VBOXXPCOMC_DECL(PCVBOXXPCOM) VBoxGetXPCOMCFunctions(unsigned uVersion); -/** Typedef for VBoxGetXPCOMCFunctions. */ -typedef PCVBOXXPCOM (*PFNVBOXGETXPCOMCFUNCTIONS)(unsigned uVersion); - -/** The symbol name of VBoxGetXPCOMCFunctions. */ -# if defined(__OS2__) -# define VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME "_VBoxGetXPCOMCFunctions" -# else -# define VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME "VBoxGetXPCOMCFunctions" -# endif - - -# ifdef __cplusplus -} -# endif - -#endif /* !___VirtualBox_CXPCOM_h */ --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list