VirtualBox

Changeset 63782 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Sep 9, 2016 9:46:16 PM (8 years ago)
Author:
vboxsync
Message:

vd-ifs.h: Add vdIfProgress wrapper for the progress interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vd-ifs.h

    r62924 r63782  
    744744}
    745745
     746/**
     747 * Signal new progress information to the frontend.
     748 *
     749 * @returns VBox status code.
     750 * @param   pIfProgress        The progress interface.
     751 * @param   uPercent           Completion percentage.
     752 */
     753DECLINLINE(int) vdIfProgress(PVDINTERFACEPROGRESS pIfProgress, unsigned uPercentage)
     754{
     755    if (pIfProgress)
     756        return pIfProgress->pfnProgress(pIfProgress->Core.pvUser, uPercentage);
     757    return VINF_SUCCESS;
     758}
    746759
    747760/**
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