if (openSessionForMachine(data, dom->uuid, &iid, &machine) < 0)
goto cleanup;
- rc = gVBoxAPI.UISession.OpenExisting(data, &iid, machine);
+ rc = gVBoxAPI.UISession.OpenExisting(data, machine);
if (NS_FAILED(rc))
goto cleanup;
if (gVBoxAPI.machineStateChecker.Running(state)) {
/* set state pause */
- gVBoxAPI.UISession.OpenExisting(data, &iid, machine);
+ gVBoxAPI.UISession.OpenExisting(data, machine);
gVBoxAPI.UISession.GetConsole(data->vboxSession, &console);
if (console) {
gVBoxAPI.UIConsole.Pause(console);
if (gVBoxAPI.machineStateChecker.Paused(state)) {
/* resume the machine here */
- gVBoxAPI.UISession.OpenExisting(data, &iid, machine);
+ gVBoxAPI.UISession.OpenExisting(data, machine);
gVBoxAPI.UISession.GetConsole(data->vboxSession, &console);
if (console) {
gVBoxAPI.UIConsole.Resume(console);
goto cleanup;
}
- gVBoxAPI.UISession.OpenExisting(data, &iid, machine);
+ gVBoxAPI.UISession.OpenExisting(data, machine);
gVBoxAPI.UISession.GetConsole(data->vboxSession, &console);
if (console) {
gVBoxAPI.UIConsole.PowerButton(console);
gVBoxAPI.UIMachine.GetState(machine, &state);
if (gVBoxAPI.machineStateChecker.Running(state)) {
- gVBoxAPI.UISession.OpenExisting(data, &iid, machine);
+ gVBoxAPI.UISession.OpenExisting(data, machine);
gVBoxAPI.UISession.GetConsole(data->vboxSession, &console);
if (console) {
gVBoxAPI.UIConsole.Reset(console);
goto cleanup;
}
- gVBoxAPI.UISession.OpenExisting(data, &iid, machine);
+ gVBoxAPI.UISession.OpenExisting(data, machine);
gVBoxAPI.UISession.GetConsole(data->vboxSession, &console);
if (console) {
gVBoxAPI.UIConsole.PowerDown(console);
if (gVBoxAPI.machineStateChecker.Running(state) ||
gVBoxAPI.machineStateChecker.Paused(state)) {
- rc = gVBoxAPI.UISession.OpenExisting(data, &iid, machine);
+ rc = gVBoxAPI.UISession.OpenExisting(data, machine);
} else {
rc = gVBoxAPI.UISession.Open(data, machine);
}
if (gVBoxAPI.machineStateChecker.Running(state) ||
gVBoxAPI.machineStateChecker.Paused(state)) {
- rc = gVBoxAPI.UISession.OpenExisting(data, &iid, machine);
+ rc = gVBoxAPI.UISession.OpenExisting(data, machine);
} else {
rc = gVBoxAPI.UISession.Open(data, machine);
}
}
if (gVBoxAPI.machineStateChecker.Online(state)) {
- rc = gVBoxAPI.UISession.OpenExisting(data, &domiid, machine);
+ rc = gVBoxAPI.UISession.OpenExisting(data, machine);
} else {
rc = gVBoxAPI.UISession.Open(data, machine);
}
}
- rc = gVBoxAPI.UISession.OpenExisting(data, &iid, machine);
+ rc = gVBoxAPI.UISession.OpenExisting(data, machine);
if (NS_SUCCEEDED(rc)) {
rc = gVBoxAPI.UISession.GetConsole(data->vboxSession, &console);
if (NS_SUCCEEDED(rc) && console) {
if (openSessionForMachine(data, dom->uuid, &iid, &machine) < 0)
goto cleanup;
- rc = gVBoxAPI.UISession.OpenExisting(data, &iid, machine);
+ rc = gVBoxAPI.UISession.OpenExisting(data, machine);
if (NS_FAILED(rc)) {
virReportError(VIR_ERR_OPERATION_FAILED,