Lines Matching defs:machine
4 * XPCOM API for machine management.
116 IMachine *machine = machines[i];
117 if (machine)
120 machine->GetAccessible(&isAccessible);
125 machine->GetName(getter_Copies(machineName));
136 machine->GetId(getter_Copies(iid));
144 machine->GetSettingsFilePath(getter_Copies(configFile));
150 machine->GetMemorySize(&memorySize);
154 machine->GetOSTypeId(getter_Copies(typeId));
166 machine->Release();
185 nsCOMPtr<IMachine> machine;
191 getter_AddRefs(machine));
194 printf("Error: could not create machine! rc=%#x\n", rc);
202 rc = machine->SetName(NS_ConvertUTF8toUTF16("A new name").get());
203 rc = machine->SetMemorySize(128);
210 * a machine in the GUI and then looking at the <Guest ostype=""/>
224 machine->SetOSTypeId(NS_LITERAL_STRING("Windows2000").get());
232 * Also note that due to current VirtualBox limitations, the machine
235 rc = virtualBox->RegisterMachine(machine);
238 printf("Error: could not register machine! rc=%#x\n", rc);
243 nsCOMPtr<IMachine> origMachine = machine;
246 * In order to manipulate the registered machine, we must open a session
247 * for that machine. Do it now.
269 rc = machine->LockMachine(session, LockType_Write);
272 printf("Error, could not lock the machine for the session! rc=%#x\n", rc);
277 * After the machine is registered, the initial machine object becomes
278 * immutable. In order to get a mutable machine object, we must query
284 printf("Error, could not get machine session! rc=%#x\n", rc);
399 printf("Could not save machine settings! rc=%#x\n", rc);
409 rc = machine->Unregister((CleanupMode_T)CleanupMode_DetachAllReturnHardDisksOnly,
412 printf("Unregistering the machine failed! rc=%#x\n", rc);
416 rc = machine->DeleteConfig(cMedia, aMedia, getter_AddRefs(pProgress));
418 printf("Deleting of machine failed! rc=%#x\n", rc);
425 printf("Failed to delete the machine! rc=%#x\n",