VirtualBox

Changeset 83433 in vbox


Ignore:
Timestamp:
Mar 26, 2020 12:01:16 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136653
Message:

OCI: we cannot return an array under progress. Reshuffle the code so
that readCloudMachineList reads the list from the cloud and then (when
the progress is completed) the list can be read from the
cloudMachineList property. A bit ugly, but the alternative is to
introduce wrapper/holder objects (like IStringArray) which is a lot of
boilerplate code.

File:
1 edited

Legend:

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

    r83376 r83433  
    2680826808    </method>
    2680926809
    26810     <method name="listCloudMachines">
    26811       <param name="machines" type="ICloudMachine" safearray="yes" dir="out">
    26812       </param>
     26810    <method name="readCloudMachineList">
     26811      <desc>
     26812        Make the list of cloud machines available via
     26813        <link to="#cloudMachineList"/> attribute.
     26814      </desc>
    2681326815      <param name="progress" type="IProgress" dir="return">
    26814       </param>
    26815     </method>
     26816        <desc>
     26817          Progress object to track the operation completion.
     26818        </desc>
     26819      </param>
     26820    </method>
     26821    <attribute name="cloudMachineList" type="ICloudMachine" safearray="yes" readonly="yes">
     26822      <desc>
     26823        See <link to="#readCloudMachineList"/>.
     26824      </desc>
     26825    </attribute>
    2681626826
    2681726827    <method name="addCloudMachine">
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