Changeset 42551 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Aug 2, 2012 4:44:39 PM (12 years ago)
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
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));
Note:
See TracChangeset
for help on using the changeset viewer.