VirtualBox

忽略:
時間撮記:
2011-4-7 下午12:45:27 (14 年 以前)
作者:
vboxsync
訊息:

Main/idl: new method IHost::generateMACAddress, including implementation

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/include/HostImpl.h

    r35813 r36615  
    55
    66/*
    7  * Copyright (C) 2006-2009 Oracle Corporation
     7 * Copyright (C) 2006-2011 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    5757
    5858    // IHost properties
    59     STDMETHOD(COMGETTER(DVDDrives))(ComSafeArrayOut (IMedium *, drives));
    60     STDMETHOD(COMGETTER(FloppyDrives))(ComSafeArrayOut (IMedium *, drives));
    61     STDMETHOD(COMGETTER(USBDevices))(ComSafeArrayOut (IHostUSBDevice *, aUSBDevices));
    62     STDMETHOD(COMGETTER(USBDeviceFilters))(ComSafeArrayOut (IHostUSBDeviceFilter *, aUSBDeviceFilters));
    63     STDMETHOD(COMGETTER(NetworkInterfaces))(ComSafeArrayOut (IHostNetworkInterface *, aNetworkInterfaces));
     59    STDMETHOD(COMGETTER(DVDDrives))(ComSafeArrayOut(IMedium *, drives));
     60    STDMETHOD(COMGETTER(FloppyDrives))(ComSafeArrayOut(IMedium *, drives));
     61    STDMETHOD(COMGETTER(USBDevices))(ComSafeArrayOut(IHostUSBDevice *, aUSBDevices));
     62    STDMETHOD(COMGETTER(USBDeviceFilters))(ComSafeArrayOut(IHostUSBDeviceFilter *, aUSBDeviceFilters));
     63    STDMETHOD(COMGETTER(NetworkInterfaces))(ComSafeArrayOut(IHostNetworkInterface *, aNetworkInterfaces));
    6464    STDMETHOD(COMGETTER(ProcessorCount))(ULONG *count);
    6565    STDMETHOD(COMGETTER(ProcessorOnlineCount))(ULONG *count);
     
    6767    STDMETHOD(GetProcessorSpeed)(ULONG cpuId, ULONG *speed);
    6868    STDMETHOD(GetProcessorDescription)(ULONG cpuId, BSTR *description);
    69     STDMETHOD(GetProcessorFeature) (ProcessorFeature_T feature, BOOL *supported);
     69    STDMETHOD(GetProcessorFeature)(ProcessorFeature_T feature, BOOL *supported);
    7070    STDMETHOD(GetProcessorCPUIDLeaf)(ULONG aCpuId, ULONG aLeaf, ULONG aSubLeaf, ULONG *aValEAX, ULONG *aValEBX, ULONG *aValECX, ULONG *aValEDX);
    7171    STDMETHOD(COMGETTER(MemorySize))(ULONG *size);
     
    7777
    7878    // IHost methods
    79     STDMETHOD(CreateHostOnlyNetworkInterface) (IHostNetworkInterface **aHostNetworkInterface,
    80                                                IProgress **aProgress);
    81     STDMETHOD(RemoveHostOnlyNetworkInterface) (IN_BSTR aId, IProgress **aProgress);
    82     STDMETHOD(CreateUSBDeviceFilter) (IN_BSTR aName, IHostUSBDeviceFilter **aFilter);
    83     STDMETHOD(InsertUSBDeviceFilter) (ULONG aPosition, IHostUSBDeviceFilter *aFilter);
    84     STDMETHOD(RemoveUSBDeviceFilter) (ULONG aPosition);
     79    STDMETHOD(CreateHostOnlyNetworkInterface)(IHostNetworkInterface **aHostNetworkInterface,
     80                                              IProgress **aProgress);
     81    STDMETHOD(RemoveHostOnlyNetworkInterface)(IN_BSTR aId, IProgress **aProgress);
     82    STDMETHOD(CreateUSBDeviceFilter)(IN_BSTR aName, IHostUSBDeviceFilter **aFilter);
     83    STDMETHOD(InsertUSBDeviceFilter)(ULONG aPosition, IHostUSBDeviceFilter *aFilter);
     84    STDMETHOD(RemoveUSBDeviceFilter)(ULONG aPosition);
    8585
    86     STDMETHOD(FindHostDVDDrive) (IN_BSTR aName, IMedium **aDrive);
    87     STDMETHOD(FindHostFloppyDrive) (IN_BSTR aName, IMedium **aDrive);
    88     STDMETHOD(FindHostNetworkInterfaceByName) (IN_BSTR aName, IHostNetworkInterface **networkInterface);
    89     STDMETHOD(FindHostNetworkInterfaceById) (IN_BSTR id, IHostNetworkInterface **networkInterface);
    90     STDMETHOD(FindHostNetworkInterfacesOfType) (HostNetworkInterfaceType_T type, ComSafeArrayOut (IHostNetworkInterface *, aNetworkInterfaces));
    91     STDMETHOD(FindUSBDeviceByAddress) (IN_BSTR aAddress, IHostUSBDevice **aDevice);
    92     STDMETHOD(FindUSBDeviceById) (IN_BSTR aId, IHostUSBDevice **aDevice);
     86    STDMETHOD(FindHostDVDDrive)(IN_BSTR aName, IMedium **aDrive);
     87    STDMETHOD(FindHostFloppyDrive)(IN_BSTR aName, IMedium **aDrive);
     88    STDMETHOD(FindHostNetworkInterfaceByName)(IN_BSTR aName, IHostNetworkInterface **networkInterface);
     89    STDMETHOD(FindHostNetworkInterfaceById)(IN_BSTR id, IHostNetworkInterface **networkInterface);
     90    STDMETHOD(FindHostNetworkInterfacesOfType)(HostNetworkInterfaceType_T type, ComSafeArrayOut(IHostNetworkInterface *, aNetworkInterfaces));
     91    STDMETHOD(FindUSBDeviceByAddress)(IN_BSTR aAddress, IHostUSBDevice **aDevice);
     92    STDMETHOD(FindUSBDeviceById)(IN_BSTR aId, IHostUSBDevice **aDevice);
     93    STDMETHOD(GenerateMACAddress)(BSTR *aAddress);
    9394
    9495    // public methods only for internal purposes
     
    125126#endif /* !VBOX_WITH_USB */
    126127
     128    static void generateMACAddress(Utf8Str &mac);
     129
    127130private:
    128131
     
    143146
    144147#ifdef VBOX_WITH_RESOURCE_USAGE_API
    145     void registerMetrics (PerformanceCollector *aCollector);
    146     void unregisterMetrics (PerformanceCollector *aCollector);
     148    void registerMetrics(PerformanceCollector *aCollector);
     149    void unregisterMetrics(PerformanceCollector *aCollector);
    147150#endif /* VBOX_WITH_RESOURCE_USAGE_API */
    148151
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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