VirtualBox

Changeset 36188 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Mar 7, 2011 3:12:47 PM (14 years ago)
Author:
vboxsync
Message:

Main/SnapshotImpl: progressCallback not used anymore since r70196

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/SnapshotImpl.cpp

    r36074 r36188  
    4242
    4343#include <VBox/settings.h>
    44 
    45 ////////////////////////////////////////////////////////////////////////////////
    46 //
    47 // Globals
    48 //
    49 ////////////////////////////////////////////////////////////////////////////////
    50 
    51 /**
    52  *  Progress callback handler for lengthy operations
    53  *  (corresponds to the FNRTPROGRESS typedef).
    54  *
    55  *  @param uPercentage  Completion percentage (0-100).
    56  *  @param pvUser       Pointer to the Progress instance.
    57  */
    58 static DECLCALLBACK(int) progressCallback(unsigned uPercentage, void *pvUser)
    59 {
    60     IProgress *progress = static_cast<IProgress*>(pvUser);
    61 
    62     /* update the progress object */
    63     if (progress)
    64         progress->SetCurrentOperationProgress(uPercentage);
    65 
    66     return VINF_SUCCESS;
    67 }
    6844
    6945////////////////////////////////////////////////////////////////////////////////
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