VirtualBox

Changeset 27806 in vbox for trunk/include


Ignore:
Timestamp:
Mar 29, 2010 8:18:50 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59466
Message:

Storage/VBoxHDD+DrvBlock+DrvVD: implement core code for live snapshot merging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pdmifs.h

    r27754 r27806  
    5858 * 'down' or 'up'.  This refers to a model with the device on the top and the
    5959 * drivers stacked below it.  Sometimes there is mention of 'main' or 'external'
    60  * which normally means the same, i.e. the Main or VBoxBFE API.  Pickture the
    61  * orientation of 'main' as horisontal.
     60 * which normally means the same, i.e. the Main or VBoxBFE API.  Picture the
     61 * orientation of 'main' as horizontal.
    6262 *
    6363 * @{
     
    806806/** Pointer to a block notify interface (dummy). */
    807807typedef PDMIBLOCKPORT *PPDMIBLOCKPORT;
     808
     809
     810/**
     811 * Callback which provides progress information.
     812 *
     813 * @return  VBox status code.
     814 * @param   pvUser          Opaque user data.
     815 * @param   uPercent        Completion percentage.
     816 */
     817typedef DECLCALLBACK(int) FNSIMPLEPROGRESS(void *pvUser, unsigned uPercentage);
     818/** Pointer to FNSIMPLEPROGRESS() */
     819typedef FNSIMPLEPROGRESS *PFNSIMPLEPROGRESS;
    808820
    809821
     
    903915
    904916    /**
     917     * Merge medium contents during a live snapshot deletion.
     918     *
     919     * @returns VBox status code.
     920     * @param   pInterface      Pointer to the interface structure containing the called function pointer.
     921     * @param   pfnProgress     Function pointer for progress notification.
     922     * @param   pvUser          Opaque user data for progress notification.
     923     * @thread  Any thread.
     924     */
     925    DECLR3CALLBACKMEMBER(int, pfnMerge,(PPDMIBLOCK pInterface, PFNSIMPLEPROGRESS pfnProgress, void *pvUser));
     926
     927    /**
    905928     * Check if the media is readonly or not.
    906929     *
     
    11071130     */
    11081131    DECLR3CALLBACKMEMBER(int, pfnFlush,(PPDMIMEDIA pInterface));
     1132
     1133    /**
     1134     * Merge medium contents during a live snapshot deletion. All details
     1135     * must have been configured through CFGM or this will fail.
     1136     * This method is optional (i.e. the function pointer may be NULL).
     1137     *
     1138     * @returns VBox status code.
     1139     * @param   pInterface      Pointer to the interface structure containing the called function pointer.
     1140     * @param   pfnProgress     Function pointer for progress notification.
     1141     * @param   pvUser          Opaque user data for progress notification.
     1142     * @thread  Any thread.
     1143     */
     1144    DECLR3CALLBACKMEMBER(int, pfnMerge,(PPDMIMEDIA pInterface, PFNSIMPLEPROGRESS pfnProgress, void *pvUser));
    11091145
    11101146    /**
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