VirtualBox

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


Ignore:
Timestamp:
Oct 21, 2010 10:45:26 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
66862
Message:

Main: API change, merge IVirtualBox::getMachine() with findMachine()

File:
1 edited

Legend:

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

    r33253 r33294  
    13741374  <interface
    13751375    name="IVirtualBox" extends="$unknown"
    1376     uuid="a35a051c-0966-4582-8e9c-7c1b973f6bd2"
     1376    uuid="5e887b09-e3f3-4787-b9f3-8ade5d04d675"
    13771377    wsmap="managed"
    13781378  >
     
    16991699    </method>
    17001700
    1701     <method name="getMachine">
    1702       <desc>
    1703         Attempts to find a virtual machine given its UUID.
    1704         To look up a machine by name, use <link to="IVirtualBox::findMachine" />
    1705         instead.
     1701    <method name="findMachine">
     1702      <desc>
     1703        Attempts to find a virtual machine given its name or UUID.
     1704
     1705        <note>Inaccessible machines cannot be found by name, only by UUID, because their name
     1706          cannot safely be determined.</note>
    17061707
    17071708        <result name="VBOX_E_OBJECT_NOT_FOUND">
    1708           Could not find registered machine matching @a id.
    1709         </result>
    1710 
    1711       </desc>
    1712       <param name="id" type="uuid" mod="string" dir="in"/>
    1713       <param name="machine" type="IMachine" dir="return"/>
    1714     </method>
    1715 
    1716     <method name="findMachine">
    1717       <desc>
    1718         Attempts to find a virtual machine given its name.
    1719         To look up a machine by UUID, use <link to="IVirtualBox::getMachine" />
    1720         instead.
    1721 
    1722         <result name="VBOX_E_OBJECT_NOT_FOUND">
    1723           Could not find registered machine matching @a name.
    1724         </result>
    1725 
    1726       </desc>
    1727       <param name="name" type="wstring" dir="in"/>
    1728       <param name="machine" type="IMachine" dir="return"/>
     1709          Could not find registered machine matching @a nameOrId.
     1710        </result>
     1711
     1712      </desc>
     1713      <param name="nameOrId" type="wstring" dir="in">
     1714        <desc>What to search for. This can either be the UUID or the name of a virtual machine.</desc>
     1715      </param>
     1716      <param name="machine" type="IMachine" dir="return">
     1717        <desc>Machine object, if found.</desc>
     1718      </param>
    17291719    </method>
    17301720
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