VirtualBox

Changeset 44393 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Jan 25, 2013 9:21:05 PM (12 years ago)
Author:
vboxsync
Message:

VM,++: Changed the VM callbacks (at error, at runtime error, at state change) to use PUVM instead of PVM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/vmapi.h

    r44340 r44393  
    9393 * VM error callback function.
    9494 *
    95  * @param   pVM             The VM handle. Can be NULL if an error occurred before
    96  *                          successfully creating a VM.
     95 * @param   pUVM            The user mode VM handle.  Can be NULL if an error
     96 *                          occurred before successfully creating a VM.
    9797 * @param   pvUser          The user argument.
    9898 * @param   rc              VBox status code.
     
    101101 * @param   args            Error message arguments.
    102102 */
    103 typedef DECLCALLBACK(void) FNVMATERROR(PVM pVM, void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszError, va_list args);
     103typedef DECLCALLBACK(void) FNVMATERROR(PUVM pUVM, void *pvUser, int rc, RT_SRC_POS_DECL, const char *pszError, va_list args);
    104104/** Pointer to a VM error callback. */
    105105typedef FNVMATERROR *PFNVMATERROR;
     
    129129 * See VMSetRuntimeError for the detailed description of parameters.
    130130 *
    131  * @param   pVM             The VM handle.
     131 * @param   pUVM            The user mode VM handle.
    132132 * @param   pvUser          The user argument.
    133133 * @param   fFlags          The error flags.
     
    136136 * @param   va              Error message arguments.
    137137 */
    138 typedef DECLCALLBACK(void) FNVMATRUNTIMEERROR(PVM pVM, void *pvUser, uint32_t fFlags, const char *pszErrorId,
     138typedef DECLCALLBACK(void) FNVMATRUNTIMEERROR(PUVM pUVM, void *pvUser, uint32_t fFlags, const char *pszErrorId,
    139139                                              const char *pszFormat, va_list va);
    140140/** Pointer to a VM runtime error callback. */
     
    164164
    165165/**
    166  * VM state callback function.
     166 * VM state change callback function.
    167167 *
    168168 * You are not allowed to call any function which changes the VM state from a
    169169 * state callback, except VMR3Destroy().
    170170 *
    171  * @param   pVM         The VM handle.
     171 * @param   pUVM        The user mode VM handle.
    172172 * @param   enmState    The new state.
    173173 * @param   enmOldState The old state.
    174174 * @param   pvUser      The user argument.
    175175 */
    176 typedef DECLCALLBACK(void) FNVMATSTATE(PVM pVM, VMSTATE enmState, VMSTATE enmOldState, void *pvUser);
     176typedef DECLCALLBACK(void) FNVMATSTATE(PUVM pUVM, VMSTATE enmState, VMSTATE enmOldState, void *pvUser);
    177177/** Pointer to a VM state callback. */
    178178typedef FNVMATSTATE *PFNVMATSTATE;
     
    318318/**
    319319 * Progress callback.
     320 *
    320321 * This will report the completion percentage of an operation.
    321322 *
    322323 * @returns VINF_SUCCESS.
    323324 * @returns Error code to cancel the operation with.
    324  * @param   pVM         The VM handle.
     325 * @param   pUVM        The user mode VM handle.
    325326 * @param   uPercent    Completion percentage (0-100).
    326327 * @param   pvUser      User specified argument.
    327328 */
    328 typedef DECLCALLBACK(int) FNVMPROGRESS(PVM pVM, unsigned uPercent, void *pvUser);
     329typedef DECLCALLBACK(int) FNVMPROGRESS(PUVM pUVM, unsigned uPercent, void *pvUser);
    329330/** Pointer to a FNVMPROGRESS function. */
    330331typedef FNVMPROGRESS *PFNVMPROGRESS;
    331 
    332 /**
    333  * VM destruction callback.
    334  * @param   pVM     The VM which is about to be destroyed.
    335  * @param   pvUser  The user parameter specified at registration.
    336  */
    337 typedef DECLCALLBACK(void) FNVMATDTOR(PVM pVM, void *pvUser);
    338 /** Pointer to a VM destruction callback. */
    339 typedef FNVMATDTOR *PFNVMATDTOR;
    340332
    341333
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