VirtualBox

Changeset 22803 in vbox


Ignore:
Timestamp:
Sep 7, 2009 11:01:57 AM (15 years ago)
Author:
vboxsync
Message:

ssm: Use VMMR3_INT_DECL.

Location:
trunk
Files:
2 edited

Legend:

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

    r22793 r22803  
    639639    PFNSSMEXTSAVEPREP pfnSavePrep, PFNSSMEXTSAVEEXEC pfnSaveExec, PFNSSMEXTSAVEDONE pfnSaveDone,
    640640    PFNSSMEXTLOADPREP pfnLoadPrep, PFNSSMEXTLOADEXEC pfnLoadExec, PFNSSMEXTLOADDONE pfnLoadDone, void *pvUser);
    641 VMMR3DECL(int) SSMR3DeregisterDevice(PVM pVM, PPDMDEVINS pDevIns, const char *pszName, uint32_t uInstance);
    642 VMMR3DECL(int) SSMR3DeregisterDriver(PVM pVM, PPDMDRVINS pDrvIns, const char *pszName, uint32_t uInstance);
    643 VMMR3DECL(int) SSMR3DeregisterInternal(PVM pVM, const char *pszName);
    644 VMMR3DECL(int) SSMR3DeregisterExternal(PVM pVM, const char *pszName);
    645 VMMR3DECL(int) SSMR3Save(PVM pVM, const char *pszFilename, SSMAFTER enmAfter, PFNVMPROGRESS pfnProgress, void *pvUser);
    646 VMMR3DECL(int) SSMR3LiveToFile(PVM pVM, const char *pszFilename, SSMAFTER enmAfter,
    647                                PFNVMPROGRESS pfnProgress, void *pvUser, PSSMHANDLE *ppSSM);
    648 VMMR3DECL(int) SSMR3LiveDoStep1(PSSMHANDLE pSSM);
    649 VMMR3DECL(int) SSMR3LiveDoStep2(PSSMHANDLE pSSM);
    650 VMMR3DECL(int) SSMR3LiveDone(PSSMHANDLE pSSM);
    651 VMMR3DECL(int) SSMR3Load(PVM pVM, const char *pszFilename, SSMAFTER enmAfter, PFNVMPROGRESS pfnProgress, void *pvUser);
    652 VMMR3DECL(int) SSMR3ValidateFile(const char *pszFilename, bool fChecksumIt);
    653 VMMR3DECL(int) SSMR3Open(const char *pszFilename, unsigned fFlags, PSSMHANDLE *ppSSM);
    654 VMMR3DECL(int) SSMR3Close(PSSMHANDLE pSSM);
    655 VMMR3DECL(int) SSMR3Seek(PSSMHANDLE pSSM, const char *pszUnit, uint32_t iInstance, uint32_t *piVersion);
    656 VMMR3DECL(int) SSMR3HandleGetStatus(PSSMHANDLE pSSM);
    657 VMMR3DECL(int) SSMR3HandleSetStatus(PSSMHANDLE pSSM, int iStatus);
     641VMMR3_INT_DECL(int) SSMR3DeregisterDevice(PVM pVM, PPDMDEVINS pDevIns, const char *pszName, uint32_t uInstance);
     642VMMR3_INT_DECL(int) SSMR3DeregisterDriver(PVM pVM, PPDMDRVINS pDrvIns, const char *pszName, uint32_t uInstance);
     643VMMR3DECL(int)      SSMR3DeregisterInternal(PVM pVM, const char *pszName);
     644VMMR3DECL(int)      SSMR3DeregisterExternal(PVM pVM, const char *pszName);
     645VMMR3DECL(int)      SSMR3Save(PVM pVM, const char *pszFilename, SSMAFTER enmAfter, PFNVMPROGRESS pfnProgress, void *pvUser);
     646VMMR3_INT_DECL(int) SSMR3LiveToFile(PVM pVM, const char *pszFilename, SSMAFTER enmAfter,
     647                                    PFNVMPROGRESS pfnProgress, void *pvUser, PSSMHANDLE *ppSSM);
     648VMMR3_INT_DECL(int) SSMR3LiveDoStep1(PSSMHANDLE pSSM);
     649VMMR3_INT_DECL(int) SSMR3LiveDoStep2(PSSMHANDLE pSSM);
     650VMMR3_INT_DECL(int) SSMR3LiveDone(PSSMHANDLE pSSM);
     651VMMR3DECL(int)      SSMR3Load(PVM pVM, const char *pszFilename, SSMAFTER enmAfter, PFNVMPROGRESS pfnProgress, void *pvUser);
     652VMMR3DECL(int)      SSMR3ValidateFile(const char *pszFilename, bool fChecksumIt);
     653VMMR3DECL(int)      SSMR3Open(const char *pszFilename, unsigned fFlags, PSSMHANDLE *ppSSM);
     654VMMR3DECL(int)      SSMR3Close(PSSMHANDLE pSSM);
     655VMMR3DECL(int)      SSMR3Seek(PSSMHANDLE pSSM, const char *pszUnit, uint32_t iInstance, uint32_t *piVersion);
     656VMMR3DECL(int)      SSMR3HandleGetStatus(PSSMHANDLE pSSM);
     657VMMR3DECL(int)      SSMR3HandleSetStatus(PSSMHANDLE pSSM, int iStatus);
    658658VMMR3DECL(SSMAFTER) SSMR3HandleGetAfter(PSSMHANDLE pSSM);
    659659VMMR3DECL(uint64_t) SSMR3HandleGetUnitOffset(PSSMHANDLE pSSM);
    660 VMMR3DECL(int) SSMR3SetGCPtrSize(PSSMHANDLE pSSM, unsigned cbGCPtr);
     660VMMR3_INT_DECL(int) SSMR3SetGCPtrSize(PSSMHANDLE pSSM, unsigned cbGCPtr);
    661661
    662662
  • trunk/src/VBox/VMM/SSM.cpp

    r22793 r22803  
    12111211 * @remark  Only for dynmaic data units and dynamic unloaded modules.
    12121212 */
    1213 VMMR3DECL(int) SSMR3DeregisterDevice(PVM pVM, PPDMDEVINS pDevIns, const char *pszName, uint32_t uInstance)
     1213VMMR3_INT_DECL(int) SSMR3DeregisterDevice(PVM pVM, PPDMDEVINS pDevIns, const char *pszName, uint32_t uInstance)
    12141214{
    12151215    /*
     
    12871287 * @remark  Only for dynmaic data units and dynamic unloaded modules.
    12881288 */
    1289 VMMR3DECL(int) SSMR3DeregisterDriver(PVM pVM, PPDMDRVINS pDrvIns, const char *pszName, uint32_t uInstance)
     1289VMMR3_INT_DECL(int) SSMR3DeregisterDriver(PVM pVM, PPDMDRVINS pDrvIns, const char *pszName, uint32_t uInstance)
    12901290{
    12911291    /*
     
    33553355 * @thread  EMT(0).
    33563356 */
    3357 VMMR3DECL(int) SSMR3LiveDone(PSSMHANDLE pSSM)
     3357VMMR3_INT_DECL(int) SSMR3LiveDone(PSSMHANDLE pSSM)
    33583358{
    33593359    LogFlow(("SSMR3LiveDone: pSSM=%p\n", pSSM));
     
    37863786 * @thread  Non-EMT thread. Will involve the EMT at the end of the operation.
    37873787 */
    3788 VMMR3DECL(int) SSMR3LiveDoStep2(PSSMHANDLE pSSM)
     3788VMMR3_INT_DECL(int) SSMR3LiveDoStep2(PSSMHANDLE pSSM)
    37893789{
    37903790    LogFlow(("SSMR3LiveDoStep2: pSSM=%p\n", pSSM));
     
    41474147 * @thread  Non-EMT thread. Will involve the EMT at the end of the operation.
    41484148 */
    4149 VMMR3DECL(int) SSMR3LiveDoStep1(PSSMHANDLE pSSM)
     4149VMMR3_INT_DECL(int) SSMR3LiveDoStep1(PSSMHANDLE pSSM)
    41504150{
    41514151    LogFlow(("SSMR3LiveDoStep1: pSSM=%p\n", pSSM));
     
    43334333 * @thread  EMT0
    43344334 */
    4335 VMMR3DECL(int) SSMR3LiveToFile(PVM pVM, const char *pszFilename, SSMAFTER enmAfter,
    4336                                PFNVMPROGRESS pfnProgress, void *pvUser, PSSMHANDLE *ppSSM)
     4335VMMR3_INT_DECL(int) SSMR3LiveToFile(PVM pVM, const char *pszFilename, SSMAFTER enmAfter,
     4336                                    PFNVMPROGRESS pfnProgress, void *pvUser, PSSMHANDLE *ppSSM)
    43374337{
    43384338    LogFlow(("SSMR3LiveToFile: pszFilename=%p:{%s} enmAfter=%d pfnProgress=%p pvUser=%p\n", pszFilename, pszFilename, enmAfter, pfnProgress, pvUser));
     
    54675467 *          format isn't 1.1 the call will be ignored.
    54685468 */
    5469 VMMR3DECL(int) SSMR3SetGCPtrSize(PSSMHANDLE pSSM, unsigned cbGCPtr)
     5469VMMR3_INT_DECL(int) SSMR3SetGCPtrSize(PSSMHANDLE pSSM, unsigned cbGCPtr)
    54705470{
    54715471    Assert(cbGCPtr == sizeof(RTGCPTR32) || cbGCPtr == sizeof(RTGCPTR64));
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