VirtualBox

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


Ignore:
Timestamp:
Jul 25, 2013 7:12:24 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
87551
Message:

Main,Frontends: Second step of USB controller rework. There is one controller instance for every USB controller now. Adapt frontends and testsuite to work with the changed API

File:
1 edited

Legend:

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

    r47393 r47401  
    545545      <desc>Settings version "1.14", written by VirtualBox 4.3.x.</desc>
    546546      <!--
    547           Machine changes: default frontend.
     547          Machine changes: default frontend, USB rework.
    548548      -->
    549549    </const>
     
    41274127  <interface
    41284128    name="IMachine" extends="$unknown"
    4129     uuid="00daa773-1d35-40ae-ac06-336aa64959ef"
     4129    uuid="b6057c6f-2176-4820-a8d6-cb6687ed1583"
    41304130    wsmap="managed"
    41314131    >
     
    45244524    </attribute>
    45254525
    4526     <attribute name="USBController" type="IUSBController" readonly="yes">
    4527       <desc>
    4528         Associated USB controller object.
     4526    <attribute name="USBControllers" type="IUSBController" readonly="yes" safearray="yes">
     4527      <desc>
     4528        Array of USB controllers attached to this machine.
    45294529
    45304530        <note>
     
    49094909    </attribute>
    49104910
     4911    <attribute name="USBProxyAvailable" type="boolean" readonly="yes">
     4912      <desc>
     4913        Returns whether there is an USB proxy available.
     4914      </desc>
     4915    </attribute>
     4916
    49114917    <method name="lockMachine">
    49124918      <desc>
     
    59475953      <param name="name" type="wstring" dir="in"/>
    59485954      <param name="bootable" type="boolean" dir="in"/>
     5955    </method>
     5956
     5957    <method name="addUSBController">
     5958      <desc>
     5959        Adds a new USB controller to the machine and returns it as an instance of
     5960        <link to="IUSBController" />.
     5961
     5962        <result name="VBOX_E_OBJECT_IN_USE">
     5963          A USB controller with given type exists already.
     5964        </result>
     5965        <result name="E_INVALIDARG">
     5966          Invalid @a controllerType.
     5967        </result>
     5968      </desc>
     5969      <param name="name" type="wstring" dir="in"/>
     5970      <param name="type" type="USBControllerType" dir="in"/>
     5971      <param name="controller" type="IUSBController" dir="return"/>
     5972    </method>
     5973
     5974    <method name="removeUSBController">
     5975      <desc>
     5976        Removes a USB controller from the machine.
     5977
     5978        <result name="VBOX_E_OBJECT_NOT_FOUND">
     5979          A USB controller with given type doesn't exist.
     5980        </result>
     5981      </desc>
     5982      <param name="name" type="wstring" dir="in"/>
     5983    </method>
     5984
     5985    <method name="getUSBControllerByName" const="yes">
     5986      <desc>
     5987        Returns a USB controller with the given type.
     5988
     5989        <result name="VBOX_E_OBJECT_NOT_FOUND">
     5990          A USB controller with given name doesn't exist.
     5991        </result>
     5992      </desc>
     5993      <param name="name" type="wstring" dir="in"/>
     5994      <param name="controller" type="IUSBController" dir="return"/>
     5995    </method>
     5996
     5997    <method name="getUSBControllerCountByType" const="yes">
     5998      <desc>
     5999        Returns the number of USB controllers of the given type attached to the VM.
     6000      </desc>
     6001      <param name="type" type="USBControllerType" dir="in"/>
     6002      <param name="controllers" type="unsigned long" dir="return"/>
    59496003    </method>
    59506004
     
    86548708    name="ISystemProperties"
    86558709    extends="$unknown"
    8656     uuid="55699910-cc50-11e2-8b8b-0800200c9a66"
     8710    uuid="856be1bc-0525-46b1-a27a-fe17d9a4939f"
    86578711    wsmap="managed"
    86588712    >
     
    90599113      <param name="enabled" type="boolean" dir="return">
    90609114        <desc>Returned flag indicating the default value</desc>
     9115      </param>
     9116    </method>
     9117
     9118    <method name="getMaxInstancesOfUSBControllerType">
     9119      <desc>Returns the maximum number of USB controller instances which
     9120        can be configured for each VM. This corresponds to the number of
     9121        USB controllers one can have. Value may depend on chipset type
     9122        used.</desc>
     9123
     9124      <param name="chipset" type="ChipsetType" dir="in">
     9125        <desc>The chipset type to get the value for.</desc>
     9126      </param>
     9127
     9128      <param name="type" type="USBControllerType" dir="in">
     9129        <desc>The USB controller type to get the value for.</desc>
     9130      </param>
     9131
     9132      <param name="maxInstances" type="unsigned long" dir="return">
     9133        <desc>The maximum number of instances for the given USB controller type.</desc>
    90619134      </param>
    90629135    </method>
     
    1645516528  -->
    1645616529
     16530  <enum
     16531    name="USBControllerType"
     16532    uuid="8fdd1c6a-5412-41da-ab07-7baed7d6e18e"
     16533    >
     16534    <desc>
     16535      The USB controller type. <link to="IUSBController::type" />.
     16536    </desc>
     16537    <const name="Null"      value="0">
     16538      <desc>@c null value. Never used by the API.</desc>
     16539    </const>
     16540    <const name="OHCI"      value="1"/>
     16541    <const name="EHCI"      value="2"/>
     16542    <const name="Last"      value="3">
     16543      <desc>Last element (invalid). Used for parameter checks.</desc>
     16544    </const>
     16545  </enum>
     16546
    1645716547  <interface
    1645816548    name="IUSBController" extends="$unknown"
    16459     uuid="f12e6dda-2bad-40c4-8f2e-2d08fe8b74d4"
     16549    uuid="d2745291-65f7-4d75-9556-38047d802319"
    1646016550    wsmap="managed"
    1646116551    >
    16462     <attribute name="enabled" type="boolean">
    16463       <desc>
    16464         Flag whether the USB controller is present in the
    16465         guest system. If disabled, the virtual guest hardware will
    16466         not contain any USB controller. Can only be changed when
    16467         the VM is powered off.
    16468       </desc>
    16469     </attribute>
    16470 
    16471     <attribute name="enabledEHCI" type="boolean">
    16472       <desc>
    16473         Flag whether the USB EHCI controller is present in the
    16474         guest system. If disabled, the virtual guest hardware will
    16475         not contain a USB EHCI controller. Can only be changed when
    16476         the VM is powered off.
    16477       </desc>
    16478     </attribute>
    16479 
    16480     <attribute name="proxyAvailable" type="boolean" readonly="yes">
    16481       <desc>
    16482         Flag whether there is an USB proxy available.
     16552
     16553    <attribute name="name" type="wstring" readonly="yes">
     16554      <desc>
     16555        The USB Controller name.
     16556      </desc>
     16557    </attribute>
     16558
     16559    <attribute name="type" type="USBControllerType" readonly="yes">
     16560      <desc>
     16561        The USB Controller type.
    1648316562      </desc>
    1648416563    </attribute>
     
    2089920978    <desc>
    2090020979      Notification when a property of the virtual
    20901       <link to="IMachine::USBController">USB controller</link> changes.
     20980      <link to="IMachine::USBControllers">USB controllers</link> changes.
    2090220981      Interested callees should use IUSBController methods and attributes to
    2090320982      find out what has changed.
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