VirtualBox

Changeset 10399 in vbox for trunk/src/VBox/Main/idl


Ignore:
Timestamp:
Jul 9, 2008 9:52:56 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33055
Message:

Main API fix for getting processor speed/description - there's no guarantee that all cpus will stick to same properties forever. So query by cpuId.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r10333 r10399  
    48054805  <interface
    48064806     name="IHost" extends="$unknown"
    4807      uuid="a42a480f-d554-4be0-b11c-6c2e54dd1274"
     4807     uuid="3d864057-ae6b-4d05-9cf7-c341139b6062"
    48084808     wsmap="managed"
    48094809     >
     
    48794879    </attribute>
    48804880
    4881     <attribute name="processorSpeed" type="unsigned long" readonly="yes">
    4882       <desc>(Approximate) speed of the host CPU in Megahertz.</desc>
    4883     </attribute>
    4884 
    4885     <attribute name="processorDescription" type="wstring" readonly="yes">
    4886       <desc>Description string of the host CPU.</desc>
    4887     </attribute>
     4881    <method name="getProcessorSpeed">
     4882      <desc>Query the (approximate) maximum speed of a specified host CPU in Megahertz.</desc>
     4883      <param name="cpuId" type="unsigned long" dir="in">
     4884        <desc>
     4885          Identifier of the CPU.
     4886        </desc>
     4887      </param>
     4888      <param name="speed" type="unsigned long" dir="return">
     4889        <desc>
     4890          Speed value. 0 is returned if value is not known or @a cpuId is
     4891          invalid.
     4892        </desc>
     4893      </param>
     4894    </method>
     4895
     4896    <method name="getProcessorDescription">
     4897      <desc>Query the model string of a specified host CPU.</desc>
     4898      <param name="cpuId" type="unsigned long" dir="in">
     4899        <desc>
     4900          Identifier of the CPU.
     4901        </desc>
     4902      </param>
     4903      <param name="description" type="wstring" dir="return">
     4904        <desc>
     4905          Model string. A NULL string is returned if value is not known or
     4906          @a cpuId is invalid.
     4907        </desc>
     4908      </param>
     4909    </method>
    48884910
    48894911    <attribute name="memorySize" type="unsigned long" readonly="yes">
Note: See TracChangeset for help on using the changeset viewer.

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