Changeset 7207 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Feb 28, 2008 6:43:08 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 28520
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r6968 r7207 178 178 { 179 179 USBFilter () 180 : mAction (USBDeviceFilterAction_ InvalidUSBDeviceFilterAction)180 : mAction (USBDeviceFilterAction_Null) 181 181 {} 182 182 … … 913 913 RTPrintf("Time offset: %lld ms\n", timeOffset); 914 914 915 T riStateBool_T hwVirtExEnabled;915 TSBool_T hwVirtExEnabled; 916 916 machine->COMGETTER(HWVirtExEnabled)(&hwVirtExEnabled); 917 if (hwVirtExEnabled == T riStateBool_TSDefault)917 if (hwVirtExEnabled == TSBool_Default) 918 918 { 919 919 BOOL fHWVirtExEnabled; … … 929 929 { 930 930 if (details == VMINFO_MACHINEREADABLE) 931 RTPrintf("hwvirtex=\"%s\"\n", hwVirtExEnabled == T riStateBool_TSTrue ? "on" : "off");931 RTPrintf("hwvirtex=\"%s\"\n", hwVirtExEnabled == TSBool_True ? "on" : "off"); 932 932 else 933 RTPrintf("Hardw. virt.ext: %s\n", hwVirtExEnabled == T riStateBool_TSTrue ? "on" : "off");933 RTPrintf("Hardw. virt.ext: %s\n", hwVirtExEnabled == TSBool_True ? "on" : "off"); 934 934 } 935 935 … … 1063 1063 ComPtr<IHardDisk> hardDisk; 1064 1064 Bstr filePath; 1065 rc = machine->GetHardDisk(DiskControllerType_IDE0 Controller, 0, hardDisk.asOutParam());1065 rc = machine->GetHardDisk(DiskControllerType_IDE0, 0, hardDisk.asOutParam()); 1066 1066 if (SUCCEEDED(rc) && hardDisk) 1067 1067 { … … 1086 1086 RTPrintf("hda=\"none\"\n"); 1087 1087 } 1088 rc = machine->GetHardDisk(DiskControllerType_IDE0 Controller, 1, hardDisk.asOutParam());1088 rc = machine->GetHardDisk(DiskControllerType_IDE0, 1, hardDisk.asOutParam()); 1089 1089 if (SUCCEEDED(rc) && hardDisk) 1090 1090 { … … 1109 1109 RTPrintf("hdb=\"none\"\n"); 1110 1110 } 1111 rc = machine->GetHardDisk(DiskControllerType_IDE1 Controller, 1, hardDisk.asOutParam());1111 rc = machine->GetHardDisk(DiskControllerType_IDE1, 1, hardDisk.asOutParam()); 1112 1112 if (SUCCEEDED(rc) && hardDisk) 1113 1113 { … … 1217 1217 switch (attachment) 1218 1218 { 1219 case NetworkAttachmentType_N oNetworkAttachment:1219 case NetworkAttachmentType_Null: 1220 1220 if (details == VMINFO_MACHINEREADABLE) 1221 1221 strAttachment = "null"; … … 1223 1223 strAttachment = "none"; 1224 1224 break; 1225 case NetworkAttachmentType_NAT NetworkAttachment:1225 case NetworkAttachmentType_NAT: 1226 1226 if (details == VMINFO_MACHINEREADABLE) 1227 1227 strAttachment = "nat"; … … 1229 1229 strAttachment = "NAT"; 1230 1230 break; 1231 case NetworkAttachmentType_HostInterface NetworkAttachment:1231 case NetworkAttachmentType_HostInterface: 1232 1232 { 1233 1233 Bstr strHostIfDev; … … 1242 1242 break; 1243 1243 } 1244 case NetworkAttachmentType_Internal NetworkAttachment:1244 case NetworkAttachmentType_Internal: 1245 1245 { 1246 1246 Bstr strNetwork; … … 1275 1275 nic->COMGETTER(AdapterType)(&NICType); 1276 1276 switch (NICType) { 1277 case NetworkAdapterType_ NetworkAdapterAm79C970A:1277 case NetworkAdapterType_Am79C970A: 1278 1278 strNICType = "Am79C970A"; 1279 1279 break; 1280 case NetworkAdapterType_ NetworkAdapterAm79C973:1280 case NetworkAdapterType_Am79C973: 1281 1281 strNICType = "Am79C973"; 1282 1282 break; 1283 1283 #ifdef VBOX_WITH_E1000 1284 case NetworkAdapterType_ NetworkAdapter82540EM:1284 case NetworkAdapterType_I82540EM: 1285 1285 strNICType = "82540EM"; 1286 1286 break; … … 1351 1351 { 1352 1352 default: 1353 case PortMode_Disconnected Port:1353 case PortMode_Disconnected: 1354 1354 if (details == VMINFO_MACHINEREADABLE) 1355 1355 RTPrintf("uartmode%d=\"disconnected\"\n", currentUART + 1); … … 1357 1357 RTPrintf(", disconnected\n"); 1358 1358 break; 1359 case PortMode_HostPipe Port:1359 case PortMode_HostPipe: 1360 1360 if (details == VMINFO_MACHINEREADABLE) 1361 1361 RTPrintf("uartmode%d=\"%s,%lS\"\n", currentUART + 1, … … 1365 1365 fServer ? "server" : "client", path.raw()); 1366 1366 break; 1367 case PortMode_HostDevice Port:1367 case PortMode_HostDevice: 1368 1368 if (details == VMINFO_MACHINEREADABLE) 1369 1369 RTPrintf("uartmode%d=\"%lS\"\n", currentUART + 1, … … 1391 1391 switch (enmDrvType) 1392 1392 { 1393 case AudioDriverType_Null AudioDriver:1393 case AudioDriverType_Null: 1394 1394 if (details == VMINFO_MACHINEREADABLE) 1395 1395 pszDrv = "null"; … … 1397 1397 pszDrv = "Null"; 1398 1398 break; 1399 case AudioDriverType_WINMM AudioDriver:1399 case AudioDriverType_WINMM: 1400 1400 if (details == VMINFO_MACHINEREADABLE) 1401 1401 pszDrv = "winmm"; … … 1403 1403 pszDrv = "WINMM"; 1404 1404 break; 1405 case AudioDriverType_DSOUND AudioDriver:1405 case AudioDriverType_DSOUND: 1406 1406 if (details == VMINFO_MACHINEREADABLE) 1407 1407 pszDrv = "dsound"; … … 1409 1409 pszDrv = "DSOUND"; 1410 1410 break; 1411 case AudioDriverType_OSS AudioDriver:1411 case AudioDriverType_OSS: 1412 1412 if (details == VMINFO_MACHINEREADABLE) 1413 1413 pszDrv = "oss"; … … 1415 1415 pszDrv = "OSS"; 1416 1416 break; 1417 case AudioDriverType_ALSA AudioDriver:1417 case AudioDriverType_ALSA: 1418 1418 if (details == VMINFO_MACHINEREADABLE) 1419 1419 pszDrv = "alsa"; … … 1421 1421 pszDrv = "ALSA"; 1422 1422 break; 1423 case AudioDriverType_Pulse AudioDriver:1423 case AudioDriverType_Pulse: 1424 1424 if (details == VMINFO_MACHINEREADABLE) 1425 1425 pszDrv = "pulse"; … … 1427 1427 pszDrv = "PulseAudio"; 1428 1428 break; 1429 case AudioDriverType_Core AudioDriver:1429 case AudioDriverType_Core: 1430 1430 if (details == VMINFO_MACHINEREADABLE) 1431 1431 pszDrv = "coreaudio"; … … 1477 1477 switch (enmMode) 1478 1478 { 1479 case ClipboardMode_ ClipDisabled:1479 case ClipboardMode_Disabled: 1480 1480 if (details == VMINFO_MACHINEREADABLE) 1481 1481 psz = "disabled"; … … 1483 1483 psz = "disabled"; 1484 1484 break; 1485 case ClipboardMode_ ClipHostToGuest:1485 case ClipboardMode_HostToGuest: 1486 1486 if (details == VMINFO_MACHINEREADABLE) 1487 1487 psz = "hosttoguest"; … … 1489 1489 psz = "HostToGuest"; 1490 1490 break; 1491 case ClipboardMode_ ClipGuestToHost:1491 case ClipboardMode_GuestToHost: 1492 1492 if (details == VMINFO_MACHINEREADABLE) 1493 1493 psz = "guesttohost"; … … 1495 1495 psz = "GuestToHost"; 1496 1496 break; 1497 case ClipboardMode_ ClipBidirectional:1497 case ClipboardMode_Bidirectional: 1498 1498 if (details == VMINFO_MACHINEREADABLE) 1499 1499 psz = "bidirectional"; … … 1548 1548 switch (vrdpAuthType) 1549 1549 { 1550 case VRDPAuthType_ VRDPAuthNull:1550 case VRDPAuthType_Null: 1551 1551 strAuthType = "null"; 1552 1552 break; 1553 case VRDPAuthType_ VRDPAuthExternal:1553 case VRDPAuthType_External: 1554 1554 strAuthType = "external"; 1555 1555 break; 1556 case VRDPAuthType_ VRDPAuthGuest:1556 case VRDPAuthType_Guest: 1557 1557 strAuthType = "guest"; 1558 1558 break; … … 2685 2685 RTPrintf("Accessible: %s\n", fAccessible ? "yes" : "no"); 2686 2686 Bstr machineUUIDs; 2687 CHECK_ERROR(virtualBox, GetDVDImageUsage(uuid, ResourceUsage_All Usage, machineUUIDs.asOutParam()));2687 CHECK_ERROR(virtualBox, GetDVDImageUsage(uuid, ResourceUsage_All, machineUUIDs.asOutParam())); 2688 2688 /** @todo usage */ 2689 2689 RTPrintf("\n"); … … 2712 2712 RTPrintf("Accessible: %s\n", fAccessible ? "yes" : "no"); 2713 2713 Bstr machineUUIDs; 2714 CHECK_ERROR(virtualBox, GetFloppyImageUsage(uuid, ResourceUsage_All Usage, machineUUIDs.asOutParam()));2714 CHECK_ERROR(virtualBox, GetFloppyImageUsage(uuid, ResourceUsage_All, machineUUIDs.asOutParam())); 2715 2715 /** @todo usage */ 2716 2716 RTPrintf("\n"); … … 2786 2786 switch (state) 2787 2787 { 2788 case USBDeviceState_ USBDeviceNotSupported:2788 case USBDeviceState_NotSupported: 2789 2789 pszState = "Not supported"; break; 2790 case USBDeviceState_U SBDeviceUnavailable:2790 case USBDeviceState_Unavailable: 2791 2791 pszState = "Unavailable"; break; 2792 case USBDeviceState_ USBDeviceBusy:2792 case USBDeviceState_Busy: 2793 2793 pszState = "Busy"; break; 2794 case USBDeviceState_ USBDeviceAvailable:2794 case USBDeviceState_Available: 2795 2795 pszState = "Available"; break; 2796 case USBDeviceState_ USBDeviceHeld:2796 case USBDeviceState_Held: 2797 2797 pszState = "Held"; break; 2798 case USBDeviceState_ USBDeviceCaptured:2798 case USBDeviceState_Captured: 2799 2799 pszState = "Captured"; break; 2800 2800 default: … … 2851 2851 switch (action) 2852 2852 { 2853 case USBDeviceFilterAction_ USBDeviceFilterIgnore:2853 case USBDeviceFilterAction_Ignore: 2854 2854 pszAction = "Ignore"; 2855 2855 break; 2856 case USBDeviceFilterAction_ USBDeviceFilterHold:2856 case USBDeviceFilterAction_Hold: 2857 2857 pszAction = "Hold"; 2858 2858 break; … … 3100 3100 else if (strcmp(type, "writethrough") == 0) 3101 3101 { 3102 CHECK_ERROR(hardDisk, COMSETTER(Type)(HardDiskType_Writethrough HardDisk));3102 CHECK_ERROR(hardDisk, COMSETTER(Type)(HardDiskType_Writethrough)); 3103 3103 } 3104 3104 … … 3182 3182 if (strcmp(type, "normal") == 0) 3183 3183 { 3184 if (hddType != HardDiskType_Normal HardDisk)3185 CHECK_ERROR(hardDisk, COMSETTER(Type)(HardDiskType_Normal HardDisk));3184 if (hddType != HardDiskType_Normal) 3185 CHECK_ERROR(hardDisk, COMSETTER(Type)(HardDiskType_Normal)); 3186 3186 } 3187 3187 else if (strcmp(type, "writethrough") == 0) 3188 3188 { 3189 if (hddType != HardDiskType_Writethrough HardDisk)3190 CHECK_ERROR(hardDisk, COMSETTER(Type)(HardDiskType_Writethrough HardDisk));3189 if (hddType != HardDiskType_Writethrough) 3190 CHECK_ERROR(hardDisk, COMSETTER(Type)(HardDiskType_Writethrough)); 3191 3191 3192 3192 } 3193 3193 else if (strcmp(type, "immutable") == 0) 3194 3194 { 3195 if (hddType != HardDiskType_Immutable HardDisk)3196 CHECK_ERROR(hardDisk, COMSETTER(Type)(HardDiskType_Immutable HardDisk));3195 if (hddType != HardDiskType_Immutable) 3196 CHECK_ERROR(hardDisk, COMSETTER(Type)(HardDiskType_Immutable)); 3197 3197 } 3198 3198 else … … 3895 3895 if (strcmp(argv[i], "none") == 0) 3896 3896 { 3897 bootDevice[n - 1] = DeviceType_N oDevice;3897 bootDevice[n - 1] = DeviceType_Null; 3898 3898 } 3899 3899 else if (strcmp(argv[i], "floppy") == 0) 3900 3900 { 3901 bootDevice[n - 1] = DeviceType_Floppy Device;3901 bootDevice[n - 1] = DeviceType_Floppy; 3902 3902 } 3903 3903 else if (strcmp(argv[i], "dvd") == 0) 3904 3904 { 3905 bootDevice[n - 1] = DeviceType_DVD Device;3905 bootDevice[n - 1] = DeviceType_DVD; 3906 3906 } 3907 3907 else if (strcmp(argv[i], "disk") == 0) 3908 3908 { 3909 bootDevice[n - 1] = DeviceType_HardDisk Device;3909 bootDevice[n - 1] = DeviceType_HardDisk; 3910 3910 } 3911 3911 else if (strcmp(argv[i], "net") == 0) 3912 3912 { 3913 bootDevice[n - 1] = DeviceType_Network Device;3913 bootDevice[n - 1] = DeviceType_Network; 3914 3914 } 3915 3915 else … … 4403 4403 if (strcmp(hwvirtex, "on") == 0) 4404 4404 { 4405 CHECK_ERROR(machine, COMSETTER(HWVirtExEnabled)(T riStateBool_TSTrue));4405 CHECK_ERROR(machine, COMSETTER(HWVirtExEnabled)(TSBool_True)); 4406 4406 } 4407 4407 else if (strcmp(hwvirtex, "off") == 0) 4408 4408 { 4409 CHECK_ERROR(machine, COMSETTER(HWVirtExEnabled)(T riStateBool_TSFalse));4409 CHECK_ERROR(machine, COMSETTER(HWVirtExEnabled)(TSBool_False)); 4410 4410 } 4411 4411 else if (strcmp(hwvirtex, "default") == 0) 4412 4412 { 4413 CHECK_ERROR(machine, COMSETTER(HWVirtExEnabled)(T riStateBool_TSDefault));4413 CHECK_ERROR(machine, COMSETTER(HWVirtExEnabled)(TSBool_Default)); 4414 4414 } 4415 4415 else … … 4513 4513 if (strcmp(hdds[0], "none") == 0) 4514 4514 { 4515 machine->DetachHardDisk(DiskControllerType_IDE0 Controller, 0);4515 machine->DetachHardDisk(DiskControllerType_IDE0, 0); 4516 4516 } 4517 4517 else … … 4546 4546 { 4547 4547 hardDisk->COMGETTER(Id)(uuid.asOutParam()); 4548 CHECK_ERROR(machine, AttachHardDisk(uuid, DiskControllerType_IDE0 Controller, 0));4548 CHECK_ERROR(machine, AttachHardDisk(uuid, DiskControllerType_IDE0, 0)); 4549 4549 } 4550 4550 else … … 4558 4558 if (strcmp(hdds[1], "none") == 0) 4559 4559 { 4560 machine->DetachHardDisk(DiskControllerType_IDE0 Controller, 1);4560 machine->DetachHardDisk(DiskControllerType_IDE0, 1); 4561 4561 } 4562 4562 else … … 4591 4591 { 4592 4592 hardDisk->COMGETTER(Id)(uuid.asOutParam()); 4593 CHECK_ERROR(machine, AttachHardDisk(uuid, DiskControllerType_IDE0 Controller, 1));4593 CHECK_ERROR(machine, AttachHardDisk(uuid, DiskControllerType_IDE0, 1)); 4594 4594 } 4595 4595 else … … 4603 4603 if (strcmp(hdds[2], "none") == 0) 4604 4604 { 4605 machine->DetachHardDisk(DiskControllerType_IDE1 Controller, 1);4605 machine->DetachHardDisk(DiskControllerType_IDE1, 1); 4606 4606 } 4607 4607 else … … 4636 4636 { 4637 4637 hardDisk->COMGETTER(Id)(uuid.asOutParam()); 4638 CHECK_ERROR(machine, AttachHardDisk(uuid, DiskControllerType_IDE1 Controller, 1));4638 CHECK_ERROR(machine, AttachHardDisk(uuid, DiskControllerType_IDE1, 1)); 4639 4639 } 4640 4640 else … … 4809 4809 else if (strcmp(audio, "null") == 0) 4810 4810 { 4811 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_Null AudioDriver));4811 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_Null)); 4812 4812 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 4813 4813 } … … 4816 4816 else if (strcmp(audio, "winmm") == 0) 4817 4817 { 4818 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_WINMM AudioDriver));4818 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_WINMM)); 4819 4819 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 4820 4820 } … … 4822 4822 else if (strcmp(audio, "dsound") == 0) 4823 4823 { 4824 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_DSOUND AudioDriver));4824 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_DSOUND)); 4825 4825 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 4826 4826 } … … 4829 4829 else if (strcmp(audio, "oss") == 0) 4830 4830 { 4831 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_OSS AudioDriver));4831 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_OSS)); 4832 4832 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 4833 4833 } … … 4835 4835 else if (strcmp(audio, "alsa") == 0) 4836 4836 { 4837 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_ALSA AudioDriver));4837 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_ALSA)); 4838 4838 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 4839 4839 } … … 4842 4842 else if (strcmp(audio, "pulse") == 0) 4843 4843 { 4844 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_Pulse AudioDriver));4844 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_Pulse)); 4845 4845 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 4846 4846 } … … 4850 4850 else if (strcmp(audio, "coreaudio") == 0) 4851 4851 { 4852 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_Core AudioDriver));4852 CHECK_ERROR(audioAdapter, COMSETTER(AudioDriver)(AudioDriverType_Core)); 4853 4853 CHECK_ERROR(audioAdapter, COMSETTER(Enabled)(true)); 4854 4854 } … … 4885 4885 if (strcmp(clipboard, "disabled") == 0) 4886 4886 { 4887 CHECK_ERROR(machine, COMSETTER(ClipboardMode)(ClipboardMode_ ClipDisabled));4887 CHECK_ERROR(machine, COMSETTER(ClipboardMode)(ClipboardMode_Disabled)); 4888 4888 } 4889 4889 else if (strcmp(clipboard, "hosttoguest") == 0) 4890 4890 { 4891 CHECK_ERROR(machine, COMSETTER(ClipboardMode)(ClipboardMode_ ClipHostToGuest));4891 CHECK_ERROR(machine, COMSETTER(ClipboardMode)(ClipboardMode_HostToGuest)); 4892 4892 } 4893 4893 else if (strcmp(clipboard, "guesttohost") == 0) 4894 4894 { 4895 CHECK_ERROR(machine, COMSETTER(ClipboardMode)(ClipboardMode_ ClipGuestToHost));4895 CHECK_ERROR(machine, COMSETTER(ClipboardMode)(ClipboardMode_GuestToHost)); 4896 4896 } 4897 4897 else if (strcmp(clipboard, "bidirectional") == 0) 4898 4898 { 4899 CHECK_ERROR(machine, COMSETTER(ClipboardMode)(ClipboardMode_ ClipBidirectional));4899 CHECK_ERROR(machine, COMSETTER(ClipboardMode)(ClipboardMode_Bidirectional)); 4900 4900 } 4901 4901 else … … 4954 4954 if (strcmp(nictype[n], "Am79C970A") == 0) 4955 4955 { 4956 CHECK_ERROR_RET(nic, COMSETTER(AdapterType)(NetworkAdapterType_ NetworkAdapterAm79C970A), 1);4956 CHECK_ERROR_RET(nic, COMSETTER(AdapterType)(NetworkAdapterType_Am79C970A), 1); 4957 4957 } 4958 4958 else if (strcmp(nictype[n], "Am79C973") == 0) 4959 4959 { 4960 CHECK_ERROR_RET(nic, COMSETTER(AdapterType)(NetworkAdapterType_ NetworkAdapterAm79C973), 1);4960 CHECK_ERROR_RET(nic, COMSETTER(AdapterType)(NetworkAdapterType_Am79C973), 1); 4961 4961 } 4962 4962 #ifdef VBOX_WITH_E1000 4963 4963 else if (strcmp(nictype[n], "82540EM") == 0) 4964 4964 { 4965 CHECK_ERROR_RET(nic, COMSETTER(AdapterType)(NetworkAdapterType_ NetworkAdapter82540EM), 1);4965 CHECK_ERROR_RET(nic, COMSETTER(AdapterType)(NetworkAdapterType_I82540EM), 1); 4966 4966 } 4967 4967 #endif … … 5135 5135 if (strcmp(uarts_mode[n], "disconnected") == 0) 5136 5136 { 5137 CHECK_ERROR_RET(uart, COMSETTER(HostMode) (PortMode_Disconnected Port), 1);5137 CHECK_ERROR_RET(uart, COMSETTER(HostMode) (PortMode_Disconnected), 1); 5138 5138 } 5139 5139 else … … 5141 5141 if (strcmp(uarts_mode[n], "server") == 0) 5142 5142 { 5143 CHECK_ERROR_RET(uart, COMSETTER(HostMode) (PortMode_HostPipe Port), 1);5143 CHECK_ERROR_RET(uart, COMSETTER(HostMode) (PortMode_HostPipe), 1); 5144 5144 CHECK_ERROR_RET(uart, COMSETTER(Server) (TRUE), 1); 5145 5145 } 5146 5146 else if (strcmp(uarts_mode[n], "client") == 0) 5147 5147 { 5148 CHECK_ERROR_RET(uart, COMSETTER(HostMode) (PortMode_HostPipe Port), 1);5148 CHECK_ERROR_RET(uart, COMSETTER(HostMode) (PortMode_HostPipe), 1); 5149 5149 CHECK_ERROR_RET(uart, COMSETTER(Server) (FALSE), 1); 5150 5150 } 5151 5151 else 5152 5152 { 5153 CHECK_ERROR_RET(uart, COMSETTER(HostMode) (PortMode_HostDevice Port), 1);5153 CHECK_ERROR_RET(uart, COMSETTER(HostMode) (PortMode_HostDevice), 1); 5154 5154 } 5155 5155 CHECK_ERROR_RET(uart, COMSETTER(Path) (Bstr(uarts_path[n])), 1); … … 5197 5197 if (strcmp(vrdpauthtype, "null") == 0) 5198 5198 { 5199 CHECK_ERROR(vrdpServer, COMSETTER(AuthType)(VRDPAuthType_ VRDPAuthNull));5199 CHECK_ERROR(vrdpServer, COMSETTER(AuthType)(VRDPAuthType_Null)); 5200 5200 } 5201 5201 else if (strcmp(vrdpauthtype, "external") == 0) 5202 5202 { 5203 CHECK_ERROR(vrdpServer, COMSETTER(AuthType)(VRDPAuthType_ VRDPAuthExternal));5203 CHECK_ERROR(vrdpServer, COMSETTER(AuthType)(VRDPAuthType_External)); 5204 5204 } 5205 5205 else if (strcmp(vrdpauthtype, "guest") == 0) 5206 5206 { 5207 CHECK_ERROR(vrdpServer, COMSETTER(AuthType)(VRDPAuthType_ VRDPAuthGuest));5207 CHECK_ERROR(vrdpServer, COMSETTER(AuthType)(VRDPAuthType_Guest)); 5208 5208 } 5209 5209 else … … 6201 6201 switch (type) 6202 6202 { 6203 case HardDiskType_Normal HardDisk:6203 case HardDiskType_Normal: 6204 6204 typeStr = "standard"; 6205 6205 break; 6206 case HardDiskType_Immutable HardDisk:6206 case HardDiskType_Immutable: 6207 6207 typeStr = "immutable"; 6208 6208 break; 6209 case HardDiskType_Writethrough HardDisk:6209 case HardDiskType_Writethrough: 6210 6210 typeStr = "writethrough"; 6211 6211 break; … … 6300 6300 { 6301 6301 if (strcmp(type, "normal") == 0) 6302 CHECK_ERROR(hardDisk, COMSETTER(Type)(HardDiskType_Normal HardDisk));6302 CHECK_ERROR(hardDisk, COMSETTER(Type)(HardDiskType_Normal)); 6303 6303 else if (strcmp(type, "immutable") == 0) 6304 CHECK_ERROR(hardDisk, COMSETTER(Type)(HardDiskType_Immutable HardDisk));6304 CHECK_ERROR(hardDisk, COMSETTER(Type)(HardDiskType_Immutable)); 6305 6305 else if (strcmp(type, "writethrough") == 0) 6306 CHECK_ERROR(hardDisk, COMSETTER(Type)(HardDiskType_Writethrough HardDisk));6306 CHECK_ERROR(hardDisk, COMSETTER(Type)(HardDiskType_Writethrough)); 6307 6307 } 6308 6308 if (SUCCEEDED(rc)) … … 6878 6878 i++; 6879 6879 if (strcmp (argv [i], "ignore") == 0) 6880 cmd.mFilter.mAction = USBDeviceFilterAction_ USBDeviceFilterIgnore;6880 cmd.mFilter.mAction = USBDeviceFilterAction_Ignore; 6881 6881 else if (strcmp (argv [i], "hold") == 0) 6882 cmd.mFilter.mAction = USBDeviceFilterAction_ USBDeviceFilterHold;6882 cmd.mFilter.mAction = USBDeviceFilterAction_Hold; 6883 6883 else 6884 6884 { … … 6899 6899 || 6900 6900 ( cmd.mGlobal 6901 && cmd.mFilter.mAction == USBDeviceFilterAction_ InvalidUSBDeviceFilterAction6901 && cmd.mFilter.mAction == USBDeviceFilterAction_Null 6902 6902 ) 6903 6903 || ( !cmd.mGlobal … … 6999 6999 CHECK_ERROR_BREAK (flt, COMSETTER(MaskedInterfaces) (f.mMaskedInterfaces)); 7000 7000 7001 if (f.mAction != USBDeviceFilterAction_ InvalidUSBDeviceFilterAction)7001 if (f.mAction != USBDeviceFilterAction_Null) 7002 7002 CHECK_ERROR_BREAK (flt, COMSETTER(Action) (f.mAction)); 7003 7003 … … 7056 7056 CHECK_ERROR_BREAK (flt, COMSETTER(MaskedInterfaces) (f.mMaskedInterfaces)); 7057 7057 7058 if (f.mAction != USBDeviceFilterAction_ InvalidUSBDeviceFilterAction)7058 if (f.mAction != USBDeviceFilterAction_Null) 7059 7059 CHECK_ERROR_BREAK (flt, COMSETTER(Action) (f.mAction)); 7060 7060 }
Note:
See TracChangeset
for help on using the changeset viewer.