VirtualBox

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


Ignore:
Timestamp:
Jun 25, 2013 12:37:57 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86706
Message:

Main/Host(HostPower)+Session+Console: convert HostPower code to signal pause/resume/savestate through internal methods, conveying information why the method was called, preparing for VM/PDM passing this information to devices and drivers

File:
1 edited

Legend:

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

    r46667 r46775  
    1684716847  -->
    1684816848
     16849  <enum
     16850    name="Reason"
     16851    uuid="e7e8e097-299d-4e98-8bbc-c31c2d47d0cc"
     16852    >
     16853    <desc>
     16854      Internal event reason type.
     16855    </desc>
     16856
     16857    <const name="Unspecified"       value="0">
     16858      <desc>Null value, means "no known reason".</desc>
     16859    </const>
     16860    <const name="HostSuspend"       value="1">
     16861      <desc>Host is being suspended (power management event).</desc>
     16862    </const>
     16863    <const name="HostResume"        value="2">
     16864      <desc>Host is being resumed (power management event).</desc>
     16865    </const>
     16866    <const name="HostBatteryLow"    value="3">
     16867      <desc>Host is running low on battery (power management event).</desc>
     16868    </const>
     16869  </enum>
     16870
    1684916871  <interface
    1685016872    name="IInternalSessionControl" extends="$unknown"
    16851     uuid="0ba8d8b3-204b-448e-99c2-242eaa666ea8"
     16873    uuid="cddf451c-a006-4c33-8245-63b3c9ae6586"
    1685216874    internal="yes"
    1685316875    wsmap="suppress"
     
    1734517367      <param name="enable" type="boolean" dir="in">
    1734617368        <desc>True enables statistics collection.</desc>
     17369      </param>
     17370    </method>
     17371
     17372    <method name="pauseWithReason">
     17373      <desc>
     17374        Internal method for triggering a VM pause with a specified reason code.
     17375        The reason code can be interpreted by device/drivers and thus it might
     17376        behave slightly differently than a normal VM pause.
     17377
     17378        <result name="VBOX_E_INVALID_VM_STATE">
     17379          Virtual machine not in Running state.
     17380        </result>
     17381        <result name="VBOX_E_VM_ERROR">
     17382          Virtual machine error in suspend operation.
     17383        </result>
     17384        <see><link to="Console::pause"/></see>
     17385      </desc>
     17386
     17387      <param name="reason" type="Reason" dir="in">
     17388        <desc>Specify the best matching reason code please.</desc>
     17389      </param>
     17390    </method>
     17391
     17392    <method name="resumeWithReason">
     17393      <desc>
     17394        Internal method for triggering a VM resume with a specified reason code.
     17395        The reason code can be interpreted by device/drivers and thus it might
     17396        behave slightly differently than a normal VM resume.
     17397
     17398        <result name="VBOX_E_INVALID_VM_STATE">
     17399          Virtual machine not in Paused state.
     17400        </result>
     17401        <result name="VBOX_E_VM_ERROR">
     17402          Virtual machine error in resume operation.
     17403        </result>
     17404        <see><link to="Console::resume"/></see>
     17405      </desc>
     17406
     17407      <param name="reason" type="Reason" dir="in">
     17408        <desc>Specify the best matching reason code please.</desc>
     17409      </param>
     17410    </method>
     17411
     17412    <method name="saveStateWithReason">
     17413      <desc>
     17414        Internal method for triggering a VM save state with a specified reason
     17415        code. The reason code can be interpreted by device/drivers and thus it
     17416        might behave slightly differently than a normal VM save state.
     17417
     17418        <result name="VBOX_E_INVALID_VM_STATE">
     17419          Virtual machine state neither Running nor Paused.
     17420        </result>
     17421        <result name="VBOX_E_FILE_ERROR">
     17422          Failed to create directory for saved state file.
     17423        </result>
     17424        <see><link to="Console::saveState"/></see>
     17425      </desc>
     17426
     17427      <param name="reason" type="Reason" dir="in">
     17428        <desc>Specify the best matching reason code please.</desc>
     17429      </param>
     17430      <param name="progress" type="IProgress" dir="return">
     17431        <desc>Progress object to track the operation completion.</desc>
    1734717432      </param>
    1734817433    </method>
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