VirtualBox

Changeset 46969 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Jul 4, 2013 6:35:01 AM (12 years ago)
Author:
vboxsync
Message:

backed out r86967,r86968,r86969,r86970,r86971,r86972,r86973,r86975,r86976.
will fix build locally.

Location:
trunk/src/VBox/Main/include
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/DHCPServerImpl.h

    r46959 r46969  
    3030{
    3131    struct DHCPServer;
    32     struct VmNameSlotKey;
    3332}
    34 #ifdef RT_OS_WINDOWS
    35 # define DHCP_EXECUTABLE_NAME "VBoxNetDHCP.exe"
    36 #else
    37 # define DHCP_EXECUTABLE_NAME "VBoxNetDHCP"
    38 #endif
    39 
    40 class DHCPServerRunner: public NetworkServiceRunner
    41 {
    42 public:
    43     DHCPServerRunner():NetworkServiceRunner(DHCP_EXECUTABLE_NAME){}
    44     virtual ~DHCPServerRunner(){};
    45 };
    46 
    47 /**
    48  *  for server configuration needs, it's perhaps better to use (VM,slot) pair
    49  *  (vm-name, slot) <----> (MAC)
    50  * 
    51  *  but for client configuration, when server will have MACs at hand, it'd be
    52  *  easier to requiest options by MAC.
    53  *  (MAC) <----> (option-list)
    54  *
    55  *  Doubts: What should be done if MAC changed for (vm-name, slot), when syncing should?
    56  *  XML: serialization of dependecy (DHCP options) - (VM,slot) shouldn't be done via MAC in
    57  *  the middle.
    58  */
    59 
    60 typedef std::map<DhcpOpt_T, com::Utf8Str> DhcpOptionMap;
    61 typedef DhcpOptionMap::value_type DhcpOptValuePair;
    62 typedef DhcpOptionMap::const_iterator DhcpOptConstIterator;
    63 typedef DhcpOptionMap::iterator DhcpOptIterator;
    64 
    65 typedef std::map<settings::VmNameSlotKey, DhcpOptionMap> VmSlot2OptionsMap;
    66 typedef VmSlot2OptionsMap::value_type VmSlot2OptionsPair;
    67 typedef VmSlot2OptionsMap::iterator VmSlot2OptionsIterator;
    68 
    6933
    7034class ATL_NO_VTABLE DHCPServer :
     
    10670    STDMETHOD(COMGETTER(UpperIP))(BSTR *aIPAddress);
    10771
    108     STDMETHOD(AddGlobalOption)(DhcpOpt_T aOption, IN_BSTR aValue);
    109     STDMETHOD(COMGETTER(GlobalOptions))(ComSafeArrayOut(BSTR, aValue));
    110     STDMETHOD(COMGETTER(VmConfigs))(ComSafeArrayOut(BSTR, aValue));
    111     STDMETHOD(AddVmSlotOption)(IN_BSTR aVmName, LONG aSlot, DhcpOpt_T aOption, IN_BSTR aValue);
    112     STDMETHOD(RemoveVmSlotOptions)(IN_BSTR aVmName, LONG aSlot);
    113     STDMETHOD(GetVmSlotOptions)(IN_BSTR aVmName, LONG aSlot, ComSafeArrayOut(BSTR, aValues));
    114     STDMETHOD(GetMacOptions)(IN_BSTR aMAC, ComSafeArrayOut(BSTR, aValues));
    115     STDMETHOD(COMGETTER(EventSource))(IEventSource **aEventSource);
    116    
    117 
    11872    STDMETHOD(SetConfiguration)(IN_BSTR aIPAddress, IN_BSTR aNetworkMask, IN_BSTR aFromIPAddress, IN_BSTR aToIPAddress);
    11973
     
    13286
    13387        Bstr IPAddress;
     88        Bstr networkMask;
    13489        Bstr lowerIP;
    13590        Bstr upperIP;
     91        BOOL enabled;
    13692
    137         BOOL enabled;
    13893        DHCPServerRunner dhcp;
    139        
    140         DhcpOptionMap GlobalDhcpOptions;
    141         VmSlot2OptionsMap VmSlot2Options;
    14294    } m;
    143    
    144     DhcpOptionMap& findOptMapByVmNameSlot(const com::Utf8Str& aVmName,
    145                                    LONG Slot);
     95
    14696};
    14797
  • trunk/src/VBox/Main/include/HostImpl.h

    r46959 r46969  
    6262    STDMETHOD(COMGETTER(USBDeviceFilters))(ComSafeArrayOut(IHostUSBDeviceFilter *, aUSBDeviceFilters));
    6363    STDMETHOD(COMGETTER(NetworkInterfaces))(ComSafeArrayOut(IHostNetworkInterface *, aNetworkInterfaces));
    64     STDMETHOD(COMGETTER(NameServers))(ComSafeArrayOut(BSTR, aNameServers));
    65     STDMETHOD(COMGETTER(DomainName))(BSTR *aDomainName);
    66     STDMETHOD(COMGETTER(SearchStrings))(ComSafeArrayOut(BSTR, aSearchStrings));
    67 
    6864    STDMETHOD(COMGETTER(ProcessorCount))(ULONG *count);
    6965    STDMETHOD(COMGETTER(ProcessorOnlineCount))(ULONG *count);
     
    151147    HRESULT updateNetIfList();
    152148
    153 #ifndef RT_OS_WINDOWS
    154     HRESULT parseResolvConf();
    155 #else
    156     HRESULT fetchNameResolvingInformation();
    157 #endif
    158 
    159149#ifdef VBOX_WITH_RESOURCE_USAGE_API
    160150    void registerMetrics(PerformanceCollector *aCollector);
  • trunk/src/VBox/Main/include/NATNetworkImpl.h

    r46959 r46969  
    3737}
    3838
    39 #ifdef RT_OS_WINDOWS
    40 # define NATSR_EXECUTABLE_NAME "VBoxNetLwipNAT.exe"
    41 #else
    42 # define NATSR_EXECUTABLE_NAME "VBoxNetLwipNAT"
    43 #endif
    44 
    45 class NATNetworkServiceRunner: public NetworkServiceRunner
    46 {
    47 public:
    48     NATNetworkServiceRunner(): NetworkServiceRunner(NATSR_EXECUTABLE_NAME){}
    49     virtual ~NATNetworkServiceRunner(){}
    50 };
    5139
    5240class ATL_NO_VTABLE NATNetwork :
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette