Changeset 36188 in vbox for trunk/src/VBox/Main/src-server
- Timestamp:
- Mar 7, 2011 3:12:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/SnapshotImpl.cpp
r36074 r36188 42 42 43 43 #include <VBox/settings.h> 44 45 ////////////////////////////////////////////////////////////////////////////////46 //47 // Globals48 //49 ////////////////////////////////////////////////////////////////////////////////50 51 /**52 * Progress callback handler for lengthy operations53 * (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 }68 44 69 45 ////////////////////////////////////////////////////////////////////////////////
Note:
See TracChangeset
for help on using the changeset viewer.