1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2025-03-20 06:50:22 +03:00

vbox: Drop @iid from UIMachine::LaunchVMProcess()

The @iid argument of UIMachine::LaunchVMProcess() callback is
unused. Drop it and also its propagation from parent functions.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
Michal Privoznik 2023-01-22 12:30:02 +01:00
parent ee383c7126
commit 8bf9fc0032
3 changed files with 3 additions and 5 deletions

View File

@ -2046,7 +2046,7 @@ static int vboxDomainUndefine(virDomainPtr dom)
}
static int
vboxStartMachine(virDomainPtr dom, int maxDomID, IMachine *machine, vboxIID *iid)
vboxStartMachine(virDomainPtr dom, int maxDomID, IMachine *machine)
{
struct _vboxDriver *data = dom->conn->privateData;
int vrdpPresent = 0;
@ -2148,7 +2148,7 @@ vboxStartMachine(virDomainPtr dom, int maxDomID, IMachine *machine, vboxIID *iid
VBOX_UTF8_TO_UTF16("vrdp", &sessionType);
}
rc = gVBoxAPI.UIMachine.LaunchVMProcess(data, machine, iid,
rc = gVBoxAPI.UIMachine.LaunchVMProcess(data, machine,
sessionType, env,
&progress);
@ -2239,7 +2239,7 @@ static int vboxDomainCreateWithFlags(virDomainPtr dom, unsigned int flags)
gVBoxAPI.UIMachine.GetState(machine, &state);
if (gVBoxAPI.machineStateChecker.NotStart(state)) {
ret = vboxStartMachine(dom, i, machine, &iid);
ret = vboxStartMachine(dom, i, machine);
} else {
virReportError(VIR_ERR_OPERATION_FAILED, "%s",
_("machine is not in "

View File

@ -747,7 +747,6 @@ _machineRemoveSharedFolder(IMachine *machine, PRUnichar *name)
static nsresult
_machineLaunchVMProcess(struct _vboxDriver *data,
IMachine *machine,
vboxIID *iid G_GNUC_UNUSED,
PRUnichar *sessionType, PRUnichar *env,
IProgress **progress)
{

View File

@ -182,7 +182,6 @@ typedef struct {
PRBool automount);
nsresult (*RemoveSharedFolder)(IMachine *machine, PRUnichar *name);
nsresult (*LaunchVMProcess)(struct _vboxDriver *driver, IMachine *machine,
vboxIID *iid,
PRUnichar *sessionType, PRUnichar *env,
IProgress **progress);
nsresult (*Unregister)(IMachine *machine, PRUint32 cleanupMode,