- Timestamp:
- Aug 2, 2012 4:44:39 PM (12 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 43 edited
- 4 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp
r42445 r42551 495 495 break; 496 496 } 497 CHECK_ERROR(adapter, COMGETTER(N atDriver)(engine.asOutParam()));497 CHECK_ERROR(adapter, COMGETTER(NATEngine)(engine.asOutParam())); 498 498 if (!engine) 499 499 { -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r42460 r42551 59 59 60 60 using namespace com; 61 62 #undef VBOX_WITH_GUEST_CONTROL2 61 63 62 64 /** … … 225 227 " --image <path to program> --username <name>\n" 226 228 " [--passwordfile <file> | --password <password>]\n" 229 " [--domain <domain>] [--verbose] [--timeout <msec>]\n" 227 230 " [--environment \"<NAME>=<VALUE> [<NAME>=<VALUE>]\"]\n" 228 " [--verbose] [--timeout <msec>]\n"229 231 " [--wait-exit] [--wait-stdout] [--wait-stderr]\n" 230 232 " [--dos2unix] [--unix2dos]\n" … … 236 238 " <guest source> <host dest> --username <name>\n" 237 239 " [--passwordfile <file> | --password <password>]\n" 238 " [--dryrun] [--follow] [--recursive] [--verbose]\n" 240 " [--domain <domain>] [--verbose]\n" 241 " [--dryrun] [--follow] [--recursive]\n" 239 242 "\n" 240 243 " copyto|cp\n" 241 244 " <host source> <guest dest> --username <name>\n" 242 245 " [--passwordfile <file> | --password <password>]\n" 243 " [--dryrun] [--follow] [--recursive] [--verbose]\n" 246 " [--domain <domain>] [--verbose]\n" 247 " [--dryrun] [--follow] [--recursive]\n" 244 248 "\n" 245 249 " createdir[ectory]|mkdir|md\n" 246 250 " <guest directory>... --username <name>\n" 247 251 " [--passwordfile <file> | --password <password>]\n" 248 " [--parents] [--mode <mode>] [--verbose]\n" 252 " [--domain <domain>] [--verbose]\n" 253 " [--parents] [--mode <mode>]\n" 249 254 "\n" 250 255 " stat\n" 251 256 " <file>... --username <name>\n" 252 257 " [--passwordfile <file> | --password <password>]\n" 253 " [-- verbose]\n"258 " [--domain <domain>] [--verbose]\n" 254 259 "\n" 255 260 " updateadditions\n" … … 296 301 } 297 302 303 #ifndef VBOX_WITH_GUEST_CONTROL2 298 304 /** 299 305 * Translates a process status to a human readable … … 363 369 return rc; 364 370 } 371 #else 372 /** 373 * Translates a process status to a human readable 374 * string. 375 */ 376 static const char *ctrlExecProcessStatusToText(ProcessStatus_T enmStatus) 377 { 378 switch (enmStatus) 379 { 380 case ProcessStatus_Starting: 381 return "starting"; 382 case ProcessStatus_Started: 383 return "started"; 384 case ProcessStatus_Paused: 385 return "paused"; 386 case ProcessStatus_Terminating: 387 return "terminating"; 388 case ProcessStatus_TerminatedNormally: 389 return "successfully terminated"; 390 case ProcessStatus_TerminatedSignal: 391 return "terminated by signal"; 392 case ProcessStatus_TerminatedAbnormally: 393 return "abnormally aborted"; 394 case ProcessStatus_TimedOutKilled: 395 return "timed out"; 396 case ProcessStatus_TimedOutAbnormally: 397 return "timed out, hanging"; 398 case ProcessStatus_Down: 399 return "killed"; 400 case ProcessStatus_Error: 401 return "error"; 402 default: 403 break; 404 } 405 return "unknown"; 406 } 407 408 static int ctrlExecProcessStatusToExitCode(ProcessStatus_T enmStatus, ULONG uExitCode) 409 { 410 int rc = EXITCODEEXEC_SUCCESS; 411 switch (enmStatus) 412 { 413 case ProcessStatus_Starting: 414 rc = EXITCODEEXEC_SUCCESS; 415 break; 416 case ProcessStatus_Started: 417 rc = EXITCODEEXEC_SUCCESS; 418 break; 419 case ProcessStatus_Paused: 420 rc = EXITCODEEXEC_SUCCESS; 421 break; 422 case ProcessStatus_Terminating: 423 rc = EXITCODEEXEC_SUCCESS; 424 break; 425 case ProcessStatus_TerminatedNormally: 426 rc = !uExitCode ? EXITCODEEXEC_SUCCESS : EXITCODEEXEC_CODE; 427 break; 428 case ProcessStatus_TerminatedSignal: 429 rc = EXITCODEEXEC_TERM_SIGNAL; 430 break; 431 case ProcessStatus_TerminatedAbnormally: 432 rc = EXITCODEEXEC_TERM_ABEND; 433 break; 434 case ProcessStatus_TimedOutKilled: 435 rc = EXITCODEEXEC_TIMEOUT; 436 break; 437 case ProcessStatus_TimedOutAbnormally: 438 rc = EXITCODEEXEC_TIMEOUT; 439 break; 440 case ProcessStatus_Down: 441 /* Service/OS is stopping, process was killed, so 442 * not exactly an error of the started process ... */ 443 rc = EXITCODEEXEC_DOWN; 444 break; 445 case ProcessStatus_Error: 446 rc = EXITCODEEXEC_FAILED; 447 break; 448 default: 449 AssertMsgFailed(("Unknown exit code (%u) from guest process returned!\n", enmStatus)); 450 break; 451 } 452 return rc; 453 } 454 #endif 365 455 366 456 static int ctrlPrintError(com::ErrorInfo &errorInfo) … … 482 572 } 483 573 574 #ifndef VBOX_WITH_GUEST_CONTROL2 484 575 /** 485 576 * Prints the desired guest output to a stream. … … 493 584 static int ctrlExecPrintOutput(IGuest *pGuest, ULONG uPID, 494 585 PRTSTREAM pStrmOutput, uint32_t fOutputFlags, 495 uint32_tcMsTimeout)586 RTMSINTERVAL cMsTimeout) 496 587 { 497 588 AssertPtrReturn(pGuest, VERR_INVALID_POINTER); … … 565 656 return vrc; 566 657 } 658 #else 659 /** 660 * Prints the desired guest output to a stream. 661 * 662 * @return IPRT status code. 663 * @param pProcess Pointer to appropriate process object. 664 * @param pStrmOutput Where to write the data. 665 * @param hStream Where to read the data from. 666 */ 667 static int ctrlExecPrintOutput(IProcess *pProcess, PRTSTREAM pStrmOutput, 668 ULONG uHandle) 669 { 670 AssertPtrReturn(pProcess, VERR_INVALID_POINTER); 671 AssertPtrReturn(pStrmOutput, VERR_INVALID_POINTER); 672 673 int vrc = VINF_SUCCESS; 674 675 SafeArray<BYTE> aOutputData; 676 HRESULT rc = pProcess->Read(uHandle, _64K, 1 /* timeout */, 677 ComSafeArrayAsOutParam(aOutputData)); 678 if (FAILED(rc)) 679 vrc = ctrlPrintError(pProcess, COM_IIDOF(IProcess)); 680 else 681 { 682 /** @todo implement the dos2unix/unix2dos conversions */ 683 vrc = RTStrmWrite(pStrmOutput, aOutputData.raw(), aOutputData.size()); 684 if (RT_FAILURE(vrc)) 685 RTMsgError("Unable to write output, rc=%Rrc\n", vrc); 686 } 687 688 return vrc; 689 } 690 #endif 567 691 568 692 /** … … 572 696 * @return RTMSINTERVAL Time left (in ms). 573 697 * @param u64StartMs Start time (in ms). 574 * @param u32TimeoutMsTimeout value (in ms).575 */ 576 inline RTMSINTERVAL ctrlExecGetRemainingTime(uint64_t u64StartMs, uint32_t u32TimeoutMs)577 { 578 if (! u32TimeoutMs) /* If no timeout specified, wait forever. */698 * @param cMsTimeout Timeout value (in ms). 699 */ 700 inline RTMSINTERVAL ctrlExecGetRemainingTime(uint64_t u64StartMs, RTMSINTERVAL cMsTimeout) 701 { 702 if (!cMsTimeout || cMsTimeout == RT_INDEFINITE_WAIT) /* If no timeout specified, wait forever. */ 579 703 return RT_INDEFINITE_WAIT; 580 704 581 705 uint64_t u64ElapsedMs = RTTimeMilliTS() - u64StartMs; 582 if (u64ElapsedMs >= u32TimeoutMs)706 if (u64ElapsedMs >= cMsTimeout) 583 707 return 0; 584 708 585 return u32TimeoutMs- u64ElapsedMs;709 return cMsTimeout - u64ElapsedMs; 586 710 } 587 711 … … 605 729 { "--image", 'i', RTGETOPT_REQ_STRING }, 606 730 { "--no-profile", GETOPTDEF_EXEC_NO_PROFILE, RTGETOPT_REQ_NOTHING }, 731 { "--username", 'u', RTGETOPT_REQ_STRING }, 607 732 { "--passwordfile", 'p', RTGETOPT_REQ_STRING }, 608 733 { "--password", GETOPTDEF_EXEC_PASSWORD, RTGETOPT_REQ_STRING }, 734 { "--domain", 'd', RTGETOPT_REQ_STRING }, 609 735 { "--timeout", 't', RTGETOPT_REQ_UINT32 }, 610 736 { "--unix2dos", GETOPTDEF_EXEC_UNIX2DOS, RTGETOPT_REQ_NOTHING }, 611 { "--username", 'u', RTGETOPT_REQ_STRING },612 737 { "--verbose", 'v', RTGETOPT_REQ_NOTHING }, 613 738 { "--wait-exit", GETOPTDEF_EXEC_WAITFOREXIT, RTGETOPT_REQ_NOTHING }, … … 621 746 RTGetOptInit(&GetState, pArg->argc, pArg->argv, s_aOptions, RT_ELEMENTS(s_aOptions), 0, 0); 622 747 623 Utf8Str Utf8Cmd; 748 Utf8Str strCmd; 749 #ifndef VBOX_WITH_GUEST_CONTROL2 624 750 uint32_t fExecFlags = ExecuteProcessFlag_None; 751 #else 752 com::SafeArray<ProcessCreateFlag_T> aCreateFlags; 753 com::SafeArray<ProcessWaitForFlag_T> aWaitFlags; 754 #endif 625 755 com::SafeArray<IN_BSTR> args; 626 756 com::SafeArray<IN_BSTR> env; 627 Utf8Str Utf8UserName; 628 Utf8Str Utf8Password; 629 uint32_t cMsTimeout = 0; 757 Utf8Str strUserName; 758 Utf8Str strPassword; 759 Utf8Str strDomain; 760 RTMSINTERVAL cMsTimeout = 0; 630 761 OUTPUTTYPE eOutputType = OUTPUTTYPE_UNDEFINED; 631 bool fOutputBinary = false;632 762 bool fWaitForExit = false; 633 763 bool fVerbose = false; … … 662 792 663 793 case GETOPTDEF_EXEC_IGNOREORPHANEDPROCESSES: 794 #ifndef VBOX_WITH_GUEST_CONTROL2 664 795 fExecFlags |= ExecuteProcessFlag_IgnoreOrphanedProcesses; 796 #else 797 aCreateFlags.push_back(ProcessCreateFlag_IgnoreOrphanedProcesses); 798 #endif 665 799 break; 666 800 667 801 case GETOPTDEF_EXEC_NO_PROFILE: 802 #ifndef VBOX_WITH_GUEST_CONTROL2 668 803 fExecFlags |= ExecuteProcessFlag_NoProfile; 804 #else 805 aCreateFlags.push_back(ProcessCreateFlag_NoProfile); 806 #endif 669 807 break; 670 808 671 809 case 'i': 672 Utf8Cmd = ValueUnion.psz;810 strCmd = ValueUnion.psz; 673 811 break; 674 812 675 813 /** @todo Add a hidden flag. */ 676 814 815 case 'u': /* User name */ 816 strUserName = ValueUnion.psz; 817 break; 818 677 819 case GETOPTDEF_EXEC_PASSWORD: /* Password */ 678 Utf8Password = ValueUnion.psz;820 strPassword = ValueUnion.psz; 679 821 break; 680 822 681 823 case 'p': /* Password file */ 682 824 { 683 RTEXITCODE rcExit = readPasswordFile(ValueUnion.psz, & Utf8Password);825 RTEXITCODE rcExit = readPasswordFile(ValueUnion.psz, &strPassword); 684 826 if (rcExit != RTEXITCODE_SUCCESS) 685 827 return rcExit; 686 828 break; 687 829 } 830 831 case 'd': /* domain */ 832 strDomain = ValueUnion.psz; 833 break; 688 834 689 835 case 't': /* Timeout */ … … 697 843 break; 698 844 699 case 'u': /* User name */700 Utf8UserName = ValueUnion.psz;701 break;702 703 845 case 'v': /* Verbose */ 704 846 fVerbose = true; … … 706 848 707 849 case GETOPTDEF_EXEC_WAITFOREXIT: 850 #ifndef VBOX_WITH_GUEST_CONTROL2 851 #else 852 aWaitFlags.push_back(ProcessWaitForFlag_Terminate); 853 #endif 708 854 fWaitForExit = true; 709 855 break; 710 856 711 857 case GETOPTDEF_EXEC_WAITFORSTDOUT: 858 #ifndef VBOX_WITH_GUEST_CONTROL2 712 859 fExecFlags |= ExecuteProcessFlag_WaitForStdOut; 860 #else 861 aCreateFlags.push_back(ProcessCreateFlag_WaitForStdOut); 862 aWaitFlags.push_back(ProcessWaitForFlag_StdOut); 863 #endif 713 864 fWaitForExit = true; 714 865 break; 715 866 716 867 case GETOPTDEF_EXEC_WAITFORSTDERR: 868 #ifndef VBOX_WITH_GUEST_CONTROL2 717 869 fExecFlags |= ExecuteProcessFlag_WaitForStdErr; 870 #else 871 aCreateFlags.push_back(ProcessCreateFlag_WaitForStdErr); 872 aWaitFlags.push_back(ProcessWaitForFlag_StdErr); 873 #endif 718 874 fWaitForExit = true; 719 875 break; … … 721 877 case VINF_GETOPT_NOT_OPTION: 722 878 { 723 if (args.size() == 0 && Utf8Cmd.isEmpty())724 Utf8Cmd = ValueUnion.psz;879 if (args.size() == 0 && strCmd.isEmpty()) 880 strCmd = ValueUnion.psz; 725 881 else 726 882 args.push_back(Bstr(ValueUnion.psz).raw()); … … 733 889 } 734 890 735 if ( Utf8Cmd.isEmpty())891 if (strCmd.isEmpty()) 736 892 return errorSyntax(USAGE_GUESTCONTROL, "No command to execute specified!"); 737 893 738 if ( Utf8UserName.isEmpty())894 if (strUserName.isEmpty()) 739 895 return errorSyntax(USAGE_GUESTCONTROL, "No user name specified!"); 740 896 … … 744 900 745 901 /* 746 * <missing comment indicating that we're done parsing args and started doing something else>902 * Start with the real work. 747 903 */ 748 904 HRESULT rc = S_OK; … … 755 911 } 756 912 913 #ifndef VBOX_WITH_GUEST_CONTROL2 757 914 /* Get current time stamp to later calculate rest of timeout left. */ 758 915 uint64_t u64StartMS = RTTimeMilliTS(); 759 916 760 /* Execute the process. */ 761 int rcExit = RTEXITCODE_FAILURE; 762 ComPtr<IProgress> progress; 917 /* 918 * Execute the process. 919 */ 920 ComPtr<IProgress> pProgress; 763 921 ULONG uPID = 0; 764 rc = pGuest->ExecuteProcess(Bstr( Utf8Cmd).raw(),922 rc = pGuest->ExecuteProcess(Bstr(strCmd).raw(), 765 923 fExecFlags, 766 924 ComSafeArrayAsInParam(args), 767 925 ComSafeArrayAsInParam(env), 768 Bstr( Utf8UserName).raw(),769 Bstr( Utf8Password).raw(),926 Bstr(strUserName).raw(), 927 Bstr(strPassword).raw(), 770 928 cMsTimeout, 771 929 &uPID, 772 p rogress.asOutParam());930 pProgress.asOutParam()); 773 931 if (FAILED(rc)) 774 return ctrlPrintError(pGuest, COM_IIDOF(IGuest)); 932 { 933 ctrlPrintError(pGuest, COM_IIDOF(IGuest)); 934 return RTEXITCODE_FAILURE; 935 } 775 936 776 937 if (fVerbose) 777 RTPrintf("Process '%s' (PID: %u) started\n", Utf8Cmd.c_str(), uPID);938 RTPrintf("Process '%s' (PID: %u) started\n", strCmd.c_str(), uPID); 778 939 if (fWaitForExit) 779 940 { … … 795 956 796 957 /* Setup signal handling if cancelable. */ 797 ASSERT(p rogress);958 ASSERT(pProgress); 798 959 bool fCanceledAlready = false; 799 960 BOOL fCancelable; 800 HRESULT hrc = p rogress->COMGETTER(Cancelable)(&fCancelable);961 HRESULT hrc = pProgress->COMGETTER(Cancelable)(&fCancelable); 801 962 if (FAILED(hrc)) 802 963 fCancelable = FALSE; … … 814 975 BOOL fCompleted = FALSE; 815 976 BOOL fCanceled = FALSE; 816 while ( SUCCEEDED(p rogress->COMGETTER(Completed(&fCompleted)))977 while ( SUCCEEDED(pProgress->COMGETTER(Completed(&fCompleted))) 817 978 && !fCompleted) 818 979 { 819 980 /* Do we need to output stuff? */ 820 uint32_tcMsTimeLeft;981 RTMSINTERVAL cMsTimeLeft; 821 982 if (fExecFlags & ExecuteProcessFlag_WaitForStdOut) 822 983 { … … 840 1001 if (g_fGuestCtrlCanceled && !fCanceledAlready) 841 1002 { 842 hrc = p rogress->Cancel();1003 hrc = pProgress->Cancel(); 843 1004 if (SUCCEEDED(hrc)) 844 1005 fCanceledAlready = TRUE; … … 848 1009 849 1010 /* Progress canceled by Main API? */ 850 if ( SUCCEEDED(p rogress->COMGETTER(Canceled(&fCanceled)))1011 if ( SUCCEEDED(pProgress->COMGETTER(Canceled(&fCanceled))) 851 1012 && fCanceled) 852 1013 break; … … 856 1017 && RTTimeMilliTS() - u64StartMS > cMsTimeout) 857 1018 { 858 p rogress->Cancel();1019 pProgress->Cancel(); 859 1020 break; 860 1021 } … … 870 1031 if (fVerbose) 871 1032 RTPrintf("Process execution canceled!\n"); 872 r cExit =EXITCODEEXEC_CANCELED;1033 return EXITCODEEXEC_CANCELED; 873 1034 } 874 1035 else if ( fCompleted … … 876 1037 { 877 1038 LONG iRc; 878 CHECK_ERROR_RET(p rogress, COMGETTER(ResultCode)(&iRc), rc);1039 CHECK_ERROR_RET(pProgress, COMGETTER(ResultCode)(&iRc), rc); 879 1040 if (FAILED(iRc)) 880 vrc = ctrlPrintProgressError(p rogress);1041 vrc = ctrlPrintProgressError(pProgress); 881 1042 else 882 1043 { … … 888 1049 if (fVerbose) 889 1050 RTPrintf("Exit code=%u (Status=%u [%s], Flags=%u)\n", uRetExitCode, retStatus, ctrlExecProcessStatusToText(retStatus), uRetFlags); 890 r cExit =ctrlExecProcessStatusToExitCode(retStatus, uRetExitCode);1051 return ctrlExecProcessStatusToExitCode(retStatus, uRetExitCode); 891 1052 } 892 1053 else 893 1054 { 894 1055 ctrlPrintError(pGuest, COM_IIDOF(IGuest)); 895 r cExit =RTEXITCODE_FAILURE;1056 return RTEXITCODE_FAILURE; 896 1057 } 897 1058 } … … 901 1062 if (fVerbose) 902 1063 RTPrintf("Process execution aborted!\n"); 903 rcExit = EXITCODEEXEC_TERM_ABEND; 904 } 905 } 906 907 if (RT_FAILURE(vrc) || FAILED(rc)) 1064 return EXITCODEEXEC_TERM_ABEND; 1065 } 1066 } 1067 #else 1068 ComPtr<IGuestSession> pGuestSession; 1069 rc = pGuest->CreateSession(Bstr(strUserName).raw(), 1070 Bstr(strPassword).raw(), 1071 Bstr(strDomain).raw(), 1072 Bstr("guest exec").raw(), 1073 pGuestSession.asOutParam()); 1074 if (FAILED(rc)) 1075 { 1076 ctrlPrintError(pGuest, COM_IIDOF(IGuest)); 908 1077 return RTEXITCODE_FAILURE; 909 return rcExit; 1078 } 1079 1080 /* Get current time stamp to later calculate rest of timeout left. */ 1081 uint64_t u64StartMS = RTTimeMilliTS(); 1082 1083 /* 1084 * Execute the process. 1085 */ 1086 ComPtr<IGuestProcess> pProcess; 1087 rc = pGuestSession->ProcessCreate(Bstr(strCmd).raw(), 1088 ComSafeArrayAsInParam(args), 1089 ComSafeArrayAsInParam(env), 1090 ComSafeArrayAsInParam(aCreateFlags), 1091 cMsTimeout, 1092 pProcess.asOutParam()); 1093 if (FAILED(rc)) 1094 { 1095 ctrlPrintError(pGuestSession, COM_IIDOF(IGuestSession)); 1096 return RTEXITCODE_FAILURE; 1097 } 1098 ULONG uPID = 0; 1099 rc = pProcess->COMGETTER(PID)(&uPID); 1100 if (FAILED(rc)) 1101 { 1102 ctrlPrintError(pProcess, COM_IIDOF(IProcess)); 1103 return RTEXITCODE_FAILURE; 1104 } 1105 1106 if (fVerbose) 1107 RTPrintf("Process '%s' (PID: %u) started\n", strCmd.c_str(), uPID); 1108 1109 if (fWaitForExit) 1110 { 1111 if (fVerbose) 1112 { 1113 if (cMsTimeout) /* Wait with a certain timeout. */ 1114 { 1115 /* Calculate timeout value left after process has been started. */ 1116 uint64_t u64Elapsed = RTTimeMilliTS() - u64StartMS; 1117 /* Is timeout still bigger than current difference? */ 1118 if (cMsTimeout > u64Elapsed) 1119 RTPrintf("Waiting for process to exit (%ums left) ...\n", cMsTimeout - u64Elapsed); 1120 else 1121 RTPrintf("No time left to wait for process!\n"); /** @todo a bit misleading ... */ 1122 } 1123 else /* Wait forever. */ 1124 RTPrintf("Waiting for process to exit ...\n"); 1125 } 1126 1127 /** @todo does this need signal handling? there's no progress object etc etc */ 1128 1129 vrc = RTStrmSetMode(g_pStdOut, 1 /* Binary mode */, -1 /* Code set, unchanged */); 1130 if (RT_FAILURE(vrc)) 1131 RTMsgError("Unable to set stdout's binary mode, rc=%Rrc\n", vrc); 1132 vrc = RTStrmSetMode(g_pStdErr, 1 /* Binary mode */, -1 /* Code set, unchanged */); 1133 if (RT_FAILURE(vrc)) 1134 RTMsgError("Unable to set stderr's binary mode, rc=%Rrc\n", vrc); 1135 1136 /* Wait for process to exit ... */ 1137 RTMSINTERVAL cMsTimeLeft = 1; 1138 bool fCompleted = false; 1139 while (!fCompleted && cMsTimeLeft != 0) 1140 { 1141 cMsTimeLeft = ctrlExecGetRemainingTime(u64StartMS, cMsTimeout); 1142 ProcessWaitResult_T waitResult; 1143 rc = pProcess->WaitForArray(ComSafeArrayAsInParam(aWaitFlags), cMsTimeLeft, &waitResult); 1144 if (FAILED(rc)) 1145 { 1146 ctrlPrintError(pProcess, COM_IIDOF(IProcess)); 1147 return RTEXITCODE_FAILURE; 1148 } 1149 1150 switch (waitResult) 1151 { 1152 case ProcessWaitResult_StdOut: 1153 /* Do we need to fetch stdout data? */ 1154 vrc = ctrlExecPrintOutput(pProcess, g_pStdOut, 1 /* StdOut */); 1155 break; 1156 case ProcessWaitResult_StdErr: 1157 /* Do we need to fetch stderr data? */ 1158 vrc = ctrlExecPrintOutput(pProcess, g_pStdErr, 2 /* StdErr */); 1159 break; 1160 case ProcessWaitResult_Terminate: 1161 /* Process terminated, we're done */ 1162 fCompleted = true; 1163 break; 1164 default: 1165 /* Ignore all other results, let the timeout expire */; 1166 } 1167 } /* while */ 1168 1169 /* Report status back to the user. */ 1170 if (fCompleted) 1171 { 1172 ProcessStatus_T status; 1173 rc = pProcess->COMGETTER(Status)(&status); 1174 if (FAILED(rc)) 1175 { 1176 ctrlPrintError(pProcess, COM_IIDOF(IProcess)); 1177 return RTEXITCODE_FAILURE; 1178 } 1179 LONG exitCode; 1180 rc = pProcess->COMGETTER(ExitCode)(&exitCode); 1181 if (FAILED(rc)) 1182 { 1183 ctrlPrintError(pProcess, COM_IIDOF(IProcess)); 1184 return RTEXITCODE_FAILURE; 1185 } 1186 if (fVerbose) 1187 RTPrintf("Exit code=%u (Status=%u [%s])\n", exitCode, status, ctrlExecProcessStatusToText(status)); 1188 return ctrlExecProcessStatusToExitCode(status, exitCode); 1189 } 1190 else 1191 { 1192 if (fVerbose) 1193 RTPrintf("Process execution aborted!\n"); 1194 return EXITCODEEXEC_TERM_ABEND; 1195 } 1196 } 1197 #endif 1198 1199 return RT_FAILURE(vrc) || FAILED(rc) ? RTEXITCODE_FAILURE : RTEXITCODE_SUCCESS; 910 1200 } 911 1201 … … 1322 1612 1323 1613 int vrc = VINF_SUCCESS; 1324 ComPtr<IProgress> p rogress;1614 ComPtr<IProgress> pProgress; 1325 1615 HRESULT rc; 1326 1616 if (pContext->fHostToGuest) … … 1328 1618 rc = pContext->pGuest->CopyToGuest(Bstr(pszFileSource).raw(), Bstr(pszFileDest).raw(), 1329 1619 Bstr(pContext->pszUsername).raw(), Bstr(pContext->pszPassword).raw(), 1330 fFlags, p rogress.asOutParam());1620 fFlags, pProgress.asOutParam()); 1331 1621 } 1332 1622 else … … 1334 1624 rc = pContext->pGuest->CopyFromGuest(Bstr(pszFileSource).raw(), Bstr(pszFileDest).raw(), 1335 1625 Bstr(pContext->pszUsername).raw(), Bstr(pContext->pszPassword).raw(), 1336 fFlags, p rogress.asOutParam());1626 fFlags, pProgress.asOutParam()); 1337 1627 } 1338 1628 … … 1342 1632 { 1343 1633 if (pContext->fVerbose) 1344 rc = showProgress(p rogress);1634 rc = showProgress(pProgress); 1345 1635 else 1346 rc = p rogress->WaitForCompletion(-1 /* No timeout */);1636 rc = pProgress->WaitForCompletion(-1 /* No timeout */); 1347 1637 if (SUCCEEDED(rc)) 1348 CHECK_PROGRESS_ERROR(p rogress, ("File copy failed"));1349 vrc = ctrlPrintProgressError(p rogress);1638 CHECK_PROGRESS_ERROR(pProgress, ("File copy failed")); 1639 vrc = ctrlPrintProgressError(pProgress); 1350 1640 } 1351 1641 … … 1591 1881 if (pContext->fVerbose) 1592 1882 { 1593 Utf8Str Utf8Dir(strName);1594 RTPrintf("Directory: %s\n", Utf8Dir.c_str());1883 Utf8Str strDir(strName); 1884 RTPrintf("Directory: %s\n", strDir.c_str()); 1595 1885 } 1596 1886 … … 1820 2110 { "--dryrun", GETOPTDEF_COPY_DRYRUN, RTGETOPT_REQ_NOTHING }, 1821 2111 { "--follow", GETOPTDEF_COPY_FOLLOW, RTGETOPT_REQ_NOTHING }, 2112 { "--username", 'u', RTGETOPT_REQ_STRING }, 1822 2113 { "--passwordfile", 'p', RTGETOPT_REQ_STRING }, 1823 2114 { "--password", GETOPTDEF_COPY_PASSWORD, RTGETOPT_REQ_STRING }, 2115 { "--domain", 'd', RTGETOPT_REQ_STRING }, 1824 2116 { "--recursive", 'R', RTGETOPT_REQ_NOTHING }, 1825 2117 { "--target-directory", GETOPTDEF_COPY_TARGETDIR, RTGETOPT_REQ_STRING }, 1826 { "--username", 'u', RTGETOPT_REQ_STRING },1827 2118 { "--verbose", 'v', RTGETOPT_REQ_NOTHING } 1828 2119 }; … … 1834 2125 s_aOptions, RT_ELEMENTS(s_aOptions), 0, RTGETOPTINIT_FLAGS_OPTS_FIRST); 1835 2126 1836 Utf8Str Utf8Source; 1837 Utf8Str Utf8Dest; 1838 Utf8Str Utf8UserName; 1839 Utf8Str Utf8Password; 2127 Utf8Str strSource; 2128 Utf8Str strDest; 2129 Utf8Str strUserName; 2130 Utf8Str strPassword; 2131 Utf8Str strDomain; 1840 2132 uint32_t fFlags = CopyFileFlag_None; 1841 2133 bool fVerbose = false; … … 1859 2151 break; 1860 2152 2153 case 'u': /* User name */ 2154 strUserName = ValueUnion.psz; 2155 break; 2156 1861 2157 case GETOPTDEF_COPY_PASSWORD: /* Password */ 1862 Utf8Password = ValueUnion.psz;2158 strPassword = ValueUnion.psz; 1863 2159 break; 1864 2160 1865 2161 case 'p': /* Password file */ 1866 2162 { 1867 RTEXITCODE rcExit = readPasswordFile(ValueUnion.psz, & Utf8Password);2163 RTEXITCODE rcExit = readPasswordFile(ValueUnion.psz, &strPassword); 1868 2164 if (rcExit != RTEXITCODE_SUCCESS) 1869 2165 return rcExit; … … 1871 2167 } 1872 2168 2169 case 'd': /* domain */ 2170 strDomain = ValueUnion.psz; 2171 break; 2172 1873 2173 case 'R': /* Recursive processing */ 1874 2174 fFlags |= CopyFileFlag_Recursive; … … 1876 2176 1877 2177 case GETOPTDEF_COPY_TARGETDIR: 1878 Utf8Dest = ValueUnion.psz; 1879 break; 1880 1881 case 'u': /* User name */ 1882 Utf8UserName = ValueUnion.psz; 2178 strDest = ValueUnion.psz; 1883 2179 break; 1884 2180 … … 1893 2189 * (= last) argument as destination. */ 1894 2190 if ( pArg->argc == GetState.iNext 1895 && Utf8Dest.isEmpty())2191 && strDest.isEmpty()) 1896 2192 { 1897 Utf8Dest = ValueUnion.psz;2193 strDest = ValueUnion.psz; 1898 2194 } 1899 2195 else … … 1914 2210 "No source(s) specified!"); 1915 2211 1916 if ( Utf8Dest.isEmpty())2212 if (strDest.isEmpty()) 1917 2213 return errorSyntax(USAGE_GUESTCONTROL, 1918 2214 "No destination specified!"); 1919 2215 1920 if ( Utf8UserName.isEmpty())2216 if (strUserName.isEmpty()) 1921 2217 return errorSyntax(USAGE_GUESTCONTROL, 1922 2218 "No user name specified!"); … … 1939 2235 PCOPYCONTEXT pContext; 1940 2236 vrc = ctrlCopyContextCreate(guest, fVerbose, fDryRun, fHostToGuest, 1941 Utf8UserName.c_str(), Utf8Password.c_str(),2237 strUserName.c_str(), strPassword.c_str(), 1942 2238 &pContext); 1943 2239 if (RT_FAILURE(vrc)) … … 1948 2244 1949 2245 /* If the destination is a path, (try to) create it. */ 1950 const char *pszDest = Utf8Dest.c_str();2246 const char *pszDest = strDest.c_str(); 1951 2247 if (!RTPathFilename(pszDest)) 1952 2248 { … … 2028 2324 char *pszDestFile; 2029 2325 vrc = ctrlCopyTranslatePath(pszSourceRoot, pszSource, 2030 Utf8Dest.c_str(), &pszDestFile);2326 strDest.c_str(), &pszDestFile); 2031 2327 if (RT_SUCCESS(vrc)) 2032 2328 { … … 2043 2339 /* Directory (with filter?). */ 2044 2340 vrc = ctrlCopyDirToDest(pContext, pszSource, pszFilter, 2045 Utf8Dest.c_str(), fFlags);2341 strDest.c_str(), fFlags); 2046 2342 } 2047 2343 } … … 2088 2384 { "--mode", 'm', RTGETOPT_REQ_UINT32 }, 2089 2385 { "--parents", 'P', RTGETOPT_REQ_NOTHING }, 2386 { "--username", 'u', RTGETOPT_REQ_STRING }, 2090 2387 { "--passwordfile", 'p', RTGETOPT_REQ_STRING }, 2091 2388 { "--password", GETOPTDEF_MKDIR_PASSWORD, RTGETOPT_REQ_STRING }, 2092 { "-- username", 'u', RTGETOPT_REQ_STRING },2389 { "--domain", 'd', RTGETOPT_REQ_STRING }, 2093 2390 { "--verbose", 'v', RTGETOPT_REQ_NOTHING } 2094 2391 }; … … 2100 2397 s_aOptions, RT_ELEMENTS(s_aOptions), 0, RTGETOPTINIT_FLAGS_OPTS_FIRST); 2101 2398 2102 Utf8Str Utf8UserName; 2103 Utf8Str Utf8Password; 2399 Utf8Str strUserName; 2400 Utf8Str strPassword; 2401 Utf8Str strDomain; 2104 2402 uint32_t fFlags = DirectoryCreateFlag_None; 2105 2403 uint32_t fDirMode = 0; /* Default mode. */ … … 2121 2419 break; 2122 2420 2421 case 'u': /* User name */ 2422 strUserName = ValueUnion.psz; 2423 break; 2424 2123 2425 case GETOPTDEF_MKDIR_PASSWORD: /* Password */ 2124 Utf8Password = ValueUnion.psz;2426 strPassword = ValueUnion.psz; 2125 2427 break; 2126 2428 2127 2429 case 'p': /* Password file */ 2128 2430 { 2129 RTEXITCODE rcExit = readPasswordFile(ValueUnion.psz, & Utf8Password);2431 RTEXITCODE rcExit = readPasswordFile(ValueUnion.psz, &strPassword); 2130 2432 if (rcExit != RTEXITCODE_SUCCESS) 2131 2433 return rcExit; … … 2133 2435 } 2134 2436 2135 case ' u': /* User name*/2136 Utf8UserName= ValueUnion.psz;2437 case 'd': /* domain */ 2438 strDomain = ValueUnion.psz; 2137 2439 break; 2138 2440 … … 2156 2458 return errorSyntax(USAGE_GUESTCONTROL, "No directory to create specified!"); 2157 2459 2158 if ( Utf8UserName.isEmpty())2460 if (strUserName.isEmpty()) 2159 2461 return errorSyntax(USAGE_GUESTCONTROL, "No user name specified!"); 2160 2462 … … 2173 2475 2174 2476 hrc = guest->DirectoryCreate(Bstr(it->first).raw(), 2175 Bstr( Utf8UserName).raw(), Bstr(Utf8Password).raw(),2477 Bstr(strUserName).raw(), Bstr(strPassword).raw(), 2176 2478 fDirMode, fFlags); 2177 2479 if (FAILED(hrc)) … … 2196 2498 { "--file-system", 'f', RTGETOPT_REQ_NOTHING }, 2197 2499 { "--format", 'c', RTGETOPT_REQ_STRING }, 2500 { "--username", 'u', RTGETOPT_REQ_STRING }, 2198 2501 { "--passwordfile", 'p', RTGETOPT_REQ_STRING }, 2199 2502 { "--password", GETOPTDEF_STAT_PASSWORD, RTGETOPT_REQ_STRING }, 2503 { "--domain", 'd', RTGETOPT_REQ_STRING }, 2200 2504 { "--terse", 't', RTGETOPT_REQ_NOTHING }, 2201 { "--username", 'u', RTGETOPT_REQ_STRING },2202 2505 { "--verbose", 'v', RTGETOPT_REQ_NOTHING } 2203 2506 }; … … 2209 2512 s_aOptions, RT_ELEMENTS(s_aOptions), 0, RTGETOPTINIT_FLAGS_OPTS_FIRST); 2210 2513 2211 Utf8Str Utf8UserName; 2212 Utf8Str Utf8Password; 2514 Utf8Str strUserName; 2515 Utf8Str strPassword; 2516 Utf8Str strDomain; 2213 2517 2214 2518 bool fVerbose = false; … … 2220 2524 switch (ch) 2221 2525 { 2526 case 'u': /* User name */ 2527 strUserName = ValueUnion.psz; 2528 break; 2529 2222 2530 case GETOPTDEF_STAT_PASSWORD: /* Password */ 2223 Utf8Password = ValueUnion.psz;2531 strPassword = ValueUnion.psz; 2224 2532 break; 2225 2533 2226 2534 case 'p': /* Password file */ 2227 2535 { 2228 RTEXITCODE rcExit = readPasswordFile(ValueUnion.psz, & Utf8Password);2536 RTEXITCODE rcExit = readPasswordFile(ValueUnion.psz, &strPassword); 2229 2537 if (rcExit != RTEXITCODE_SUCCESS) 2230 2538 return rcExit; … … 2232 2540 } 2233 2541 2234 case ' u': /* User name*/2235 Utf8UserName= ValueUnion.psz;2542 case 'd': /* domain */ 2543 strDomain = ValueUnion.psz; 2236 2544 break; 2237 2545 … … 2263 2571 return errorSyntax(USAGE_GUESTCONTROL, "No element(s) to check specified!"); 2264 2572 2265 if ( Utf8UserName.isEmpty())2573 if (strUserName.isEmpty()) 2266 2574 return errorSyntax(USAGE_GUESTCONTROL, "No user name specified!"); 2267 2575 … … 2279 2587 BOOL fExists; 2280 2588 hrc = guest->FileExists(Bstr(it->first).raw(), 2281 Bstr( Utf8UserName).raw(), Bstr(Utf8Password).raw(),2589 Bstr(strUserName).raw(), Bstr(strPassword).raw(), 2282 2590 &fExists); 2283 2591 if (FAILED(hrc)) … … 2316 2624 * arguments. 2317 2625 */ 2318 Utf8Str Utf8Source;2626 Utf8Str strSource; 2319 2627 bool fVerbose = false; 2320 2628 … … 2337 2645 { 2338 2646 case 's': 2339 Utf8Source = ValueUnion.psz;2647 strSource = ValueUnion.psz; 2340 2648 break; 2341 2649 … … 2353 2661 2354 2662 #ifdef DEBUG_andy 2355 if ( Utf8Source.isEmpty())2356 Utf8Source = "c:\\Downloads\\VBoxGuestAdditions-r67158.iso";2663 if (strSource.isEmpty()) 2664 strSource = "c:\\Downloads\\VBoxGuestAdditions-r67158.iso"; 2357 2665 #endif 2358 2666 2359 2667 /* Determine source if not set yet. */ 2360 if ( Utf8Source.isEmpty())2668 if (strSource.isEmpty()) 2361 2669 { 2362 2670 char strTemp[RTPATH_MAX]; 2363 2671 vrc = RTPathAppPrivateNoArch(strTemp, sizeof(strTemp)); 2364 2672 AssertRC(vrc); 2365 Utf8Str Utf8Src1 = Utf8Str(strTemp).append("/VBoxGuestAdditions.iso");2673 Utf8Str strSrc1 = Utf8Str(strTemp).append("/VBoxGuestAdditions.iso"); 2366 2674 2367 2675 vrc = RTPathExecDir(strTemp, sizeof(strTemp)); 2368 2676 AssertRC(vrc); 2369 Utf8Str Utf8Src2 = Utf8Str(strTemp).append("/additions/VBoxGuestAdditions.iso");2677 Utf8Str strSrc2 = Utf8Str(strTemp).append("/additions/VBoxGuestAdditions.iso"); 2370 2678 2371 2679 /* Check the standard image locations */ 2372 if (RTFileExists( Utf8Src1.c_str()))2373 Utf8Source = Utf8Src1;2374 else if (RTFileExists( Utf8Src2.c_str()))2375 Utf8Source = Utf8Src2;2680 if (RTFileExists(strSrc1.c_str())) 2681 strSource = strSrc1; 2682 else if (RTFileExists(strSrc2.c_str())) 2683 strSource = strSrc2; 2376 2684 else 2377 2685 { … … 2380 2688 } 2381 2689 } 2382 else if (!RTFileExists( Utf8Source.c_str()))2383 { 2384 RTMsgError("Source \"%s\" does not exist!\n", Utf8Source.c_str());2690 else if (!RTFileExists(strSource.c_str())) 2691 { 2692 RTMsgError("Source \"%s\" does not exist!\n", strSource.c_str()); 2385 2693 vrc = VERR_FILE_NOT_FOUND; 2386 2694 } … … 2389 2697 { 2390 2698 if (fVerbose) 2391 RTPrintf("Using source: %s\n", Utf8Source.c_str());2699 RTPrintf("Using source: %s\n", strSource.c_str()); 2392 2700 2393 2701 HRESULT rc = S_OK; 2394 2702 ComPtr<IProgress> pProgress; 2395 CHECK_ERROR(guest, UpdateGuestAdditions(Bstr( Utf8Source).raw(),2703 CHECK_ERROR(guest, UpdateGuestAdditions(Bstr(strSource).raw(), 2396 2704 /* Wait for whole update process to complete. */ 2397 2705 AdditionsUpdateFlag_None, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHostonly.cpp
r41324 r42551 5 5 6 6 /* 7 * Copyright (C) 2006-201 0Oracle Corporation7 * Copyright (C) 2006-2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 225 225 if (bDhcp) 226 226 { 227 CHECK_ERROR(hif, EnableDynamicI pConfig ());227 CHECK_ERROR(hif, EnableDynamicIPConfig ()); 228 228 } 229 229 else if (pIp) … … 232 232 pNetmask = "255.255.255.0"; /* ?? */ 233 233 234 CHECK_ERROR(hif, EnableStaticI pConfig(Bstr(pIp).raw(),234 CHECK_ERROR(hif, EnableStaticIPConfig(Bstr(pIp).raw(), 235 235 Bstr(pNetmask).raw())); 236 236 } … … 250 250 251 251 Bstr ipv6str(pIpv6); 252 CHECK_ERROR(hif, EnableStaticI pConfigV6(ipv6str.raw(),252 CHECK_ERROR(hif, EnableStaticIPConfigV6(ipv6str.raw(), 253 253 (ULONG)uNetmasklengthv6)); 254 254 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r42261 r42551 923 923 { 924 924 Bstr strNetwork; 925 ComPtr<INATEngine> driver;926 nic->COMGETTER(N atDriver)(driver.asOutParam());927 driver->COMGETTER(Network)(strNetwork.asOutParam());925 ComPtr<INATEngine> engine; 926 nic->COMGETTER(NATEngine)(engine.asOutParam()); 927 engine->COMGETTER(Network)(strNetwork.asOutParam()); 928 928 com::SafeArray<BSTR> forwardings; 929 driver->COMGETTER(Redirects)(ComSafeArrayAsOutParam(forwardings));929 engine->COMGETTER(Redirects)(ComSafeArrayAsOutParam(forwardings)); 930 930 strNatForwardings = ""; 931 931 for (size_t i = 0; i < forwardings.size(); ++i) … … 1000 1000 ULONG tcpSnd = 0; 1001 1001 ULONG tcpRcv = 0; 1002 driver->GetNetworkSettings(&mtu, &sockSnd, &sockRcv, &tcpSnd, &tcpRcv);1002 engine->GetNetworkSettings(&mtu, &sockSnd, &sockRcv, &tcpSnd, &tcpRcv); 1003 1003 1004 1004 if (details == VMINFO_MACHINEREADABLE) … … 1176 1176 1177 1177 /* Pointing device information */ 1178 PointingH idType_T aPointingHid;1179 const char *pszH id= "Unknown";1180 const char *pszMrH id= "unknown";1181 machine->COMGETTER(PointingH idType)(&aPointingHid);1182 switch (aPointingH id)1183 { 1184 case PointingH idType_None:1185 pszH id= "None";1186 pszMrH id= "none";1178 PointingHIDType_T aPointingHID; 1179 const char *pszHID = "Unknown"; 1180 const char *pszMrHID = "unknown"; 1181 machine->COMGETTER(PointingHIDType)(&aPointingHID); 1182 switch (aPointingHID) 1183 { 1184 case PointingHIDType_None: 1185 pszHID = "None"; 1186 pszMrHID = "none"; 1187 1187 break; 1188 case PointingH idType_PS2Mouse:1189 pszH id= "PS/2 Mouse";1190 pszMrH id= "ps2mouse";1188 case PointingHIDType_PS2Mouse: 1189 pszHID = "PS/2 Mouse"; 1190 pszMrHID = "ps2mouse"; 1191 1191 break; 1192 case PointingH idType_USBMouse:1193 pszH id= "USB Mouse";1194 pszMrH id= "usbmouse";1192 case PointingHIDType_USBMouse: 1193 pszHID = "USB Mouse"; 1194 pszMrHID = "usbmouse"; 1195 1195 break; 1196 case PointingH idType_USBTablet:1197 pszH id= "USB Tablet";1198 pszMrH id= "usbtablet";1196 case PointingHIDType_USBTablet: 1197 pszHID = "USB Tablet"; 1198 pszMrHID = "usbtablet"; 1199 1199 break; 1200 case PointingH idType_ComboMouse:1201 pszH id= "USB Tablet and PS/2 Mouse";1202 pszMrH id= "combomouse";1200 case PointingHIDType_ComboMouse: 1201 pszHID = "USB Tablet and PS/2 Mouse"; 1202 pszMrHID = "combomouse"; 1203 1203 break; 1204 1204 default: … … 1206 1206 } 1207 1207 if (details == VMINFO_MACHINEREADABLE) 1208 RTPrintf("hidpointing=\"%s\"\n", pszMrH id);1208 RTPrintf("hidpointing=\"%s\"\n", pszMrHID); 1209 1209 else 1210 RTPrintf("Pointing Device: %s\n", pszH id);1210 RTPrintf("Pointing Device: %s\n", pszHID); 1211 1211 1212 1212 /* Keyboard device information */ 1213 KeyboardH idType_T aKeyboardHid;1214 machine->COMGETTER(KeyboardH idType)(&aKeyboardHid);1215 pszH id= "Unknown";1216 pszMrH id= "unknown";1217 switch (aKeyboardH id)1218 { 1219 case KeyboardH idType_None:1220 pszH id= "None";1221 pszMrH id= "none";1213 KeyboardHIDType_T aKeyboardHID; 1214 machine->COMGETTER(KeyboardHIDType)(&aKeyboardHID); 1215 pszHID = "Unknown"; 1216 pszMrHID = "unknown"; 1217 switch (aKeyboardHID) 1218 { 1219 case KeyboardHIDType_None: 1220 pszHID = "None"; 1221 pszMrHID = "none"; 1222 1222 break; 1223 case KeyboardH idType_PS2Keyboard:1224 pszH id= "PS/2 Keyboard";1225 pszMrH id= "ps2kbd";1223 case KeyboardHIDType_PS2Keyboard: 1224 pszHID = "PS/2 Keyboard"; 1225 pszMrHID = "ps2kbd"; 1226 1226 break; 1227 case KeyboardH idType_USBKeyboard:1228 pszH id= "USB Keyboard";1229 pszMrH id= "usbkbd";1227 case KeyboardHIDType_USBKeyboard: 1228 pszHID = "USB Keyboard"; 1229 pszMrHID = "usbkbd"; 1230 1230 break; 1231 case KeyboardH idType_ComboKeyboard:1232 pszH id= "USB and PS/2 Keyboard";1233 pszMrH id= "combokbd";1231 case KeyboardHIDType_ComboKeyboard: 1232 pszHID = "USB and PS/2 Keyboard"; 1233 pszMrHID = "combokbd"; 1234 1234 break; 1235 1235 default: … … 1237 1237 } 1238 1238 if (details == VMINFO_MACHINEREADABLE) 1239 RTPrintf("hidkeyboard=\"%s\"\n", pszMrH id);1239 RTPrintf("hidkeyboard=\"%s\"\n", pszMrHID); 1240 1240 else 1241 RTPrintf("Keyboard Device: %s\n", pszH id);1241 RTPrintf("Keyboard Device: %s\n", pszHID); 1242 1242 1243 1243 ComPtr<ISystemProperties> sysProps; … … 1713 1713 { 1714 1714 BOOL fEnabled; 1715 BOOL fE hciEnabled;1715 BOOL fEHCIEnabled; 1716 1716 rc = USBCtl->COMGETTER(Enabled)(&fEnabled); 1717 1717 if (FAILED(rc)) … … 1722 1722 RTPrintf("USB: %s\n", fEnabled ? "enabled" : "disabled"); 1723 1723 1724 rc = USBCtl->COMGETTER(EnabledE hci)(&fEhciEnabled);1724 rc = USBCtl->COMGETTER(EnabledEHCI)(&fEHCIEnabled); 1725 1725 if (FAILED(rc)) 1726 fE hciEnabled = false;1726 fEHCIEnabled = false; 1727 1727 if (details == VMINFO_MACHINEREADABLE) 1728 RTPrintf("ehci=\"%s\"\n", fE hciEnabled ? "on" : "off");1728 RTPrintf("ehci=\"%s\"\n", fEHCIEnabled ? "on" : "off"); 1729 1729 else 1730 RTPrintf("EHCI: %s\n", fE hciEnabled ? "enabled" : "disabled");1730 RTPrintf("EHCI: %s\n", fEHCIEnabled ? "enabled" : "disabled"); 1731 1731 1732 1732 SafeIfaceArray <IUSBDeviceFilter> Coll; … … 1998 1998 /* Host PCI passthrough devices */ 1999 1999 { 2000 SafeIfaceArray <IP ciDeviceAttachment> assignments;2001 rc = machine->COMGETTER(P ciDeviceAssignments)(ComSafeArrayAsOutParam(assignments));2000 SafeIfaceArray <IPCIDeviceAttachment> assignments; 2001 rc = machine->COMGETTER(PCIDeviceAssignments)(ComSafeArrayAsOutParam(assignments)); 2002 2002 if (SUCCEEDED(rc)) 2003 2003 { … … 2009 2009 for (size_t index = 0; index < assignments.size(); ++index) 2010 2010 { 2011 ComPtr<IP ciDeviceAttachment> Assignment = assignments[index];2012 char szHostP ciAddress[32], szGuestPciAddress[32];2013 LONG iHostP ciAddress = -1, iGuestPciAddress = -1;2011 ComPtr<IPCIDeviceAttachment> Assignment = assignments[index]; 2012 char szHostPCIAddress[32], szGuestPCIAddress[32]; 2013 LONG iHostPCIAddress = -1, iGuestPCIAddress = -1; 2014 2014 Bstr DevName; 2015 2015 2016 2016 Assignment->COMGETTER(Name)(DevName.asOutParam()); 2017 Assignment->COMGETTER(HostAddress)(&iHostP ciAddress);2018 Assignment->COMGETTER(GuestAddress)(&iGuestP ciAddress);2019 P ciBusAddress().fromLong(iHostPciAddress).format(szHostPciAddress, sizeof(szHostPciAddress));2020 P ciBusAddress().fromLong(iGuestPciAddress).format(szGuestPciAddress, sizeof(szGuestPciAddress));2017 Assignment->COMGETTER(HostAddress)(&iHostPCIAddress); 2018 Assignment->COMGETTER(GuestAddress)(&iGuestPCIAddress); 2019 PCIBusAddress().fromLong(iHostPCIAddress).format(szHostPCIAddress, sizeof(szHostPCIAddress)); 2020 PCIBusAddress().fromLong(iGuestPCIAddress).format(szGuestPCIAddress, sizeof(szGuestPCIAddress)); 2021 2021 2022 2022 if (details == VMINFO_MACHINEREADABLE) 2023 RTPrintf("AttachedHostP ci=%s,%s\n", szHostPciAddress, szGuestPciAddress);2023 RTPrintf("AttachedHostPCI=%s,%s\n", szHostPCIAddress, szGuestPCIAddress); 2024 2024 else 2025 RTPrintf(" Host device %ls at %s attached as %s\n", DevName.raw(), szHostP ciAddress, szGuestPciAddress);2025 RTPrintf(" Host device %ls at %s attached as %s\n", DevName.raw(), szHostPCIAddress, szGuestPCIAddress); 2026 2026 } 2027 2027 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r42189 r42551 489 489 networkInterface->COMGETTER(Id)(interfaceGuid.asOutParam()); 490 490 RTPrintf("GUID: %ls\n", interfaceGuid.raw()); 491 BOOL bD hcpEnabled;492 networkInterface->COMGETTER(D hcpEnabled)(&bDhcpEnabled);493 RTPrintf("D hcp: %s\n", bDhcpEnabled ? "Enabled" : "Disabled");491 BOOL bDHCPEnabled; 492 networkInterface->COMGETTER(DHCPEnabled)(&bDHCPEnabled); 493 RTPrintf("DHCP: %s\n", bDHCPEnabled ? "Enabled" : "Disabled"); 494 494 495 495 Bstr IPAddress; -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r42538 r42551 1395 1395 { 1396 1396 ComPtr<INetworkAdapter> nic; 1397 ComPtr<INATEngine> driver;1398 1399 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1400 ASSERT(nic); 1401 1402 CHECK_ERROR(nic, COMGETTER(N atDriver)(driver.asOutParam()));1397 ComPtr<INATEngine> engine; 1398 1399 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1400 ASSERT(nic); 1401 1402 CHECK_ERROR(nic, COMGETTER(NATEngine)(engine.asOutParam())); 1403 1403 1404 1404 const char *psz = ValueUnion.psz; … … 1406 1406 psz = ""; 1407 1407 1408 CHECK_ERROR( driver, COMSETTER(Network)(Bstr(psz).raw()));1408 CHECK_ERROR(engine, COMSETTER(Network)(Bstr(psz).raw())); 1409 1409 break; 1410 1410 } … … 1413 1413 { 1414 1414 ComPtr<INetworkAdapter> nic; 1415 ComPtr<INATEngine> driver;1416 1417 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1418 ASSERT(nic); 1419 1420 CHECK_ERROR(nic, COMGETTER(N atDriver)(driver.asOutParam()));1421 CHECK_ERROR( driver, COMSETTER(HostIP)(Bstr(ValueUnion.psz).raw()));1415 ComPtr<INATEngine> engine; 1416 1417 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1418 ASSERT(nic); 1419 1420 CHECK_ERROR(nic, COMGETTER(NATEngine)(engine.asOutParam())); 1421 CHECK_ERROR(engine, COMSETTER(HostIP)(Bstr(ValueUnion.psz).raw())); 1422 1422 break; 1423 1423 } … … 1442 1442 { 1443 1443 ComPtr<INetworkAdapter> nic; 1444 ComPtr<INATEngine> driver;1444 ComPtr<INATEngine> engine; 1445 1445 char *strMtu; 1446 1446 char *strSockSnd; … … 1463 1463 ASSERT(nic); 1464 1464 1465 CHECK_ERROR(nic, COMGETTER(N atDriver)(driver.asOutParam()));1466 CHECK_ERROR( driver, SetNetworkSettings(RTStrToUInt32(strMtu), RTStrToUInt32(strSockSnd), RTStrToUInt32(strSockRcv),1465 CHECK_ERROR(nic, COMGETTER(NATEngine)(engine.asOutParam())); 1466 CHECK_ERROR(engine, SetNetworkSettings(RTStrToUInt32(strMtu), RTStrToUInt32(strSockSnd), RTStrToUInt32(strSockRcv), 1467 1467 RTStrToUInt32(strTcpSnd), RTStrToUInt32(strTcpRcv))); 1468 1468 break; … … 1473 1473 { 1474 1474 ComPtr<INetworkAdapter> nic; 1475 ComPtr<INATEngine> driver;1476 1477 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1478 ASSERT(nic); 1479 1480 CHECK_ERROR(nic, COMGETTER(N atDriver)(driver.asOutParam()));1475 ComPtr<INATEngine> engine; 1476 1477 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1478 ASSERT(nic); 1479 1480 CHECK_ERROR(nic, COMGETTER(NATEngine)(engine.asOutParam())); 1481 1481 /* format name:proto:hostip:hostport:guestip:guestport*/ 1482 1482 if (RTStrCmp(ValueUnion.psz, "delete") != 0) … … 1512 1512 break; 1513 1513 } 1514 CHECK_ERROR( driver, AddRedirect(Bstr(strName).raw(), proto,1514 CHECK_ERROR(engine, AddRedirect(Bstr(strName).raw(), proto, 1515 1515 Bstr(strHostIp).raw(), 1516 1516 RTStrToUInt16(strHostPort), … … 1525 1525 if (RT_FAILURE(vrc)) 1526 1526 return errorSyntax(USAGE_MODIFYVM, "Not enough parameters"); 1527 CHECK_ERROR( driver, RemoveRedirect(Bstr(ValueUnion.psz).raw()));1527 CHECK_ERROR(engine, RemoveRedirect(Bstr(ValueUnion.psz).raw())); 1528 1528 } 1529 1529 break; … … 1533 1533 { 1534 1534 ComPtr<INetworkAdapter> nic; 1535 ComPtr<INATEngine> driver;1535 ComPtr<INATEngine> engine; 1536 1536 uint32_t aliasMode = 0; 1537 1537 … … 1539 1539 ASSERT(nic); 1540 1540 1541 CHECK_ERROR(nic, COMGETTER(N atDriver)(driver.asOutParam()));1541 CHECK_ERROR(nic, COMGETTER(NATEngine)(engine.asOutParam())); 1542 1542 if (RTStrCmp(ValueUnion.psz,"default") == 0) 1543 1543 { … … 1561 1561 } 1562 1562 } 1563 CHECK_ERROR( driver, COMSETTER(AliasMode)(aliasMode));1563 CHECK_ERROR(engine, COMSETTER(AliasMode)(aliasMode)); 1564 1564 break; 1565 1565 } … … 1568 1568 { 1569 1569 ComPtr<INetworkAdapter> nic; 1570 ComPtr<INATEngine> driver;1571 1572 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1573 ASSERT(nic); 1574 1575 CHECK_ERROR(nic, COMGETTER(N atDriver)(driver.asOutParam()));1576 CHECK_ERROR( driver, COMSETTER(TftpPrefix)(Bstr(ValueUnion.psz).raw()));1570 ComPtr<INATEngine> engine; 1571 1572 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1573 ASSERT(nic); 1574 1575 CHECK_ERROR(nic, COMGETTER(NATEngine)(engine.asOutParam())); 1576 CHECK_ERROR(engine, COMSETTER(TFTPPrefix)(Bstr(ValueUnion.psz).raw())); 1577 1577 break; 1578 1578 } … … 1581 1581 { 1582 1582 ComPtr<INetworkAdapter> nic; 1583 ComPtr<INATEngine> driver;1584 1585 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1586 ASSERT(nic); 1587 1588 CHECK_ERROR(nic, COMGETTER(N atDriver)(driver.asOutParam()));1589 CHECK_ERROR( driver, COMSETTER(TftpBootFile)(Bstr(ValueUnion.psz).raw()));1583 ComPtr<INATEngine> engine; 1584 1585 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1586 ASSERT(nic); 1587 1588 CHECK_ERROR(nic, COMGETTER(NATEngine)(engine.asOutParam())); 1589 CHECK_ERROR(engine, COMSETTER(TFTPBootFile)(Bstr(ValueUnion.psz).raw())); 1590 1590 break; 1591 1591 } … … 1594 1594 { 1595 1595 ComPtr<INetworkAdapter> nic; 1596 ComPtr<INATEngine> driver;1597 1598 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1599 ASSERT(nic); 1600 1601 CHECK_ERROR(nic, COMGETTER(N atDriver)(driver.asOutParam()));1602 CHECK_ERROR( driver, COMSETTER(TftpNextServer)(Bstr(ValueUnion.psz).raw()));1596 ComPtr<INATEngine> engine; 1597 1598 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1599 ASSERT(nic); 1600 1601 CHECK_ERROR(nic, COMGETTER(NATEngine)(engine.asOutParam())); 1602 CHECK_ERROR(engine, COMSETTER(TFTPNextServer)(Bstr(ValueUnion.psz).raw())); 1603 1603 break; 1604 1604 } … … 1606 1606 { 1607 1607 ComPtr<INetworkAdapter> nic; 1608 ComPtr<INATEngine> driver;1609 1610 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1611 ASSERT(nic); 1612 1613 CHECK_ERROR(nic, COMGETTER(N atDriver)(driver.asOutParam()));1614 CHECK_ERROR( driver, COMSETTER(DnsPassDomain)(ValueUnion.f));1608 ComPtr<INATEngine> engine; 1609 1610 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1611 ASSERT(nic); 1612 1613 CHECK_ERROR(nic, COMGETTER(NATEngine)(engine.asOutParam())); 1614 CHECK_ERROR(engine, COMSETTER(DNSPassDomain)(ValueUnion.f)); 1615 1615 break; 1616 1616 } … … 1619 1619 { 1620 1620 ComPtr<INetworkAdapter> nic; 1621 ComPtr<INATEngine> driver;1622 1623 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1624 ASSERT(nic); 1625 1626 CHECK_ERROR(nic, COMGETTER(N atDriver)(driver.asOutParam()));1627 CHECK_ERROR( driver, COMSETTER(DnsProxy)(ValueUnion.f));1621 ComPtr<INATEngine> engine; 1622 1623 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1624 ASSERT(nic); 1625 1626 CHECK_ERROR(nic, COMGETTER(NATEngine)(engine.asOutParam())); 1627 CHECK_ERROR(engine, COMSETTER(DNSProxy)(ValueUnion.f)); 1628 1628 break; 1629 1629 } … … 1632 1632 { 1633 1633 ComPtr<INetworkAdapter> nic; 1634 ComPtr<INATEngine> driver;1635 1636 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1637 ASSERT(nic); 1638 1639 CHECK_ERROR(nic, COMGETTER(N atDriver)(driver.asOutParam()));1640 CHECK_ERROR( driver, COMSETTER(DnsUseHostResolver)(ValueUnion.f));1634 ComPtr<INATEngine> engine; 1635 1636 CHECK_ERROR_BREAK(machine, GetNetworkAdapter(GetOptState.uIndex - 1, nic.asOutParam())); 1637 ASSERT(nic); 1638 1639 CHECK_ERROR(nic, COMGETTER(NATEngine)(engine.asOutParam())); 1640 CHECK_ERROR(engine, COMSETTER(DNSUseHostResolver)(ValueUnion.f)); 1641 1641 break; 1642 1642 } … … 1665 1665 if (!strcmp(ValueUnion.psz, "ps2")) 1666 1666 { 1667 CHECK_ERROR(machine, COMSETTER(PointingH idType)(PointingHidType_PS2Mouse));1667 CHECK_ERROR(machine, COMSETTER(PointingHIDType)(PointingHIDType_PS2Mouse)); 1668 1668 } 1669 1669 else if (!strcmp(ValueUnion.psz, "usb")) 1670 1670 { 1671 CHECK_ERROR(machine, COMSETTER(PointingH idType)(PointingHidType_USBMouse));1671 CHECK_ERROR(machine, COMSETTER(PointingHIDType)(PointingHIDType_USBMouse)); 1672 1672 if (SUCCEEDED(rc)) 1673 1673 fEnableUsb = true; … … 1675 1675 else if (!strcmp(ValueUnion.psz, "usbtablet")) 1676 1676 { 1677 CHECK_ERROR(machine, COMSETTER(PointingH idType)(PointingHidType_USBTablet));1677 CHECK_ERROR(machine, COMSETTER(PointingHIDType)(PointingHIDType_USBTablet)); 1678 1678 if (SUCCEEDED(rc)) 1679 1679 fEnableUsb = true; … … 1707 1707 if (!strcmp(ValueUnion.psz, "ps2")) 1708 1708 { 1709 CHECK_ERROR(machine, COMSETTER(KeyboardH idType)(KeyboardHidType_PS2Keyboard));1709 CHECK_ERROR(machine, COMSETTER(KeyboardHIDType)(KeyboardHIDType_PS2Keyboard)); 1710 1710 } 1711 1711 else if (!strcmp(ValueUnion.psz, "usb")) 1712 1712 { 1713 CHECK_ERROR(machine, COMSETTER(KeyboardH idType)(KeyboardHidType_USBKeyboard));1713 CHECK_ERROR(machine, COMSETTER(KeyboardHIDType)(KeyboardHIDType_USBKeyboard)); 1714 1714 if (SUCCEEDED(rc)) 1715 1715 fEnableUsb = true; … … 2229 2229 CHECK_ERROR(machine, COMGETTER(USBController)(UsbCtl.asOutParam())); 2230 2230 if (SUCCEEDED(rc)) 2231 CHECK_ERROR(UsbCtl, COMSETTER(EnabledE hci)(ValueUnion.f));2231 CHECK_ERROR(UsbCtl, COMSETTER(EnabledEHCI)(ValueUnion.f)); 2232 2232 break; 2233 2233 } … … 2355 2355 case MODIFYVM_HPET: 2356 2356 { 2357 CHECK_ERROR(machine, COMSETTER(H petEnabled)(ValueUnion.f));2357 CHECK_ERROR(machine, COMSETTER(HPETEnabled)(ValueUnion.f)); 2358 2358 break; 2359 2359 } … … 2361 2361 case MODIFYVM_IOCACHE: 2362 2362 { 2363 CHECK_ERROR(machine, COMSETTER(I oCacheEnabled)(ValueUnion.f));2363 CHECK_ERROR(machine, COMSETTER(IOCacheEnabled)(ValueUnion.f)); 2364 2364 break; 2365 2365 } … … 2367 2367 case MODIFYVM_IOCACHESIZE: 2368 2368 { 2369 CHECK_ERROR(machine, COMSETTER(I oCacheSize)(ValueUnion.u32));2369 CHECK_ERROR(machine, COMSETTER(IOCacheSize)(ValueUnion.u32)); 2370 2370 break; 2371 2371 } … … 2445 2445 else 2446 2446 { 2447 CHECK_ERROR(machine, AttachHostP ciDevice(iHostAddr, iGuestAddr, TRUE));2447 CHECK_ERROR(machine, AttachHostPCIDevice(iHostAddr, iGuestAddr, TRUE)); 2448 2448 } 2449 2449 … … 2462 2462 else 2463 2463 { 2464 CHECK_ERROR(machine, DetachHostP ciDevice(iHostAddr));2464 CHECK_ERROR(machine, DetachHostPCIDevice(iHostAddr)); 2465 2465 } 2466 2466 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageStorageController.cpp
r42538 r42551 649 649 if (pMedium2Mount && (fSetNewUuid || fSetNewParentUuid)) 650 650 { 651 CHECK_ERROR(pMedium2Mount, SetI Ds(fSetNewUuid, bstrNewUuid.raw(),651 CHECK_ERROR(pMedium2Mount, SetIds(fSetNewUuid, bstrNewUuid.raw(), 652 652 fSetNewParentUuid, bstrNewParentUuid.raw())); 653 653 if (FAILED(rc)) -
trunk/src/VBox/Frontends/VirtualBox/src/selector/UIVMItem.cpp
r41819 r42551 7 7 8 8 /* 9 * Copyright (C) 2006-201 0Oracle Corporation9 * Copyright (C) 2006-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 250 250 else 251 251 { 252 m_pid = m_machine.GetSessionP id();252 m_pid = m_machine.GetSessionPID(); 253 253 /// @todo Remove. See @c todo in #switchTo() below. 254 254 #if 0 -
trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp
r41587 r42551 7 7 8 8 /* 9 * Copyright (C) 2009-201 0Oracle Corporation9 * Copyright (C) 2009-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 323 323 if (data.m_interface.m_fDhcpClientEnabled) 324 324 { 325 iface.EnableDynamicI pConfig();325 iface.EnableDynamicIPConfig(); 326 326 } 327 327 else … … 333 333 QHostAddress(data.m_interface.m_strInterfaceMask).protocol() == QAbstractSocket::IPv4Protocol, 334 334 ("Interface IPv4 network mask must be empty or IPv4-valid!\n")); 335 iface.EnableStaticI pConfig(data.m_interface.m_strInterfaceAddress, data.m_interface.m_strInterfaceMask);335 iface.EnableStaticIPConfig(data.m_interface.m_strInterfaceAddress, data.m_interface.m_strInterfaceMask); 336 336 if (iface.GetIPV6Supported()) 337 337 { … … 339 339 QHostAddress(data.m_interface.m_strInterfaceAddress6).protocol() == QAbstractSocket::IPv6Protocol, 340 340 ("Interface IPv6 address must be empty or IPv6-valid!\n")); 341 iface.EnableStaticI pConfigV6(data.m_interface.m_strInterfaceAddress6, data.m_interface.m_strInterfaceMaskLength6.toULong());341 iface.EnableStaticIPConfigV6(data.m_interface.m_strInterfaceAddress6, data.m_interface.m_strInterfaceMaskLength6.toULong()); 342 342 } 343 343 } … … 554 554 /* Host-only interface settings */ 555 555 data.m_interface.m_strName = iface.GetName(); 556 data.m_interface.m_fDhcpClientEnabled = iface.GetD hcpEnabled();556 data.m_interface.m_fDhcpClientEnabled = iface.GetDHCPEnabled(); 557 557 data.m_interface.m_strInterfaceAddress = iface.GetIPAddress(); 558 558 data.m_interface.m_strInterfaceMask = iface.GetNetworkMask(); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsNetwork.cpp
r42268 r42551 7 7 8 8 /* 9 * Copyright (C) 2008-201 1Oracle Corporation9 * Copyright (C) 2008-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 790 790 791 791 /* Gather redirect options: */ 792 QVector<QString> redirects = adapter.GetN atDriver().GetRedirects();792 QVector<QString> redirects = adapter.GetNATEngine().GetRedirects(); 793 793 for (int i = 0; i < redirects.size(); ++i) 794 794 { … … 922 922 adapter.SetCableConnected(adapterData.m_fCableConnected); 923 923 /* Redirect options: */ 924 QVector<QString> oldRedirects = adapter.GetN atDriver().GetRedirects();924 QVector<QString> oldRedirects = adapter.GetNATEngine().GetRedirects(); 925 925 for (int i = 0; i < oldRedirects.size(); ++i) 926 adapter.GetN atDriver().RemoveRedirect(oldRedirects[i].section(',', 0, 0));926 adapter.GetNATEngine().RemoveRedirect(oldRedirects[i].section(',', 0, 0)); 927 927 UIPortForwardingDataList newRedirects = adapterData.m_redirects; 928 928 for (int i = 0; i < newRedirects.size(); ++i) 929 929 { 930 930 UIPortForwardingData newRedirect = newRedirects[i]; 931 adapter.GetN atDriver().AddRedirect(newRedirect.name, newRedirect.protocol,931 adapter.GetNATEngine().AddRedirect(newRedirect.name, newRedirect.protocol, 932 932 newRedirect.hostIp, newRedirect.hostPort.value(), 933 933 newRedirect.guestIp, newRedirect.guestPort.value()); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsSystem.cpp
r41819 r42551 7 7 8 8 /* 9 * Copyright (C) 2008-201 1Oracle Corporation9 * Copyright (C) 2008-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 238 238 systemData.m_fEFIEnabled = m_machine.GetFirmwareType() >= KFirmwareType_EFI && m_machine.GetFirmwareType() <= KFirmwareType_EFIDUAL; 239 239 systemData.m_fUTCEnabled = m_machine.GetRTCUseUTC(); 240 systemData.m_fUseAbsHID = m_machine.GetPointingH idType() == KPointingHidType_USBTablet;240 systemData.m_fUseAbsHID = m_machine.GetPointingHIDType() == KPointingHIDType_USBTablet; 241 241 systemData.m_fPAEEnabled = m_machine.GetCPUProperty(KCPUPropertyType_PAE); 242 242 systemData.m_fHwVirtExEnabled = m_machine.GetHWVirtExProperty(KHWVirtExPropertyType_Enabled); … … 363 363 m_machine.SetFirmwareType(systemData.m_fEFIEnabled ? KFirmwareType_EFI : KFirmwareType_BIOS); 364 364 m_machine.SetRTCUseUTC(systemData.m_fUTCEnabled); 365 m_machine.SetPointingH idType(systemData.m_fUseAbsHID ? KPointingHidType_USBTablet : KPointingHidType_PS2Mouse);365 m_machine.SetPointingHIDType(systemData.m_fUseAbsHID ? KPointingHIDType_USBTablet : KPointingHIDType_PS2Mouse); 366 366 /* Processor tab: */ 367 367 m_machine.SetCPUCount(systemData.m_cCPUCount); -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
r41819 r42551 7 7 8 8 /* 9 * Copyright (C) 2006-201 1Oracle Corporation9 * Copyright (C) 2006-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 309 309 /* Gather USB values: */ 310 310 usbData.m_fUSBEnabled = controller.GetEnabled(); 311 usbData.m_fEHCIEnabled = controller.GetEnabledE hci();311 usbData.m_fEHCIEnabled = controller.GetEnabledEHCI(); 312 312 313 313 /* For each USB filter: */ … … 506 506 { 507 507 controller.SetEnabled(usbData.m_fUSBEnabled); 508 controller.SetEnabledE hci(usbData.m_fEHCIEnabled);508 controller.SetEnabledEHCI(usbData.m_fEHCIEnabled); 509 509 } 510 510 /* Store USB filters data: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/firstrun/UIWizardFirstRun.cpp
r41615 r42551 49 49 const CGuestOSType &osType = vbox.GetGuestOSType(m_machine.GetOSTypeId()); 50 50 /* Determine recommended controller's 'bus' & 'type': */ 51 KStorageBus dvdCtrBus = osType.GetRecommendedD vdStorageBus();52 KStorageControllerType dvdCtrType = osType.GetRecommendedD vdStorageController();51 KStorageBus dvdCtrBus = osType.GetRecommendedDVDStorageBus(); 52 KStorageControllerType dvdCtrType = osType.GetRecommendedDVDStorageController(); 53 53 /* Declare null 'dvd' attachment: */ 54 54 CMediumAttachment cda; … … 132 132 const CGuestOSType &osType = vbox.GetGuestOSType(machine.GetOSTypeId()); 133 133 /* Determine recommended controller's 'bus' & 'type': */ 134 KStorageBus hdCtrBus = osType.GetRecommendedH dStorageBus();135 KStorageControllerType hdCtrType = osType.GetRecommendedH dStorageController();134 KStorageBus hdCtrBus = osType.GetRecommendedHDStorageBus(); 135 KStorageControllerType hdCtrType = osType.GetRecommendedHDStorageController(); 136 136 /* Enumerate attachments vector: */ 137 137 const CMediumAttachmentVector &attachments = machine.GetMediumAttachments(); -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r42129 r42551 91 91 /* Enable the OHCI and EHCI controller by default for new VMs. (new in 2.2): */ 92 92 CUSBController usbController = m_machine.GetUSBController(); 93 if (!usbController.isNull() && type.GetRecommendedU sb() && usbController.GetProxyAvailable())93 if (!usbController.isNull() && type.GetRecommendedUSB() && usbController.GetProxyAvailable()) 94 94 { 95 95 usbController.SetEnabled(true); … … 101 101 CExtPackManager manager = vboxGlobal().virtualBox().GetExtensionPackManager(); 102 102 if (manager.IsExtPackUsable(GUI_ExtPackName)) 103 usbController.SetEnabledE hci(true);103 usbController.SetEnabledEHCI(true); 104 104 } 105 105 … … 114 114 115 115 /* Create recommended DVD storage controller: */ 116 KStorageBus strD vdBus = type.GetRecommendedDvdStorageBus();117 QString strD vdName = getNextControllerName(strDvdBus);118 m_machine.AddStorageController(strD vdName, strDvdBus);116 KStorageBus strDVDBus = type.GetRecommendedDVDStorageBus(); 117 QString strDVDName = getNextControllerName(strDVDBus); 118 m_machine.AddStorageController(strDVDName, strDVDBus); 119 119 120 120 /* Set recommended DVD storage controller type: */ 121 CStorageController dvdCtr = m_machine.GetStorageControllerByName(strD vdName);122 KStorageControllerType dvdStorageControllerType = type.GetRecommendedD vdStorageController();121 CStorageController dvdCtr = m_machine.GetStorageControllerByName(strDVDName); 122 KStorageControllerType dvdStorageControllerType = type.GetRecommendedDVDStorageController(); 123 123 dvdCtr.SetControllerType(dvdStorageControllerType); 124 124 125 125 /* Create recommended HD storage controller if it's not the same as the DVD controller: */ 126 KStorageBus ctrH dBus = type.GetRecommendedHdStorageBus();127 KStorageControllerType hdStorageControllerType = type.GetRecommendedH dStorageController();126 KStorageBus ctrHDBus = type.GetRecommendedHDStorageBus(); 127 KStorageControllerType hdStorageControllerType = type.GetRecommendedHDStorageController(); 128 128 CStorageController hdCtr; 129 QString strH dName;130 if (ctrH dBus != strDvdBus || hdStorageControllerType != dvdStorageControllerType)131 { 132 strH dName = getNextControllerName(ctrHdBus);133 m_machine.AddStorageController(strH dName, ctrHdBus);134 hdCtr = m_machine.GetStorageControllerByName(strH dName);129 QString strHDName; 130 if (ctrHDBus != strDVDBus || hdStorageControllerType != dvdStorageControllerType) 131 { 132 strHDName = getNextControllerName(ctrHDBus); 133 m_machine.AddStorageController(strHDName, ctrHDBus); 134 hdCtr = m_machine.GetStorageControllerByName(strHDName); 135 135 hdCtr.SetControllerType(hdStorageControllerType); 136 136 … … 143 143 /* The HD controller is the same as DVD: */ 144 144 hdCtr = dvdCtr; 145 strH dName = strDvdName;145 strHDName = strDVDName; 146 146 } 147 147 148 148 /* Turn on PAE, if recommended: */ 149 m_machine.SetCPUProperty(KCPUPropertyType_PAE, type.GetRecommendedP ae());149 m_machine.SetCPUProperty(KCPUPropertyType_PAE, type.GetRecommendedPAE()); 150 150 151 151 /* Set recommended firmware type: */ … … 154 154 155 155 /* Set recommended human interface device types: */ 156 if (type.GetRecommendedU sbHid())157 { 158 m_machine.SetKeyboardH idType(KKeyboardHidType_USBKeyboard);159 m_machine.SetPointingH idType(KPointingHidType_USBMouse);156 if (type.GetRecommendedUSBHID()) 157 { 158 m_machine.SetKeyboardHIDType(KKeyboardHIDType_USBKeyboard); 159 m_machine.SetPointingHIDType(KPointingHIDType_USBMouse); 160 160 if (!usbController.isNull()) 161 161 usbController.SetEnabled(true); 162 162 } 163 163 164 if (type.GetRecommendedU sbTablet())165 { 166 m_machine.SetPointingH idType(KPointingHidType_USBTablet);164 if (type.GetRecommendedUSBTablet()) 165 { 166 m_machine.SetPointingHIDType(KPointingHIDType_USBTablet); 167 167 if (!usbController.isNull()) 168 168 usbController.SetEnabled(true); … … 170 170 171 171 /* Set HPET flag: */ 172 m_machine.SetH petEnabled(type.GetRecommendedHpet());172 m_machine.SetHPETEnabled(type.GetRecommendedHPET()); 173 173 174 174 /* Set UTC flags: */ 175 m_machine.SetRTCUseUTC(type.GetRecommendedR tcUseUtc());175 m_machine.SetRTCUseUTC(type.GetRecommendedRTCUseUTC()); 176 176 177 177 /* Set graphic bits: */ … … 205 205 UIMedium vmedium = vboxGlobal().findMedium(strId); 206 206 CMedium medium = vmedium.medium(); // @todo r=dj can this be cached somewhere? 207 machine.AttachDevice(strH dName, 0, 0, KDeviceType_HardDisk, medium);207 machine.AttachDevice(strHDName, 0, 0, KDeviceType_HardDisk, medium); 208 208 if (!machine.isOk()) 209 209 msgCenter().cannotAttachDevice(machine, UIMediumType_HardDisk, field("virtualDiskLocation").toString(), 210 StorageSlot(ctrH dBus, 0, 0), this);210 StorageSlot(ctrHDBus, 0, 0), this); 211 211 } 212 212 213 213 /* Attach empty CD/DVD ROM Device */ 214 machine.AttachDevice(strD vdName, 1, 0, KDeviceType_DVD, CMedium());214 machine.AttachDevice(strDVDName, 1, 0, KDeviceType_DVD, CMedium()); 215 215 if (!machine.isOk()) 216 msgCenter().cannotAttachDevice(machine, UIMediumType_DVD, QString(), StorageSlot(strD vdBus, 1, 0), this);216 msgCenter().cannotAttachDevice(machine, UIMediumType_DVD, QString(), StorageSlot(strDVDBus, 1, 0), this); 217 217 218 218 -
trunk/src/VBox/Main/Makefile.kmk
r42306 r42551 290 290 src-all/HashedPw.cpp \ 291 291 src-all/Logging.cpp \ 292 src-all/P ciDeviceAttachmentImpl.cpp \292 src-all/PCIDeviceAttachmentImpl.cpp \ 293 293 src-all/ProgressImpl.cpp \ 294 294 src-all/SharedFolderImpl.cpp \ … … 595 595 src-all/HashedPw.cpp \ 596 596 src-all/Logging.cpp \ 597 src-all/P ciDeviceAttachmentImpl.cpp \597 src-all/PCIDeviceAttachmentImpl.cpp \ 598 598 src-all/ProgressImpl.cpp \ 599 599 src-all/SharedFolderImpl.cpp \ … … 606 606 src-client/AudioSnifferInterface.cpp \ 607 607 src-client/BusAssignmentManager.cpp \ 608 $(if $(VBOX_WITH_PCI_PASSTHROUGH),src-client/P ciRawDevImpl.cpp,) \608 $(if $(VBOX_WITH_PCI_PASSTHROUGH),src-client/PCIRawDevImpl.cpp,) \ 609 609 src-client/ConsoleImpl.cpp \ 610 610 src-client/ConsoleImpl2.cpp \ -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r42538 r42551 107 107 represent virtual machine sessions which are used to configure virtual 108 108 machines and control their execution. 109 110 The naming of methods and attributes is very clearly defined: they all start 111 with a lowercase letter (except if they start with an acronym), and are using 112 CamelCase style otherwise. This naming only applies to the IDL description, 113 and is modified by the various language bindings (some convert the first 114 character to upper case, some not). See the SDK reference for more details 115 about how to call a method or attribute from a specific programming language. 109 116 </desc> 110 117 … … 843 850 In <link to="IMachine::sessionState"/>, this means that the machine 844 851 is currently locked for a session, whose process identifier can 845 then be found in the <link to="IMachine::sessionP id" /> attribute.852 then be found in the <link to="IMachine::sessionPID" /> attribute. 846 853 847 854 In <link to="ISession::state"/>, this means that a machine is … … 1153 1160 1154 1161 <enum 1155 name="PointingH idType"1156 uuid=" 0d3c17a2-821a-4b2e-ae41-890c6c60aa97"1162 name="PointingHIDType" 1163 uuid="e44b2f7b-72ba-44fb-9e53-2186014f0d17" 1157 1164 > 1158 1165 <desc> … … 1178 1185 1179 1186 <enum 1180 name="KeyboardH idType"1181 uuid=" 5a5b0996-3a3e-44bb-9019-56979812cbcc"1187 name="KeyboardHIDType" 1188 uuid="383e43d7-5c7c-4ec8-9cb8-eda1bccd6699" 1182 1189 > 1183 1190 <desc> … … 1310 1317 > 1311 1318 <desc> 1312 The IDHCPServer interface represents the vbox dhcpserver configuration.1313 1314 To enumerate all the dhcpservers on the host, use the1319 The IDHCPServer interface represents the vbox DHCP server configuration. 1320 1321 To enumerate all the DHCP servers on the host, use the 1315 1322 <link to="IVirtualBox::DHCPServers"/> attribute. 1316 1323 </desc> … … 1318 1325 <attribute name="enabled" type="boolean"> 1319 1326 <desc> 1320 specifies if the dhcpserver is enabled1327 specifies if the DHCP server is enabled 1321 1328 </desc> 1322 1329 </attribute> … … 1943 1950 or a new UUID will be randomly generated (e.g. for ISO and RAW files). 1944 1951 If for some reason you need to change the medium's UUID, use 1945 <link to="IMedium::setI Ds" />.1952 <link to="IMedium::setIds" />. 1946 1953 1947 1954 If a differencing hard disk medium is to be opened by this method, the … … 2168 2175 <!--method name="createDHCPServerForInterface"> 2169 2176 <desc> 2170 Creates a dhcpserver settings to be used for the given interface2177 Creates a DHCP server settings to be used for the given interface 2171 2178 <result name="E_INVALIDARG"> 2172 2179 Host network interface @a name already exists. … … 2177 2184 </param> 2178 2185 <param name="server" type="IDHCPServer" dir="out"> 2179 <desc>D hcpserver settings</desc>2186 <desc>DHCP server settings</desc> 2180 2187 </param> 2181 2188 </method--> … … 2183 2190 <method name="createDHCPServer"> 2184 2191 <desc> 2185 Creates a dhcpserver settings to be used for the given internal network name2192 Creates a DHCP server settings to be used for the given internal network name 2186 2193 <result name="E_INVALIDARG"> 2187 2194 Host network interface @a name already exists. … … 2192 2199 </param> 2193 2200 <param name="server" type="IDHCPServer" dir="return"> 2194 <desc>D hcpserver settings</desc>2201 <desc>DHCP server settings</desc> 2195 2202 </param> 2196 2203 </method> … … 2198 2205 <method name="findDHCPServerByNetworkName"> 2199 2206 <desc> 2200 Searches a dhcpserver settings to be used for the given internal network name2207 Searches a DHCP server settings to be used for the given internal network name 2201 2208 <result name="E_INVALIDARG"> 2202 2209 Host network interface @a name already exists. … … 2208 2215 </param> 2209 2216 <param name="server" type="IDHCPServer" dir="return"> 2210 <desc>D hcpserver settings</desc>2217 <desc>DHCP server settings</desc> 2211 2218 </param> 2212 2219 </method> … … 2214 2221 <!--method name="findDHCPServerForInterface"> 2215 2222 <desc> 2216 Searches a dhcpserver settings to be used for the given interface2223 Searches a DHCP server settings to be used for the given interface 2217 2224 <result name="E_INVALIDARG"> 2218 2225 Host network interface @a name already exists. … … 2223 2230 </param> 2224 2231 <param name="server" type="IDHCPServer" dir="out"> 2225 <desc>D hcpserver settings</desc>2232 <desc>DHCP server settings</desc> 2226 2233 </param> 2227 2234 </method--> … … 2229 2236 <method name="removeDHCPServer"> 2230 2237 <desc> 2231 Removes the dhcpserver settings2238 Removes the DHCP server settings 2232 2239 <result name="E_INVALIDARG"> 2233 2240 Host network interface @a name already exists. … … 2235 2242 </desc> 2236 2243 <param name="server" type="IDHCPServer" dir="in"> 2237 <desc>D hcpserver settings to be removed</desc>2244 <desc>DHCP server settings to be removed</desc> 2238 2245 </param> 2239 2246 </method> … … 3607 3614 3608 3615 <interface 3609 name="IP ciAddress" extends="$unknown"3616 name="IPCIAddress" extends="$unknown" 3610 3617 uuid="D88B324F-DB19-4D3B-A1A9-BF5B127199A8" 3611 3618 wsmap="struct" … … 3650 3657 3651 3658 <interface 3652 name="IP ciDeviceAttachment" extends="$unknown"3659 name="IPCIDeviceAttachment" extends="$unknown" 3653 3660 uuid="91f33d6f-e621-4f70-a77e-15f0e3c714d5" 3654 3661 wsmap="struct" … … 3757 3764 <interface 3758 3765 name="IMachine" extends="$unknown" 3759 uuid=" 481ae051-96ed-4ba3-81e6-7b2c186005bc"3766 uuid="22781af3-1c96-4126-9edf-67a020e0e858" 3760 3767 wsmap="managed" 3761 3768 > … … 3968 3975 </attribute> 3969 3976 3970 3977 <attribute name="memorySize" type="unsigned long"> 3971 3978 <desc>System memory size in megabytes.</desc> 3972 3979 </attribute> … … 4018 4025 </attribute> 4019 4026 4020 <attribute name="pointingH idType" type="PointingHidType">4027 <attribute name="pointingHIDType" type="PointingHIDType"> 4021 4028 <desc>Type of pointing HID (such as mouse or tablet) used in this VM. 4022 4029 The default is typically "PS2Mouse" but can vary depending on the … … 4024 4031 </attribute> 4025 4032 4026 <attribute name="keyboardH idType" type="KeyboardHidType">4033 <attribute name="keyboardHIDType" type="KeyboardHIDType"> 4027 4034 <desc>Type of keyboard HID used in this VM. 4028 4035 The default is typically "PS2Keyboard" but can vary depending on the … … 4030 4037 </attribute> 4031 4038 4032 <attribute name=" hpetEnabled" type="boolean">4039 <attribute name="HPETEnabled" type="boolean"> 4033 4040 <desc>This attribute controls if High Precision Event Timer (HPET) is 4034 4041 enabled in this VM. Use this property if you want to provide guests … … 4151 4158 </attribute> 4152 4159 4153 <attribute name="sessionP id" type="unsigned long" readonly="yes">4160 <attribute name="sessionPID" type="unsigned long" readonly="yes"> 4154 4161 <desc> 4155 4162 Identifier of the session process. This attribute contains the … … 4360 4367 </attribute> 4361 4368 4362 <attribute name=" ioCacheEnabled" type="boolean">4369 <attribute name="IOCacheEnabled" type="boolean"> 4363 4370 <desc> 4364 4371 When set to @a true, the builtin I/O cache of the virtual machine … … 4367 4374 </attribute> 4368 4375 4369 <attribute name=" ioCacheSize" type="unsigned long">4376 <attribute name="IOCacheSize" type="unsigned long"> 4370 4377 <desc> 4371 4378 Maximum size of the I/O cache in MB. … … 4373 4380 </attribute> 4374 4381 4375 <attribute name=" pciDeviceAssignments" type="IPciDeviceAttachment" readonly="yes" safearray="yes">4382 <attribute name="PCIDeviceAssignments" type="IPCIDeviceAttachment" readonly="yes" safearray="yes"> 4376 4383 <desc>Array of PCI devices assigned to this machine, to get list of all 4377 4384 PCI devices attached to the machine use 4378 <link to="IConsole::attachedP ciDevices"/> attribute, as this attribute4385 <link to="IConsole::attachedPCIDevices"/> attribute, as this attribute 4379 4386 is intended to list only devices additional to what described in 4380 4387 virtual hardware config. Usually, this list keeps host's physical … … 5321 5328 </method> 5322 5329 5323 <method name="attachHostP ciDevice">5330 <method name="attachHostPCIDevice"> 5324 5331 <desc> 5325 5332 Attaches host PCI device with the given (host) PCI address to the 5326 5333 PCI bus of the virtual machine. Please note, that this operation 5327 5334 is two phase, as real attachment will happen when VM will start, 5328 and most information will be delivered as IHostP ciDevicePlugEvent5335 and most information will be delivered as IHostPCIDevicePlugEvent 5329 5336 on IVirtualBox event source. 5330 5337 5331 <see><link to="IHostP ciDevicePlugEvent"/></see>5338 <see><link to="IHostPCIDevicePlugEvent"/></see> 5332 5339 5333 5340 <result name="VBOX_E_INVALID_VM_STATE"> … … 5353 5360 </method> 5354 5361 5355 <method name="detachHostP ciDevice">5362 <method name="detachHostPCIDevice"> 5356 5363 <desc> 5357 5364 Detach host PCI device from the virtual machine. 5358 Also HostP ciDevicePlugEvent on IVirtualBox event source5365 Also HostPCIDevicePlugEvent on IVirtualBox event source 5359 5366 will be delivered. As currently we don't support hot device 5360 unplug, IHostP ciDevicePlugEvent event is delivered immediately.5361 5362 <see><link to="IHostP ciDevicePlugEvent"/></see>5367 unplug, IHostPCIDevicePlugEvent event is delivered immediately. 5368 5369 <see><link to="IHostPCIDevicePlugEvent"/></see> 5363 5370 5364 5371 <result name="VBOX_E_INVALID_VM_STATE"> … … 6724 6731 <interface 6725 6732 name="IConsole" extends="$unknown" 6726 uuid=" 1968b7d3-e3bf-4ceb-99e0-cb7c913317bb"6733 uuid="db7ab4ca-2a3f-4183-9243-c1208da92392" 6727 6734 wsmap="managed" 6728 6735 > … … 6851 6858 </attribute> 6852 6859 6853 <attribute name="attachedP ciDevices" type="IPciDeviceAttachment" readonly="yes" safearray="yes">6860 <attribute name="attachedPCIDevices" type="IPCIDeviceAttachment" readonly="yes" safearray="yes"> 6854 6861 <desc>Array of PCI devices attached to this machine.</desc> 6855 6862 </attribute> … … 7617 7624 <interface 7618 7625 name="IHostNetworkInterface" extends="$unknown" 7619 uuid=" ce6fae58-7642-4102-b5db-c9005c2320a8"7626 uuid="87a4153d-6889-4dd6-9654-2e9ff0ae8dec" 7620 7627 wsmap="managed" 7621 7628 > … … 7638 7645 </attribute> 7639 7646 7640 <attribute name=" dhcpEnabled" type="boolean" readonly="yes">7647 <attribute name="DHCPEnabled" type="boolean" readonly="yes"> 7641 7648 <desc>Specifies whether the DHCP is enabled for the interface.</desc> 7642 7649 </attribute> … … 7678 7685 </attribute> 7679 7686 7680 <method name="enableStaticI pConfig">7687 <method name="enableStaticIPConfig"> 7681 7688 <desc>sets and enables the static IP V4 configuration for the given interface.</desc> 7682 7689 <param name="IPAddress" type="wstring" dir="in"> … … 7692 7699 </method> 7693 7700 7694 <method name="enableStaticI pConfigV6">7701 <method name="enableStaticIPConfigV6"> 7695 7702 <desc>sets and enables the static IP V6 configuration for the given interface.</desc> 7696 7703 <param name="IPV6Address" type="wstring" dir="in"> … … 7706 7713 </method> 7707 7714 7708 <method name="enableDynamicI pConfig">7715 <method name="enableDynamicIPConfig"> 7709 7716 <desc>enables the dynamic IP configuration.</desc> 7710 7717 </method> 7711 7718 7712 <method name=" dhcpRediscover">7713 <desc>refreshes the IP configuration for dhcp-enabled interface.</desc>7719 <method name="DHCPRediscover"> 7720 <desc>refreshes the IP configuration for DHCP-enabled interface.</desc> 7714 7721 </method> 7715 7722 … … 7718 7725 <interface 7719 7726 name="IHost" extends="$unknown" 7720 uuid=" dab4a2b8-c735-4f08-94fc-9bec84182e2f"7727 uuid="30678943-32df-4830-b413-931b25ac86a0" 7721 7728 wsmap="managed" 7722 7729 > … … 7911 7918 </attribute> 7912 7919 7913 <attribute name=" Acceleration3DAvailable" type="boolean" readonly="yes">7920 <attribute name="acceleration3DAvailable" type="boolean" readonly="yes"> 7914 7921 <desc>Returns @c true when the host supports 3D hardware acceleration.</desc> 7915 7922 </attribute> … … 8560 8567 <interface 8561 8568 name="IGuestOSType" extends="$unknown" 8562 uuid="6 3a03874-e495-41f7-a6dd-48b92fba8355"8569 uuid="6d968f9a-858b-4c50-bf17-241f069e94c2" 8563 8570 wsmap="struct" 8564 8571 > … … 8618 8625 </attribute> 8619 8626 8620 <attribute name="recommendedP ae" type="boolean" readonly="yes">8627 <attribute name="recommendedPAE" type="boolean" readonly="yes"> 8621 8628 <desc>Returns @c true if using PAE is recommended for this OS type.</desc> 8622 8629 </attribute> 8623 8630 8624 <attribute name="recommendedD vdStorageController" type="StorageControllerType" readonly="yes">8631 <attribute name="recommendedDVDStorageController" type="StorageControllerType" readonly="yes"> 8625 8632 <desc>Recommended storage controller type for DVD/CD drives.</desc> 8626 8633 </attribute> 8627 8634 8628 <attribute name="recommendedD vdStorageBus" type="StorageBus" readonly="yes">8635 <attribute name="recommendedDVDStorageBus" type="StorageBus" readonly="yes"> 8629 8636 <desc>Recommended storage bus type for DVD/CD drives.</desc> 8630 8637 </attribute> 8631 8638 8632 <attribute name="recommendedH dStorageController" type="StorageControllerType" readonly="yes">8639 <attribute name="recommendedHDStorageController" type="StorageControllerType" readonly="yes"> 8633 8640 <desc>Recommended storage controller type for HD drives.</desc> 8634 8641 </attribute> 8635 8642 8636 <attribute name="recommendedH dStorageBus" type="StorageBus" readonly="yes">8643 <attribute name="recommendedHDStorageBus" type="StorageBus" readonly="yes"> 8637 8644 <desc>Recommended storage bus type for HD drives.</desc> 8638 8645 </attribute> … … 8642 8649 </attribute> 8643 8650 8644 <attribute name="recommendedU sbHid" type="boolean" readonly="yes">8651 <attribute name="recommendedUSBHID" type="boolean" readonly="yes"> 8645 8652 <desc>Returns @c true if using USB Human Interface Devices, such as keyboard and mouse recommended.</desc> 8646 8653 </attribute> 8647 8654 8648 <attribute name="recommendedH pet" type="boolean" readonly="yes">8655 <attribute name="recommendedHPET" type="boolean" readonly="yes"> 8649 8656 <desc>Returns @c true if using HPET is recommended for this OS type.</desc> 8650 8657 </attribute> 8651 8658 8652 <attribute name="recommendedU sbTablet" type="boolean" readonly="yes">8659 <attribute name="recommendedUSBTablet" type="boolean" readonly="yes"> 8653 8660 <desc>Returns @c true if using a USB Tablet is recommended.</desc> 8654 8661 </attribute> 8655 8662 8656 <attribute name="recommendedR tcUseUtc" type="boolean" readonly="yes">8663 <attribute name="recommendedRTCUseUTC" type="boolean" readonly="yes"> 8657 8664 <desc>Returns @c true if the RTC of this VM should be set to UTC</desc> 8658 8665 </attribute> … … 8670 8677 </attribute> 8671 8678 8672 <attribute name="recommendedU sb" type="boolean" readonly="yes">8679 <attribute name="recommendedUSB" type="boolean" readonly="yes"> 8673 8680 <desc>Returns @c true a USB controller is recommended for this OS type.</desc> 8674 8681 </attribute> … … 9360 9367 <interface 9361 9368 name="IGuestSession" extends="$unknown" 9362 uuid=" 89f39320-d86c-4705-a376-d083f3c5c4e3"9369 uuid="a8bbf136-3f0d-42cd-9fd3-c5816adb10a0" 9363 9370 wsmap="managed" 9364 9371 > … … 9409 9416 </attribute> 9410 9417 9411 <attribute name="environment" type="wstring" readonly="yes"safearray="yes">9418 <attribute name="environment" type="wstring" safearray="yes"> 9412 9419 <desc> 9413 9420 TODO … … 9433 9440 </attribute> 9434 9441 9435 <method name=" Close">9442 <method name="close"> 9436 9443 <desc> 9437 9444 TODO … … 9443 9450 </method> 9444 9451 9445 <method name=" CopyFrom">9452 <method name="copyFrom"> 9446 9453 <desc> 9447 9454 TODO … … 9465 9472 </method> 9466 9473 9467 <method name=" CopyTo">9474 <method name="copyTo"> 9468 9475 <desc> 9469 9476 TODO … … 9509 9516 </method> 9510 9517 9511 <method name=" DirectoryCreateTemp">9518 <method name="directoryCreateTemp"> 9512 9519 <desc> 9513 9520 TODO … … 9531 9538 </method> 9532 9539 9533 <method name=" DirectoryExists">9540 <method name="directoryExists"> 9534 9541 <desc> 9535 9542 TODO … … 9547 9554 </method> 9548 9555 9549 <method name=" DirectoryOpen">9556 <method name="directoryOpen"> 9550 9557 <desc> 9551 9558 TODO … … 9569 9576 </method> 9570 9577 9571 <method name=" DirectoryQueryInfo">9578 <method name="directoryQueryInfo"> 9572 9579 <desc> 9573 9580 TODO … … 9585 9592 </method> 9586 9593 9587 <method name=" DirectoryRemove">9594 <method name="directoryRemove"> 9588 9595 <desc> 9589 9596 TODO … … 9598 9605 </method> 9599 9606 9600 <method name=" DirectoryRemoveRecursive">9607 <method name="directoryRemoveRecursive"> 9601 9608 <desc> 9602 9609 TODO … … 9617 9624 </method> 9618 9625 9619 <method name=" DirectoryRename">9626 <method name="directoryRename"> 9620 9627 <desc> 9621 9628 TODO … … 9636 9643 </method> 9637 9644 9638 <method name=" DirectorySetACL">9645 <method name="directorySetACL"> 9639 9646 <desc> 9640 9647 TODO … … 9652 9659 </method> 9653 9660 9654 <method name=" EnvironmentClear">9661 <method name="environmentClear"> 9655 9662 <desc> 9656 9663 TODO … … 9662 9669 </method> 9663 9670 9664 <method name=" EnvironmentGet">9671 <method name="environmentGet"> 9665 9672 <desc> 9666 9673 TODO … … 9678 9685 </method> 9679 9686 9680 <method name=" EnvironmentSet">9687 <method name="environmentSet"> 9681 9688 <desc> 9682 9689 TODO … … 9694 9701 </method> 9695 9702 9696 <method name=" EnvironmentSetArray">9703 <method name="environmentUnset"> 9697 9704 <desc> 9698 9705 TODO … … 9702 9709 </result> 9703 9710 </desc> 9711 <param name="name" type="wstring" dir="in"> 9712 <desc>TODO</desc> 9713 </param> 9714 </method> 9715 9716 <method name="fileCreateTemp"> 9717 <desc> 9718 TODO 9719 9720 <result name="VBOX_E_NOT_SUPPORTED"> 9721 TODO 9722 </result> 9723 </desc> 9724 <param name="templateName" type="wstring" dir="in"> 9725 <desc>TODO</desc> 9726 </param> 9727 <param name="mode" type="unsigned long" dir="in"> 9728 <desc>TODO</desc> 9729 </param> 9730 <param name="path" type="wstring" dir="in"> 9731 <desc>TODO</desc> 9732 </param> 9733 <param name="file" type="IGuestFile" dir="return"> 9734 <desc>Optional.</desc> 9735 </param> 9736 </method> 9737 9738 <method name="fileExists"> 9739 <desc> 9740 TODO 9741 9742 <result name="VBOX_E_NOT_SUPPORTED"> 9743 TODO 9744 </result> 9745 </desc> 9746 <param name="path" type="wstring" dir="in"> 9747 <desc>TODO</desc> 9748 </param> 9749 <param name="exists" type="boolean" dir="return"> 9750 <desc>TODO</desc> 9751 </param> 9752 </method> 9753 9754 <method name="fileOpen"> 9755 <desc> 9756 TODO 9757 9758 <result name="VBOX_E_NOT_SUPPORTED"> 9759 TODO 9760 </result> 9761 </desc> 9762 <param name="path" type="wstring" dir="in"> 9763 <desc>TODO</desc> 9764 </param> 9765 <param name="openMode" type="wstring" dir="in"> 9766 <desc>TODO</desc> 9767 </param> 9768 <param name="disposition" type="wstring" dir="in"> 9769 <desc>TODO</desc> 9770 </param> 9771 <param name="creationMode" type="unsigned long" dir="in"> 9772 <desc>TODO</desc> 9773 </param> 9774 <param name="offset" type="long long" dir="in"> 9775 <desc>TODO</desc> 9776 </param> 9777 <param name="file" type="IGuestFile" dir="return"> 9778 <desc>TODO</desc> 9779 </param> 9780 </method> 9781 9782 <method name="fileQueryInfo"> 9783 <desc> 9784 TODO 9785 9786 <result name="VBOX_E_NOT_SUPPORTED"> 9787 TODO 9788 </result> 9789 </desc> 9790 <param name="path" type="wstring" dir="in"> 9791 <desc>TODO</desc> 9792 </param> 9793 <param name="info" type="IGuestFsObjInfo" dir="return"> 9794 <desc>TODO</desc> 9795 </param> 9796 </method> 9797 9798 <method name="fileQuerySize"> 9799 <desc> 9800 TODO 9801 9802 <result name="VBOX_E_NOT_SUPPORTED"> 9803 TODO 9804 </result> 9805 </desc> 9806 <param name="path" type="wstring" dir="in"> 9807 <desc>TODO</desc> 9808 </param> 9809 <param name="size" type="long long" dir="return"> 9810 <desc>TODO</desc> 9811 </param> 9812 </method> 9813 9814 <method name="fileRename"> 9815 <desc> 9816 TODO 9817 9818 <result name="VBOX_E_NOT_SUPPORTED"> 9819 TODO 9820 </result> 9821 </desc> 9822 <param name="source" type="wstring" dir="in"> 9823 <desc>TODO</desc> 9824 </param> 9825 <param name="dest" type="wstring" dir="in"> 9826 <desc>TODO</desc> 9827 </param> 9828 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes"> 9829 <desc>TODO</desc> 9830 </param> 9831 </method> 9832 9833 <method name="fileSetACL"> 9834 <desc> 9835 TODO 9836 9837 <result name="VBOX_E_NOT_SUPPORTED"> 9838 TODO 9839 </result> 9840 </desc> 9841 <param name="file" type="wstring" dir="in"> 9842 <desc>TODO</desc> 9843 </param> 9844 <param name="acl" type="wstring" dir="in"> 9845 <desc>TODO</desc> 9846 </param> 9847 </method> 9848 9849 <method name="processCreate"> 9850 <desc> 9851 TODO 9852 9853 <result name="VBOX_E_NOT_SUPPORTED"> 9854 TODO 9855 </result> 9856 </desc> 9857 <param name="command" type="wstring" dir="in"> 9858 <desc>TODO</desc> 9859 </param> 9860 <param name="arguments" type="wstring" dir="in" safearray="yes"> 9861 <desc>TODO</desc> 9862 </param> 9704 9863 <param name="environment" type="wstring" dir="in" safearray="yes"> 9705 9864 <desc>TODO</desc> 9706 9865 </param> 9866 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes"> 9867 <desc>TODO</desc> 9868 </param> 9869 <param name="timeoutMS" type="unsigned long" dir="in"> 9870 <desc>TODO</desc> 9871 </param> 9872 <param name="guestProcess" type="IGuestProcess" dir="return"> 9873 <desc>TODO</desc> 9874 </param> 9707 9875 </method> 9708 9876 9709 <method name=" EnvironmentUnset">9877 <method name="processCreateEx"> 9710 9878 <desc> 9711 9879 TODO … … 9715 9883 </result> 9716 9884 </desc> 9717 <param name=" name" type="wstring" dir="in">9885 <param name="command" type="wstring" dir="in"> 9718 9886 <desc>TODO</desc> 9719 9887 </param> 9888 <param name="arguments" type="wstring" dir="in" safearray="yes"> 9889 <desc>TODO</desc> 9890 </param> 9891 <param name="environment" type="wstring" dir="in" safearray="yes"> 9892 <desc>TODO</desc> 9893 </param> 9894 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes"> 9895 <desc>TODO</desc> 9896 </param> 9897 <param name="timeoutMS" type="unsigned long" dir="in"> 9898 <desc>TODO</desc> 9899 </param> 9900 <param name="priority" type="ProcessPriority" dir="in"> 9901 <desc>TODO</desc> 9902 </param> 9903 <param name="affinity" type="long" dir="in" safearray="yes"> 9904 <desc>TODO</desc> 9905 </param> 9906 <param name="guestProcess" type="IGuestProcess" dir="return"> 9907 <desc>TODO</desc> 9908 </param> 9720 9909 </method> 9721 9910 9722 <method name=" FileCreateTemp">9911 <method name="processGet"> 9723 9912 <desc> 9724 9913 TODO … … 9728 9917 </result> 9729 9918 </desc> 9730 <param name=" templateName" type="wstring" dir="in">9919 <param name="pid" type="unsigned long" dir="in"> 9731 9920 <desc>TODO</desc> 9732 9921 </param> 9733 <param name=" mode" type="unsigned long" dir="in">9922 <param name="guestProcess" type="IGuestProcess" dir="return"> 9734 9923 <desc>TODO</desc> 9735 9924 </param> 9925 </method> 9926 9927 <method name="symlinkCreate"> 9928 <desc> 9929 TODO 9930 9931 <result name="VBOX_E_NOT_SUPPORTED"> 9932 TODO 9933 </result> 9934 </desc> 9935 <param name="source" type="wstring" dir="in"> 9936 <desc>TODO</desc> 9937 </param> 9938 <param name="target" type="wstring" dir="in"> 9939 <desc>TODO</desc> 9940 </param> 9941 <param name="type" type="SymlinkType" dir="in"> 9942 <desc>TODO</desc> 9943 </param> 9944 </method> 9945 9946 <method name="symlinkExists"> 9947 <desc> 9948 TODO 9949 9950 <result name="VBOX_E_NOT_SUPPORTED"> 9951 TODO 9952 </result> 9953 </desc> 9954 <param name="symlink" type="wstring" dir="in"> 9955 <desc>TODO</desc> 9956 </param> 9957 <param name="exists" type="boolean" dir="return"> 9958 <desc>TODO</desc> 9959 </param> 9960 </method> 9961 9962 <method name="symlinkRead"> 9963 <desc> 9964 TODO 9965 9966 <result name="VBOX_E_NOT_SUPPORTED"> 9967 TODO 9968 </result> 9969 </desc> 9970 <param name="symlink" type="wstring" dir="in"> 9971 <desc>TODO</desc> 9972 </param> 9973 <param name="flags" type="SymlinkReadFlag" dir="in" safearray="yes"> 9974 <desc>TODO</desc> 9975 </param> 9976 <param name="target" type="wstring" dir="return"> 9977 <desc>TODO</desc> 9978 </param> 9979 </method> 9980 9981 <method name="symlinkRemoveDirectory"> 9982 <desc> 9983 TODO 9984 9985 <result name="VBOX_E_NOT_SUPPORTED"> 9986 TODO 9987 </result> 9988 </desc> 9736 9989 <param name="path" type="wstring" dir="in"> 9737 9990 <desc>TODO</desc> 9738 9991 </param> 9739 <param name="file" type="IGuestFile" dir="return">9740 <desc>Optional.</desc>9741 </param>9742 9992 </method> 9743 9993 9744 <method name=" FileExists">9994 <method name="symlinkRemoveFile"> 9745 9995 <desc> 9746 9996 TODO … … 9750 10000 </result> 9751 10001 </desc> 9752 <param name="path" type="wstring" dir="in">9753 <desc>TODO</desc>9754 </param>9755 <param name="exists" type="boolean" dir="return">9756 <desc>TODO</desc>9757 </param>9758 </method>9759 9760 <method name="FileOpen">9761 <desc>9762 TODO9763 9764 <result name="VBOX_E_NOT_SUPPORTED">9765 TODO9766 </result>9767 </desc>9768 <param name="path" type="wstring" dir="in">9769 <desc>TODO</desc>9770 </param>9771 <param name="openMode" type="wstring" dir="in">9772 <desc>TODO</desc>9773 </param>9774 <param name="disposition" type="wstring" dir="in">9775 <desc>TODO</desc>9776 </param>9777 <param name="creationMode" type="unsigned long" dir="in">9778 <desc>TODO</desc>9779 </param>9780 <param name="offset" type="long long" dir="in">9781 <desc>TODO</desc>9782 </param>9783 <param name="file" type="IGuestFile" dir="return">9784 <desc>TODO</desc>9785 </param>9786 </method>9787 9788 <method name="FileQueryInfo">9789 <desc>9790 TODO9791 9792 <result name="VBOX_E_NOT_SUPPORTED">9793 TODO9794 </result>9795 </desc>9796 <param name="path" type="wstring" dir="in">9797 <desc>TODO</desc>9798 </param>9799 <param name="info" type="IGuestFsObjInfo" dir="return">9800 <desc>TODO</desc>9801 </param>9802 </method>9803 9804 <method name="FileQuerySize">9805 <desc>9806 TODO9807 9808 <result name="VBOX_E_NOT_SUPPORTED">9809 TODO9810 </result>9811 </desc>9812 <param name="path" type="wstring" dir="in">9813 <desc>TODO</desc>9814 </param>9815 <param name="size" type="long long" dir="return">9816 <desc>TODO</desc>9817 </param>9818 </method>9819 9820 <method name="FileRename">9821 <desc>9822 TODO9823 9824 <result name="VBOX_E_NOT_SUPPORTED">9825 TODO9826 </result>9827 </desc>9828 <param name="source" type="wstring" dir="in">9829 <desc>TODO</desc>9830 </param>9831 <param name="dest" type="wstring" dir="in">9832 <desc>TODO</desc>9833 </param>9834 <param name="flags" type="PathRenameFlag" dir="in" safearray="yes">9835 <desc>TODO</desc>9836 </param>9837 </method>9838 9839 <method name="FileSetACL">9840 <desc>9841 TODO9842 9843 <result name="VBOX_E_NOT_SUPPORTED">9844 TODO9845 </result>9846 </desc>9847 10002 <param name="file" type="wstring" dir="in"> 9848 10003 <desc>TODO</desc> 9849 10004 </param> 9850 <param name="acl" type="wstring" dir="in">9851 <desc>TODO</desc>9852 </param>9853 </method>9854 9855 <method name="ProcessCreate">9856 <desc>9857 TODO9858 9859 <result name="VBOX_E_NOT_SUPPORTED">9860 TODO9861 </result>9862 </desc>9863 <param name="command" type="wstring" dir="in">9864 <desc>TODO</desc>9865 </param>9866 <param name="arguments" type="wstring" dir="in" safearray="yes">9867 <desc>TODO</desc>9868 </param>9869 <param name="environment" type="wstring" dir="in" safearray="yes">9870 <desc>TODO</desc>9871 </param>9872 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">9873 <desc>TODO</desc>9874 </param>9875 <param name="timeoutMS" type="unsigned long" dir="in">9876 <desc>TODO</desc>9877 </param>9878 <param name="guestProcess" type="IGuestProcess" dir="return">9879 <desc>TODO</desc>9880 </param>9881 </method>9882 9883 <method name="ProcessCreateEx">9884 <desc>9885 TODO9886 9887 <result name="VBOX_E_NOT_SUPPORTED">9888 TODO9889 </result>9890 </desc>9891 <param name="command" type="wstring" dir="in">9892 <desc>TODO</desc>9893 </param>9894 <param name="arguments" type="wstring" dir="in" safearray="yes">9895 <desc>TODO</desc>9896 </param>9897 <param name="environment" type="wstring" dir="in" safearray="yes">9898 <desc>TODO</desc>9899 </param>9900 <param name="flags" type="ProcessCreateFlag" dir="in" safearray="yes">9901 <desc>TODO</desc>9902 </param>9903 <param name="timeoutMS" type="unsigned long" dir="in">9904 <desc>TODO</desc>9905 </param>9906 <param name="priority" type="ProcessPriority" dir="in">9907 <desc>TODO</desc>9908 </param>9909 <param name="affinity" type="long" dir="in" safearray="yes">9910 <desc>TODO</desc>9911 </param>9912 <param name="guestProcess" type="IGuestProcess" dir="return">9913 <desc>TODO</desc>9914 </param>9915 </method>9916 9917 <method name="ProcessGet">9918 <desc>9919 TODO9920 9921 <result name="VBOX_E_NOT_SUPPORTED">9922 TODO9923 </result>9924 </desc>9925 <param name="pid" type="unsigned long" dir="in">9926 <desc>TODO</desc>9927 </param>9928 <param name="guestProcess" type="IGuestProcess" dir="return">9929 <desc>TODO</desc>9930 </param>9931 </method>9932 9933 <method name="SymlinkCreate">9934 <desc>9935 TODO9936 9937 <result name="VBOX_E_NOT_SUPPORTED">9938 TODO9939 </result>9940 </desc>9941 <param name="source" type="wstring" dir="in">9942 <desc>TODO</desc>9943 </param>9944 <param name="target" type="wstring" dir="in">9945 <desc>TODO</desc>9946 </param>9947 <param name="type" type="SymlinkType" dir="in">9948 <desc>TODO</desc>9949 </param>9950 </method>9951 9952 <method name="SymlinkExists">9953 <desc>9954 TODO9955 9956 <result name="VBOX_E_NOT_SUPPORTED">9957 TODO9958 </result>9959 </desc>9960 <param name="symlink" type="wstring" dir="in">9961 <desc>TODO</desc>9962 </param>9963 <param name="exists" type="boolean" dir="return">9964 <desc>TODO</desc>9965 </param>9966 </method>9967 9968 <method name="SymlinkRead">9969 <desc>9970 TODO9971 9972 <result name="VBOX_E_NOT_SUPPORTED">9973 TODO9974 </result>9975 </desc>9976 <param name="symlink" type="wstring" dir="in">9977 <desc>TODO</desc>9978 </param>9979 <param name="flags" type="SymlinkReadFlag" dir="in" safearray="yes">9980 <desc>TODO</desc>9981 </param>9982 <param name="target" type="wstring" dir="return">9983 <desc>TODO</desc>9984 </param>9985 </method>9986 9987 <method name="SymlinkRemoveDirectory">9988 <desc>9989 TODO9990 9991 <result name="VBOX_E_NOT_SUPPORTED">9992 TODO9993 </result>9994 </desc>9995 <param name="path" type="wstring" dir="in">9996 <desc>TODO</desc>9997 </param>9998 </method>9999 10000 <method name="SymlinkRemoveFile">10001 <desc>10002 TODO10003 10004 <result name="VBOX_E_NOT_SUPPORTED">10005 TODO10006 </result>10007 </desc>10008 <param name="file" type="wstring" dir="in">10009 <desc>TODO</desc>10010 </param>10011 10005 </method> 10012 10006 … … 10015 10009 <interface 10016 10010 name="IProcess" extends="$unknown" 10017 uuid="8 3275f41-01ee-4362-ac44-298191b5186c"10011 uuid="896df50a-c5d1-4892-8bc6-b78d0c1f4e33" 10018 10012 wsmap="managed" 10019 10013 > … … 10021 10015 TODO 10022 10016 </desc> 10023 <attribute name=" pid" type="unsigned long" readonly="yes">10017 <attribute name="PID" type="unsigned long" readonly="yes"> 10024 10018 <desc> 10025 10019 TODO … … 10078 10072 </attribute> 10079 10073 10080 <method name=" WaitFor">10074 <method name="waitFor"> 10081 10075 <desc> 10082 10076 TODO … … 10097 10091 </method> 10098 10092 10099 <method name=" WaitForArray">10100 <desc> 10101 Scriptable version of <link to="# WaitFor" />.10093 <method name="waitForArray"> 10094 <desc> 10095 Scriptable version of <link to="#waitFor" />. 10102 10096 10103 10097 <result name="VBOX_E_NOT_SUPPORTED"> … … 10116 10110 </method> 10117 10111 10118 <method name=" Read">10112 <method name="read"> 10119 10113 <desc> 10120 10114 TODO … … 10138 10132 </method> 10139 10133 10140 <method name=" Write">10134 <method name="write"> 10141 10135 <desc> 10142 10136 TODO … … 10192 10186 </method> 10193 10187 10194 <method name=" Terminate">10188 <method name="terminate"> 10195 10189 <desc> 10196 10190 TODO … … 10215 10209 <interface 10216 10210 name="IDirectory" extends="$unknown" 10217 uuid="e db0fb3b-9c74-40a6-9c54-ed7abd9d7533"10211 uuid="e55ab5e5-4feb-452b-86ed-59cff4c581a3" 10218 10212 wsmap="managed" 10219 10213 > … … 10231 10225 </attribute> 10232 10226 10233 <method name=" Read">10227 <method name="read"> 10234 10228 <desc> 10235 10229 TODO … … 10257 10251 <interface 10258 10252 name="IFile" extends="$unknown" 10259 uuid=" 3f067338-2490-47e4-ae81-45a65300f3b1"10253 uuid="2615152d-35c0-4363-8325-ab7e1f2b8b34" 10260 10254 wsmap="managed" 10261 10255 > … … 10297 10291 </attribute> 10298 10292 10299 <method name=" Close">10293 <method name="close"> 10300 10294 <desc> 10301 10295 TODO … … 10307 10301 </method> 10308 10302 10309 <method name=" QueryInfo">10303 <method name="queryInfo"> 10310 10304 <desc> 10311 10305 TODO … … 10320 10314 </method> 10321 10315 10322 <method name=" Read">10316 <method name="read"> 10323 10317 <desc> 10324 10318 TODO … … 10339 10333 </method> 10340 10334 10341 <method name=" ReadAt">10335 <method name="readAt"> 10342 10336 <desc> 10343 10337 TODO … … 10361 10355 </method> 10362 10356 10363 <method name=" Seek">10357 <method name="seek"> 10364 10358 <desc> 10365 10359 TODO … … 10377 10371 </method> 10378 10372 10379 <method name=" SetACL">10373 <method name="setACL"> 10380 10374 <desc> 10381 10375 TODO … … 10390 10384 </method> 10391 10385 10392 <method name=" Write">10386 <method name="write"> 10393 10387 <desc> 10394 10388 TODO … … 10406 10400 </method> 10407 10401 10408 <method name=" WriteAt">10402 <method name="writeAt"> 10409 10403 <desc> 10410 10404 TODO … … 10439 10433 <interface 10440 10434 name="IFsObjInfo" extends="$unknown" 10441 uuid=" fbcde6d8-69a4-41a3-950f-f98aed6ade52"10435 uuid="4925335b-9aa6-4870-bda3-8edb09fb602c" 10442 10436 wsmap="managed" 10443 10437 > … … 10502 10496 </desc> 10503 10497 </attribute> 10504 <attribute name=" gid" type="unsigned long" readonly="yes">10498 <attribute name="GID" type="unsigned long" readonly="yes"> 10505 10499 <desc> 10506 10500 TODO … … 10574 10568 </desc> 10575 10569 </attribute> 10576 <attribute name=" uid" type="unsigned long" readonly="yes">10570 <attribute name="UID" type="unsigned long" readonly="yes"> 10577 10571 <desc> 10578 10572 TODO … … 12846 12840 </attribute> 12847 12841 12848 <method name="setI Ds">12842 <method name="setIds"> 12849 12843 <desc> 12850 12844 Changes the UUID and parent UUID for a hard disk medium. … … 14935 14929 <interface 14936 14930 name="INetworkAdapter" extends="$unknown" 14937 uuid=" 8b2e705c-0547-4008-b7bc-788757346092"14931 uuid="efa0f965-63c7-4c60-afdf-b1cc9943b9c0" 14938 14932 wsmap="managed" 14939 14933 > … … 15052 15046 </attribute> 15053 15047 15054 <attribute name=" natDriver" type="INATEngine" readonly="yes">15048 <attribute name="NATEngine" type="INATEngine" readonly="yes"> 15055 15049 <desc> 15056 15050 Points to the NAT engine which handles the network address translation … … 15766 15760 <interface 15767 15761 name="IUSBController" extends="$unknown" 15768 uuid=" 6fdcccc5-abd3-4fec-9387-2ad3914fc4a8"15762 uuid="01e6f13a-0580-452f-a40f-74e32a5e4921" 15769 15763 wsmap="managed" 15770 15764 > … … 15778 15772 </attribute> 15779 15773 15780 <attribute name="enabledE hci" type="boolean">15774 <attribute name="enabledEHCI" type="boolean"> 15781 15775 <desc> 15782 15776 Flag whether the USB EHCI controller is present in the … … 18026 18020 <interface 18027 18021 name="INATEngine" extends="$unknown" 18028 uuid=" 4b286616-eb03-11de-b0fb-1701eca42246"18022 uuid="26451b99-3b2d-4dcb-8e4b-d63654218175" 18029 18023 wsmap="managed" 18030 18024 > 18031 18025 <desc>Interface for managing a NAT engine which is used with a virtual machine. This 18032 18026 allows for changing NAT behavior such as port-forwarding rules. This interface is 18033 used in the <link to="INetworkAdapter:: natDriver" /> attribute.</desc>18027 used in the <link to="INetworkAdapter::NATEngine" /> attribute.</desc> 18034 18028 <attribute name="network" type="wstring"> 18035 18029 <desc>The network attribute of the NAT engine (the same value is used with built-in … … 18041 18035 </desc> 18042 18036 </attribute> 18043 <attribute name=" tftpPrefix" type="wstring">18037 <attribute name="TFTPPrefix" type="wstring"> 18044 18038 <desc>TFTP prefix attribute which is used with the built-in DHCP server to fill 18045 18039 the corresponding fields of DHCP leases.</desc> 18046 18040 </attribute> 18047 <attribute name=" tftpBootFile" type="wstring">18041 <attribute name="TFTPBootFile" type="wstring"> 18048 18042 <desc>TFTP boot file attribute which is used with the built-in DHCP server to fill 18049 18043 the corresponding fields of DHCP leases.</desc> 18050 18044 </attribute> 18051 <attribute name=" tftpNextServer" type="wstring">18045 <attribute name="TFTPNextServer" type="wstring"> 18052 18046 <desc>TFTP server attribute which is used with the built-in DHCP server to fill 18053 18047 the corresponding fields of DHCP leases. … … 18058 18052 <desc></desc> 18059 18053 </attribute> 18060 <attribute name=" dnsPassDomain" type="boolean">18054 <attribute name="DNSPassDomain" type="boolean"> 18061 18055 <desc>Whether the DHCP server should pass the DNS domain used by the host.</desc> 18062 18056 </attribute> 18063 <attribute name=" dnsProxy" type="boolean">18057 <attribute name="DNSProxy" type="boolean"> 18064 18058 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address 18065 18059 of the DNS proxy and process traffic using DNS servers registered on the host.</desc> 18066 18060 </attribute> 18067 <attribute name=" dnsUseHostResolver" type="boolean">18061 <attribute name="DNSUseHostResolver" type="boolean"> 18068 18062 <desc>Whether the DHCP server (and the DNS traffic by NAT) should pass the address 18069 18063 of the DNS proxy and process traffic using the host resolver mechanism.</desc> … … 18111 18105 <desc>Protocol handled with the rule.</desc> 18112 18106 </param> 18113 <param name="hostI p" type="wstring" dir="in">18107 <param name="hostIP" type="wstring" dir="in"> 18114 18108 <desc>IP of the host interface to which the rule should apply. An empty ip address is 18115 18109 acceptable, in which case the NAT engine binds the handling socket to any interface.</desc> … … 18118 18112 <desc>The port number to listen on.</desc> 18119 18113 </param> 18120 <param name="guestI p" type="wstring" dir="in">18114 <param name="guestIP" type="wstring" dir="in"> 18121 18115 <desc>The IP address of the guest which the NAT engine will forward matching packets 18122 18116 to. An empty IP address is acceptable, in which case the NAT engine will forward … … 18609 18603 <enum 18610 18604 name="VBoxEventType" 18611 uuid=" b627520a-6b1a-4a9a-914d-f31434d3d10f"18605 uuid="0d67e79e-b7b1-4919-aab3-b36866075515" 18612 18606 > 18613 18607 … … 18842 18836 </desc> 18843 18837 </const> 18844 <const name="OnHostP ciDevicePlug" value="67">18845 <desc> 18846 See <link to="IHostP ciDevicePlugEvent">IHostPciDevicePlugEvent</link>.18838 <const name="OnHostPCIDevicePlug" value="67"> 18839 <desc> 18840 See <link to="IHostPCIDevicePlugEvent">IHostPCIDevicePlugEvent</link>. 18847 18841 </desc> 18848 18842 </const> … … 19656 19650 <interface 19657 19651 name="ICPUChangedEvent" extends="IEvent" 19658 uuid=" D0F0BECC-EE17-4D17-A8CC-383B0EB55E9D"19652 uuid="4da2dec7-71b2-4817-9a64-4ed12c17388e" 19659 19653 wsmap="managed" autogen="VBoxEvent" id="OnCPUChanged" 19660 19654 > … … 19662 19656 Notification when a CPU changes. 19663 19657 </desc> 19664 <attribute name=" cpu" type="unsigned long" readonly="yes">19658 <attribute name="CPU" type="unsigned long" readonly="yes"> 19665 19659 <desc> 19666 19660 The CPU which changed. … … 20113 20107 <interface 20114 20108 name="INATRedirectEvent" extends="IMachineEvent" 20115 uuid=" 57DE97D7-3CBB-42A0-888F-610D5832D16B"20109 uuid="24eef068-c380-4510-bc7c-19314a7352f1" 20116 20110 wsmap="managed" autogen="VBoxEvent" id="OnNATRedirect" 20117 20111 > … … 20139 20133 </desc> 20140 20134 </attribute> 20141 <attribute name="hostI p" type="wstring" readonly="yes">20135 <attribute name="hostIP" type="wstring" readonly="yes"> 20142 20136 <desc> 20143 20137 Host ip address to bind socket on. … … 20149 20143 </desc> 20150 20144 </attribute> 20151 <attribute name="guestI p" type="wstring" readonly="yes">20145 <attribute name="guestIP" type="wstring" readonly="yes"> 20152 20146 <desc> 20153 20147 Guest ip address to redirect to. … … 20162 20156 20163 20157 <interface 20164 name="IHostP ciDevicePlugEvent" extends="IMachineEvent"20158 name="IHostPCIDevicePlugEvent" extends="IMachineEvent" 20165 20159 waitable="yes" 20166 uuid=" 9cebfc27-c579-4965-8eb7-d31794cd7dcf"20167 wsmap="managed" autogen="VBoxEvent" id="OnHostP ciDevicePlug"20160 uuid="a0bad6df-d612-47d3-89d4-db3992533948" 20161 wsmap="managed" autogen="VBoxEvent" id="OnHostPCIDevicePlug" 20168 20162 > 20169 20163 <desc> 20170 20164 Notification when host PCI device is plugged/unplugged. Plugging 20171 20165 usually takes place on VM startup, unplug - when 20172 <link to="IMachine::detachHostP ciDevice"/> is called.20173 20174 <see><link to="IMachine::detachHostP ciDevice"/></see>20166 <link to="IMachine::detachHostPCIDevice"/> is called. 20167 20168 <see><link to="IMachine::detachHostPCIDevice"/></see> 20175 20169 20176 20170 </desc> … … 20189 20183 </attribute> 20190 20184 20191 <attribute name="attachment" type="IP ciDeviceAttachment" readonly="yes">20185 <attribute name="attachment" type="IPCIDeviceAttachment" readonly="yes"> 20192 20186 <desc> 20193 20187 Attachment info for this device. -
trunk/src/VBox/Main/include/BandwidthControlImpl.h
r41842 r42551 5 5 6 6 /* 7 * Copyright (C) 2006-20 09Oracle Corporation7 * Copyright (C) 2006-2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 25 25 namespace settings 26 26 { 27 struct I oSettings;27 struct IOSettings; 28 28 } 29 29 … … 63 63 // public internal methods 64 64 65 HRESULT loadSettings(const settings::I oSettings &data);66 HRESULT saveSettings(settings::I oSettings &data);65 HRESULT loadSettings(const settings::IOSettings &data); 66 HRESULT saveSettings(settings::IOSettings &data); 67 67 68 68 void rollback(); -
trunk/src/VBox/Main/include/BusAssignmentManager.h
r36107 r42551 7 7 8 8 /* 9 * Copyright (C) 2010 Oracle Corporation9 * Copyright (C) 2010-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 33 33 virtual ~BusAssignmentManager(); 34 34 35 HRESULT assignP ciDeviceImpl(const char* pszDevName, PCFGMNODE pCfg, PciBusAddress& GuestAddress, PciBusAddress HostAddress, bool fGuestAddressRequired = false);35 HRESULT assignPCIDeviceImpl(const char* pszDevName, PCFGMNODE pCfg, PCIBusAddress& GuestAddress, PCIBusAddress HostAddress, bool fGuestAddressRequired = false); 36 36 37 37 public: … … 40 40 virtual void Release(); 41 41 42 virtual HRESULT assignHostP ciDevice(const char* pszDevName, PCFGMNODE pCfg, PciBusAddress HostAddress, PciBusAddress& GuestAddress, bool fAddressRequired = false)42 virtual HRESULT assignHostPCIDevice(const char* pszDevName, PCFGMNODE pCfg, PCIBusAddress HostAddress, PCIBusAddress& GuestAddress, bool fAddressRequired = false) 43 43 { 44 return assignP ciDeviceImpl(pszDevName, pCfg, GuestAddress, HostAddress, fAddressRequired);44 return assignPCIDeviceImpl(pszDevName, pCfg, GuestAddress, HostAddress, fAddressRequired); 45 45 } 46 46 47 virtual HRESULT assignP ciDevice(const char* pszDevName, PCFGMNODE pCfg, PciBusAddress& Address, bool fAddressRequired = false)47 virtual HRESULT assignPCIDevice(const char* pszDevName, PCFGMNODE pCfg, PCIBusAddress& Address, bool fAddressRequired = false) 48 48 { 49 P ciBusAddress HostAddress;50 return assignP ciDeviceImpl(pszDevName, pCfg, Address, HostAddress, fAddressRequired);49 PCIBusAddress HostAddress; 50 return assignPCIDeviceImpl(pszDevName, pCfg, Address, HostAddress, fAddressRequired); 51 51 } 52 52 53 virtual HRESULT assignP ciDevice(const char* pszDevName, PCFGMNODE pCfg)53 virtual HRESULT assignPCIDevice(const char* pszDevName, PCFGMNODE pCfg) 54 54 { 55 P ciBusAddress GuestAddress;56 P ciBusAddress HostAddress;57 return assignP ciDeviceImpl(pszDevName, pCfg, GuestAddress, HostAddress, false);55 PCIBusAddress GuestAddress; 56 PCIBusAddress HostAddress; 57 return assignPCIDeviceImpl(pszDevName, pCfg, GuestAddress, HostAddress, false); 58 58 } 59 virtual bool findP ciAddress(const char* pszDevName, int iInstance, PciBusAddress& Address);60 virtual bool hasP ciDevice(const char* pszDevName, int iInstance)59 virtual bool findPCIAddress(const char* pszDevName, int iInstance, PCIBusAddress& Address); 60 virtual bool hasPCIDevice(const char* pszDevName, int iInstance) 61 61 { 62 P ciBusAddress Address;63 return findP ciAddress(pszDevName, iInstance, Address);62 PCIBusAddress Address; 63 return findPCIAddress(pszDevName, iInstance, Address); 64 64 } 65 virtual void listAttachedP ciDevices(ComSafeArrayOut(IPciDeviceAttachment*, aAttached));65 virtual void listAttachedPCIDevices(ComSafeArrayOut(IPCIDeviceAttachment*, aAttached)); 66 66 }; 67 67 -
trunk/src/VBox/Main/include/ConsoleImpl.h
r42382 r42551 130 130 STDMETHOD(COMGETTER(SharedFolders))(ComSafeArrayOut(ISharedFolder *, aSharedFolders)); 131 131 STDMETHOD(COMGETTER(EventSource)) (IEventSource ** aEventSource); 132 STDMETHOD(COMGETTER(AttachedP ciDevices))(ComSafeArrayOut(IPciDeviceAttachment *, aAttachments));132 STDMETHOD(COMGETTER(AttachedPCIDevices))(ComSafeArrayOut(IPCIDeviceAttachment *, aAttachments)); 133 133 STDMETHOD(COMGETTER(UseHostClipboard))(BOOL *aUseHostClipboard); 134 134 STDMETHOD(COMSETTER(UseHostClipboard))(BOOL aUseHostClipboard); … … 575 575 bool fForce); 576 576 577 HRESULT attachRawP ciDevices(PVM pVM, BusAssignmentManager *BusMgr, PCFGMNODE pDevices);577 HRESULT attachRawPCIDevices(PVM pVM, BusAssignmentManager *BusMgr, PCFGMNODE pDevices); 578 578 void attachStatusDriver(PCFGMNODE pCtlInst, PPDMLED *papLeds, 579 579 uint64_t uFirst, uint64_t uLast, -
trunk/src/VBox/Main/include/GuestOSTypeImpl.h
r39058 r42551 5 5 6 6 /* 7 * Copyright (C) 2006-201 0Oracle Corporation7 * Copyright (C) 2006-2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 63 63 STDMETHOD(COMGETTER(AdapterType))(NetworkAdapterType_T *aNetworkAdapterType); 64 64 STDMETHOD(COMGETTER(RecommendedFirmware))(FirmwareType_T *aFirmwareType); 65 STDMETHOD(COMGETTER(RecommendedD vdStorageBus))(StorageBus_T *aStorageBusType);66 STDMETHOD(COMGETTER(RecommendedD vdStorageController))(StorageControllerType_T *aStorageControllerType);67 STDMETHOD(COMGETTER(RecommendedH dStorageBus))(StorageBus_T *aStorageBusType);68 STDMETHOD(COMGETTER(RecommendedH dStorageController))(StorageControllerType_T *aStorageControllerType);69 STDMETHOD(COMGETTER(RecommendedP ae))(BOOL *aRecommendedExtHw);70 STDMETHOD(COMGETTER(RecommendedU sbHid))(BOOL *aRecommendedUsbHid);71 STDMETHOD(COMGETTER(RecommendedH pet))(BOOL *aRecommendedHpet);72 STDMETHOD(COMGETTER(RecommendedU sbTablet))(BOOL *aRecommendedUsbTablet);73 STDMETHOD(COMGETTER(RecommendedR tcUseUtc))(BOOL *aRecommendedRtcUseUtc);74 STDMETHOD(COMGETTER(RecommendedChipset)) 75 STDMETHOD(COMGETTER(RecommendedAudioController)) 76 STDMETHOD(COMGETTER(RecommendedFloppy)) 77 STDMETHOD(COMGETTER(RecommendedU sb)) (BOOL *aRecommendedUsb);65 STDMETHOD(COMGETTER(RecommendedDVDStorageBus))(StorageBus_T *aStorageBusType); 66 STDMETHOD(COMGETTER(RecommendedDVDStorageController))(StorageControllerType_T *aStorageControllerType); 67 STDMETHOD(COMGETTER(RecommendedHDStorageBus))(StorageBus_T *aStorageBusType); 68 STDMETHOD(COMGETTER(RecommendedHDStorageController))(StorageControllerType_T *aStorageControllerType); 69 STDMETHOD(COMGETTER(RecommendedPAE))(BOOL *aRecommendedExtHw); 70 STDMETHOD(COMGETTER(RecommendedUSBHID))(BOOL *aRecommendedUSBHID); 71 STDMETHOD(COMGETTER(RecommendedHPET))(BOOL *aRecommendedHPET); 72 STDMETHOD(COMGETTER(RecommendedUSBTablet))(BOOL *aRecommendedUSBTablet); 73 STDMETHOD(COMGETTER(RecommendedRTCUseUTC))(BOOL *aRecommendedRTCUseUTC); 74 STDMETHOD(COMGETTER(RecommendedChipset))(ChipsetType_T *aChipsetType); 75 STDMETHOD(COMGETTER(RecommendedAudioController))(AudioControllerType_T *aAudioController); 76 STDMETHOD(COMGETTER(RecommendedFloppy))(BOOL *aRecommendedFloppy); 77 STDMETHOD(COMGETTER(RecommendedUSB))(BOOL *aRecommendedUSB); 78 78 79 79 // public methods only for internal purposes … … 100 100 const NetworkAdapterType_T mNetworkAdapterType; 101 101 const uint32_t mNumSerialEnabled; 102 const StorageControllerType_T mD vdStorageControllerType;103 const StorageBus_T mD vdStorageBusType;104 const StorageControllerType_T mH dStorageControllerType;105 const StorageBus_T mH dStorageBusType;102 const StorageControllerType_T mDVDStorageControllerType; 103 const StorageBus_T mDVDStorageBusType; 104 const StorageControllerType_T mHDStorageControllerType; 105 const StorageBus_T mHDStorageBusType; 106 106 const ChipsetType_T mChipsetType; 107 107 const AudioControllerType_T mAudioControllerType; -
trunk/src/VBox/Main/include/GuestProcessImpl.h
r42525 r42551 58 58 STDMETHOD(COMGETTER(ExitCode))(LONG *aExitCode); 59 59 STDMETHOD(COMGETTER(Name))(BSTR *aName); 60 STDMETHOD(COMGETTER(P id))(ULONG *aPID);60 STDMETHOD(COMGETTER(PID))(ULONG *aPID); 61 61 STDMETHOD(COMGETTER(Status))(ProcessStatus_T *aStatus); 62 62 -
trunk/src/VBox/Main/include/GuestSessionImpl.h
r42546 r42551 63 63 STDMETHOD(COMSETTER(Timeout))(ULONG aTimeout); 64 64 STDMETHOD(COMGETTER(Environment))(ComSafeArrayOut(BSTR, aEnvironment)); 65 STDMETHOD(COMSETTER(Environment))(ComSafeArrayIn(IN_BSTR, aEnvironment)); 65 66 STDMETHOD(COMGETTER(Processes))(ComSafeArrayOut(IGuestProcess *, aProcesses)); 66 67 STDMETHOD(COMGETTER(Directories))(ComSafeArrayOut(IGuestDirectory *, aDirectories)); … … 85 86 STDMETHOD(EnvironmentGet)(IN_BSTR aName, BSTR *aValue); 86 87 STDMETHOD(EnvironmentSet)(IN_BSTR aName, IN_BSTR aValue); 87 STDMETHOD(EnvironmentSetArray)(ComSafeArrayIn(IN_BSTR, aValues));88 88 STDMETHOD(EnvironmentUnset)(IN_BSTR aName); 89 89 STDMETHOD(FileCreateTemp)(IN_BSTR aTemplate, ULONG aMode, IN_BSTR aName, IGuestFile **aFile); -
trunk/src/VBox/Main/include/HostNetworkInterfaceImpl.h
r40078 r42551 7 7 8 8 /* 9 * Copyright (C) 2006-20 09Oracle Corporation9 * Copyright (C) 2006-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 38 38 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(HostNetworkInterface, IHostNetworkInterface) 39 39 40 DECLARE_NOT_AGGREGATABLE 40 DECLARE_NOT_AGGREGATABLE(HostNetworkInterface) 41 41 42 42 DECLARE_PROTECT_FINAL_CONSTRUCT() 43 43 44 BEGIN_COM_MAP 44 BEGIN_COM_MAP(HostNetworkInterface) 45 45 VBOX_DEFAULT_INTERFACE_ENTRIES(IHostNetworkInterface) 46 46 END_COM_MAP() 47 47 48 DECLARE_EMPTY_CTOR_DTOR 48 DECLARE_EMPTY_CTOR_DTOR(HostNetworkInterface) 49 49 50 50 HRESULT FinalConstruct(); … … 52 52 53 53 // public initializer/uninitializer for internal purposes only 54 HRESULT init 54 HRESULT init(Bstr interfaceName, Bstr shortName, Guid guid, HostNetworkInterfaceType_T ifType); 55 55 #ifdef VBOX_WITH_HOSTNETIF_API 56 HRESULT init 57 HRESULT updateConfig 56 HRESULT init(Bstr aInterfaceName, HostNetworkInterfaceType_T ifType, struct NETIFINFO *pIfs); 57 HRESULT updateConfig(); 58 58 #endif 59 59 60 60 // IHostNetworkInterface properties 61 STDMETHOD(COMGETTER(Name)) 62 STDMETHOD(COMGETTER(Id)) 63 STDMETHOD(COMGETTER(D hcpEnabled)) (BOOL *aDhcpEnabled);64 STDMETHOD(COMGETTER(IPAddress)) 65 STDMETHOD(COMGETTER(NetworkMask)) 66 STDMETHOD(COMGETTER(IPV6Supported)) 67 STDMETHOD(COMGETTER(IPV6Address)) 68 STDMETHOD(COMGETTER(IPV6NetworkMaskPrefixLength)) 69 STDMETHOD(COMGETTER(HardwareAddress)) 70 STDMETHOD(COMGETTER(MediumType)) 71 STDMETHOD(COMGETTER(Status)) 72 STDMETHOD(COMGETTER(InterfaceType)) 73 STDMETHOD(COMGETTER(NetworkName)) 61 STDMETHOD(COMGETTER(Name))(BSTR *aInterfaceName); 62 STDMETHOD(COMGETTER(Id))(BSTR *aGuid); 63 STDMETHOD(COMGETTER(DHCPEnabled))(BOOL *aDHCPEnabled); 64 STDMETHOD(COMGETTER(IPAddress))(BSTR *aIPAddress); 65 STDMETHOD(COMGETTER(NetworkMask))(BSTR *aNetworkMask); 66 STDMETHOD(COMGETTER(IPV6Supported))(BOOL *aIPV6Supported); 67 STDMETHOD(COMGETTER(IPV6Address))(BSTR *aIPV6Address); 68 STDMETHOD(COMGETTER(IPV6NetworkMaskPrefixLength))(ULONG *aIPV6NetworkMaskPrefixLength); 69 STDMETHOD(COMGETTER(HardwareAddress))(BSTR *aHardwareAddress); 70 STDMETHOD(COMGETTER(MediumType))(HostNetworkInterfaceMediumType_T *aType); 71 STDMETHOD(COMGETTER(Status))(HostNetworkInterfaceStatus_T *aStatus); 72 STDMETHOD(COMGETTER(InterfaceType))(HostNetworkInterfaceType_T *aType); 73 STDMETHOD(COMGETTER(NetworkName))(BSTR *aNetworkName); 74 74 75 STDMETHOD(EnableStaticI pConfig)(IN_BSTR aIPAddress, IN_BSTR aNetworkMask);76 STDMETHOD(EnableStaticI pConfigV6)(IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength);77 STDMETHOD(EnableDynamicI pConfig)();78 STDMETHOD(D hcpRediscover)();75 STDMETHOD(EnableStaticIPConfig)(IN_BSTR aIPAddress, IN_BSTR aNetworkMask); 76 STDMETHOD(EnableStaticIPConfigV6)(IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength); 77 STDMETHOD(EnableDynamicIPConfig)(); 78 STDMETHOD(DHCPRediscover)(); 79 79 80 80 HRESULT setVirtualBox(VirtualBox *pVBox); … … 92 92 struct Data 93 93 { 94 Data() : IPAddress (0), networkMask(0), dhcpEnabled(FALSE),95 mediumType 94 Data() : IPAddress(0), networkMask(0), dhcpEnabled(FALSE), 95 mediumType(HostNetworkInterfaceMediumType_Unknown), 96 96 status(HostNetworkInterfaceStatus_Down){} 97 97 -
trunk/src/VBox/Main/include/MachineImpl.h
r42538 r42551 24 24 #include "VRDEServerImpl.h" 25 25 #include "MediumAttachmentImpl.h" 26 #include "P ciDeviceAttachmentImpl.h"26 #include "PCIDeviceAttachmentImpl.h" 27 27 #include "MediumLock.h" 28 28 #include "NetworkAdapterImpl.h" … … 139 139 * process created by launchVMProcess()) 140 140 */ 141 RTPROCESS mP id;141 RTPROCESS mPID; 142 142 143 143 /** Current session state */ … … 272 272 ULONG mCpuExecutionCap; 273 273 BOOL mAccelerate3DEnabled; 274 BOOL mH petEnabled;274 BOOL mHPETEnabled; 275 275 276 276 BOOL mCPUAttached[SchemaDefs::MaxCPUCount]; … … 292 292 293 293 FirmwareType_T mFirmwareType; 294 KeyboardH idType_T mKeyboardHidType;295 PointingH idType_T mPointingHidType;294 KeyboardHIDType_T mKeyboardHIDType; 295 PointingHIDType_T mPointingHIDType; 296 296 ChipsetType_T mChipsetType; 297 297 BOOL mEmulatedUSBCardReaderEnabled; 298 298 299 BOOL mI oCacheEnabled;300 ULONG mI oCacheSize;301 302 typedef std::list<ComObjPtr<P ciDeviceAttachment> > PciDeviceAssignmentList;303 P ciDeviceAssignmentList mPciDeviceAssignments;299 BOOL mIOCacheEnabled; 300 ULONG mIOCacheSize; 301 302 typedef std::list<ComObjPtr<PCIDeviceAttachment> > PCIDeviceAssignmentList; 303 PCIDeviceAssignmentList mPCIDeviceAssignments; 304 304 305 305 settings::Debugging mDebugging; … … 406 406 STDMETHOD(COMGETTER(EmulatedUSBWebcameraEnabled))(BOOL *enabled); 407 407 STDMETHOD(COMSETTER(EmulatedUSBWebcameraEnabled))(BOOL enabled); 408 STDMETHOD(COMGETTER(H petEnabled))(BOOL *enabled);409 STDMETHOD(COMSETTER(H petEnabled))(BOOL enabled);408 STDMETHOD(COMGETTER(HPETEnabled))(BOOL *enabled); 409 STDMETHOD(COMSETTER(HPETEnabled))(BOOL enabled); 410 410 STDMETHOD(COMGETTER(MemoryBalloonSize))(ULONG *memoryBalloonSize); 411 411 STDMETHOD(COMSETTER(MemoryBalloonSize))(ULONG memoryBalloonSize); … … 431 431 STDMETHOD(COMGETTER(SessionState))(SessionState_T *aSessionState); 432 432 STDMETHOD(COMGETTER(SessionType))(BSTR *aSessionType); 433 STDMETHOD(COMGETTER(SessionP id))(ULONG *aSessionPid);433 STDMETHOD(COMGETTER(SessionPID))(ULONG *aSessionPID); 434 434 STDMETHOD(COMGETTER(State))(MachineState_T *machineState); 435 435 STDMETHOD(COMGETTER(LastStateChange))(LONG64 *aLastStateChange); … … 467 467 STDMETHOD(COMGETTER(RTCUseUTC))(BOOL *aEnabled); 468 468 STDMETHOD(COMSETTER(RTCUseUTC))(BOOL aEnabled); 469 STDMETHOD(COMGETTER(FirmwareType)) 470 STDMETHOD(COMSETTER(FirmwareType)) 471 STDMETHOD(COMGETTER(KeyboardH idType)) (KeyboardHidType_T *aKeyboardHidType);472 STDMETHOD(COMSETTER(KeyboardH idType)) (KeyboardHidType_T aKeyboardHidType);473 STDMETHOD(COMGETTER(PointingH idType)) (PointingHidType_T *aPointingHidType);474 STDMETHOD(COMSETTER(PointingH idType)) (PointingHidType_T aPointingHidType);475 STDMETHOD(COMGETTER(ChipsetType)) 476 STDMETHOD(COMSETTER(ChipsetType)) 477 STDMETHOD(COMGETTER(I oCacheEnabled))(BOOL *aEnabled);478 STDMETHOD(COMSETTER(I oCacheEnabled))(BOOL aEnabled);479 STDMETHOD(COMGETTER(I oCacheSize)) (ULONG *aIoCacheSize);480 STDMETHOD(COMSETTER(I oCacheSize)) (ULONG aIoCacheSize);481 STDMETHOD(COMGETTER(P ciDeviceAssignments))(ComSafeArrayOut(IPciDeviceAttachment *, aAssignments));469 STDMETHOD(COMGETTER(FirmwareType))(FirmwareType_T *aFirmware); 470 STDMETHOD(COMSETTER(FirmwareType))(FirmwareType_T aFirmware); 471 STDMETHOD(COMGETTER(KeyboardHIDType))(KeyboardHIDType_T *aKeyboardHIDType); 472 STDMETHOD(COMSETTER(KeyboardHIDType))(KeyboardHIDType_T aKeyboardHIDType); 473 STDMETHOD(COMGETTER(PointingHIDType))(PointingHIDType_T *aPointingHIDType); 474 STDMETHOD(COMSETTER(PointingHIDType))(PointingHIDType_T aPointingHIDType); 475 STDMETHOD(COMGETTER(ChipsetType))(ChipsetType_T *aChipsetType); 476 STDMETHOD(COMSETTER(ChipsetType))(ChipsetType_T aChipsetType); 477 STDMETHOD(COMGETTER(IOCacheEnabled))(BOOL *aEnabled); 478 STDMETHOD(COMSETTER(IOCacheEnabled))(BOOL aEnabled); 479 STDMETHOD(COMGETTER(IOCacheSize))(ULONG *aIOCacheSize); 480 STDMETHOD(COMSETTER(IOCacheSize))(ULONG aIOCacheSize); 481 STDMETHOD(COMGETTER(PCIDeviceAssignments))(ComSafeArrayOut(IPCIDeviceAttachment *, aAssignments)); 482 482 STDMETHOD(COMGETTER(BandwidthControl))(IBandwidthControl **aBandwidthControl); 483 483 STDMETHOD(COMGETTER(TracingEnabled))(BOOL *pfEnabled); … … 568 568 STDMETHOD(QueryLogFilename(ULONG aIdx, BSTR *aName)); 569 569 STDMETHOD(ReadLog(ULONG aIdx, LONG64 aOffset, LONG64 aSize, ComSafeArrayOut(BYTE, aData))); 570 STDMETHOD(AttachHostP ciDevice(LONG hostAddress, LONG desiredGuestAddress, BOOL tryToUnbind));571 STDMETHOD(DetachHostP ciDevice(LONG hostAddress));570 STDMETHOD(AttachHostPCIDevice(LONG hostAddress, LONG desiredGuestAddress, BOOL tryToUnbind)); 571 STDMETHOD(DetachHostPCIDevice(LONG hostAddress)); 572 572 STDMETHOD(CloneTo(IMachine *pTarget, CloneMode_T mode, ComSafeArrayIn(CloneOptions_T, options), IProgress **pProgress)); 573 573 // public methods only for internal purposes -
trunk/src/VBox/Main/include/MediumImpl.h
r42538 r42551 127 127 128 128 // IMedium methods 129 STDMETHOD(SetI Ds)(BOOL aSetImageId, IN_BSTR aImageId,129 STDMETHOD(SetIds)(BOOL aSetImageId, IN_BSTR aImageId, 130 130 BOOL aSetParentId, IN_BSTR aParentId); 131 131 STDMETHOD(RefreshState)(MediumState_T *aState); -
trunk/src/VBox/Main/include/NATEngineImpl.h
r35638 r42551 7 7 8 8 /* 9 * Copyright (C) 2006-20 09Oracle Corporation9 * Copyright (C) 2006-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 18 18 */ 19 19 20 #ifndef ____H_NAT DRIVER21 #define ____H_NAT DRIVER20 #ifndef ____H_NATENGINE 21 #define ____H_NATENGINE 22 22 23 23 … … 43 43 mTcpRcv(0), 44 44 mTcpSnd(0), 45 mD nsPassDomain(TRUE),46 mD nsProxy(FALSE),47 mD nsUseHostResolver(FALSE),45 mDNSPassDomain(TRUE), 46 mDNSProxy(FALSE), 47 mDNSUseHostResolver(FALSE), 48 48 mAliasMode(0) 49 49 {} … … 57 57 uint32_t mTcpSnd; 58 58 /* TFTP service */ 59 Utf8Str mT ftpPrefix;60 Utf8Str mT ftpBootFile;61 Utf8Str mT ftpNextServer;59 Utf8Str mTFTPPrefix; 60 Utf8Str mTFTPBootFile; 61 Utf8Str mTFTPNextServer; 62 62 /* DNS service */ 63 BOOL mD nsPassDomain;64 BOOL mD nsProxy;65 BOOL mD nsUseHostResolver;63 BOOL mDNSPassDomain; 64 BOOL mDNSProxy; 65 BOOL mDNSUseHostResolver; 66 66 /* Alias service */ 67 67 ULONG mAliasMode; … … 74 74 75 75 BEGIN_COM_MAP(NATEngine) 76 VBOX_DEFAULT_INTERFACE_ENTRIES 76 VBOX_DEFAULT_INTERFACE_ENTRIES(INATEngine) 77 77 END_COM_MAP() 78 78 79 DECLARE_EMPTY_CTOR_DTOR 79 DECLARE_EMPTY_CTOR_DTOR(NATEngine) 80 80 81 81 HRESULT FinalConstruct(); … … 93 93 HRESULT saveSettings(settings::NAT &data); 94 94 95 STDMETHOD(COMSETTER(Network)) 96 STDMETHOD(COMGETTER(Network)) 97 STDMETHOD(COMSETTER(HostIP)) 98 STDMETHOD(COMGETTER(HostIP)) 95 STDMETHOD(COMSETTER(Network))(IN_BSTR aNetwork); 96 STDMETHOD(COMGETTER(Network))(BSTR *aNetwork); 97 STDMETHOD(COMSETTER(HostIP))(IN_BSTR aBindIP); 98 STDMETHOD(COMGETTER(HostIP))(BSTR *aBindIP); 99 99 /* TFTP attributes */ 100 STDMETHOD(COMSETTER(T ftpPrefix)) (IN_BSTR aTftpPrefix);101 STDMETHOD(COMGETTER(T ftpPrefix)) (BSTR *aTftpPrefix);102 STDMETHOD(COMSETTER(T ftpBootFile)) (IN_BSTR aTftpBootFile);103 STDMETHOD(COMGETTER(T ftpBootFile)) (BSTR *aTftpBootFile);104 STDMETHOD(COMSETTER(T ftpNextServer)) (IN_BSTR aTftpNextServer);105 STDMETHOD(COMGETTER(T ftpNextServer)) (BSTR *aTftpNextServer);100 STDMETHOD(COMSETTER(TFTPPrefix))(IN_BSTR aTFTPPrefix); 101 STDMETHOD(COMGETTER(TFTPPrefix))(BSTR *aTFTPPrefix); 102 STDMETHOD(COMSETTER(TFTPBootFile))(IN_BSTR aTFTPBootFile); 103 STDMETHOD(COMGETTER(TFTPBootFile))(BSTR *aTFTPBootFile); 104 STDMETHOD(COMSETTER(TFTPNextServer))(IN_BSTR aTFTPNextServer); 105 STDMETHOD(COMGETTER(TFTPNextServer))(BSTR *aTFTPNextServer); 106 106 /* Alias attributes */ 107 STDMETHOD(COMSETTER(AliasMode)) 108 STDMETHOD(COMGETTER(AliasMode)) 107 STDMETHOD(COMSETTER(AliasMode))(ULONG aAliasLog); 108 STDMETHOD(COMGETTER(AliasMode))(ULONG *aAliasLog); 109 109 /* DNS attributes */ 110 STDMETHOD(COMSETTER(D nsPassDomain)) (BOOL aDnsPassDomain);111 STDMETHOD(COMGETTER(D nsPassDomain)) (BOOL *aDnsPassDomain);112 STDMETHOD(COMSETTER(D nsProxy)) (BOOL aDnsProxy);113 STDMETHOD(COMGETTER(D nsProxy)) (BOOL *aDnsProxy);114 STDMETHOD(COMGETTER(D nsUseHostResolver)) (BOOL *aDnsUseHostResolver);115 STDMETHOD(COMSETTER(D nsUseHostResolver)) (BOOL aDnsUseHostResolver);110 STDMETHOD(COMSETTER(DNSPassDomain))(BOOL aDNSPassDomain); 111 STDMETHOD(COMGETTER(DNSPassDomain))(BOOL *aDNSPassDomain); 112 STDMETHOD(COMSETTER(DNSProxy))(BOOL aDNSProxy); 113 STDMETHOD(COMGETTER(DNSProxy))(BOOL *aDNSProxy); 114 STDMETHOD(COMGETTER(DNSUseHostResolver))(BOOL *aDNSUseHostResolver); 115 STDMETHOD(COMSETTER(DNSUseHostResolver))(BOOL aDNSUseHostResolver); 116 116 117 117 STDMETHOD(SetNetworkSettings)(ULONG aMtu, ULONG aSockSnd, ULONG aSockRcv, ULONG aTcpWndSnd, ULONG aTcpWndRcv); 118 118 STDMETHOD(GetNetworkSettings)(ULONG *aMtu, ULONG *aSockSnd, ULONG *aSockRcv, ULONG *aTcpWndSnd, ULONG *aTcpWndRcv); 119 119 120 STDMETHOD(COMGETTER(Redirects)) (ComSafeArrayOut(BSTR, aNatRules));120 STDMETHOD(COMGETTER(Redirects))(ComSafeArrayOut(BSTR, aNatRules)); 121 121 STDMETHOD(AddRedirect)(IN_BSTR aName, NATProtocol_T aProto, IN_BSTR aBindIp, USHORT aHostPort, IN_BSTR aGuestIP, USHORT aGuestPort); 122 122 STDMETHOD(RemoveRedirect)(IN_BSTR aName); -
trunk/src/VBox/Main/include/NetworkAdapterImpl.h
r40491 r42551 7 7 8 8 /* 9 * Copyright (C) 2006-201 1Oracle Corporation9 * Copyright (C) 2006-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 124 124 STDMETHOD(COMGETTER(TraceFile))(BSTR *aTraceFile); 125 125 STDMETHOD(COMSETTER(TraceFile))(IN_BSTR aTraceFile); 126 STDMETHOD(COMGETTER(N atDriver))(INATEngine **aNatDriver);126 STDMETHOD(COMGETTER(NATEngine))(INATEngine **aNATEngine); 127 127 STDMETHOD(COMGETTER(BootPriority))(ULONG *aBootPriority); 128 128 STDMETHOD(COMSETTER(BootPriority))(ULONG aBootPriority); -
trunk/src/VBox/Main/include/PCIDeviceAttachmentImpl.h
r42493 r42551 7 7 8 8 /* 9 * Copyright (C) 2010 Oracle Corporation9 * Copyright (C) 2010-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 24 24 #include <VBox/settings.h> 25 25 26 class ATL_NO_VTABLE P ciAddress :26 class ATL_NO_VTABLE PCIAddress : 27 27 public VirtualBoxBase, 28 VBOX_SCRIPTABLE_IMPL(IP ciAddress)28 VBOX_SCRIPTABLE_IMPL(IPCIAddress) 29 29 { 30 30 public: 31 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(P ciAddress, IPciAddress)31 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(PCIAddress, IPCIAddress) 32 32 33 DECLARE_NOT_AGGREGATABLE(P ciAddress)33 DECLARE_NOT_AGGREGATABLE(PCIAddress) 34 34 35 35 DECLARE_PROTECT_FINAL_CONSTRUCT() 36 36 37 BEGIN_COM_MAP(P ciAddress)38 VBOX_DEFAULT_INTERFACE_ENTRIES(IP ciAddress)37 BEGIN_COM_MAP(PCIAddress) 38 VBOX_DEFAULT_INTERFACE_ENTRIES(IPCIAddress) 39 39 END_COM_MAP() 40 40 41 P ciAddress() { }42 ~P ciAddress() { }41 PCIAddress() { } 42 ~PCIAddress() { } 43 43 44 44 // public initializer/uninitializer for internal purposes only … … 49 49 void FinalRelease(); 50 50 51 // IP ciAddress properties51 // IPCIAddress properties 52 52 STDMETHOD(COMGETTER(Bus))(SHORT *aBus) 53 53 { … … 86 86 }; 87 87 88 class ATL_NO_VTABLE P ciDeviceAttachment :88 class ATL_NO_VTABLE PCIDeviceAttachment : 89 89 public VirtualBoxBase, 90 VBOX_SCRIPTABLE_IMPL(IP ciDeviceAttachment)90 VBOX_SCRIPTABLE_IMPL(IPCIDeviceAttachment) 91 91 { 92 92 public: 93 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(P ciDeviceAttachment, IPciDeviceAttachment)93 VIRTUALBOXBASE_ADD_ERRORINFO_SUPPORT(PCIDeviceAttachment, IPCIDeviceAttachment) 94 94 95 DECLARE_NOT_AGGREGATABLE(P ciDeviceAttachment)95 DECLARE_NOT_AGGREGATABLE(PCIDeviceAttachment) 96 96 97 97 DECLARE_PROTECT_FINAL_CONSTRUCT() 98 98 99 BEGIN_COM_MAP(P ciDeviceAttachment)100 VBOX_DEFAULT_INTERFACE_ENTRIES(IP ciDeviceAttachment)99 BEGIN_COM_MAP(PCIDeviceAttachment) 100 VBOX_DEFAULT_INTERFACE_ENTRIES(IPCIDeviceAttachment) 101 101 END_COM_MAP() 102 102 103 P ciDeviceAttachment() { }104 ~P ciDeviceAttachment() { }103 PCIDeviceAttachment() { } 104 ~PCIDeviceAttachment() { } 105 105 106 106 // public initializer/uninitializer for internal purposes only … … 115 115 // settings 116 116 HRESULT loadSettings(IMachine * aParent, 117 const settings::HostP ciDeviceAttachment& aHpda);118 HRESULT saveSettings(settings::HostP ciDeviceAttachment &data);117 const settings::HostPCIDeviceAttachment& aHpda); 118 HRESULT saveSettings(settings::HostPCIDeviceAttachment &data); 119 119 120 120 HRESULT FinalConstruct(); 121 121 void FinalRelease(); 122 122 123 // IP ciDeviceAttachment properties123 // IPCIDeviceAttachment properties 124 124 STDMETHOD(COMGETTER(Name))(BSTR * aName); 125 125 STDMETHOD(COMGETTER(IsPhysicalDevice))(BOOL * aPhysical); -
trunk/src/VBox/Main/include/PCIRawDevImpl.h
r42497 r42551 5 5 6 6 /* 7 * Copyright (C) 2010-201 1Oracle Corporation7 * Copyright (C) 2010-2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 25 25 struct DRVMAINPCIRAWDEV; 26 26 27 class P ciRawDev27 class PCIRawDev 28 28 { 29 29 public: 30 P ciRawDev(Console *console);31 virtual ~P ciRawDev();30 PCIRawDev(Console *console); 31 virtual ~PCIRawDev(); 32 32 33 33 static const PDMDRVREG DrvReg; … … 45 45 static DECLCALLBACK(void) drvReset(PPDMDRVINS pDrvIns); 46 46 static DECLCALLBACK(int) drvDeviceConstructComplete(PPDMIPCIRAWCONNECTOR pInterface, const char *pcszName, 47 uint32_t uHostP ciAddress, uint32_t uGuestPciAddress,47 uint32_t uHostPCIAddress, uint32_t uGuestPCIAddress, 48 48 int rc); 49 49 -
trunk/src/VBox/Main/include/USBControllerImpl.h
r41520 r42551 60 60 STDMETHOD(COMGETTER(Enabled))(BOOL *aEnabled); 61 61 STDMETHOD(COMSETTER(Enabled))(BOOL aEnabled); 62 STDMETHOD(COMGETTER(EnabledE hci))(BOOL *aEnabled);63 STDMETHOD(COMSETTER(EnabledE hci))(BOOL aEnabled);62 STDMETHOD(COMGETTER(EnabledEHCI))(BOOL *aEnabled); 63 STDMETHOD(COMSETTER(EnabledEHCI))(BOOL aEnabled); 64 64 STDMETHOD(COMGETTER(ProxyAvailable))(BOOL *aEnabled); 65 65 STDMETHOD(COMGETTER(USBStandard))(USHORT *aUSBStandard); -
trunk/src/VBox/Main/src-all/PCIDeviceAttachmentImpl.cpp
r42493 r42551 7 7 8 8 /* 9 * Copyright (C) 2010 Oracle Corporation9 * Copyright (C) 2010-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 18 18 */ 19 19 20 #include "P ciDeviceAttachmentImpl.h"20 #include "PCIDeviceAttachmentImpl.h" 21 21 #include "AutoCaller.h" 22 22 #include "Global.h" 23 23 #include "Logging.h" 24 24 25 struct P ciDeviceAttachment::Data25 struct PCIDeviceAttachment::Data 26 26 { 27 27 Data(const Bstr &aDevName, … … 44 44 ///////////////////////////////////////////////////////////////////////////// 45 45 46 HRESULT P ciDeviceAttachment::FinalConstruct()46 HRESULT PCIDeviceAttachment::FinalConstruct() 47 47 { 48 48 LogFlowThisFunc(("\n")); … … 50 50 } 51 51 52 void P ciDeviceAttachment::FinalRelease()52 void PCIDeviceAttachment::FinalRelease() 53 53 { 54 54 LogFlowThisFunc(("\n")); … … 59 59 // public initializer/uninitializer for internal purposes only 60 60 ///////////////////////////////////////////////////////////////////////////// 61 HRESULT P ciDeviceAttachment::init(IMachine *aParent,61 HRESULT PCIDeviceAttachment::init(IMachine *aParent, 62 62 const Bstr &aDevName, 63 63 LONG aHostAddress, … … 71 71 } 72 72 73 HRESULT P ciDeviceAttachment::loadSettings(IMachine *aParent,74 const settings::HostP ciDeviceAttachment &hpda)73 HRESULT PCIDeviceAttachment::loadSettings(IMachine *aParent, 74 const settings::HostPCIDeviceAttachment &hpda) 75 75 { 76 76 Bstr bname(hpda.strDeviceName); … … 79 79 80 80 81 HRESULT P ciDeviceAttachment::saveSettings(settings::HostPciDeviceAttachment &data)81 HRESULT PCIDeviceAttachment::saveSettings(settings::HostPCIDeviceAttachment &data) 82 82 { 83 83 Assert(m); … … 93 93 * Called from FinalRelease(). 94 94 */ 95 void P ciDeviceAttachment::uninit()95 void PCIDeviceAttachment::uninit() 96 96 { 97 97 if (m) … … 102 102 } 103 103 104 // IP ciDeviceAttachment properties104 // IPCIDeviceAttachment properties 105 105 ///////////////////////////////////////////////////////////////////////////// 106 106 107 STDMETHODIMP P ciDeviceAttachment::COMGETTER(Name)(BSTR * aName)107 STDMETHODIMP PCIDeviceAttachment::COMGETTER(Name)(BSTR * aName) 108 108 { 109 109 CheckComArgOutPointerValid(aName); … … 112 112 } 113 113 114 STDMETHODIMP P ciDeviceAttachment::COMGETTER(IsPhysicalDevice)(BOOL * aPhysical)114 STDMETHODIMP PCIDeviceAttachment::COMGETTER(IsPhysicalDevice)(BOOL * aPhysical) 115 115 { 116 116 CheckComArgOutPointerValid(aPhysical); … … 119 119 } 120 120 121 STDMETHODIMP P ciDeviceAttachment::COMGETTER(HostAddress)(LONG * aHostAddress)121 STDMETHODIMP PCIDeviceAttachment::COMGETTER(HostAddress)(LONG * aHostAddress) 122 122 { 123 123 *aHostAddress = m->HostAddress; … … 125 125 } 126 126 127 STDMETHODIMP P ciDeviceAttachment::COMGETTER(GuestAddress)(LONG * aGuestAddress)127 STDMETHODIMP PCIDeviceAttachment::COMGETTER(GuestAddress)(LONG * aGuestAddress) 128 128 { 129 129 *aGuestAddress = m->GuestAddress; … … 132 132 133 133 #ifdef VBOX_WITH_XPCOM 134 NS_DECL_CLASSINFO(P ciDeviceAttachment)135 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(P ciDeviceAttachment, IPciDeviceAttachment)134 NS_DECL_CLASSINFO(PCIDeviceAttachment) 135 NS_IMPL_THREADSAFE_ISUPPORTS1_CI(PCIDeviceAttachment, IPCIDeviceAttachment) 136 136 #endif -
trunk/src/VBox/Main/src-client/BusAssignmentManager.cpp
r37423 r42551 7 7 8 8 /* 9 * Copyright (C) 2010 Oracle Corporation9 * Copyright (C) 2010-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 26 26 27 27 28 #include "P ciDeviceAttachmentImpl.h"28 #include "PCIDeviceAttachmentImpl.h" 29 29 30 30 #include <map> … … 217 217 struct BusAssignmentManager::State 218 218 { 219 struct P ciDeviceRecord219 struct PCIDeviceRecord 220 220 { 221 221 char szDevName[32]; 222 P ciBusAddress HostAddress;223 224 P ciDeviceRecord(const char* pszName, PciBusAddress aHostAddress)222 PCIBusAddress HostAddress; 223 224 PCIDeviceRecord(const char* pszName, PCIBusAddress aHostAddress) 225 225 { 226 226 RTStrCopy(this->szDevName, sizeof(szDevName), pszName); … … 228 228 } 229 229 230 P ciDeviceRecord(const char* pszName)230 PCIDeviceRecord(const char* pszName) 231 231 { 232 232 RTStrCopy(this->szDevName, sizeof(szDevName), pszName); 233 233 } 234 234 235 bool operator<(const P ciDeviceRecord &a) const235 bool operator<(const PCIDeviceRecord &a) const 236 236 { 237 237 return RTStrNCmp(szDevName, a.szDevName, sizeof(szDevName)) < 0; 238 238 } 239 239 240 bool operator==(const P ciDeviceRecord &a) const240 bool operator==(const PCIDeviceRecord &a) const 241 241 { 242 242 return RTStrNCmp(szDevName, a.szDevName, sizeof(szDevName)) == 0; … … 244 244 }; 245 245 246 typedef std::map <P ciBusAddress,PciDeviceRecord > PciMap;247 typedef std::vector<P ciBusAddress> PciAddrList;248 typedef std::vector<const DeviceAssignmentRule*> P ciRulesList;249 typedef std::map <P ciDeviceRecord,PciAddrList > ReversePciMap;246 typedef std::map <PCIBusAddress,PCIDeviceRecord > PCIMap; 247 typedef std::vector<PCIBusAddress> PCIAddrList; 248 typedef std::vector<const DeviceAssignmentRule*> PCIRulesList; 249 typedef std::map <PCIDeviceRecord,PCIAddrList > ReversePCIMap; 250 250 251 251 volatile int32_t cRefCnt; 252 252 ChipsetType_T mChipsetType; 253 P ciMap mPciMap;254 ReverseP ciMap mReversePciMap;253 PCIMap mPCIMap; 254 ReversePCIMap mReversePCIMap; 255 255 256 256 State() … … 262 262 HRESULT init(ChipsetType_T chipsetType); 263 263 264 HRESULT record(const char* pszName, P ciBusAddress& GuestAddress, PciBusAddress HostAddress);265 HRESULT autoAssign(const char* pszName, P ciBusAddress& Address);266 bool checkAvailable(P ciBusAddress& Address);267 bool findP ciAddress(const char* pszDevName, int iInstance, PciBusAddress& Address);264 HRESULT record(const char* pszName, PCIBusAddress& GuestAddress, PCIBusAddress HostAddress); 265 HRESULT autoAssign(const char* pszName, PCIBusAddress& Address); 266 bool checkAvailable(PCIBusAddress& Address); 267 bool findPCIAddress(const char* pszDevName, int iInstance, PCIBusAddress& Address); 268 268 269 269 const char* findAlias(const char* pszName); 270 void addMatchingRules(const char* pszName, P ciRulesList& aList);271 void listAttachedP ciDevices(ComSafeArrayOut(IPciDeviceAttachment*, aAttached));270 void addMatchingRules(const char* pszName, PCIRulesList& aList); 271 void listAttachedPCIDevices(ComSafeArrayOut(IPCIDeviceAttachment*, aAttached)); 272 272 }; 273 273 … … 278 278 } 279 279 280 HRESULT BusAssignmentManager::State::record(const char* pszName, P ciBusAddress& Address, PciBusAddress HostAddress)281 { 282 P ciDeviceRecord devRec(pszName, HostAddress);280 HRESULT BusAssignmentManager::State::record(const char* pszName, PCIBusAddress& Address, PCIBusAddress HostAddress) 281 { 282 PCIDeviceRecord devRec(pszName, HostAddress); 283 283 284 284 /* Remember address -> device mapping */ 285 mP ciMap.insert(PciMap::value_type(Address, devRec));286 287 ReverseP ciMap::iterator it = mReversePciMap.find(devRec);288 if (it == mReverseP ciMap.end())289 { 290 mReverseP ciMap.insert(ReversePciMap::value_type(devRec, PciAddrList()));291 it = mReverseP ciMap.find(devRec);285 mPCIMap.insert(PCIMap::value_type(Address, devRec)); 286 287 ReversePCIMap::iterator it = mReversePCIMap.find(devRec); 288 if (it == mReversePCIMap.end()) 289 { 290 mReversePCIMap.insert(ReversePCIMap::value_type(devRec, PCIAddrList())); 291 it = mReversePCIMap.find(devRec); 292 292 } 293 293 … … 298 298 } 299 299 300 bool BusAssignmentManager::State::findP ciAddress(const char* pszDevName, int iInstance, PciBusAddress& Address)301 { 302 P ciDeviceRecord devRec(pszDevName);303 304 ReverseP ciMap::iterator it = mReversePciMap.find(devRec);305 if (it == mReverseP ciMap.end())300 bool BusAssignmentManager::State::findPCIAddress(const char* pszDevName, int iInstance, PCIBusAddress& Address) 301 { 302 PCIDeviceRecord devRec(pszDevName); 303 304 ReversePCIMap::iterator it = mReversePCIMap.find(devRec); 305 if (it == mReversePCIMap.end()) 306 306 return false; 307 307 … … 313 313 } 314 314 315 void BusAssignmentManager::State::addMatchingRules(const char* pszName, P ciRulesList& aList)315 void BusAssignmentManager::State::addMatchingRules(const char* pszName, PCIRulesList& aList) 316 316 { 317 317 size_t iRuleset, iRule; … … 359 359 } 360 360 361 HRESULT BusAssignmentManager::State::autoAssign(const char* pszName, P ciBusAddress& Address)362 { 363 P ciRulesList matchingRules;361 HRESULT BusAssignmentManager::State::autoAssign(const char* pszName, PCIBusAddress& Address) 362 { 363 PCIRulesList matchingRules; 364 364 365 365 addMatchingRules(pszName, matchingRules); … … 388 388 } 389 389 390 bool BusAssignmentManager::State::checkAvailable(P ciBusAddress& Address)391 { 392 P ciMap::const_iterator it = mPciMap.find(Address);393 394 return (it == mP ciMap.end());395 } 396 397 398 void BusAssignmentManager::State::listAttachedP ciDevices(ComSafeArrayOut(IPciDeviceAttachment*, aAttached))399 { 400 com::SafeIfaceArray<IP ciDeviceAttachment> result(mPciMap.size());390 bool BusAssignmentManager::State::checkAvailable(PCIBusAddress& Address) 391 { 392 PCIMap::const_iterator it = mPCIMap.find(Address); 393 394 return (it == mPCIMap.end()); 395 } 396 397 398 void BusAssignmentManager::State::listAttachedPCIDevices(ComSafeArrayOut(IPCIDeviceAttachment*, aAttached)) 399 { 400 com::SafeIfaceArray<IPCIDeviceAttachment> result(mPCIMap.size()); 401 401 402 402 size_t iIndex = 0; 403 ComObjPtr<P ciDeviceAttachment> dev;404 for (P ciMap::const_iterator it = mPciMap.begin(); it != mPciMap.end(); ++it)403 ComObjPtr<PCIDeviceAttachment> dev; 404 for (PCIMap::const_iterator it = mPCIMap.begin(); it != mPCIMap.end(); ++it) 405 405 { 406 406 dev.createObject(); … … 458 458 } 459 459 460 HRESULT BusAssignmentManager::assignP ciDeviceImpl(const char* pszDevName,460 HRESULT BusAssignmentManager::assignPCIDeviceImpl(const char* pszDevName, 461 461 PCFGMNODE pCfg, 462 P ciBusAddress& GuestAddress,463 P ciBusAddress HostAddress,462 PCIBusAddress& GuestAddress, 463 PCIBusAddress HostAddress, 464 464 bool fGuestAddressRequired) 465 465 { … … 504 504 505 505 506 bool BusAssignmentManager::findP ciAddress(const char* pszDevName, int iInstance, PciBusAddress& Address)507 { 508 return pState->findP ciAddress(pszDevName, iInstance, Address);509 } 510 511 void BusAssignmentManager::listAttachedP ciDevices(ComSafeArrayOut(IPciDeviceAttachment*, aAttached))512 { 513 pState->listAttachedP ciDevices(ComSafeArrayOutArg(aAttached));514 } 506 bool BusAssignmentManager::findPCIAddress(const char* pszDevName, int iInstance, PCIBusAddress& Address) 507 { 508 return pState->findPCIAddress(pszDevName, iInstance, Address); 509 } 510 511 void BusAssignmentManager::listAttachedPCIDevices(ComSafeArrayOut(IPCIDeviceAttachment*, aAttached)) 512 { 513 pState->listAttachedPCIDevices(ComSafeArrayOutArg(aAttached)); 514 } -
trunk/src/VBox/Main/src-client/ConsoleImpl.cpp
r42382 r42551 325 325 Bstr hostIp, guestIp; 326 326 LONG hostPort, guestPort; 327 pNREv->COMGETTER(HostI p)(hostIp.asOutParam());327 pNREv->COMGETTER(HostIP)(hostIp.asOutParam()); 328 328 pNREv->COMGETTER(HostPort)(&hostPort); 329 pNREv->COMGETTER(GuestI p)(guestIp.asOutParam());329 pNREv->COMGETTER(GuestIP)(guestIp.asOutParam()); 330 330 pNREv->COMGETTER(GuestPort)(&guestPort); 331 331 ULONG ulSlot; … … 338 338 break; 339 339 340 case VBoxEventType_OnHostP ciDevicePlug:340 case VBoxEventType_OnHostPCIDevicePlug: 341 341 { 342 342 // handle if needed … … 555 555 com::SafeArray<VBoxEventType_T> eventTypes; 556 556 eventTypes.push_back(VBoxEventType_OnNATRedirect); 557 eventTypes.push_back(VBoxEventType_OnHostP ciDevicePlug);557 eventTypes.push_back(VBoxEventType_OnHostPCIDevicePlug); 558 558 rc = pES->RegisterListener(aVmListener, ComSafeArrayAsInParam(eventTypes), true); 559 559 AssertComRC(rc); … … 1923 1923 } 1924 1924 1925 STDMETHODIMP Console::COMGETTER(AttachedP ciDevices)(ComSafeArrayOut(IPciDeviceAttachment *, aAttachments))1925 STDMETHODIMP Console::COMGETTER(AttachedPCIDevices)(ComSafeArrayOut(IPCIDeviceAttachment *, aAttachments)) 1926 1926 { 1927 1927 CheckComArgOutSafeArrayPointerValid(aAttachments); … … 1933 1933 1934 1934 if (mBusMgr) 1935 mBusMgr->listAttachedP ciDevices(ComSafeArrayOutArg(aAttachments));1935 mBusMgr->listAttachedPCIDevices(ComSafeArrayOutArg(aAttachments)); 1936 1936 else 1937 1937 { 1938 com::SafeIfaceArray<IP ciDeviceAttachment> result((size_t)0);1938 com::SafeIfaceArray<IPCIDeviceAttachment> result((size_t)0); 1939 1939 result.detachTo(ComSafeArrayOutArg(aAttachments)); 1940 1940 } … … 3775 3775 fUseHostIOCache, 3776 3776 false /* fSetupMerge */, 3777 false /* fBuiltinI oCache */,3777 false /* fBuiltinIOCache */, 3778 3778 0 /* uMergeSource */, 3779 3779 0 /* uMergeTarget */, … … 4020 4020 fUseHostIOCache, 4021 4021 false /* fSetupMerge */, 4022 false /* fBuiltinI oCache */,4022 false /* fBuiltinIOCache */, 4023 4023 0 /* uMergeSource */, 4024 4024 0 /* uMergeTarget */, … … 4436 4436 */ 4437 4437 HRESULT Console::onNATRedirectRuleChange(ULONG ulInstance, BOOL aNatRuleRemove, 4438 NATProtocol_T aProto, IN_BSTR aHostI p, LONG aHostPort, IN_BSTR aGuestIp, LONG aGuestPort)4438 NATProtocol_T aProto, IN_BSTR aHostIP, LONG aHostPort, IN_BSTR aGuestIP, LONG aGuestPort) 4439 4439 { 4440 4440 LogFlowThisFunc(("\n")); … … 4507 4507 bool fUdp = aProto == NATProtocol_UDP; 4508 4508 vrc = pNetNatCfg->pfnRedirectRuleCommand(pNetNatCfg, !!aNatRuleRemove, fUdp, 4509 Utf8Str(aHostI p).c_str(), aHostPort, Utf8Str(aGuestIp).c_str(),4509 Utf8Str(aHostIP).c_str(), aHostPort, Utf8Str(aGuestIP).c_str(), 4510 4510 aGuestPort); 4511 4511 if (RT_FAILURE(vrc)) … … 5558 5558 /** @todo AssertComRC -> AssertComRCReturn! Could potentially end up 5559 5559 * using uninitialized variables here. */ 5560 BOOL fBuiltinI oCache;5561 rc = mMachine->COMGETTER(I oCacheEnabled)(&fBuiltinIoCache);5560 BOOL fBuiltinIOCache; 5561 rc = mMachine->COMGETTER(IOCacheEnabled)(&fBuiltinIOCache); 5562 5562 AssertComRC(rc); 5563 5563 SafeIfaceArray<IStorageController> ctrls; … … 5643 5643 enmBus, 5644 5644 fUseHostIOCache, 5645 fBuiltinI oCache,5645 fBuiltinIOCache, 5646 5646 true /* fSetupMerge */, 5647 5647 aSourceIdx, … … 5719 5719 enmBus, 5720 5720 fUseHostIOCache, 5721 fBuiltinI oCache,5721 fBuiltinIOCache, 5722 5722 false /* fSetupMerge */, 5723 5723 0 /* uMergeSource */, … … 9096 9096 StorageBus_T enmBus, 9097 9097 bool fUseHostIOCache, 9098 bool fBuiltinI oCache,9098 bool fBuiltinIOCache, 9099 9099 bool fSetupMerge, 9100 9100 unsigned uMergeSource, … … 9131 9131 enmBus, 9132 9132 fUseHostIOCache, 9133 fBuiltinI oCache,9133 fBuiltinIOCache, 9134 9134 fSetupMerge, 9135 9135 uMergeSource, … … 9314 9314 const char *pcszDevice = Console::convertControllerTypeToDev(enmController); 9315 9315 9316 BOOL fBuiltinI oCache;9317 rc = that->mMachine->COMGETTER(I oCacheEnabled)(&fBuiltinIoCache);9316 BOOL fBuiltinIOCache; 9317 rc = that->mMachine->COMGETTER(IOCacheEnabled)(&fBuiltinIOCache); 9318 9318 if (FAILED(rc)) 9319 9319 throw rc; … … 9333 9333 enmBus, 9334 9334 fUseHostIOCache, 9335 fBuiltinI oCache,9335 fBuiltinIOCache, 9336 9336 false /* fSetupMerge */, 9337 9337 0 /* uMergeSource */, -
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r42437 r42551 38 38 #include "Global.h" 39 39 #ifdef VBOX_WITH_PCI_PASSTHROUGH 40 # include "P ciRawDevImpl.h"40 # include "PCIRawDevImpl.h" 41 41 #endif 42 42 … … 217 217 { 218 218 ULONG mInstance; 219 P ciBusAddress mPciAddress;219 PCIBusAddress mPCIAddress; 220 220 221 221 ULONG mBootPrio; … … 466 466 467 467 #ifdef VBOX_WITH_PCI_PASSTHROUGH 468 HRESULT Console::attachRawP ciDevices(PVM pVM,468 HRESULT Console::attachRawPCIDevices(PVM pVM, 469 469 BusAssignmentManager *BusMgr, 470 470 PCFGMNODE pDevices) … … 473 473 PCFGMNODE pInst, pCfg, pLunL0, pLunL1; 474 474 475 SafeIfaceArray<IP ciDeviceAttachment> assignments;475 SafeIfaceArray<IPCIDeviceAttachment> assignments; 476 476 ComPtr<IMachine> aMachine = machine(); 477 477 478 hrc = aMachine->COMGETTER(P ciDeviceAssignments)(ComSafeArrayAsOutParam(assignments));478 hrc = aMachine->COMGETTER(PCIDeviceAssignments)(ComSafeArrayAsOutParam(assignments)); 479 479 if ( hrc != S_OK 480 480 || assignments.size() < 1) … … 490 490 */ 491 491 # ifdef VBOX_WITH_EXTPACK 492 static const char *s_pszP ciRawExtPackName = "Oracle VM VirtualBox Extension Pack";493 if (!mptrExtPackManager->isExtPackUsable(s_pszP ciRawExtPackName))492 static const char *s_pszPCIRawExtPackName = "Oracle VM VirtualBox Extension Pack"; 493 if (!mptrExtPackManager->isExtPackUsable(s_pszPCIRawExtPackName)) 494 494 { 495 495 /* Always fatal! */ … … 498 498 "The VM cannot be started. To fix this problem, either " 499 499 "install the '%s' or disable PCI passthrough via VBoxManage"), 500 s_pszP ciRawExtPackName);500 s_pszPCIRawExtPackName); 501 501 } 502 502 # endif … … 508 508 for (size_t iDev = 0; iDev < assignments.size(); iDev++) 509 509 { 510 ComPtr<IP ciDeviceAttachment> assignment = assignments[iDev];510 ComPtr<IPCIDeviceAttachment> assignment = assignments[iDev]; 511 511 LONG guest = 0; 512 P ciBusAddress GuestPciAddress;512 PCIBusAddress GuestPCIAddress; 513 513 514 514 assignment->COMGETTER(GuestAddress)(&guest); 515 GuestP ciAddress.fromLong(guest);516 Assert(GuestP ciAddress.valid());517 518 if (GuestP ciAddress.miBus > 0)515 GuestPCIAddress.fromLong(guest); 516 Assert(GuestPCIAddress.valid()); 517 518 if (GuestPCIAddress.miBus > 0) 519 519 { 520 520 int iBridgesMissed = 0; 521 int iBase = GuestP ciAddress.miBus - 1;522 523 while (!BusMgr->hasP ciDevice("ich9pcibridge", iBase) && iBase > 0)521 int iBase = GuestPCIAddress.miBus - 1; 522 523 while (!BusMgr->hasPCIDevice("ich9pcibridge", iBase) && iBase > 0) 524 524 { 525 525 iBridgesMissed++; iBase--; … … 531 531 InsertConfigNode(pBridges, Utf8StrFmt("%d", iBase + iBridge).c_str(), &pInst); 532 532 InsertConfigInteger(pInst, "Trusted", 1); 533 hrc = BusMgr->assignP ciDevice("ich9pcibridge", pInst);533 hrc = BusMgr->assignPCIDevice("ich9pcibridge", pInst); 534 534 } 535 535 } … … 537 537 538 538 /* Now actually add devices */ 539 PCFGMNODE pP ciDevs = NULL;539 PCFGMNODE pPCIDevs = NULL; 540 540 541 541 if (assignments.size() > 0) 542 542 { 543 InsertConfigNode(pDevices, "pciraw", &pP ciDevs);543 InsertConfigNode(pDevices, "pciraw", &pPCIDevs); 544 544 545 545 PCFGMNODE pRoot = CFGMR3GetParent(pDevices); Assert(pRoot); 546 546 547 /* Tell PGM to tell GP ciRaw about guest mappings. */547 /* Tell PGM to tell GPCIRaw about guest mappings. */ 548 548 CFGMR3InsertNode(pRoot, "PGM", NULL); 549 549 InsertConfigInteger(CFGMR3GetChild(pRoot, "PGM"), "PciPassThrough", 1); … … 560 560 for (size_t iDev = 0; iDev < assignments.size(); iDev++) 561 561 { 562 P ciBusAddress HostPciAddress, GuestPciAddress;563 ComPtr<IP ciDeviceAttachment> assignment = assignments[iDev];562 PCIBusAddress HostPCIAddress, GuestPCIAddress; 563 ComPtr<IPCIDeviceAttachment> assignment = assignments[iDev]; 564 564 LONG host, guest; 565 565 Bstr aDevName; … … 569 569 assignment->COMGETTER(Name)(aDevName.asOutParam()); 570 570 571 InsertConfigNode(pP ciDevs, Utf8StrFmt("%d", iDev).c_str(), &pInst);571 InsertConfigNode(pPCIDevs, Utf8StrFmt("%d", iDev).c_str(), &pInst); 572 572 InsertConfigInteger(pInst, "Trusted", 1); 573 573 574 HostP ciAddress.fromLong(host);575 Assert(HostP ciAddress.valid());574 HostPCIAddress.fromLong(host); 575 Assert(HostPCIAddress.valid()); 576 576 InsertConfigNode(pInst, "Config", &pCfg); 577 577 InsertConfigString(pCfg, "DeviceName", aDevName); 578 578 579 579 InsertConfigInteger(pCfg, "DetachHostDriver", 1); 580 InsertConfigInteger(pCfg, "HostPCIBusNo", HostP ciAddress.miBus);581 InsertConfigInteger(pCfg, "HostPCIDeviceNo", HostP ciAddress.miDevice);582 InsertConfigInteger(pCfg, "HostPCIFunctionNo", HostP ciAddress.miFn);583 584 GuestP ciAddress.fromLong(guest);585 Assert(GuestP ciAddress.valid());586 hrc = BusMgr->assignHostP ciDevice("pciraw", pInst, HostPciAddress, GuestPciAddress, true);580 InsertConfigInteger(pCfg, "HostPCIBusNo", HostPCIAddress.miBus); 581 InsertConfigInteger(pCfg, "HostPCIDeviceNo", HostPCIAddress.miDevice); 582 InsertConfigInteger(pCfg, "HostPCIFunctionNo", HostPCIAddress.miFn); 583 584 GuestPCIAddress.fromLong(guest); 585 Assert(GuestPCIAddress.valid()); 586 hrc = BusMgr->assignHostPCIDevice("pciraw", pInst, HostPCIAddress, GuestPCIAddress, true); 587 587 if (hrc != S_OK) 588 588 return hrc; 589 589 590 InsertConfigInteger(pCfg, "GuestPCIBusNo", GuestP ciAddress.miBus);591 InsertConfigInteger(pCfg, "GuestPCIDeviceNo", GuestP ciAddress.miDevice);592 InsertConfigInteger(pCfg, "GuestPCIFunctionNo", GuestP ciAddress.miFn);590 InsertConfigInteger(pCfg, "GuestPCIBusNo", GuestPCIAddress.miBus); 591 InsertConfigInteger(pCfg, "GuestPCIDeviceNo", GuestPCIAddress.miDevice); 592 InsertConfigInteger(pCfg, "GuestPCIFunctionNo", GuestPCIAddress.miFn); 593 593 594 594 /* the driver */ … … 600 600 InsertConfigString(pLunL1, "Driver", "MainPciRaw"); 601 601 InsertConfigNode(pLunL1, "Config", &pCfg); 602 P ciRawDev* pMainDev = new PciRawDev(this);602 PCIRawDev* pMainDev = new PCIRawDev(this); 603 603 InsertConfigInteger(pCfg, "Object", (uintptr_t)pMainDev); 604 604 } … … 1002 1002 /* I/O cache size */ 1003 1003 ULONG ioCacheSize = 5; 1004 hrc = pMachine->COMGETTER(I oCacheSize)(&ioCacheSize); H();1004 hrc = pMachine->COMGETTER(IOCacheSize)(&ioCacheSize); H(); 1005 1005 InsertConfigInteger(pPDMBlkCache, "CacheSize", ioCacheSize * _1M); 1006 1006 … … 1100 1100 * PCI buses. 1101 1101 */ 1102 uint32_t uIocP ciAddress, uHbcPciAddress;1102 uint32_t uIocPCIAddress, uHbcPCIAddress; 1103 1103 switch (chipsetType) 1104 1104 { … … 1107 1107 case ChipsetType_PIIX3: 1108 1108 InsertConfigNode(pDevices, "pci", &pDev); 1109 uHbcP ciAddress = (0x0 << 16) | 0;1110 uIocP ciAddress = (0x1 << 16) | 0; // ISA controller1109 uHbcPCIAddress = (0x0 << 16) | 0; 1110 uIocPCIAddress = (0x1 << 16) | 0; // ISA controller 1111 1111 break; 1112 1112 case ChipsetType_ICH9: 1113 1113 InsertConfigNode(pDevices, "ich9pci", &pDev); 1114 uHbcP ciAddress = (0x1e << 16) | 0;1115 uIocP ciAddress = (0x1f << 16) | 0; // LPC controller1114 uHbcPCIAddress = (0x1e << 16) | 0; 1115 uIocPCIAddress = (0x1f << 16) | 0; // LPC controller 1116 1116 break; 1117 1117 } … … 1131 1131 InsertConfigNode(pDev, "0", &pInst); 1132 1132 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 1133 hrc = BusMgr->assignP ciDevice("ich9pcibridge", pInst); H();1133 hrc = BusMgr->assignPCIDevice("ich9pcibridge", pInst); H(); 1134 1134 1135 1135 InsertConfigNode(pDev, "1", &pInst); 1136 1136 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 1137 hrc = BusMgr->assignP ciDevice("ich9pcibridge", pInst); H();1137 hrc = BusMgr->assignPCIDevice("ich9pcibridge", pInst); H(); 1138 1138 1139 1139 #ifdef VBOX_WITH_PCI_PASSTHROUGH 1140 1140 /* Add PCI passthrough devices */ 1141 hrc = attachRawP ciDevices(pVM, BusMgr, pDevices); H();1141 hrc = attachRawPCIDevices(pVM, BusMgr, pDevices); H(); 1142 1142 #endif 1143 1143 } … … 1150 1150 * High Precision Event Timer (HPET) 1151 1151 */ 1152 BOOL fH petEnabled;1152 BOOL fHPETEnabled; 1153 1153 /* Other guests may wish to use HPET too, but MacOS X not functional without it */ 1154 hrc = pMachine->COMGETTER(H petEnabled)(&fHpetEnabled); H();1154 hrc = pMachine->COMGETTER(HPETEnabled)(&fHPETEnabled); H(); 1155 1155 /* so always enable HPET in extended profile */ 1156 fH petEnabled |= fOsXGuest;1156 fHPETEnabled |= fOsXGuest; 1157 1157 /* HPET is always present on ICH9 */ 1158 fH petEnabled |= (chipsetType == ChipsetType_ICH9);1159 if (fH petEnabled)1158 fHPETEnabled |= (chipsetType == ChipsetType_ICH9); 1159 if (fHPETEnabled) 1160 1160 { 1161 1161 InsertConfigNode(pDevices, "hpet", &pDev); … … 1197 1197 InsertConfigNode(pDevices, "lpc", &pDev); 1198 1198 InsertConfigNode(pDev, "0", &pInst); 1199 hrc = BusMgr->assignP ciDevice("lpc", pInst); H();1199 hrc = BusMgr->assignPCIDevice("lpc", pInst); H(); 1200 1200 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 1201 1201 } … … 1293 1293 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 1294 1294 1295 hrc = BusMgr->assignP ciDevice("vga", pInst); H();1295 hrc = BusMgr->assignPCIDevice("vga", pInst); H(); 1296 1296 InsertConfigNode(pInst, "Config", &pCfg); 1297 1297 ULONG cVRamMBs; … … 1564 1564 case StorageControllerType_LsiLogic: 1565 1565 { 1566 hrc = BusMgr->assignP ciDevice("lsilogic", pCtlInst); H();1566 hrc = BusMgr->assignPCIDevice("lsilogic", pCtlInst); H(); 1567 1567 1568 1568 InsertConfigInteger(pCfg, "Bootable", fBootable); … … 1578 1578 case StorageControllerType_BusLogic: 1579 1579 { 1580 hrc = BusMgr->assignP ciDevice("buslogic", pCtlInst); H();1580 hrc = BusMgr->assignPCIDevice("buslogic", pCtlInst); H(); 1581 1581 1582 1582 InsertConfigInteger(pCfg, "Bootable", fBootable); … … 1592 1592 case StorageControllerType_IntelAhci: 1593 1593 { 1594 hrc = BusMgr->assignP ciDevice("ahci", pCtlInst); H();1594 hrc = BusMgr->assignPCIDevice("ahci", pCtlInst); H(); 1595 1595 1596 1596 ULONG cPorts = 0; … … 1600 1600 1601 1601 /* Needed configuration values for the bios, only first controller. */ 1602 if (!BusMgr->hasP ciDevice("ahci", 1))1602 if (!BusMgr->hasPCIDevice("ahci", 1)) 1603 1603 { 1604 1604 if (pBiosCfg) … … 1635 1635 * IDE (update this when the main interface changes) 1636 1636 */ 1637 hrc = BusMgr->assignP ciDevice("piix3ide", pCtlInst); H();1637 hrc = BusMgr->assignPCIDevice("piix3ide", pCtlInst); H(); 1638 1638 InsertConfigString(pCfg, "Type", controllerString(enmCtrlType)); 1639 1639 /* Attach the status driver */ … … 1671 1671 case StorageControllerType_LsiLogicSas: 1672 1672 { 1673 hrc = BusMgr->assignP ciDevice("lsilogicsas", pCtlInst); H();1673 hrc = BusMgr->assignPCIDevice("lsilogicsas", pCtlInst); H(); 1674 1674 1675 1675 InsertConfigString(pCfg, "ControllerType", "SAS1068"); … … 1694 1694 1695 1695 /* Builtin I/O cache - per device setting. */ 1696 BOOL fBuiltinI oCache = true;1697 hrc = pMachine->COMGETTER(I oCacheEnabled)(&fBuiltinIoCache); H();1696 BOOL fBuiltinIOCache = true; 1697 hrc = pMachine->COMGETTER(IOCacheEnabled)(&fBuiltinIOCache); H(); 1698 1698 1699 1699 … … 1706 1706 enmBus, 1707 1707 !!fUseHostIOCache, 1708 !!fBuiltinI oCache,1708 !!fBuiltinIOCache, 1709 1709 false /* fSetupMerge */, 1710 1710 0 /* uMergeSource */, … … 1789 1789 /* the first network card gets the PCI ID 3, the next 3 gets 8..10, 1790 1790 * next 4 get 16..19. */ 1791 int iP ciDeviceNo;1791 int iPCIDeviceNo; 1792 1792 switch (ulInstance) 1793 1793 { 1794 1794 case 0: 1795 iP ciDeviceNo = 3;1795 iPCIDeviceNo = 3; 1796 1796 break; 1797 1797 case 1: case 2: case 3: 1798 iP ciDeviceNo = ulInstance - 1 + 8;1798 iPCIDeviceNo = ulInstance - 1 + 8; 1799 1799 break; 1800 1800 case 4: case 5: case 6: case 7: 1801 iP ciDeviceNo = ulInstance - 4 + 16;1801 iPCIDeviceNo = ulInstance - 4 + 16; 1802 1802 break; 1803 1803 default: 1804 1804 /* auto assignment */ 1805 iP ciDeviceNo = -1;1805 iPCIDeviceNo = -1; 1806 1806 break; 1807 1807 } … … 1811 1811 * it assigns slot 11 to the first network controller. 1812 1812 */ 1813 if (iP ciDeviceNo == 3 && adapterType == NetworkAdapterType_I82545EM)1814 { 1815 iP ciDeviceNo = 0x11;1813 if (iPCIDeviceNo == 3 && adapterType == NetworkAdapterType_I82545EM) 1814 { 1815 iPCIDeviceNo = 0x11; 1816 1816 fSwapSlots3and11 = true; 1817 1817 } 1818 else if (iP ciDeviceNo == 0x11 && fSwapSlots3and11)1819 iP ciDeviceNo = 3;1818 else if (iPCIDeviceNo == 0x11 && fSwapSlots3and11) 1819 iPCIDeviceNo = 3; 1820 1820 #endif 1821 P ciBusAddress PciAddr = PciBusAddress(0, iPciDeviceNo, 0);1822 hrc = BusMgr->assignP ciDevice(pszAdapterName, pInst, PciAddr); H();1821 PCIBusAddress PCIAddr = PCIBusAddress(0, iPCIDeviceNo, 0); 1822 hrc = BusMgr->assignPCIDevice(pszAdapterName, pInst, PCIAddr); H(); 1823 1823 1824 1824 InsertConfigNode(pInst, "Config", &pCfg); … … 1836 1836 nic.mInstance = ulInstance; 1837 1837 /* Could be updated by reference, if auto assigned */ 1838 nic.mP ciAddress = PciAddr;1838 nic.mPCIAddress = PCIAddr; 1839 1839 1840 1840 hrc = networkAdapter->COMGETTER(BootPriority)(&nic.mBootPrio); H(); … … 1944 1944 InsertConfigNode(pNetBootCfg, achBootIdx, &pNetBtDevCfg); 1945 1945 InsertConfigInteger(pNetBtDevCfg, "NIC", it->mInstance); 1946 InsertConfigInteger(pNetBtDevCfg, "PCIBusNo", it->mP ciAddress.miBus);1947 InsertConfigInteger(pNetBtDevCfg, "PCIDeviceNo", it->mP ciAddress.miDevice);1948 InsertConfigInteger(pNetBtDevCfg, "PCIFunctionNo", it->mP ciAddress.miFn);1946 InsertConfigInteger(pNetBtDevCfg, "PCIBusNo", it->mPCIAddress.miBus); 1947 InsertConfigInteger(pNetBtDevCfg, "PCIDeviceNo", it->mPCIAddress.miDevice); 1948 InsertConfigInteger(pNetBtDevCfg, "PCIFunctionNo", it->mPCIAddress.miFn); 1949 1949 } 1950 1950 } … … 2053 2053 InsertConfigNode(pInst, "Config", &pCfg); 2054 2054 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 2055 hrc = BusMgr->assignP ciDevice("VMMDev", pInst); H();2055 hrc = BusMgr->assignPCIDevice("VMMDev", pInst); H(); 2056 2056 2057 2057 Bstr hwVersion; … … 2110 2110 InsertConfigNode(pDev, "0", &pInst); 2111 2111 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 2112 hrc = BusMgr->assignP ciDevice("ichac97", pInst); H();2112 hrc = BusMgr->assignPCIDevice("ichac97", pInst); H(); 2113 2113 InsertConfigNode(pInst, "Config", &pCfg); 2114 2114 break; … … 2134 2134 InsertConfigNode(pDev, "0", &pInst); 2135 2135 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 2136 hrc = BusMgr->assignP ciDevice("hda", pInst); H();2136 hrc = BusMgr->assignPCIDevice("hda", pInst); H(); 2137 2137 InsertConfigNode(pInst, "Config", &pCfg); 2138 2138 } … … 2233 2233 InsertConfigNode(pInst, "Config", &pCfg); 2234 2234 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 2235 hrc = BusMgr->assignP ciDevice("usb-ohci", pInst); H();2235 hrc = BusMgr->assignPCIDevice("usb-ohci", pInst); H(); 2236 2236 InsertConfigNode(pInst, "LUN#0", &pLunL0); 2237 2237 InsertConfigString(pLunL0, "Driver", "VUSBRootHub"); … … 2244 2244 2245 2245 #ifdef VBOX_WITH_EHCI 2246 BOOL fE hciEnabled;2247 hrc = USBCtlPtr->COMGETTER(EnabledE hci)(&fEhciEnabled); H();2248 if (fE hciEnabled)2246 BOOL fEHCIEnabled; 2247 hrc = USBCtlPtr->COMGETTER(EnabledEHCI)(&fEHCIEnabled); H(); 2248 if (fEHCIEnabled) 2249 2249 { 2250 2250 /* … … 2265 2265 InsertConfigNode(pInst, "Config", &pCfg); 2266 2266 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 2267 hrc = BusMgr->assignP ciDevice("usb-ehci", pInst); H();2267 hrc = BusMgr->assignPCIDevice("usb-ehci", pInst); H(); 2268 2268 2269 2269 InsertConfigNode(pInst, "LUN#0", &pLunL0); … … 2380 2380 2381 2381 /* Virtual USB Mouse/Tablet */ 2382 PointingH idType_T aPointingHid;2383 hrc = pMachine->COMGETTER(PointingH idType)(&aPointingHid); H();2384 if (aPointingH id == PointingHidType_USBMouse || aPointingHid == PointingHidType_USBTablet)2382 PointingHIDType_T aPointingHID; 2383 hrc = pMachine->COMGETTER(PointingHIDType)(&aPointingHID); H(); 2384 if (aPointingHID == PointingHIDType_USBMouse || aPointingHID == PointingHIDType_USBTablet) 2385 2385 { 2386 2386 InsertConfigNode(pUsbDevices, "HidMouse", &pDev); … … 2388 2388 InsertConfigNode(pInst, "Config", &pCfg); 2389 2389 2390 if (aPointingH id == PointingHidType_USBTablet)2390 if (aPointingHID == PointingHIDType_USBTablet) 2391 2391 { 2392 2392 InsertConfigInteger(pCfg, "Absolute", 1); … … 2409 2409 2410 2410 /* Virtual USB Keyboard */ 2411 KeyboardH idType_T aKbdHid;2412 hrc = pMachine->COMGETTER(KeyboardH idType)(&aKbdHid); H();2413 if (aKbdH id == KeyboardHidType_USBKeyboard)2411 KeyboardHIDType_T aKbdHID; 2412 hrc = pMachine->COMGETTER(KeyboardHIDType)(&aKbdHID); H(); 2413 if (aKbdHID == KeyboardHIDType_USBKeyboard) 2414 2414 { 2415 2415 InsertConfigNode(pUsbDevices, "HidKeyboard", &pDev); … … 2589 2589 InsertConfigInteger(pInst, "Trusted", 1); /* boolean */ 2590 2590 InsertConfigNode(pInst, "Config", &pCfg); 2591 hrc = BusMgr->assignP ciDevice("acpi", pInst); H();2591 hrc = BusMgr->assignPCIDevice("acpi", pInst); H(); 2592 2592 2593 2593 InsertConfigInteger(pCfg, "RamSize", cbRam); … … 2597 2597 InsertConfigInteger(pCfg, "IOAPIC", fIOAPIC); 2598 2598 InsertConfigInteger(pCfg, "FdcEnabled", fFdcEnabled); 2599 InsertConfigInteger(pCfg, "HpetEnabled", fH petEnabled);2599 InsertConfigInteger(pCfg, "HpetEnabled", fHPETEnabled); 2600 2600 InsertConfigInteger(pCfg, "SmcEnabled", fSmcEnabled); 2601 2601 InsertConfigInteger(pCfg, "ShowRtc", fShowRtc); … … 2603 2603 { 2604 2604 BootNic aNic = llBootNics.front(); 2605 uint32_t u32NicP ciAddr = (aNic.mPciAddress.miDevice << 16) | aNic.mPciAddress.miFn;2606 InsertConfigInteger(pCfg, "NicPciAddress", u32NicP ciAddr);2605 uint32_t u32NicPCIAddr = (aNic.mPCIAddress.miDevice << 16) | aNic.mPCIAddress.miFn; 2606 InsertConfigInteger(pCfg, "NicPciAddress", u32NicPCIAddr); 2607 2607 } 2608 2608 if (fOsXGuest && fAudioEnabled) 2609 2609 { 2610 P ciBusAddress Address;2611 if (BusMgr->findP ciAddress("hda", 0, Address))2612 { 2613 uint32_t u32AudioP ciAddr = (Address.miDevice << 16) | Address.miFn;2614 InsertConfigInteger(pCfg, "AudioPciAddress", u32AudioP ciAddr);2615 } 2616 } 2617 InsertConfigInteger(pCfg, "IocPciAddress", uIocP ciAddress);2610 PCIBusAddress Address; 2611 if (BusMgr->findPCIAddress("hda", 0, Address)) 2612 { 2613 uint32_t u32AudioPCIAddr = (Address.miDevice << 16) | Address.miFn; 2614 InsertConfigInteger(pCfg, "AudioPciAddress", u32AudioPCIAddr); 2615 } 2616 } 2617 InsertConfigInteger(pCfg, "IocPciAddress", uIocPCIAddress); 2618 2618 if (chipsetType == ChipsetType_ICH9) 2619 2619 { … … 2621 2621 InsertConfigInteger(pCfg, "McfgLength", cbMcfgLength); 2622 2622 } 2623 InsertConfigInteger(pCfg, "HostBusPciAddress", uHbcP ciAddress);2623 InsertConfigInteger(pCfg, "HostBusPciAddress", uHbcPCIAddress); 2624 2624 InsertConfigInteger(pCfg, "ShowCpu", fShowCpu); 2625 2625 InsertConfigInteger(pCfg, "CpuHotPlug", fCpuHotPlug); … … 2941 2941 StorageBus_T enmBus, 2942 2942 bool fUseHostIOCache, 2943 bool fBuiltinI oCache,2943 bool fBuiltinIOCache, 2944 2944 bool fSetupMerge, 2945 2945 unsigned uMergeSource, … … 3266 3266 lType, 3267 3267 fUseHostIOCache, 3268 fBuiltinI oCache,3268 fBuiltinIOCache, 3269 3269 fSetupMerge, 3270 3270 uMergeSource, … … 3308 3308 DeviceType_T enmType, 3309 3309 bool fUseHostIOCache, 3310 bool fBuiltinI oCache,3310 bool fBuiltinIOCache, 3311 3311 bool fSetupMerge, 3312 3312 unsigned uMergeSource, … … 3473 3473 * and just increases the overhead. 3474 3474 */ 3475 if ( fBuiltinI oCache3475 if ( fBuiltinIOCache 3476 3476 && (enmType == DeviceType_HardDisk)) 3477 3477 InsertConfigInteger(pCfg, "BlockCache", 1); … … 3737 3737 case NetworkAttachmentType_NAT: 3738 3738 { 3739 ComPtr<INATEngine> nat Driver;3740 hrc = aNetworkAdapter->COMGETTER(N atDriver)(natDriver.asOutParam()); H();3739 ComPtr<INATEngine> natEngine; 3740 hrc = aNetworkAdapter->COMGETTER(NATEngine)(natEngine.asOutParam()); H(); 3741 3741 InsertConfigString(pLunL0, "Driver", "NAT"); 3742 3742 InsertConfigNode(pLunL0, "Config", &pCfg); … … 3749 3749 InsertConfigString(pCfg, "BootFile", Utf8StrFmt("%ls.pxe", bstr.raw())); 3750 3750 3751 hrc = nat Driver->COMGETTER(Network)(bstr.asOutParam()); H();3751 hrc = natEngine->COMGETTER(Network)(bstr.asOutParam()); H(); 3752 3752 if (!bstr.isEmpty()) 3753 3753 InsertConfigString(pCfg, "Network", bstr); … … 3758 3758 InsertConfigString(pCfg, "Network", Utf8StrFmt("10.0.%d.0/24", uSlot+2)); 3759 3759 } 3760 hrc = nat Driver->COMGETTER(HostIP)(bstr.asOutParam()); H();3760 hrc = natEngine->COMGETTER(HostIP)(bstr.asOutParam()); H(); 3761 3761 if (!bstr.isEmpty()) 3762 3762 InsertConfigString(pCfg, "BindIP", bstr); … … 3766 3766 ULONG tcpSnd = 0; 3767 3767 ULONG tcpRcv = 0; 3768 hrc = nat Driver->GetNetworkSettings(&mtu, &sockSnd, &sockRcv, &tcpSnd, &tcpRcv); H();3768 hrc = natEngine->GetNetworkSettings(&mtu, &sockSnd, &sockRcv, &tcpSnd, &tcpRcv); H(); 3769 3769 if (mtu) 3770 3770 InsertConfigInteger(pCfg, "SlirpMTU", mtu); … … 3777 3777 if (tcpSnd) 3778 3778 InsertConfigInteger(pCfg, "TcpSnd", tcpSnd); 3779 hrc = nat Driver->COMGETTER(TftpPrefix)(bstr.asOutParam()); H();3779 hrc = natEngine->COMGETTER(TFTPPrefix)(bstr.asOutParam()); H(); 3780 3780 if (!bstr.isEmpty()) 3781 3781 { … … 3783 3783 InsertConfigString(pCfg, "TFTPPrefix", bstr); 3784 3784 } 3785 hrc = nat Driver->COMGETTER(TftpBootFile)(bstr.asOutParam()); H();3785 hrc = natEngine->COMGETTER(TFTPBootFile)(bstr.asOutParam()); H(); 3786 3786 if (!bstr.isEmpty()) 3787 3787 { … … 3789 3789 InsertConfigString(pCfg, "BootFile", bstr); 3790 3790 } 3791 hrc = nat Driver->COMGETTER(TftpNextServer)(bstr.asOutParam()); H();3791 hrc = natEngine->COMGETTER(TFTPNextServer)(bstr.asOutParam()); H(); 3792 3792 if (!bstr.isEmpty()) 3793 3793 InsertConfigString(pCfg, "NextServer", bstr); 3794 BOOL fD nsFlag;3795 hrc = nat Driver->COMGETTER(DnsPassDomain)(&fDnsFlag); H();3796 InsertConfigInteger(pCfg, "PassDomain", fD nsFlag);3797 hrc = nat Driver->COMGETTER(DnsProxy)(&fDnsFlag); H();3798 InsertConfigInteger(pCfg, "DNSProxy", fD nsFlag);3799 hrc = nat Driver->COMGETTER(DnsUseHostResolver)(&fDnsFlag); H();3800 InsertConfigInteger(pCfg, "UseHostResolver", fD nsFlag);3794 BOOL fDNSFlag; 3795 hrc = natEngine->COMGETTER(DNSPassDomain)(&fDNSFlag); H(); 3796 InsertConfigInteger(pCfg, "PassDomain", fDNSFlag); 3797 hrc = natEngine->COMGETTER(DNSProxy)(&fDNSFlag); H(); 3798 InsertConfigInteger(pCfg, "DNSProxy", fDNSFlag); 3799 hrc = natEngine->COMGETTER(DNSUseHostResolver)(&fDNSFlag); H(); 3800 InsertConfigInteger(pCfg, "UseHostResolver", fDNSFlag); 3801 3801 3802 3802 ULONG aliasMode; 3803 hrc = nat Driver->COMGETTER(AliasMode)(&aliasMode); H();3803 hrc = natEngine->COMGETTER(AliasMode)(&aliasMode); H(); 3804 3804 InsertConfigInteger(pCfg, "AliasMode", aliasMode); 3805 3805 3806 3806 /* port-forwarding */ 3807 3807 SafeArray<BSTR> pfs; 3808 hrc = nat Driver->COMGETTER(Redirects)(ComSafeArrayAsOutParam(pfs)); H();3808 hrc = natEngine->COMGETTER(Redirects)(ComSafeArrayAsOutParam(pfs)); H(); 3809 3809 PCFGMNODE pPF = NULL; /* /Devices/Dev/.../Config/PF#0/ */ 3810 3810 for (unsigned int i = 0; i < pfs.size(); ++i) … … 4492 4492 tmpMask.asOutParam()); 4493 4493 if (SUCCEEDED(hrc) && !tmpMask.isEmpty()) 4494 hrc = hostInterface->EnableStaticI pConfig(tmpAddr.raw(),4494 hrc = hostInterface->EnableStaticIPConfig(tmpAddr.raw(), 4495 4495 tmpMask.raw()); 4496 4496 else 4497 hrc = hostInterface->EnableStaticI pConfig(tmpAddr.raw(),4497 hrc = hostInterface->EnableStaticIPConfig(tmpAddr.raw(), 4498 4498 Bstr(VBOXNET_IPV4MASK_DEFAULT).raw()); 4499 4499 } … … 4501 4501 { 4502 4502 /* Grab the IP number from the 'vboxnetX' instance number (see netif.h) */ 4503 hrc = hostInterface->EnableStaticI pConfig(getDefaultIPv4Address(Bstr(pszHostOnlyName)).raw(),4503 hrc = hostInterface->EnableStaticIPConfig(getDefaultIPv4Address(Bstr(pszHostOnlyName)).raw(), 4504 4504 Bstr(VBOXNET_IPV4MASK_DEFAULT).raw()); 4505 4505 } … … 4515 4515 if (SUCCEEDED(hrc) && !tmpAddr.isEmpty() && !tmpMask.isEmpty()) 4516 4516 { 4517 hrc = hostInterface->EnableStaticI pConfigV6(tmpAddr.raw(),4517 hrc = hostInterface->EnableStaticIPConfigV6(tmpAddr.raw(), 4518 4518 Utf8Str(tmpMask).toUInt32()); 4519 4519 ComAssertComRC(hrc); /** @todo r=bird: Why this isn't fatal? (H()) */ -
trunk/src/VBox/Main/src-client/GuestProcessImpl.cpp
r42525 r42551 273 273 } 274 274 275 STDMETHODIMP GuestProcess::COMGETTER(P id)(ULONG *aPID)275 STDMETHODIMP GuestProcess::COMGETTER(PID)(ULONG *aPID) 276 276 { 277 277 #ifndef VBOX_WITH_GUEST_CONTROL -
trunk/src/VBox/Main/src-client/GuestSessionImpl.cpp
r42546 r42551 289 289 LogFlowFuncLeaveRC(S_OK); 290 290 return S_OK; 291 #endif /* VBOX_WITH_GUEST_CONTROL */ 292 } 293 294 STDMETHODIMP GuestSession::COMSETTER(Environment)(ComSafeArrayIn(IN_BSTR, aValues)) 295 { 296 #ifndef VBOX_WITH_GUEST_CONTROL 297 ReturnComNotImplemented(); 298 #else 299 LogFlowThisFuncEnter(); 300 301 AutoCaller autoCaller(this); 302 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 303 304 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 305 306 com::SafeArray<IN_BSTR> environment(ComSafeArrayInArg(aValues)); 307 308 int rc = VINF_SUCCESS; 309 for (size_t i = 0; i < environment.size() && RT_SUCCESS(rc); i++) 310 { 311 Utf8Str strEnv(environment[i]); 312 if (!strEnv.isEmpty()) /* Silently skip empty entries. */ 313 rc = mData.mEnvironment.Set(strEnv); 314 } 315 316 HRESULT hr = RT_SUCCESS(rc) ? S_OK : VBOX_E_IPRT_ERROR; 317 LogFlowFuncLeaveRC(hr); 318 return hr; 291 319 #endif /* VBOX_WITH_GUEST_CONTROL */ 292 320 } … … 1083 1111 } 1084 1112 1085 STDMETHODIMP GuestSession::EnvironmentSetArray(ComSafeArrayIn(IN_BSTR, aValues))1086 {1087 #ifndef VBOX_WITH_GUEST_CONTROL1088 ReturnComNotImplemented();1089 #else1090 LogFlowThisFuncEnter();1091 1092 AutoCaller autoCaller(this);1093 if (FAILED(autoCaller.rc())) return autoCaller.rc();1094 1095 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);1096 1097 com::SafeArray<IN_BSTR> environment(ComSafeArrayInArg(aValues));1098 1099 int rc = VINF_SUCCESS;1100 for (size_t i = 0; i < environment.size() && RT_SUCCESS(rc); i++)1101 {1102 Utf8Str strEnv(environment[i]);1103 if (!strEnv.isEmpty()) /* Silently skip empty entries. */1104 rc = mData.mEnvironment.Set(strEnv);1105 }1106 1107 HRESULT hr = RT_SUCCESS(rc) ? S_OK : VBOX_E_IPRT_ERROR;1108 LogFlowFuncLeaveRC(hr);1109 return hr;1110 #endif /* VBOX_WITH_GUEST_CONTROL */1111 }1112 1113 1113 STDMETHODIMP GuestSession::EnvironmentUnset(IN_BSTR aName) 1114 1114 { -
trunk/src/VBox/Main/src-client/PCIRawDevImpl.cpp
r42497 r42551 5 5 6 6 /* 7 * Copyright (C) 2010-201 1Oracle Corporation7 * Copyright (C) 2010-2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 16 16 */ 17 17 #include "Logging.h" 18 #include "P ciRawDevImpl.h"19 #include "P ciDeviceAttachmentImpl.h"18 #include "PCIRawDevImpl.h" 19 #include "PCIDeviceAttachmentImpl.h" 20 20 #include "ConsoleImpl.h" 21 21 #include "MachineImpl.h" … … 30 30 { 31 31 /** Pointer to the real PCI raw object. */ 32 P ciRawDev *pPciRawDev;32 PCIRawDev *pPCIRawDev; 33 33 /** Pointer to the driver instance structure. */ 34 34 PPDMDRVINS pDrvIns; … … 41 41 // constructor / destructor 42 42 // 43 P ciRawDev::PciRawDev(Console *console)43 PCIRawDev::PCIRawDev(Console *console) 44 44 : mpDrv(NULL), 45 45 mParent(console) … … 47 47 } 48 48 49 P ciRawDev::~PciRawDev()49 PCIRawDev::~PCIRawDev() 50 50 { 51 51 } … … 54 54 * @interface_method_impl{PDMIBASE,pfnQueryInterface} 55 55 */ 56 DECLCALLBACK(void *) P ciRawDev::drvQueryInterface(PPDMIBASE pInterface, const char *pszIID)56 DECLCALLBACK(void *) PCIRawDev::drvQueryInterface(PPDMIBASE pInterface, const char *pszIID) 57 57 { 58 58 PPDMDRVINS pDrvIns = PDMIBASE_2_PDMDRV(pInterface); … … 69 69 * @interface_method_impl{PDMIPCIRAWUP,pfnPciDeviceConstructComplete} 70 70 */ 71 DECLCALLBACK(int) P ciRawDev::drvDeviceConstructComplete(PPDMIPCIRAWCONNECTOR pInterface, const char *pcszName,72 uint32_t uHostP ciAddress, uint32_t uGuestPciAddress,71 DECLCALLBACK(int) PCIRawDev::drvDeviceConstructComplete(PPDMIPCIRAWCONNECTOR pInterface, const char *pcszName, 72 uint32_t uHostPCIAddress, uint32_t uGuestPCIAddress, 73 73 int rc) 74 74 { 75 75 PDRVMAINPCIRAWDEV pThis = RT_FROM_CPP_MEMBER(pInterface, DRVMAINPCIRAWDEV, IConnector); 76 Console *pConsole = pThis->pP ciRawDev->getParent();76 Console *pConsole = pThis->pPCIRawDev->getParent(); 77 77 const ComPtr<IMachine>& machine = pConsole->machine(); 78 78 ComPtr<IVirtualBox> vbox; … … 89 89 Assert(SUCCEEDED(hrc)); 90 90 91 ComObjPtr<P ciDeviceAttachment> pda;91 ComObjPtr<PCIDeviceAttachment> pda; 92 92 BstrFmt bstrName(pcszName); 93 93 pda.createObject(); 94 pda->init(machine, bstrName, uHostP ciAddress, uGuestPciAddress, TRUE);94 pda->init(machine, bstrName, uHostPCIAddress, uGuestPCIAddress, TRUE); 95 95 96 96 Bstr msg(""); … … 98 98 msg = BstrFmt("runtime error %Rrc", rc); 99 99 100 fireHostP ciDevicePlugEvent(es, bstrId.raw(), true /* plugged */, RT_SUCCESS(rc) /* success */, pda, msg.raw());100 fireHostPCIDevicePlugEvent(es, bstrId.raw(), true /* plugged */, RT_SUCCESS(rc) /* success */, pda, msg.raw()); 101 101 102 102 return VINF_SUCCESS; … … 110 110 * @param pDrvIns The driver instance data. 111 111 */ 112 DECLCALLBACK(void) P ciRawDev::drvDestruct(PPDMDRVINS pDrvIns)112 DECLCALLBACK(void) PCIRawDev::drvDestruct(PPDMDRVINS pDrvIns) 113 113 { 114 114 PDRVMAINPCIRAWDEV pData = PDMINS_2_DATA(pDrvIns, PDRVMAINPCIRAWDEV); 115 115 PDMDRV_CHECK_VERSIONS_RETURN_VOID(pDrvIns); 116 116 117 if (pData->pP ciRawDev)118 pData->pP ciRawDev->mpDrv = NULL;117 if (pData->pPCIRawDev) 118 pData->pPCIRawDev->mpDrv = NULL; 119 119 } 120 120 … … 126 126 * @param pDrvIns The driver instance data. 127 127 */ 128 DECLCALLBACK(void) P ciRawDev::drvReset(PPDMDRVINS pDrvIns)128 DECLCALLBACK(void) PCIRawDev::drvReset(PPDMDRVINS pDrvIns) 129 129 { 130 130 } … … 136 136 * @copydoc FNPDMDRVCONSTRUCT 137 137 */ 138 DECLCALLBACK(int) P ciRawDev::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags)138 DECLCALLBACK(int) PCIRawDev::drvConstruct(PPDMDRVINS pDrvIns, PCFGMNODE pCfgHandle, uint32_t fFlags) 139 139 { 140 140 PDRVMAINPCIRAWDEV pData = PDMINS_2_DATA(pDrvIns, PDRVMAINPCIRAWDEV); … … 154 154 * IBase. 155 155 */ 156 pDrvIns->IBase.pfnQueryInterface = P ciRawDev::drvQueryInterface;156 pDrvIns->IBase.pfnQueryInterface = PCIRawDev::drvQueryInterface; 157 157 158 158 /* 159 159 * IConnector. 160 160 */ 161 pData->IConnector.pfnDeviceConstructComplete = P ciRawDev::drvDeviceConstructComplete;161 pData->IConnector.pfnDeviceConstructComplete = PCIRawDev::drvDeviceConstructComplete; 162 162 163 163 /* … … 172 172 } 173 173 174 pData->pP ciRawDev = (PciRawDev*)pv;175 pData->pP ciRawDev->mpDrv = pData;174 pData->pPCIRawDev = (PCIRawDev *)pv; 175 pData->pPCIRawDev->mpDrv = pData; 176 176 177 177 return VINF_SUCCESS; … … 181 181 * Main raw PCI driver registration record. 182 182 */ 183 const PDMDRVREG P ciRawDev::DrvReg =183 const PDMDRVREG PCIRawDev::DrvReg = 184 184 { 185 185 /* u32Version */ … … 202 202 sizeof(DRVMAINPCIRAWDEV), 203 203 /* pfnConstruct */ 204 P ciRawDev::drvConstruct,204 PCIRawDev::drvConstruct, 205 205 /* pfnDestruct */ 206 P ciRawDev::drvDestruct,206 PCIRawDev::drvDestruct, 207 207 /* pfnRelocate */ 208 208 NULL, … … 212 212 NULL, 213 213 /* pfnReset */ 214 P ciRawDev::drvReset,214 PCIRawDev::drvReset, 215 215 /* pfnSuspend */ 216 216 NULL, -
trunk/src/VBox/Main/src-client/VBoxDriversRegister.cpp
r41352 r42551 5 5 6 6 /* 7 * Copyright (C) 2006-20 07Oracle Corporation7 * Copyright (C) 2006-2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 33 33 #include "ConsoleImpl.h" 34 34 #ifdef VBOX_WITH_PCI_PASSTHROUGH 35 # include "P ciRawDevImpl.h"35 # include "PCIRawDevImpl.h" 36 36 #endif 37 37 … … 90 90 91 91 #ifdef VBOX_WITH_PCI_PASSTHROUGH 92 rc = pCallbacks->pfnRegister(pCallbacks, &P ciRawDev::DrvReg);92 rc = pCallbacks->pfnRegister(pCallbacks, &PCIRawDev::DrvReg); 93 93 if (RT_FAILURE(rc)) 94 94 return rc; -
trunk/src/VBox/Main/src-server/BandwidthControlImpl.cpp
r41882 r42551 529 529 } 530 530 531 HRESULT BandwidthControl::loadSettings(const settings::I oSettings &data)531 HRESULT BandwidthControl::loadSettings(const settings::IOSettings &data) 532 532 { 533 533 HRESULT rc = S_OK; … … 548 548 } 549 549 550 HRESULT BandwidthControl::saveSettings(settings::I oSettings &data)550 HRESULT BandwidthControl::saveSettings(settings::IOSettings &data) 551 551 { 552 552 AutoCaller autoCaller(this); -
trunk/src/VBox/Main/src-server/GuestOSTypeImpl.cpp
r39058 r42551 5 5 6 6 /* 7 * Copyright (C) 2006-201 0Oracle Corporation7 * Copyright (C) 2006-2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 31 31 , mNetworkAdapterType(NetworkAdapterType_Am79C973) 32 32 , mNumSerialEnabled(0) 33 , mD vdStorageControllerType(StorageControllerType_PIIX3)34 , mD vdStorageBusType(StorageBus_IDE)35 , mH dStorageControllerType(StorageControllerType_PIIX3)36 , mH dStorageBusType(StorageBus_IDE)33 , mDVDStorageControllerType(StorageControllerType_PIIX3) 34 , mDVDStorageBusType(StorageBus_IDE) 35 , mHDStorageControllerType(StorageControllerType_PIIX3) 36 , mHDStorageBusType(StorageBus_IDE) 37 37 , mChipsetType(ChipsetType_PIIX3) 38 38 , mAudioControllerType(AudioControllerType_AC97) … … 79 79 NetworkAdapterType_T aNetworkAdapterType, 80 80 uint32_t aNumSerialEnabled, 81 StorageControllerType_T aD vdStorageControllerType,82 StorageBus_T aD vdStorageBusType,83 StorageControllerType_T aH dStorageControllerType,84 StorageBus_T aH dStorageBusType,81 StorageControllerType_T aDVDStorageControllerType, 82 StorageBus_T aDVDStorageBusType, 83 StorageControllerType_T aHDStorageControllerType, 84 StorageBus_T aHDStorageBusType, 85 85 ChipsetType_T aChipsetType 86 86 AudioControllerType_T aAudioControllerType*/ … … 119 119 unconst(mNetworkAdapterType) = ostype.networkAdapterType; 120 120 unconst(mNumSerialEnabled) = ostype.numSerialEnabled; 121 unconst(mD vdStorageControllerType) = ostype.dvdStorageControllerType;122 unconst(mD vdStorageBusType) = ostype.dvdStorageBusType;123 unconst(mH dStorageControllerType) = ostype.hdStorageControllerType;124 unconst(mH dStorageBusType) = ostype.hdStorageBusType;121 unconst(mDVDStorageControllerType) = ostype.dvdStorageControllerType; 122 unconst(mDVDStorageBusType) = ostype.dvdStorageBusType; 123 unconst(mHDStorageControllerType) = ostype.hdStorageControllerType; 124 unconst(mHDStorageBusType) = ostype.hdStorageBusType; 125 125 unconst(mChipsetType) = ostype.chipsetType; 126 126 unconst(mAudioControllerType) = ostype.audioControllerType; … … 316 316 } 317 317 318 STDMETHODIMP GuestOSType::COMGETTER(RecommendedP ae)(BOOL *aRecommendedPae)319 { 320 CheckComArgOutPointerValid(aRecommendedP ae);318 STDMETHODIMP GuestOSType::COMGETTER(RecommendedPAE)(BOOL *aRecommendedPAE) 319 { 320 CheckComArgOutPointerValid(aRecommendedPAE); 321 321 322 322 AutoCaller autoCaller(this); … … 324 324 325 325 /* recommended PAE is constant during life time, no need to lock */ 326 *aRecommendedP ae= !!(mOSHint & VBOXOSHINT_PAE);326 *aRecommendedPAE = !!(mOSHint & VBOXOSHINT_PAE); 327 327 328 328 return S_OK; … … 345 345 } 346 346 347 STDMETHODIMP GuestOSType::COMGETTER(RecommendedD vdStorageController)(StorageControllerType_T * aStorageControllerType)347 STDMETHODIMP GuestOSType::COMGETTER(RecommendedDVDStorageController)(StorageControllerType_T * aStorageControllerType) 348 348 { 349 349 CheckComArgOutPointerValid(aStorageControllerType); … … 353 353 354 354 /* storage controller type is constant during life time, no need to lock */ 355 *aStorageControllerType = mD vdStorageControllerType;356 357 return S_OK; 358 } 359 360 STDMETHODIMP GuestOSType::COMGETTER(RecommendedD vdStorageBus)(StorageBus_T * aStorageBusType)355 *aStorageControllerType = mDVDStorageControllerType; 356 357 return S_OK; 358 } 359 360 STDMETHODIMP GuestOSType::COMGETTER(RecommendedDVDStorageBus)(StorageBus_T * aStorageBusType) 361 361 { 362 362 CheckComArgOutPointerValid(aStorageBusType); … … 366 366 367 367 /* storage controller type is constant during life time, no need to lock */ 368 *aStorageBusType = mD vdStorageBusType;369 370 return S_OK; 371 } 372 373 STDMETHODIMP GuestOSType::COMGETTER(RecommendedH dStorageController)(StorageControllerType_T * aStorageControllerType)368 *aStorageBusType = mDVDStorageBusType; 369 370 return S_OK; 371 } 372 373 STDMETHODIMP GuestOSType::COMGETTER(RecommendedHDStorageController)(StorageControllerType_T * aStorageControllerType) 374 374 { 375 375 CheckComArgOutPointerValid(aStorageControllerType); … … 379 379 380 380 /* storage controller type is constant during life time, no need to lock */ 381 *aStorageControllerType = mH dStorageControllerType;382 383 return S_OK; 384 } 385 386 STDMETHODIMP GuestOSType::COMGETTER(RecommendedH dStorageBus)(StorageBus_T * aStorageBusType)381 *aStorageControllerType = mHDStorageControllerType; 382 383 return S_OK; 384 } 385 386 STDMETHODIMP GuestOSType::COMGETTER(RecommendedHDStorageBus)(StorageBus_T * aStorageBusType) 387 387 { 388 388 CheckComArgOutPointerValid(aStorageBusType); … … 392 392 393 393 /* storage controller type is constant during life time, no need to lock */ 394 *aStorageBusType = mH dStorageBusType;395 396 return S_OK; 397 } 398 399 STDMETHODIMP GuestOSType::COMGETTER(RecommendedU sbHid)(BOOL *aRecommendedUsbHid)400 { 401 CheckComArgOutPointerValid(aRecommendedU sbHid);394 *aStorageBusType = mHDStorageBusType; 395 396 return S_OK; 397 } 398 399 STDMETHODIMP GuestOSType::COMGETTER(RecommendedUSBHID)(BOOL *aRecommendedUSBHID) 400 { 401 CheckComArgOutPointerValid(aRecommendedUSBHID); 402 402 403 403 AutoCaller autoCaller(this); … … 405 405 406 406 /* HID type is constant during life time, no need to lock */ 407 *aRecommendedU sbHid= !!(mOSHint & VBOXOSHINT_USBHID);408 409 return S_OK; 410 } 411 412 STDMETHODIMP GuestOSType::COMGETTER(RecommendedH pet)(BOOL *aRecommendedHpet)413 { 414 CheckComArgOutPointerValid(aRecommendedH pet);407 *aRecommendedUSBHID = !!(mOSHint & VBOXOSHINT_USBHID); 408 409 return S_OK; 410 } 411 412 STDMETHODIMP GuestOSType::COMGETTER(RecommendedHPET)(BOOL *aRecommendedHPET) 413 { 414 CheckComArgOutPointerValid(aRecommendedHPET); 415 415 416 416 AutoCaller autoCaller(this); … … 418 418 419 419 /* HPET recommendation is constant during life time, no need to lock */ 420 *aRecommendedH pet= !!(mOSHint & VBOXOSHINT_HPET);421 422 return S_OK; 423 } 424 425 STDMETHODIMP GuestOSType::COMGETTER(RecommendedU sbTablet)(BOOL *aRecommendedUsbTablet)426 { 427 CheckComArgOutPointerValid(aRecommendedU sbTablet);420 *aRecommendedHPET = !!(mOSHint & VBOXOSHINT_HPET); 421 422 return S_OK; 423 } 424 425 STDMETHODIMP GuestOSType::COMGETTER(RecommendedUSBTablet)(BOOL *aRecommendedUSBTablet) 426 { 427 CheckComArgOutPointerValid(aRecommendedUSBTablet); 428 428 429 429 AutoCaller autoCaller(this); … … 431 431 432 432 /* HID type is constant during life time, no need to lock */ 433 *aRecommendedU sbTablet = !!(mOSHint & VBOXOSHINT_USBTABLET);434 435 return S_OK; 436 } 437 438 STDMETHODIMP GuestOSType::COMGETTER(RecommendedR tcUseUtc)(BOOL *aRecommendedRtcUseUtc)439 { 440 CheckComArgOutPointerValid(aRecommendedR tcUseUtc);433 *aRecommendedUSBTablet = !!(mOSHint & VBOXOSHINT_USBTABLET); 434 435 return S_OK; 436 } 437 438 STDMETHODIMP GuestOSType::COMGETTER(RecommendedRTCUseUTC)(BOOL *aRecommendedRTCUseUTC) 439 { 440 CheckComArgOutPointerValid(aRecommendedRTCUseUTC); 441 441 442 442 AutoCaller autoCaller(this); … … 444 444 445 445 /* Value is constant during life time, no need to lock */ 446 *aRecommendedR tcUseUtc= !!(mOSHint & VBOXOSHINT_RTCUTC);446 *aRecommendedRTCUseUTC = !!(mOSHint & VBOXOSHINT_RTCUTC); 447 447 448 448 return S_OK; … … 487 487 } 488 488 489 STDMETHODIMP GuestOSType::COMGETTER(RecommendedU sb)(BOOL *aRecommendedUsb)490 { 491 CheckComArgOutPointerValid(aRecommendedU sb);489 STDMETHODIMP GuestOSType::COMGETTER(RecommendedUSB)(BOOL *aRecommendedUSB) 490 { 491 CheckComArgOutPointerValid(aRecommendedUSB); 492 492 493 493 AutoCaller autoCaller(this); … … 495 495 496 496 /* Value is constant during life time, no need to lock */ 497 *aRecommendedU sb= !(mOSHint & VBOXOSHINT_NOUSB);497 *aRecommendedUSB = !(mOSHint & VBOXOSHINT_NOUSB); 498 498 499 499 return S_OK; -
trunk/src/VBox/Main/src-server/HostNetworkInterfaceImpl.cpp
r40078 r42551 7 7 8 8 /* 9 * Copyright (C) 2006-20 08Oracle Corporation9 * Copyright (C) 2006-2012 Oracle Corporation 10 10 * 11 11 * This file is part of VirtualBox Open Source Edition (OSE), as … … 48 48 void HostNetworkInterface::FinalRelease() 49 49 { 50 uninit 50 uninit(); 51 51 BaseFinalRelease(); 52 52 } … … 87 87 #ifdef VBOX_WITH_HOSTNETIF_API 88 88 89 HRESULT HostNetworkInterface::updateConfig 89 HRESULT HostNetworkInterface::updateConfig() 90 90 { 91 91 NETIFINFO info; … … 123 123 * @param aGuid GUID of the host network interface 124 124 */ 125 HRESULT HostNetworkInterface::init 125 HRESULT HostNetworkInterface::init(Bstr aInterfaceName, HostNetworkInterfaceType_T ifType, PNETIFINFO pIf) 126 126 { 127 127 // LogFlowThisFunc(("aInterfaceName={%ls}, aGuid={%s}\n", … … 140 140 if (pIf->szShortName[0]) 141 141 unconst(mNetworkName) = composeNetworkName(pIf->szShortName); 142 else 142 else 143 143 unconst(mNetworkName) = composeNetworkName(aInterfaceName); 144 144 mIfType = ifType; … … 174 174 * @param aInterfaceName address of result pointer 175 175 */ 176 STDMETHODIMP HostNetworkInterface::COMGETTER(Name) 176 STDMETHODIMP HostNetworkInterface::COMGETTER(Name)(BSTR *aInterfaceName) 177 177 { 178 178 CheckComArgOutPointerValid(aInterfaceName); … … 192 192 * @param aGuid address of result pointer 193 193 */ 194 STDMETHODIMP HostNetworkInterface::COMGETTER(Id) 194 STDMETHODIMP HostNetworkInterface::COMGETTER(Id)(BSTR *aGuid) 195 195 { 196 196 CheckComArgOutPointerValid(aGuid); … … 204 204 } 205 205 206 STDMETHODIMP HostNetworkInterface::COMGETTER(D hcpEnabled) (BOOL *aDhcpEnabled)207 { 208 CheckComArgOutPointerValid(aD hcpEnabled);209 210 AutoCaller autoCaller(this); 211 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 212 213 *aD hcpEnabled = m.dhcpEnabled;206 STDMETHODIMP HostNetworkInterface::COMGETTER(DHCPEnabled)(BOOL *aDHCPEnabled) 207 { 208 CheckComArgOutPointerValid(aDHCPEnabled); 209 210 AutoCaller autoCaller(this); 211 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 212 213 *aDHCPEnabled = m.dhcpEnabled; 214 214 215 215 return S_OK; … … 223 223 * @param aIPAddress address of result pointer 224 224 */ 225 STDMETHODIMP HostNetworkInterface::COMGETTER(IPAddress) 225 STDMETHODIMP HostNetworkInterface::COMGETTER(IPAddress)(BSTR *aIPAddress) 226 226 { 227 227 CheckComArgOutPointerValid(aIPAddress); … … 252 252 * @param aNetworkMask address of result pointer 253 253 */ 254 STDMETHODIMP HostNetworkInterface::COMGETTER(NetworkMask) 254 STDMETHODIMP HostNetworkInterface::COMGETTER(NetworkMask)(BSTR *aNetworkMask) 255 255 { 256 256 CheckComArgOutPointerValid(aNetworkMask); … … 275 275 } 276 276 277 STDMETHODIMP HostNetworkInterface::COMGETTER(IPV6Supported) 277 STDMETHODIMP HostNetworkInterface::COMGETTER(IPV6Supported)(BOOL *aIPV6Supported) 278 278 { 279 279 CheckComArgOutPointerValid(aIPV6Supported); … … 293 293 * @param aIPV6Address address of result pointer 294 294 */ 295 STDMETHODIMP HostNetworkInterface::COMGETTER(IPV6Address) 295 STDMETHODIMP HostNetworkInterface::COMGETTER(IPV6Address)(BSTR *aIPV6Address) 296 296 { 297 297 CheckComArgOutPointerValid(aIPV6Address); … … 311 311 * @param aIPV6Mask address of result pointer 312 312 */ 313 STDMETHODIMP HostNetworkInterface::COMGETTER(IPV6NetworkMaskPrefixLength) 313 STDMETHODIMP HostNetworkInterface::COMGETTER(IPV6NetworkMaskPrefixLength)(ULONG *aIPV6NetworkMaskPrefixLength) 314 314 { 315 315 CheckComArgOutPointerValid(aIPV6NetworkMaskPrefixLength); … … 329 329 * @param aHardwareAddress address of result pointer 330 330 */ 331 STDMETHODIMP HostNetworkInterface::COMGETTER(HardwareAddress) 331 STDMETHODIMP HostNetworkInterface::COMGETTER(HardwareAddress)(BSTR *aHardwareAddress) 332 332 { 333 333 CheckComArgOutPointerValid(aHardwareAddress); … … 347 347 * @param aType address of result pointer 348 348 */ 349 STDMETHODIMP HostNetworkInterface::COMGETTER(MediumType) 349 STDMETHODIMP HostNetworkInterface::COMGETTER(MediumType)(HostNetworkInterfaceMediumType_T *aType) 350 350 { 351 351 CheckComArgOutPointerValid(aType); … … 365 365 * @param aStatus address of result pointer 366 366 */ 367 STDMETHODIMP HostNetworkInterface::COMGETTER(Status) 367 STDMETHODIMP HostNetworkInterface::COMGETTER(Status)(HostNetworkInterfaceStatus_T *aStatus) 368 368 { 369 369 CheckComArgOutPointerValid(aStatus); … … 383 383 * @param aType address of result pointer 384 384 */ 385 STDMETHODIMP HostNetworkInterface::COMGETTER(InterfaceType) 385 STDMETHODIMP HostNetworkInterface::COMGETTER(InterfaceType)(HostNetworkInterfaceType_T *aType) 386 386 { 387 387 CheckComArgOutPointerValid(aType); … … 396 396 } 397 397 398 STDMETHODIMP HostNetworkInterface::COMGETTER(NetworkName) 398 STDMETHODIMP HostNetworkInterface::COMGETTER(NetworkName)(BSTR *aNetworkName) 399 399 { 400 400 CheckComArgOutPointerValid(aNetworkName); … … 408 408 } 409 409 410 STDMETHODIMP HostNetworkInterface::EnableStaticI pConfig(IN_BSTR aIPAddress, IN_BSTR aNetMask)410 STDMETHODIMP HostNetworkInterface::EnableStaticIPConfig(IN_BSTR aIPAddress, IN_BSTR aNetMask) 411 411 { 412 412 #ifndef VBOX_WITH_HOSTNETIF_API … … 452 452 m.realIPAddress = ip; 453 453 m.realNetworkMask = mask; 454 if (FAILED(mVBox->SetExtraData(BstrFmt("HostOnly/%ls/IPAddress", mInterfaceName.raw()).raw(), 454 if (FAILED(mVBox->SetExtraData(BstrFmt("HostOnly/%ls/IPAddress", mInterfaceName.raw()).raw(), 455 455 Bstr(aIPAddress).raw()))) 456 456 return E_FAIL; … … 472 472 } 473 473 474 STDMETHODIMP HostNetworkInterface::EnableStaticI pConfigV6(IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength)474 STDMETHODIMP HostNetworkInterface::EnableStaticIPConfigV6(IN_BSTR aIPV6Address, ULONG aIPV6MaskPrefixLength) 475 475 { 476 476 #ifndef VBOX_WITH_HOSTNETIF_API … … 513 513 } 514 514 515 STDMETHODIMP HostNetworkInterface::EnableDynamicI pConfig()515 STDMETHODIMP HostNetworkInterface::EnableDynamicIPConfig() 516 516 { 517 517 #ifndef VBOX_WITH_HOSTNETIF_API … … 531 531 } 532 532 533 STDMETHODIMP HostNetworkInterface::D hcpRediscover()533 STDMETHODIMP HostNetworkInterface::DHCPRediscover() 534 534 { 535 535 #ifndef VBOX_WITH_HOSTNETIF_API -
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r42538 r42551 131 131 mGuestPropertiesModified = FALSE; 132 132 133 mSession.mP id= NIL_RTPROCESS;133 mSession.mPID = NIL_RTPROCESS; 134 134 mSession.mState = SessionState_Unlocked; 135 135 } … … 187 187 #endif 188 188 mSyntheticCpu = false; 189 mH petEnabled = false;189 mHPETEnabled = false; 190 190 191 191 /* default boot order: floppy - DVD - HDD */ … … 201 201 202 202 mFirmwareType = FirmwareType_BIOS; 203 mKeyboardH idType = KeyboardHidType_PS2Keyboard;204 mPointingH idType = PointingHidType_PS2Mouse;203 mKeyboardHIDType = KeyboardHIDType_PS2Keyboard; 204 mPointingHIDType = PointingHIDType_PS2Mouse; 205 205 mChipsetType = ChipsetType_PIIX3; 206 206 mEmulatedUSBCardReaderEnabled = FALSE; … … 209 209 mCPUAttached[i] = false; 210 210 211 mI oCacheEnabled = true;212 mI oCacheSize = 5; /* 5MB */211 mIOCacheEnabled = true; 212 mIOCacheSize = 5; /* 5MB */ 213 213 214 214 /* Maximum CPU execution cap by default. */ … … 1176 1176 } 1177 1177 1178 STDMETHODIMP Machine::COMGETTER(KeyboardH idType)(KeyboardHidType_T *aKeyboardHidType)1179 { 1180 CheckComArgOutPointerValid(aKeyboardH idType);1178 STDMETHODIMP Machine::COMGETTER(KeyboardHIDType)(KeyboardHIDType_T *aKeyboardHIDType) 1179 { 1180 CheckComArgOutPointerValid(aKeyboardHIDType); 1181 1181 1182 1182 AutoCaller autoCaller(this); … … 1185 1185 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 1186 1186 1187 *aKeyboardH idType = mHWData->mKeyboardHidType;1188 1189 return S_OK; 1190 } 1191 1192 STDMETHODIMP Machine::COMSETTER(KeyboardH idType)(KeyboardHidType_T aKeyboardHidType)1187 *aKeyboardHIDType = mHWData->mKeyboardHIDType; 1188 1189 return S_OK; 1190 } 1191 1192 STDMETHODIMP Machine::COMSETTER(KeyboardHIDType)(KeyboardHIDType_T aKeyboardHIDType) 1193 1193 { 1194 1194 AutoCaller autoCaller(this); … … 1201 1201 setModified(IsModified_MachineData); 1202 1202 mHWData.backup(); 1203 mHWData->mKeyboardH idType = aKeyboardHidType;1204 1205 return S_OK; 1206 } 1207 1208 STDMETHODIMP Machine::COMGETTER(PointingH idType)(PointingHidType_T *aPointingHidType)1209 { 1210 CheckComArgOutPointerValid(aPointingH idType);1203 mHWData->mKeyboardHIDType = aKeyboardHIDType; 1204 1205 return S_OK; 1206 } 1207 1208 STDMETHODIMP Machine::COMGETTER(PointingHIDType)(PointingHIDType_T *aPointingHIDType) 1209 { 1210 CheckComArgOutPointerValid(aPointingHIDType); 1211 1211 1212 1212 AutoCaller autoCaller(this); … … 1215 1215 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 1216 1216 1217 *aPointingH idType = mHWData->mPointingHidType;1218 1219 return S_OK; 1220 } 1221 1222 STDMETHODIMP Machine::COMSETTER(PointingH idType)(PointingHidType_T aPointingHidType)1217 *aPointingHIDType = mHWData->mPointingHIDType; 1218 1219 return S_OK; 1220 } 1221 1222 STDMETHODIMP Machine::COMSETTER(PointingHIDType)(PointingHIDType_T aPointingHIDType) 1223 1223 { 1224 1224 AutoCaller autoCaller(this); … … 1231 1231 setModified(IsModified_MachineData); 1232 1232 mHWData.backup(); 1233 mHWData->mPointingH idType = aPointingHidType;1233 mHWData->mPointingHIDType = aPointingHIDType; 1234 1234 1235 1235 return S_OK; … … 1626 1626 } 1627 1627 1628 STDMETHODIMP Machine::COMGETTER(H petEnabled)(BOOL *enabled)1628 STDMETHODIMP Machine::COMGETTER(HPETEnabled)(BOOL *enabled) 1629 1629 { 1630 1630 CheckComArgOutPointerValid(enabled); … … 1634 1634 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 1635 1635 1636 *enabled = mHWData->mH petEnabled;1637 1638 return S_OK; 1639 } 1640 1641 STDMETHODIMP Machine::COMSETTER(H petEnabled)(BOOL enabled)1636 *enabled = mHWData->mHPETEnabled; 1637 1638 return S_OK; 1639 } 1640 1641 STDMETHODIMP Machine::COMSETTER(HPETEnabled)(BOOL enabled) 1642 1642 { 1643 1643 HRESULT rc = S_OK; … … 1653 1653 mHWData.backup(); 1654 1654 1655 mHWData->mH petEnabled = enabled;1655 mHWData->mHPETEnabled = enabled; 1656 1656 1657 1657 return rc; … … 2439 2439 } 2440 2440 2441 STDMETHODIMP Machine::COMGETTER(SessionP id)(ULONG *aSessionPid)2442 { 2443 CheckComArgOutPointerValid(aSessionP id);2441 STDMETHODIMP Machine::COMGETTER(SessionPID)(ULONG *aSessionPID) 2442 { 2443 CheckComArgOutPointerValid(aSessionPID); 2444 2444 2445 2445 AutoCaller autoCaller(this); … … 2448 2448 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 2449 2449 2450 *aSessionP id = mData->mSession.mPid;2450 *aSessionPID = mData->mSession.mPID; 2451 2451 2452 2452 return S_OK; … … 3063 3063 } 3064 3064 3065 STDMETHODIMP Machine::COMGETTER(I oCacheEnabled)(BOOL *aEnabled)3065 STDMETHODIMP Machine::COMGETTER(IOCacheEnabled)(BOOL *aEnabled) 3066 3066 { 3067 3067 CheckComArgOutPointerValid(aEnabled); … … 3072 3072 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 3073 3073 3074 *aEnabled = mHWData->mI oCacheEnabled;3075 3076 return S_OK; 3077 } 3078 3079 STDMETHODIMP Machine::COMSETTER(I oCacheEnabled)(BOOL aEnabled)3074 *aEnabled = mHWData->mIOCacheEnabled; 3075 3076 return S_OK; 3077 } 3078 3079 STDMETHODIMP Machine::COMSETTER(IOCacheEnabled)(BOOL aEnabled) 3080 3080 { 3081 3081 AutoCaller autoCaller(this); … … 3089 3089 setModified(IsModified_MachineData); 3090 3090 mHWData.backup(); 3091 mHWData->mI oCacheEnabled = aEnabled;3092 3093 return S_OK; 3094 } 3095 3096 STDMETHODIMP Machine::COMGETTER(I oCacheSize)(ULONG *aIoCacheSize)3097 { 3098 CheckComArgOutPointerValid(aI oCacheSize);3091 mHWData->mIOCacheEnabled = aEnabled; 3092 3093 return S_OK; 3094 } 3095 3096 STDMETHODIMP Machine::COMGETTER(IOCacheSize)(ULONG *aIOCacheSize) 3097 { 3098 CheckComArgOutPointerValid(aIOCacheSize); 3099 3099 3100 3100 AutoCaller autoCaller(this); … … 3103 3103 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 3104 3104 3105 *aI oCacheSize = mHWData->mIoCacheSize;3106 3107 return S_OK; 3108 } 3109 3110 STDMETHODIMP Machine::COMSETTER(I oCacheSize)(ULONG aIoCacheSize)3105 *aIOCacheSize = mHWData->mIOCacheSize; 3106 3107 return S_OK; 3108 } 3109 3110 STDMETHODIMP Machine::COMSETTER(IOCacheSize)(ULONG aIOCacheSize) 3111 3111 { 3112 3112 AutoCaller autoCaller(this); … … 3120 3120 setModified(IsModified_MachineData); 3121 3121 mHWData.backup(); 3122 mHWData->mI oCacheSize = aIoCacheSize;3122 mHWData->mIOCacheSize = aIOCacheSize; 3123 3123 3124 3124 return S_OK; … … 3263 3263 // LaunchVMProcess() 3264 3264 3265 LogFlowThisFunc(("mSession.mP id=%d(0x%x)\n", mData->mSession.mPid, mData->mSession.mPid));3265 LogFlowThisFunc(("mSession.mPID=%d(0x%x)\n", mData->mSession.mPID, mData->mSession.mPID)); 3266 3266 LogFlowThisFunc(("session.pid=%d(0x%x)\n", pid, pid)); 3267 3267 3268 if (mData->mSession.mP id!= pid)3268 if (mData->mSession.mPID != pid) 3269 3269 return setError(E_ACCESSDENIED, 3270 3270 tr("An unexpected process (PID=0x%08X) has tried to lock the " 3271 3271 "machine '%s', while only the process started by LaunchVMProcess (PID=0x%08X) is allowed"), 3272 pid, mUserData->s.strName.c_str(), mData->mSession.mP id);3272 pid, mUserData->s.strName.c_str(), mData->mSession.mPID); 3273 3273 } 3274 3274 … … 3368 3368 * around here. */ 3369 3369 3370 /* We don't reset mSession.mP idhere because it is necessary for3370 /* We don't reset mSession.mPID here because it is necessary for 3371 3371 * SessionMachine::uninit() to reap the child process later. */ 3372 3372 … … 3392 3392 /* memorize PID of the directly opened session */ 3393 3393 if (SUCCEEDED(rc)) 3394 mData->mSession.mP id= pid;3394 mData->mSession.mPID = pid; 3395 3395 } 3396 3396 … … 3535 3535 3536 3536 /* forcibly terminate the VM process */ 3537 if (mData->mSession.mP id!= NIL_RTPROCESS)3538 RTProcTerminate(mData->mSession.mP id);3537 if (mData->mSession.mPID != NIL_RTPROCESS) 3538 RTProcTerminate(mData->mSession.mPID); 3539 3539 3540 3540 /* signal the client watcher thread, as most likely the client has … … 6443 6443 * just makes sure it's plugged on next VM start. 6444 6444 */ 6445 STDMETHODIMP Machine::AttachHostP ciDevice(LONG hostAddress, LONG desiredGuestAddress, BOOL /*tryToUnbind*/)6445 STDMETHODIMP Machine::AttachHostPCIDevice(LONG hostAddress, LONG desiredGuestAddress, BOOL /*tryToUnbind*/) 6446 6446 { 6447 6447 AutoCaller autoCaller(this); … … 6465 6465 6466 6466 // check if device with this host PCI address already attached 6467 for (HWData::P ciDeviceAssignmentList::iterator it = mHWData->mPciDeviceAssignments.begin();6468 it != mHWData->mP ciDeviceAssignments.end();6467 for (HWData::PCIDeviceAssignmentList::iterator it = mHWData->mPCIDeviceAssignments.begin(); 6468 it != mHWData->mPCIDeviceAssignments.end(); 6469 6469 ++it) 6470 6470 { 6471 6471 LONG iHostAddress = -1; 6472 ComPtr<P ciDeviceAttachment> pAttach;6472 ComPtr<PCIDeviceAttachment> pAttach; 6473 6473 pAttach = *it; 6474 6474 pAttach->COMGETTER(HostAddress)(&iHostAddress); … … 6478 6478 } 6479 6479 6480 ComObjPtr<P ciDeviceAttachment> pda;6480 ComObjPtr<PCIDeviceAttachment> pda; 6481 6481 char name[32]; 6482 6482 … … 6487 6487 setModified(IsModified_MachineData); 6488 6488 mHWData.backup(); 6489 mHWData->mP ciDeviceAssignments.push_back(pda);6489 mHWData->mPCIDeviceAssignments.push_back(pda); 6490 6490 } 6491 6491 … … 6497 6497 * just makes sure it's not plugged on next VM start. 6498 6498 */ 6499 STDMETHODIMP Machine::DetachHostP ciDevice(LONG hostAddress)6500 { 6501 AutoCaller autoCaller(this); 6502 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 6503 6504 ComObjPtr<P ciDeviceAttachment> pAttach;6499 STDMETHODIMP Machine::DetachHostPCIDevice(LONG hostAddress) 6500 { 6501 AutoCaller autoCaller(this); 6502 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 6503 6504 ComObjPtr<PCIDeviceAttachment> pAttach; 6505 6505 bool fRemoved = false; 6506 6506 HRESULT rc; … … 6513 6513 if (FAILED(rc)) return rc; 6514 6514 6515 for (HWData::P ciDeviceAssignmentList::iterator it = mHWData->mPciDeviceAssignments.begin();6516 it != mHWData->mP ciDeviceAssignments.end();6515 for (HWData::PCIDeviceAssignmentList::iterator it = mHWData->mPCIDeviceAssignments.begin(); 6516 it != mHWData->mPCIDeviceAssignments.end(); 6517 6517 ++it) 6518 6518 { … … 6524 6524 setModified(IsModified_MachineData); 6525 6525 mHWData.backup(); 6526 mHWData->mP ciDeviceAssignments.remove(pAttach);6526 mHWData->mPCIDeviceAssignments.remove(pAttach); 6527 6527 fRemoved = true; 6528 6528 break; … … 6542 6542 rc = this->COMGETTER(Id)(mid.asOutParam()); 6543 6543 Assert(SUCCEEDED(rc)); 6544 fireHostP ciDevicePlugEvent(es, mid.raw(), false /* unplugged */, true /* success */, pAttach, NULL);6544 fireHostPCIDevicePlugEvent(es, mid.raw(), false /* unplugged */, true /* success */, pAttach, NULL); 6545 6545 } 6546 6546 … … 6551 6551 } 6552 6552 6553 STDMETHODIMP Machine::COMGETTER(P ciDeviceAssignments)(ComSafeArrayOut(IPciDeviceAttachment *, aAssignments))6553 STDMETHODIMP Machine::COMGETTER(PCIDeviceAssignments)(ComSafeArrayOut(IPCIDeviceAttachment *, aAssignments)) 6554 6554 { 6555 6555 CheckComArgOutSafeArrayPointerValid(aAssignments); … … 6560 6560 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 6561 6561 6562 SafeIfaceArray<IP ciDeviceAttachment> assignments(mHWData->mPciDeviceAssignments);6562 SafeIfaceArray<IPCIDeviceAttachment> assignments(mHWData->mPCIDeviceAssignments); 6563 6563 assignments.detachTo(ComSafeArrayOutArg(aAssignments)); 6564 6564 … … 7298 7298 7299 7299 /* attach launch data to the machine */ 7300 Assert(mData->mSession.mP id== NIL_RTPROCESS);7300 Assert(mData->mSession.mPID == NIL_RTPROCESS); 7301 7301 mData->mSession.mRemoteControls.push_back(aControl); 7302 7302 mData->mSession.mProgress = aProgress; 7303 mData->mSession.mP id= pid;7303 mData->mSession.mPID = pid; 7304 7304 mData->mSession.mState = SessionState_Spawning; 7305 7305 mData->mSession.mType = strType; … … 7400 7400 if (aPID != NULL) 7401 7401 { 7402 AssertReturn(mData->mSession.mP id!= NIL_RTPROCESS, false);7403 *aPID = mData->mSession.mP id;7402 AssertReturn(mData->mSession.mPID != NIL_RTPROCESS, false); 7403 *aPID = mData->mSession.mPID; 7404 7404 } 7405 7405 #endif … … 7456 7456 7457 7457 /* PID not yet initialized, skip check. */ 7458 if (mData->mSession.mP id== NIL_RTPROCESS)7458 if (mData->mSession.mPID == NIL_RTPROCESS) 7459 7459 return false; 7460 7460 7461 7461 RTPROCSTATUS status; 7462 int vrc = ::RTProcWait(mData->mSession.mP id, RTPROCWAIT_FLAGS_NOBLOCK,7462 int vrc = ::RTProcWait(mData->mSession.mPID, RTPROCWAIT_FLAGS_NOBLOCK, 7463 7463 &status); 7464 7464 … … 7508 7508 } 7509 7509 7510 mParent->addProcessToReap(mData->mSession.mP id);7511 mData->mSession.mP id= NIL_RTPROCESS;7510 mParent->addProcessToReap(mData->mSession.mPID); 7511 mData->mSession.mPID = NIL_RTPROCESS; 7512 7512 7513 7513 mParent->onSessionStateChange(mData->mUuid, SessionState_Unlocked); … … 8420 8420 mHWData->mAccelerate2DVideoEnabled = data.fAccelerate2DVideo; 8421 8421 mHWData->mFirmwareType = data.firmwareType; 8422 mHWData->mPointingH idType = data.pointingHidType;8423 mHWData->mKeyboardH idType = data.keyboardHidType;8422 mHWData->mPointingHIDType = data.pointingHIDType; 8423 mHWData->mKeyboardHIDType = data.keyboardHIDType; 8424 8424 mHWData->mChipsetType = data.chipsetType; 8425 8425 mHWData->mEmulatedUSBCardReaderEnabled = data.fEmulatedUSBCardReader; 8426 mHWData->mH petEnabled = data.fHpetEnabled;8426 mHWData->mHPETEnabled = data.fHPETEnabled; 8427 8427 8428 8428 /* VRDEServer */ … … 8534 8534 8535 8535 // IO settings 8536 mHWData->mI oCacheEnabled = data.ioSettings.fIoCacheEnabled;8537 mHWData->mI oCacheSize = data.ioSettings.ulIoCacheSize;8536 mHWData->mIOCacheEnabled = data.ioSettings.fIOCacheEnabled; 8537 mHWData->mIOCacheSize = data.ioSettings.ulIOCacheSize; 8538 8538 8539 8539 // Host PCI devices 8540 for (settings::HostP ciDeviceAttachmentList::const_iterator it = data.pciAttachments.begin();8540 for (settings::HostPCIDeviceAttachmentList::const_iterator it = data.pciAttachments.begin(); 8541 8541 it != data.pciAttachments.end(); 8542 8542 ++it) 8543 8543 { 8544 const settings::HostP ciDeviceAttachment &hpda = *it;8545 ComObjPtr<P ciDeviceAttachment> pda;8544 const settings::HostPCIDeviceAttachment &hpda = *it; 8545 ComObjPtr<PCIDeviceAttachment> pda; 8546 8546 8547 8547 pda.createObject(); 8548 8548 pda->loadSettings(this, hpda); 8549 mHWData->mP ciDeviceAssignments.push_back(pda);8549 mHWData->mPCIDeviceAssignments.push_back(pda); 8550 8550 } 8551 8551 … … 9594 9594 9595 9595 // HID 9596 data.pointingH idType = mHWData->mPointingHidType;9597 data.keyboardH idType = mHWData->mKeyboardHidType;9596 data.pointingHIDType = mHWData->mPointingHIDType; 9597 data.keyboardHIDType = mHWData->mKeyboardHIDType; 9598 9598 9599 9599 // chipset … … 9603 9603 9604 9604 // HPET 9605 data.fH petEnabled = !!mHWData->mHpetEnabled;9605 data.fHPETEnabled = !!mHWData->mHPETEnabled; 9606 9606 9607 9607 // boot order … … 9710 9710 9711 9711 // IO settings 9712 data.ioSettings.fI oCacheEnabled = !!mHWData->mIoCacheEnabled;9713 data.ioSettings.ulI oCacheSize = mHWData->mIoCacheSize;9712 data.ioSettings.fIOCacheEnabled = !!mHWData->mIOCacheEnabled; 9713 data.ioSettings.ulIOCacheSize = mHWData->mIOCacheSize; 9714 9714 9715 9715 /* BandwidthControl (required) */ … … 9718 9718 9719 9719 /* Host PCI devices */ 9720 for (HWData::P ciDeviceAssignmentList::const_iterator it = mHWData->mPciDeviceAssignments.begin();9721 it != mHWData->mP ciDeviceAssignments.end();9720 for (HWData::PCIDeviceAssignmentList::const_iterator it = mHWData->mPCIDeviceAssignments.begin(); 9721 it != mHWData->mPCIDeviceAssignments.end(); 9722 9722 ++it) 9723 9723 { 9724 ComObjPtr<P ciDeviceAttachment> pda = *it;9725 settings::HostP ciDeviceAttachment hpda;9724 ComObjPtr<PCIDeviceAttachment> pda = *it; 9725 settings::HostPCIDeviceAttachment hpda; 9726 9726 9727 9727 rc = pda->saveSettings(hpda); … … 11709 11709 * need to queue the PID to reap the process (and avoid zombies on 11710 11710 * Linux). */ 11711 Assert(mData->mSession.mP id!= NIL_RTPROCESS);11712 mParent->addProcessToReap(mData->mSession.mP id);11713 } 11714 11715 mData->mSession.mP id= NIL_RTPROCESS;11711 Assert(mData->mSession.mPID != NIL_RTPROCESS); 11712 mParent->addProcessToReap(mData->mSession.mPID); 11713 } 11714 11715 mData->mSession.mPID = NIL_RTPROCESS; 11716 11716 11717 11717 if (aReason == Uninit::Unexpected) … … 11959 11959 * object. Doing it earlier wouldn't be safe. */ 11960 11960 registerMetrics(mParent->performanceCollector(), mPeer, 11961 mData->mSession.mP id);11961 mData->mSession.mPID); 11962 11962 #endif /* VBOX_WITH_RESOURCE_USAGE_API */ 11963 11963 } -
trunk/src/VBox/Main/src-server/MediumImpl.cpp
r42538 r42551 1947 1947 } 1948 1948 1949 STDMETHODIMP Medium::SetI Ds(BOOL aSetImageId,1949 STDMETHODIMP Medium::SetIds(BOOL aSetImageId, 1950 1950 IN_BSTR aImageId, 1951 1951 BOOL aSetParentId, -
trunk/src/VBox/Main/src-server/NATEngineImpl.cpp
r35638 r42551 5 5 6 6 /* 7 * Copyright (C) 2010 Oracle Corporation7 * Copyright (C) 2010-2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 60 60 Log(("init that:%p this:%p\n", aThat, this)); 61 61 62 AutoCaller thatCaller 62 AutoCaller thatCaller(aThat); 63 63 AssertComRCReturnRC(thatCaller.rc()); 64 64 … … 79 79 } 80 80 81 HRESULT NATEngine::initCopy 81 HRESULT NATEngine::initCopy(Machine *aParent, INetworkAdapter *aAdapter, NATEngine *aThat) 82 82 { 83 83 AutoInitSpan autoInitSpan(this); … … 86 86 Log(("initCopy that:%p this:%p\n", aThat, this)); 87 87 88 AutoCaller thatCaller 88 AutoCaller thatCaller(aThat); 89 89 AssertComRCReturnRC(thatCaller.rc()); 90 90 … … 133 133 { 134 134 AutoCaller autoCaller(this); 135 AssertComRCReturn 135 AssertComRCReturn(autoCaller.rc(), false); 136 136 137 137 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); … … 151 151 { 152 152 AutoCaller autoCaller(this); 153 AssertComRCReturnVoid 153 AssertComRCReturnVoid(autoCaller.rc()); 154 154 155 155 /* sanity too */ 156 AutoCaller peerCaller 157 AssertComRCReturnVoid 156 AutoCaller peerCaller(mPeer); 157 AssertComRCReturnVoid(peerCaller.rc()); 158 158 159 159 /* lock both for writing since we modify both (mPeer is "master" so locked … … 165 165 if (mPeer) 166 166 { 167 mPeer->mData.attach 167 mPeer->mData.attach(mData); 168 168 mPeer->mNATRules.clear(); 169 169 NATRuleMap::iterator it; … … 358 358 mData->mTcpSnd = data.u32TcpSnd; 359 359 /* TFTP */ 360 mData->mT ftpPrefix = data.strTftpPrefix;361 mData->mT ftpBootFile = data.strTftpBootFile;362 mData->mT ftpNextServer = data.strTftpNextServer;360 mData->mTFTPPrefix = data.strTFTPPrefix; 361 mData->mTFTPBootFile = data.strTFTPBootFile; 362 mData->mTFTPNextServer = data.strTFTPNextServer; 363 363 /* DNS */ 364 mData->mD nsPassDomain = data.fDnsPassDomain;365 mData->mD nsProxy = data.fDnsProxy;366 mData->mD nsUseHostResolver = data.fDnsUseHostResolver;364 mData->mDNSPassDomain = data.fDNSPassDomain; 365 mData->mDNSProxy = data.fDNSProxy; 366 mData->mDNSUseHostResolver = data.fDNSUseHostResolver; 367 367 /* Alias */ 368 368 mData->mAliasMode = (data.fAliasUseSamePorts ? NATAliasMode_AliasUseSamePorts : 0); … … 396 396 data.u32TcpSnd = mData->mTcpSnd; 397 397 /* TFTP */ 398 data.strT ftpPrefix = mData->mTftpPrefix;399 data.strT ftpBootFile = mData->mTftpBootFile;400 data.strT ftpNextServer = mData->mTftpNextServer;398 data.strTFTPPrefix = mData->mTFTPPrefix; 399 data.strTFTPBootFile = mData->mTFTPBootFile; 400 data.strTFTPNextServer = mData->mTFTPNextServer; 401 401 /* DNS */ 402 data.fD nsPassDomain = !!mData->mDnsPassDomain;403 data.fD nsProxy = !!mData->mDnsProxy;404 data.fD nsUseHostResolver = !!mData->mDnsUseHostResolver;402 data.fDNSPassDomain = !!mData->mDNSPassDomain; 403 data.fDNSProxy = !!mData->mDNSProxy; 404 data.fDNSUseHostResolver = !!mData->mDNSUseHostResolver; 405 405 /* Alias */ 406 406 data.fAliasLog = !!(mData->mAliasMode & NATAliasMode_AliasLog); … … 420 420 { 421 421 AutoCaller autoCaller(this); 422 AssertComRCReturnRC 422 AssertComRCReturnRC(autoCaller.rc()); 423 423 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 424 424 if (Bstr(mData->mNetwork) != aNetwork) … … 449 449 450 450 STDMETHODIMP 451 NATEngine::COMSETTER(HostIP) 452 { 453 AutoCaller autoCaller(this); 454 AssertComRCReturnRC 451 NATEngine::COMSETTER(HostIP)(IN_BSTR aBindIP) 452 { 453 AutoCaller autoCaller(this); 454 AssertComRCReturnRC(autoCaller.rc()); 455 455 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 456 456 if (Bstr(mData->mBindIP) != aBindIP) … … 463 463 return S_OK; 464 464 } 465 STDMETHODIMP NATEngine::COMGETTER(HostIP) 465 STDMETHODIMP NATEngine::COMGETTER(HostIP)(BSTR *aBindIP) 466 466 { 467 467 AutoCaller autoCaller(this); … … 476 476 477 477 STDMETHODIMP 478 NATEngine::COMSETTER(T ftpPrefix)(IN_BSTR aTftpPrefix)479 { 480 AutoCaller autoCaller(this); 481 AssertComRCReturnRC 482 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 483 if (Bstr(mData->mT ftpPrefix) != aTftpPrefix)484 { 485 mData.backup(); 486 mData->mT ftpPrefix = aTftpPrefix;487 mParent->setModified(Machine::IsModified_NetworkAdapters); 488 m_fModified = true; 489 } 490 return S_OK; 491 } 492 493 STDMETHODIMP 494 NATEngine::COMGETTER(T ftpPrefix)(BSTR *aTftpPrefix)495 { 496 AutoCaller autoCaller(this); 497 AssertComRCReturnRC(autoCaller.rc()); 498 499 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 500 if (!mData->mT ftpPrefix.isEmpty())501 { 502 mData->mT ftpPrefix.cloneTo(aTftpPrefix);503 Log(("Getter (this:%p) T ftpPrefix: %s\n", this, mData->mTftpPrefix.c_str()));504 } 505 return S_OK; 506 } 507 508 STDMETHODIMP 509 NATEngine::COMSETTER(T ftpBootFile)(IN_BSTR aTftpBootFile)510 { 511 AutoCaller autoCaller(this); 512 AssertComRCReturnRC 513 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 514 if (Bstr(mData->mT ftpBootFile) != aTftpBootFile)515 { 516 mData.backup(); 517 mData->mT ftpBootFile = aTftpBootFile;518 mParent->setModified(Machine::IsModified_NetworkAdapters); 519 m_fModified = true; 520 } 521 return S_OK; 522 } 523 524 STDMETHODIMP 525 NATEngine::COMGETTER(T ftpBootFile)(BSTR *aTftpBootFile)526 { 527 AutoCaller autoCaller(this); 528 AssertComRCReturnRC(autoCaller.rc()); 529 530 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 531 if (!mData->mT ftpBootFile.isEmpty())532 { 533 mData->mT ftpBootFile.cloneTo(aTftpBootFile);534 Log(("Getter (this:%p) BootFile: %s\n", this, mData->mT ftpBootFile.c_str()));535 } 536 return S_OK; 537 } 538 539 STDMETHODIMP 540 NATEngine::COMSETTER(T ftpNextServer)(IN_BSTR aTftpNextServer)541 { 542 AutoCaller autoCaller(this); 543 AssertComRCReturnRC 544 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 545 if (Bstr(mData->mT ftpNextServer) != aTftpNextServer)546 { 547 mData.backup(); 548 mData->mT ftpNextServer = aTftpNextServer;549 mParent->setModified(Machine::IsModified_NetworkAdapters); 550 m_fModified = true; 551 } 552 return S_OK; 553 } 554 555 STDMETHODIMP 556 NATEngine::COMGETTER(T ftpNextServer)(BSTR *aTftpNextServer)557 { 558 AutoCaller autoCaller(this); 559 AssertComRCReturnRC(autoCaller.rc()); 560 561 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 562 if (!mData->mT ftpNextServer.isEmpty())563 { 564 mData->mT ftpNextServer.cloneTo(aTftpNextServer);565 Log(("Getter (this:%p) NextServer: %s\n", this, mData->mT ftpNextServer.c_str()));478 NATEngine::COMSETTER(TFTPPrefix)(IN_BSTR aTFTPPrefix) 479 { 480 AutoCaller autoCaller(this); 481 AssertComRCReturnRC(autoCaller.rc()); 482 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 483 if (Bstr(mData->mTFTPPrefix) != aTFTPPrefix) 484 { 485 mData.backup(); 486 mData->mTFTPPrefix = aTFTPPrefix; 487 mParent->setModified(Machine::IsModified_NetworkAdapters); 488 m_fModified = true; 489 } 490 return S_OK; 491 } 492 493 STDMETHODIMP 494 NATEngine::COMGETTER(TFTPPrefix)(BSTR *aTFTPPrefix) 495 { 496 AutoCaller autoCaller(this); 497 AssertComRCReturnRC(autoCaller.rc()); 498 499 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 500 if (!mData->mTFTPPrefix.isEmpty()) 501 { 502 mData->mTFTPPrefix.cloneTo(aTFTPPrefix); 503 Log(("Getter (this:%p) TFTPPrefix: %s\n", this, mData->mTFTPPrefix.c_str())); 504 } 505 return S_OK; 506 } 507 508 STDMETHODIMP 509 NATEngine::COMSETTER(TFTPBootFile)(IN_BSTR aTFTPBootFile) 510 { 511 AutoCaller autoCaller(this); 512 AssertComRCReturnRC(autoCaller.rc()); 513 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 514 if (Bstr(mData->mTFTPBootFile) != aTFTPBootFile) 515 { 516 mData.backup(); 517 mData->mTFTPBootFile = aTFTPBootFile; 518 mParent->setModified(Machine::IsModified_NetworkAdapters); 519 m_fModified = true; 520 } 521 return S_OK; 522 } 523 524 STDMETHODIMP 525 NATEngine::COMGETTER(TFTPBootFile)(BSTR *aTFTPBootFile) 526 { 527 AutoCaller autoCaller(this); 528 AssertComRCReturnRC(autoCaller.rc()); 529 530 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 531 if (!mData->mTFTPBootFile.isEmpty()) 532 { 533 mData->mTFTPBootFile.cloneTo(aTFTPBootFile); 534 Log(("Getter (this:%p) BootFile: %s\n", this, mData->mTFTPBootFile.c_str())); 535 } 536 return S_OK; 537 } 538 539 STDMETHODIMP 540 NATEngine::COMSETTER(TFTPNextServer)(IN_BSTR aTFTPNextServer) 541 { 542 AutoCaller autoCaller(this); 543 AssertComRCReturnRC(autoCaller.rc()); 544 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 545 if (Bstr(mData->mTFTPNextServer) != aTFTPNextServer) 546 { 547 mData.backup(); 548 mData->mTFTPNextServer = aTFTPNextServer; 549 mParent->setModified(Machine::IsModified_NetworkAdapters); 550 m_fModified = true; 551 } 552 return S_OK; 553 } 554 555 STDMETHODIMP 556 NATEngine::COMGETTER(TFTPNextServer)(BSTR *aTFTPNextServer) 557 { 558 AutoCaller autoCaller(this); 559 AssertComRCReturnRC(autoCaller.rc()); 560 561 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 562 if (!mData->mTFTPNextServer.isEmpty()) 563 { 564 mData->mTFTPNextServer.cloneTo(aTFTPNextServer); 565 Log(("Getter (this:%p) NextServer: %s\n", this, mData->mTFTPNextServer.c_str())); 566 566 } 567 567 return S_OK; … … 569 569 /* DNS */ 570 570 STDMETHODIMP 571 NATEngine::COMSETTER(D nsPassDomain) (BOOL aDnsPassDomain)572 { 573 AutoCaller autoCaller(this); 574 AssertComRCReturnRC 575 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 576 577 if (mData->mD nsPassDomain != aDnsPassDomain)578 { 579 mData.backup(); 580 mData->mD nsPassDomain = aDnsPassDomain;581 mParent->setModified(Machine::IsModified_NetworkAdapters); 582 m_fModified = true; 583 } 584 return S_OK; 585 } 586 STDMETHODIMP 587 NATEngine::COMGETTER(D nsPassDomain)(BOOL *aDnsPassDomain)588 { 589 AutoCaller autoCaller(this); 590 AssertComRCReturnRC(autoCaller.rc()); 591 592 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 593 *aD nsPassDomain = mData->mDnsPassDomain;594 return S_OK; 595 } 596 STDMETHODIMP 597 NATEngine::COMSETTER(D nsProxy)(BOOL aDnsProxy)598 { 599 AutoCaller autoCaller(this); 600 AssertComRCReturnRC 601 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 602 603 if (mData->mD nsProxy != aDnsProxy)604 { 605 mData.backup(); 606 mData->mD nsProxy = aDnsProxy;607 mParent->setModified(Machine::IsModified_NetworkAdapters); 608 m_fModified = true; 609 } 610 return S_OK; 611 } 612 STDMETHODIMP 613 NATEngine::COMGETTER(D nsProxy)(BOOL *aDnsProxy)614 { 615 AutoCaller autoCaller(this); 616 AssertComRCReturnRC(autoCaller.rc()); 617 618 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 619 *aD nsProxy = mData->mDnsProxy;620 return S_OK; 621 } 622 STDMETHODIMP 623 NATEngine::COMGETTER(D nsUseHostResolver)(BOOL *aDnsUseHostResolver)624 { 625 AutoCaller autoCaller(this); 626 AssertComRCReturnRC 627 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 628 *aD nsUseHostResolver = mData->mDnsUseHostResolver;629 return S_OK; 630 } 631 STDMETHODIMP 632 NATEngine::COMSETTER(D nsUseHostResolver)(BOOL aDnsUseHostResolver)633 { 634 AutoCaller autoCaller(this); 635 AssertComRCReturnRC(autoCaller.rc()); 636 637 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 638 639 if (mData->mD nsUseHostResolver != aDnsUseHostResolver)640 { 641 mData.backup(); 642 mData->mD nsUseHostResolver = aDnsUseHostResolver;643 mParent->setModified(Machine::IsModified_NetworkAdapters); 644 m_fModified = true; 645 } 646 return S_OK; 647 } 648 649 STDMETHODIMP NATEngine::COMSETTER(AliasMode) 571 NATEngine::COMSETTER(DNSPassDomain) (BOOL aDNSPassDomain) 572 { 573 AutoCaller autoCaller(this); 574 AssertComRCReturnRC(autoCaller.rc()); 575 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 576 577 if (mData->mDNSPassDomain != aDNSPassDomain) 578 { 579 mData.backup(); 580 mData->mDNSPassDomain = aDNSPassDomain; 581 mParent->setModified(Machine::IsModified_NetworkAdapters); 582 m_fModified = true; 583 } 584 return S_OK; 585 } 586 STDMETHODIMP 587 NATEngine::COMGETTER(DNSPassDomain)(BOOL *aDNSPassDomain) 588 { 589 AutoCaller autoCaller(this); 590 AssertComRCReturnRC(autoCaller.rc()); 591 592 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 593 *aDNSPassDomain = mData->mDNSPassDomain; 594 return S_OK; 595 } 596 STDMETHODIMP 597 NATEngine::COMSETTER(DNSProxy)(BOOL aDNSProxy) 598 { 599 AutoCaller autoCaller(this); 600 AssertComRCReturnRC(autoCaller.rc()); 601 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 602 603 if (mData->mDNSProxy != aDNSProxy) 604 { 605 mData.backup(); 606 mData->mDNSProxy = aDNSProxy; 607 mParent->setModified(Machine::IsModified_NetworkAdapters); 608 m_fModified = true; 609 } 610 return S_OK; 611 } 612 STDMETHODIMP 613 NATEngine::COMGETTER(DNSProxy)(BOOL *aDNSProxy) 614 { 615 AutoCaller autoCaller(this); 616 AssertComRCReturnRC(autoCaller.rc()); 617 618 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 619 *aDNSProxy = mData->mDNSProxy; 620 return S_OK; 621 } 622 STDMETHODIMP 623 NATEngine::COMGETTER(DNSUseHostResolver)(BOOL *aDNSUseHostResolver) 624 { 625 AutoCaller autoCaller(this); 626 AssertComRCReturnRC(autoCaller.rc()); 627 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 628 *aDNSUseHostResolver = mData->mDNSUseHostResolver; 629 return S_OK; 630 } 631 STDMETHODIMP 632 NATEngine::COMSETTER(DNSUseHostResolver)(BOOL aDNSUseHostResolver) 633 { 634 AutoCaller autoCaller(this); 635 AssertComRCReturnRC(autoCaller.rc()); 636 637 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 638 639 if (mData->mDNSUseHostResolver != aDNSUseHostResolver) 640 { 641 mData.backup(); 642 mData->mDNSUseHostResolver = aDNSUseHostResolver; 643 mParent->setModified(Machine::IsModified_NetworkAdapters); 644 m_fModified = true; 645 } 646 return S_OK; 647 } 648 649 STDMETHODIMP NATEngine::COMSETTER(AliasMode)(ULONG aAliasMode) 650 650 { 651 651 AutoCaller autoCaller(this); … … 664 664 } 665 665 666 STDMETHODIMP NATEngine::COMGETTER(AliasMode) 667 { 668 AutoCaller autoCaller(this); 669 AssertComRCReturnRC 666 STDMETHODIMP NATEngine::COMGETTER(AliasMode)(ULONG *aAliasMode) 667 { 668 AutoCaller autoCaller(this); 669 AssertComRCReturnRC(autoCaller.rc()); 670 670 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 671 671 *aAliasMode = mData->mAliasMode; -
trunk/src/VBox/Main/src-server/NetworkAdapterImpl.cpp
r40536 r42551 1 1 /* $Id$ */ 2 2 /** @file 3 * Implementation of INetworkAdapt or in VBoxSVC.3 * Implementation of INetworkAdapter in VBoxSVC. 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 2006-201 1Oracle Corporation7 * Copyright (C) 2006-2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 956 956 } 957 957 958 STDMETHODIMP NetworkAdapter::COMGETTER(N atDriver)(INATEngine **aNatDriver)959 { 960 CheckComArgOutPointerValid(aN atDriver);961 962 AutoCaller autoCaller(this); 963 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 964 965 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 966 967 mNATEngine.queryInterfaceTo(aN atDriver);958 STDMETHODIMP NetworkAdapter::COMGETTER(NATEngine)(INATEngine **aNATEngine) 959 { 960 CheckComArgOutPointerValid(aNATEngine); 961 962 AutoCaller autoCaller(this); 963 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 964 965 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 966 967 mNATEngine.queryInterfaceTo(aNATEngine); 968 968 969 969 return S_OK; -
trunk/src/VBox/Main/src-server/USBControllerImpl.cpp
r41520 r42551 308 308 } 309 309 310 STDMETHODIMP USBController::COMGETTER(EnabledE hci)(BOOL *aEnabled)310 STDMETHODIMP USBController::COMGETTER(EnabledEHCI)(BOOL *aEnabled) 311 311 { 312 312 CheckComArgOutPointerValid(aEnabled); … … 322 322 } 323 323 324 STDMETHODIMP USBController::COMSETTER(EnabledE hci)(BOOL aEnabled)324 STDMETHODIMP USBController::COMSETTER(EnabledEHCI)(BOOL aEnabled) 325 325 { 326 326 LogFlowThisFunc(("aEnabled=%RTbool\n", aEnabled)); -
trunk/src/VBox/Main/xml/Settings.cpp
r42261 r42551 1603 1603 cCPUs(1), 1604 1604 fCpuHotPlug(false), 1605 fH petEnabled(false),1605 fHPETEnabled(false), 1606 1606 ulCpuExecutionCap(100), 1607 1607 ulMemorySizeMB((uint32_t)-1), … … 1611 1611 fAccelerate2DVideo(false), 1612 1612 firmwareType(FirmwareType_BIOS), 1613 pointingH idType(PointingHidType_PS2Mouse),1614 keyboardH idType(KeyboardHidType_PS2Keyboard),1613 pointingHIDType(PointingHIDType_PS2Mouse), 1614 keyboardHIDType(KeyboardHIDType_PS2Keyboard), 1615 1615 chipsetType(ChipsetType_PIIX3), 1616 1616 fEmulatedUSBCardReader(false), … … 1665 1665 && (fCpuHotPlug == h.fCpuHotPlug) 1666 1666 && (ulCpuExecutionCap == h.ulCpuExecutionCap) 1667 && (fH petEnabled == h.fHpetEnabled)1667 && (fHPETEnabled == h.fHPETEnabled) 1668 1668 && (llCpus == h.llCpus) 1669 1669 && (llCpuIdLeafs == h.llCpuIdLeafs) … … 1675 1675 && (fAccelerate2DVideo == h.fAccelerate2DVideo) 1676 1676 && (firmwareType == h.firmwareType) 1677 && (pointingH idType == h.pointingHidType)1678 && (keyboardH idType == h.keyboardHidType)1677 && (pointingHIDType == h.pointingHIDType) 1678 && (keyboardHIDType == h.keyboardHIDType) 1679 1679 && (chipsetType == h.chipsetType) 1680 1680 && (fEmulatedUSBCardReader == h.fEmulatedUSBCardReader) … … 1779 1779 1780 1780 /** 1781 * I oSettings constructor.1782 */ 1783 I oSettings::IoSettings()1784 { 1785 fI oCacheEnabled = true;1786 ulI oCacheSize = 5;1781 * IOSettings constructor. 1782 */ 1783 IOSettings::IOSettings() 1784 { 1785 fIOCacheEnabled = true; 1786 ulIOCacheSize = 5; 1787 1787 } 1788 1788 … … 2047 2047 if ((pelmDNS = elmMode.findChildElement("DNS"))) 2048 2048 { 2049 pelmDNS->getAttributeValue("pass-domain", nic.nat.fD nsPassDomain);2050 pelmDNS->getAttributeValue("use-proxy", nic.nat.fD nsProxy);2051 pelmDNS->getAttributeValue("use-host-resolver", nic.nat.fD nsUseHostResolver);2049 pelmDNS->getAttributeValue("pass-domain", nic.nat.fDNSPassDomain); 2050 pelmDNS->getAttributeValue("use-proxy", nic.nat.fDNSProxy); 2051 pelmDNS->getAttributeValue("use-host-resolver", nic.nat.fDNSUseHostResolver); 2052 2052 } 2053 2053 const xml::ElementNode *pelmAlias; … … 2061 2061 if ((pelmTFTP = elmMode.findChildElement("TFTP"))) 2062 2062 { 2063 pelmTFTP->getAttributeValue("prefix", nic.nat.strT ftpPrefix);2064 pelmTFTP->getAttributeValue("boot-file", nic.nat.strT ftpBootFile);2065 pelmTFTP->getAttributeValue("next-server", nic.nat.strT ftpNextServer);2063 pelmTFTP->getAttributeValue("prefix", nic.nat.strTFTPPrefix); 2064 pelmTFTP->getAttributeValue("boot-file", nic.nat.strTFTPBootFile); 2065 pelmTFTP->getAttributeValue("next-server", nic.nat.strTFTPNextServer); 2066 2066 } 2067 2067 xml::ElementNodesList plstNatPF; … … 2445 2445 else if (pelmHwChild->nameEquals("HID")) 2446 2446 { 2447 Utf8Str strH idType;2448 if (pelmHwChild->getAttributeValue("Keyboard", strH idType))2449 { 2450 if (strH idType == "None")2451 hw.keyboardH idType = KeyboardHidType_None;2452 else if (strH idType == "USBKeyboard")2453 hw.keyboardH idType = KeyboardHidType_USBKeyboard;2454 else if (strH idType == "PS2Keyboard")2455 hw.keyboardH idType = KeyboardHidType_PS2Keyboard;2456 else if (strH idType == "ComboKeyboard")2457 hw.keyboardH idType = KeyboardHidType_ComboKeyboard;2447 Utf8Str strHIDType; 2448 if (pelmHwChild->getAttributeValue("Keyboard", strHIDType)) 2449 { 2450 if (strHIDType == "None") 2451 hw.keyboardHIDType = KeyboardHIDType_None; 2452 else if (strHIDType == "USBKeyboard") 2453 hw.keyboardHIDType = KeyboardHIDType_USBKeyboard; 2454 else if (strHIDType == "PS2Keyboard") 2455 hw.keyboardHIDType = KeyboardHIDType_PS2Keyboard; 2456 else if (strHIDType == "ComboKeyboard") 2457 hw.keyboardHIDType = KeyboardHIDType_ComboKeyboard; 2458 2458 else 2459 2459 throw ConfigFileError(this, 2460 2460 pelmHwChild, 2461 2461 N_("Invalid value '%s' in HID/Keyboard/@type"), 2462 strH idType.c_str());2463 } 2464 if (pelmHwChild->getAttributeValue("Pointing", strH idType))2465 { 2466 if (strH idType == "None")2467 hw.pointingH idType = PointingHidType_None;2468 else if (strH idType == "USBMouse")2469 hw.pointingH idType = PointingHidType_USBMouse;2470 else if (strH idType == "USBTablet")2471 hw.pointingH idType = PointingHidType_USBTablet;2472 else if (strH idType == "PS2Mouse")2473 hw.pointingH idType = PointingHidType_PS2Mouse;2474 else if (strH idType == "ComboMouse")2475 hw.pointingH idType = PointingHidType_ComboMouse;2462 strHIDType.c_str()); 2463 } 2464 if (pelmHwChild->getAttributeValue("Pointing", strHIDType)) 2465 { 2466 if (strHIDType == "None") 2467 hw.pointingHIDType = PointingHIDType_None; 2468 else if (strHIDType == "USBMouse") 2469 hw.pointingHIDType = PointingHIDType_USBMouse; 2470 else if (strHIDType == "USBTablet") 2471 hw.pointingHIDType = PointingHIDType_USBTablet; 2472 else if (strHIDType == "PS2Mouse") 2473 hw.pointingHIDType = PointingHIDType_PS2Mouse; 2474 else if (strHIDType == "ComboMouse") 2475 hw.pointingHIDType = PointingHIDType_ComboMouse; 2476 2476 else 2477 2477 throw ConfigFileError(this, 2478 2478 pelmHwChild, 2479 2479 N_("Invalid value '%s' in HID/Pointing/@type"), 2480 strH idType.c_str());2480 strHIDType.c_str()); 2481 2481 } 2482 2482 } … … 2499 2499 else if (pelmHwChild->nameEquals("HPET")) 2500 2500 { 2501 pelmHwChild->getAttributeValue("enabled", hw.fH petEnabled);2501 pelmHwChild->getAttributeValue("enabled", hw.fHPETEnabled); 2502 2502 } 2503 2503 else if (pelmHwChild->nameEquals("Boot")) … … 2793 2793 { 2794 2794 const xml::ElementNode *pelmBwGroups; 2795 const xml::ElementNode *pelmI oChild;2796 2797 if ((pelmI oChild = pelmHwChild->findChildElement("IoCache")))2798 { 2799 pelmI oChild->getAttributeValue("enabled", hw.ioSettings.fIoCacheEnabled);2800 pelmI oChild->getAttributeValue("size", hw.ioSettings.ulIoCacheSize);2795 const xml::ElementNode *pelmIOChild; 2796 2797 if ((pelmIOChild = pelmHwChild->findChildElement("IoCache"))) 2798 { 2799 pelmIOChild->getAttributeValue("enabled", hw.ioSettings.fIOCacheEnabled); 2800 pelmIOChild->getAttributeValue("size", hw.ioSettings.ulIOCacheSize); 2801 2801 } 2802 2802 … … 2841 2841 while ((pelmDevice = nl2.forAllNodes())) 2842 2842 { 2843 HostP ciDeviceAttachment hpda;2843 HostPCIDeviceAttachment hpda; 2844 2844 2845 2845 if (!pelmDevice->getAttributeValue("host", hpda.uHostAddress)) … … 3624 3624 ) 3625 3625 { 3626 xml::ElementNode *pelmH id= pelmHardware->createChild("HID");3627 const char *pcszH id;3628 3629 switch (hw.pointingH idType)3626 xml::ElementNode *pelmHID = pelmHardware->createChild("HID"); 3627 const char *pcszHID; 3628 3629 switch (hw.pointingHIDType) 3630 3630 { 3631 case PointingH idType_USBMouse: pcszHid= "USBMouse"; break;3632 case PointingH idType_USBTablet: pcszHid= "USBTablet"; break;3633 case PointingH idType_PS2Mouse: pcszHid= "PS2Mouse"; break;3634 case PointingH idType_ComboMouse: pcszHid= "ComboMouse"; break;3635 case PointingH idType_None: pcszHid= "None"; break;3636 default: Assert(false); pcszH id= "PS2Mouse"; break;3631 case PointingHIDType_USBMouse: pcszHID = "USBMouse"; break; 3632 case PointingHIDType_USBTablet: pcszHID = "USBTablet"; break; 3633 case PointingHIDType_PS2Mouse: pcszHID = "PS2Mouse"; break; 3634 case PointingHIDType_ComboMouse: pcszHID = "ComboMouse"; break; 3635 case PointingHIDType_None: pcszHID = "None"; break; 3636 default: Assert(false); pcszHID = "PS2Mouse"; break; 3637 3637 } 3638 pelmH id->setAttribute("Pointing", pcszHid);3639 3640 switch (hw.keyboardH idType)3638 pelmHID->setAttribute("Pointing", pcszHID); 3639 3640 switch (hw.keyboardHIDType) 3641 3641 { 3642 case KeyboardH idType_USBKeyboard: pcszHid= "USBKeyboard"; break;3643 case KeyboardH idType_PS2Keyboard: pcszHid= "PS2Keyboard"; break;3644 case KeyboardH idType_ComboKeyboard: pcszHid= "ComboKeyboard"; break;3645 case KeyboardH idType_None: pcszHid= "None"; break;3646 default: Assert(false); pcszH id= "PS2Keyboard"; break;3642 case KeyboardHIDType_USBKeyboard: pcszHID = "USBKeyboard"; break; 3643 case KeyboardHIDType_PS2Keyboard: pcszHID = "PS2Keyboard"; break; 3644 case KeyboardHIDType_ComboKeyboard: pcszHID = "ComboKeyboard"; break; 3645 case KeyboardHIDType_None: pcszHID = "None"; break; 3646 default: Assert(false); pcszHID = "PS2Keyboard"; break; 3647 3647 } 3648 pelmH id->setAttribute("Keyboard", pcszHid);3648 pelmHID->setAttribute("Keyboard", pcszHID); 3649 3649 } 3650 3650 … … 3652 3652 ) 3653 3653 { 3654 xml::ElementNode *pelmH pet= pelmHardware->createChild("HPET");3655 pelmH pet->setAttribute("enabled", hw.fHpetEnabled);3654 xml::ElementNode *pelmHPET = pelmHardware->createChild("HPET"); 3655 pelmHPET->setAttribute("enabled", hw.fHPETEnabled); 3656 3656 } 3657 3657 … … 4105 4105 if (m->sv >= SettingsVersion_v1_10) 4106 4106 { 4107 xml::ElementNode *pelmI o= pelmHardware->createChild("IO");4108 xml::ElementNode *pelmI oCache;4109 4110 pelmI oCache = pelmIo->createChild("IoCache");4111 pelmI oCache->setAttribute("enabled", hw.ioSettings.fIoCacheEnabled);4112 pelmI oCache->setAttribute("size", hw.ioSettings.ulIoCacheSize);4107 xml::ElementNode *pelmIO = pelmHardware->createChild("IO"); 4108 xml::ElementNode *pelmIOCache; 4109 4110 pelmIOCache = pelmIO->createChild("IoCache"); 4111 pelmIOCache->setAttribute("enabled", hw.ioSettings.fIOCacheEnabled); 4112 pelmIOCache->setAttribute("size", hw.ioSettings.ulIOCacheSize); 4113 4113 4114 4114 if (m->sv >= SettingsVersion_v1_11) 4115 4115 { 4116 xml::ElementNode *pelmBandwidthGroups = pelmI o->createChild("BandwidthGroups");4116 xml::ElementNode *pelmBandwidthGroups = pelmIO->createChild("BandwidthGroups"); 4117 4117 for (BandwidthGroupList::const_iterator it = hw.ioSettings.llBandwidthGroups.begin(); 4118 4118 it != hw.ioSettings.llBandwidthGroups.end(); … … 4139 4139 if (m->sv >= SettingsVersion_v1_12) 4140 4140 { 4141 xml::ElementNode *pelmP ci= pelmHardware->createChild("HostPci");4142 xml::ElementNode *pelmP ciDevices = pelmPci->createChild("Devices");4143 4144 for (HostP ciDeviceAttachmentList::const_iterator it = hw.pciAttachments.begin();4141 xml::ElementNode *pelmPCI = pelmHardware->createChild("HostPci"); 4142 xml::ElementNode *pelmPCIDevices = pelmPCI->createChild("Devices"); 4143 4144 for (HostPCIDeviceAttachmentList::const_iterator it = hw.pciAttachments.begin(); 4145 4145 it != hw.pciAttachments.end(); 4146 4146 ++it) 4147 4147 { 4148 const HostP ciDeviceAttachment &hpda = *it;4149 4150 xml::ElementNode *pelmThis = pelmP ciDevices->createChild("Device");4148 const HostPCIDeviceAttachment &hpda = *it; 4149 4150 xml::ElementNode *pelmThis = pelmPCIDevices->createChild("Device"); 4151 4151 4152 4152 pelmThis->setAttribute("host", hpda.uHostAddress); … … 4218 4218 xml::ElementNode *pelmDNS; 4219 4219 pelmDNS = pelmNAT->createChild("DNS"); 4220 pelmDNS->setAttribute("pass-domain", nic.nat.fD nsPassDomain);4221 pelmDNS->setAttribute("use-proxy", nic.nat.fD nsProxy);4222 pelmDNS->setAttribute("use-host-resolver", nic.nat.fD nsUseHostResolver);4220 pelmDNS->setAttribute("pass-domain", nic.nat.fDNSPassDomain); 4221 pelmDNS->setAttribute("use-proxy", nic.nat.fDNSProxy); 4222 pelmDNS->setAttribute("use-host-resolver", nic.nat.fDNSUseHostResolver); 4223 4223 4224 4224 xml::ElementNode *pelmAlias; … … 4228 4228 pelmAlias->setAttribute("use-same-ports", nic.nat.fAliasUseSamePorts); 4229 4229 4230 if ( nic.nat.strT ftpPrefix.length()4231 || nic.nat.strT ftpBootFile.length()4232 || nic.nat.strT ftpNextServer.length())4230 if ( nic.nat.strTFTPPrefix.length() 4231 || nic.nat.strTFTPBootFile.length() 4232 || nic.nat.strTFTPNextServer.length()) 4233 4233 { 4234 4234 xml::ElementNode *pelmTFTP; 4235 4235 pelmTFTP = pelmNAT->createChild("TFTP"); 4236 if (nic.nat.strT ftpPrefix.length())4237 pelmTFTP->setAttribute("prefix", nic.nat.strT ftpPrefix);4238 if (nic.nat.strT ftpBootFile.length())4239 pelmTFTP->setAttribute("boot-file", nic.nat.strT ftpBootFile);4240 if (nic.nat.strT ftpNextServer.length())4241 pelmTFTP->setAttribute("next-server", nic.nat.strT ftpNextServer);4236 if (nic.nat.strTFTPPrefix.length()) 4237 pelmTFTP->setAttribute("prefix", nic.nat.strTFTPPrefix); 4238 if (nic.nat.strTFTPBootFile.length()) 4239 pelmTFTP->setAttribute("boot-file", nic.nat.strTFTPBootFile); 4240 if (nic.nat.strTFTPNextServer.length()) 4241 pelmTFTP->setAttribute("next-server", nic.nat.strTFTPNextServer); 4242 4242 } 4243 4243 for (NATRuleList::const_iterator rule = nic.nat.llRules.begin(); … … 5074 5074 if (m->sv < SettingsVersion_v1_10) 5075 5075 { 5076 if ( (hardwareMachine.ioSettings.fI oCacheEnabled != true)5077 || (hardwareMachine.ioSettings.ulI oCacheSize != 5)5076 if ( (hardwareMachine.ioSettings.fIOCacheEnabled != true) 5077 || (hardwareMachine.ioSettings.ulIOCacheSize != 5) 5078 5078 // and page fusion 5079 5079 || (hardwareMachine.fPageFusionEnabled) … … 5081 5081 || machineUserData.fRTCUseUTC 5082 5082 || hardwareMachine.fCpuHotPlug 5083 || hardwareMachine.pointingH idType != PointingHidType_PS2Mouse5084 || hardwareMachine.keyboardH idType != KeyboardHidType_PS2Keyboard5085 || hardwareMachine.fH petEnabled5083 || hardwareMachine.pointingHIDType != PointingHIDType_PS2Mouse 5084 || hardwareMachine.keyboardHIDType != KeyboardHIDType_PS2Keyboard 5085 || hardwareMachine.fHPETEnabled 5086 5086 ) 5087 5087 m->sv = SettingsVersion_v1_10; … … 5113 5113 || netit->nat.u32TcpRcv != 0 5114 5114 || netit->nat.u32TcpSnd != 0 5115 || !netit->nat.fD nsPassDomain5116 || netit->nat.fD nsProxy5117 || netit->nat.fD nsUseHostResolver5115 || !netit->nat.fDNSPassDomain 5116 || netit->nat.fDNSProxy 5117 || netit->nat.fDNSUseHostResolver 5118 5118 || netit->nat.fAliasLog 5119 5119 || netit->nat.fAliasProxyOnly 5120 5120 || netit->nat.fAliasUseSamePorts 5121 || netit->nat.strT ftpPrefix.length()5122 || netit->nat.strT ftpBootFile.length()5123 || netit->nat.strT ftpNextServer.length()5121 || netit->nat.strTFTPPrefix.length() 5122 || netit->nat.strTFTPBootFile.length() 5123 || netit->nat.strTFTPNextServer.length() 5124 5124 || netit->nat.llRules.size() 5125 5125 )
Note:
See TracChangeset
for help on using the changeset viewer.