VirtualBox

Changeset 24925 in vbox for trunk/include


Ignore:
Timestamp:
Nov 24, 2009 10:59:37 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55211
Message:

2d video: fix VM reset issues

File:
1 edited

Legend:

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

    r24646 r24925  
    320320
    321321#define VBOXVHWACMD_HEADSIZE() (RT_OFFSETOF(VBOXVHWACMD, body))
    322 #define VBOXVHWACMD_SIZE(_tCmd) (VBOXVHWACMD_HEADSIZE() + sizeof(_tCmd))
     322#define VBOXVHWACMD_SIZE_FROMBODYSIZE(_s) (VBOXVHWACMD_HEADSIZE() + (_s))
     323#define VBOXVHWACMD_SIZE(_tCmd) (VBOXVHWACMD_SIZE_FROMBODYSIZE(sizeof(_tCmd)))
    323324typedef unsigned int VBOXVHWACMD_LENGTH;
    324325typedef uint64_t VBOXVHWA_SURFHANDLE;
     
    734735    void * pVM;
    735736} VBOXVHWACMD_HH_CONSTRUCT;
     737
     738typedef DECLCALLBACK(void) FNVBOXVHWA_HH_CALLBACK(void*);
     739typedef FNVBOXVHWA_HH_CALLBACK *PFNVBOXVHWA_HH_CALLBACK;
     740
     741#define VBOXVHWA_HH_CALLBACK_SET(_pCmd, _pfn, _parg) \
     742    do { \
     743        (_pCmd)->GuestVBVAReserved1 = (uint64_t)(_pfn); \
     744        (_pCmd)->GuestVBVAReserved2 = (uint64_t)(_parg); \
     745    }while(0)
     746
     747#define VBOXVHWA_HH_CALLBACK_GET(_pCmd) ((PFNVBOXVHWA_HH_CALLBACK)(_pCmd)->GuestVBVAReserved1)
     748#define VBOXVHWA_HH_CALLBACK_GET_ARG(_pCmd) ((void*)(_pCmd)->GuestVBVAReserved2)
    736749
    737750#pragma pack()
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