Changeset 85309 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Jul 13, 2020 12:56:56 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 139287
- Location:
- trunk/src/VBox/Main/src-server
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/MachineImpl.cpp
r85306 r85309 13853 13853 * @note Locks this object for reading. 13854 13854 */ 13855 HRESULT SessionMachine::i_onNATRedirectRuleChange (ULONG ulSlot, BOOL aNatRuleRemove, IN_BSTRaRuleName,13856 NATProtocol_T aProto, IN_BSTRaHostIp, LONG aHostPort,13857 IN_BSTRaGuestIp, LONG aGuestPort)13855 HRESULT SessionMachine::i_onNATRedirectRuleChanged(ULONG ulSlot, BOOL aNatRuleRemove, const Utf8Str &aRuleName, 13856 NATProtocol_T aProto, const Utf8Str &aHostIp, LONG aHostPort, 13857 const Utf8Str &aGuestIp, LONG aGuestPort) 13858 13858 { 13859 13859 LogFlowThisFunc(("\n")); -
trunk/src/VBox/Main/src-server/NATEngineImpl.cpp
r82968 r85309 326 326 327 327 alock.release(); 328 mParent->i_onNATRedirectRuleChange(ulSlot, FALSE, Bstr(name).raw(), aProto, Bstr(r.strHostIP).raw(), 329 r.u16HostPort, Bstr(r.strGuestIP).raw(), r.u16GuestPort); 328 mParent->i_onNATRedirectRuleChanged(ulSlot, FALSE, name, aProto, r.strHostIP, r.u16HostPort, r.strGuestIP, r.u16GuestPort); 330 329 return S_OK; 331 330 } … … 350 349 mParent->i_setModified(Machine::IsModified_NetworkAdapters); 351 350 alock.release(); 352 mParent->i_onNATRedirectRuleChange(ulSlot, TRUE, Bstr(aName).raw(), r.proto, Bstr(r.strHostIP).raw(), 353 r.u16HostPort, Bstr(r.strGuestIP).raw(), r.u16GuestPort); 351 mParent->i_onNATRedirectRuleChanged(ulSlot, TRUE, aName, r.proto, r.strHostIP, r.u16HostPort, r.strGuestIP, r.u16GuestPort); 354 352 return S_OK; 355 353 } -
trunk/src/VBox/Main/src-server/VirtualBoxImpl.cpp
r85307 r85309 3723 3723 * @note Doesn't lock any object. 3724 3724 */ 3725 void VirtualBox::i_onNatRedirectChanged(const Guid &aMachineId, ULONG ulSlot, bool fRemove, IN_BSTRaName,3726 NATProtocol_T aProto, IN_BSTRaHostIp, uint16_t aHostPort,3727 IN_BSTRaGuestIp, uint16_t aGuestPort)3728 { 3729 ::FireNATRedirectEvent(m->pEventSource, aMachineId.to Utf16().raw(), ulSlot, fRemove, aName, aProto, aHostIp,3725 void VirtualBox::i_onNatRedirectChanged(const Guid &aMachineId, ULONG ulSlot, bool fRemove, const Utf8Str &aName, 3726 NATProtocol_T aProto, const Utf8Str &aHostIp, uint16_t aHostPort, 3727 const Utf8Str &aGuestIp, uint16_t aGuestPort) 3728 { 3729 ::FireNATRedirectEvent(m->pEventSource, aMachineId.toString(), ulSlot, fRemove, aName, aProto, aHostIp, 3730 3730 aHostPort, aGuestIp, aGuestPort); 3731 3731 }
Note:
See TracChangeset
for help on using the changeset viewer.