VirtualBox

Changeset 46691 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jun 19, 2013 7:57:53 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
86588
Message:

VMMDev.h: Drop unnecessary pragmas, keeping the pack(4) on the whole header for what it's worth.

File:
1 edited

Legend:

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

    r46093 r46691  
    3535#include <iprt/assert.h>
    3636
    37 
     37 
     38#pragma pack(4) /* force structure dword packing here. */
    3839RT_C_DECLS_BEGIN
     40
    3941
    4042/** @defgroup grp_vmmdev    VMM Device
     
    233235#define VMMDEV_REQUEST_HEADER_VERSION (0x10001)
    234236
    235 #pragma pack(4) /* force structure dword packing here. */
    236237
    237238/**
     
    960961 * Used by VMMDevReq_QueryCredentials.
    961962 */
    962 #pragma pack(4)
    963963typedef struct
    964964{
     
    975975} VMMDevCredentials;
    976976AssertCompileSize(VMMDevCredentials, 24+4+3*128);
    977 #pragma pack()
    978977
    979978/** @name Credentials request flag (VMMDevCredentials::u32Flags)
     
    14231422
    14241423
    1425 #pragma pack()
    1426 
    14271424
    14281425#ifdef VBOX_WITH_HGCM
     
    14351432# define VBOX_HGCM_REQ_CANCELLED (0x2)
    14361433/** @} */
    1437 
    1438 # pragma pack(4)
    14391434
    14401435/**
     
    17801775AssertCompileSize(HGCMPageListInfo, 4+2+2+8);
    17811776
    1782 # pragma pack()
    17831777
    17841778/** Get the pointer to the first parmater of a HGCM call request.  */
     
    19811975 * @todo Where does this fit in?
    19821976 */
    1983 #pragma pack(1) /* unnecessary */
    19841977typedef struct VBVACMDHDR
    19851978{
     
    19901983   uint16_t h;
    19911984} VBVACMDHDR;
    1992 #pragma pack()
     1985AssertCompileSize(VBVACMDHDR, 8);
    19931986
    19941987/** @name VBVA ring defines.
     
    20392032 * This is a subsection of the VMMDevMemory structure.
    20402033 */
    2041 #pragma pack(1) /* paranoia */
    20422034typedef struct VBVAMEMORY
    20432035{
     
    20662058
    20672059} VBVAMEMORY;
    2068 #pragma pack()
    20692060AssertCompileSize(VBVAMEMORY, 12 + (_4M-_1K) + 4*64 + 12);
    20702061
     
    20732064 * The layout of VMMDEV RAM region that contains information for guest.
    20742065 */
    2075 #pragma pack(1) /* paranoia */
    20762066typedef struct VMMDevMemory
    20772067{
     
    21022092} VMMDevMemory;
    21032093AssertCompileSize(VMMDevMemory, 8+8 + (12 + (_4M-_1K) + 4*64 + 12) );
    2104 #pragma pack()
     2094AssertCompileMemberOffset(VMMDevMemory, vbvaMemory, 16);
    21052095
    21062096/** Version of VMMDevMemory structure (VMMDevMemory::u32Version). */
     
    21082098
    21092099/** @} */
     2100
    21102101RT_C_DECLS_END
     2102#pragma pack()
    21112103
    21122104#endif
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