VirtualBox

Changeset 70060 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Dec 11, 2017 3:13:53 PM (7 years ago)
Author:
vboxsync
Message:

GuestPropertySvc.h: Working on making it usable from C (VBoxGuest, ++)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/HostServices/GuestPropertySvc.h

    r70058 r70060  
    3232#include <VBox/log.h>
    3333#include <VBox/hgcmsvc.h>
    34 #include <iprt/assert.h>
     34#include <iprt/assertcompile.h>
    3535#include <iprt/string.h>
    3636
     
    296296 * HGCM parameter structures.  Packing is explicitly defined as this is a wire format.
    297297 */
    298 #pragma pack (1)
    299298/** The guest is requesting the value of a property */
    300299typedef struct _GetProperty
     
    331330    HGCMFunctionParameter size;
    332331} GetProperty;
     332AssertCompileSize(GetProperty, 40 + 4 * (ARCH_BITS == 64 ? 16 : 12));
    333333
    334334/** The guest is requesting to change a property */
     
    361361    HGCMFunctionParameter flags;
    362362} SetProperty;
     363AssertCompileSize(SetProperty, 40 + 3 * (ARCH_BITS == 64 ? 16 : 12));
    363364
    364365/** The guest is requesting to change the value of a property */
     
    383384    HGCMFunctionParameter value;
    384385} SetPropertyValue;
     386AssertCompileSize(SetPropertyValue, 40 + 2 * (ARCH_BITS == 64 ? 16 : 12));
    385387
    386388/** The guest is requesting to remove a property */
     
    397399    HGCMFunctionParameter name;
    398400} DelProperty;
     401AssertCompileSize(DelProperty, 40 + 1 * (ARCH_BITS == 64 ? 16 : 12));
    399402
    400403/** The guest is requesting to enumerate properties */
     
    427430    HGCMFunctionParameter size;
    428431} EnumProperties;
     432AssertCompileSize(EnumProperties, 40 + 3 * (ARCH_BITS == 64 ? 16 : 12));
    429433
    430434/**
     
    486490    HGCMFunctionParameter size;
    487491} GetNotification;
    488 #pragma pack ()
     492AssertCompileSize(GetNotification, 40 + 4 * (ARCH_BITS == 64 ? 16 : 12));
    489493
    490494} /* namespace guestProp */
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