VirtualBox

Changeset 70061 in vbox for trunk/include/VBox/HostServices


Ignore:
Timestamp:
Dec 11, 2017 3:26:46 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
119603
Message:

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

File:
1 edited

Legend:

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

    r70060 r70061  
    290290#define GUESTPROPHOSTCALLBACKDATA_MAGIC     UINT32_C(0x69c87a78)
    291291
    292 /** Everything defined in this file lives in this namespace. */
    293 namespace guestProp {
    294 
    295292/**
    296293 * HGCM parameter structures.  Packing is explicitly defined as this is a wire format.
    297294 */
    298295/** The guest is requesting the value of a property */
    299 typedef struct _GetProperty
     296typedef struct GuestPropMsgGetProperty
    300297{
    301298    VBGLIOCHGCMCALL hdr;
     
    329326     */
    330327    HGCMFunctionParameter size;
    331 } GetProperty;
    332 AssertCompileSize(GetProperty, 40 + 4 * (ARCH_BITS == 64 ? 16 : 12));
     328} GuestPropMsgGetProperty;
     329AssertCompileSize(GuestPropMsgGetProperty, 40 + 4 * (ARCH_BITS == 64 ? 16 : 12));
    333330
    334331/** The guest is requesting to change a property */
    335 typedef struct _SetProperty
     332typedef struct GuestPropMsgSetProperty
    336333{
    337334    VBGLIOCHGCMCALL hdr;
     
    360357     */
    361358    HGCMFunctionParameter flags;
    362 } SetProperty;
    363 AssertCompileSize(SetProperty, 40 + 3 * (ARCH_BITS == 64 ? 16 : 12));
     359} GuestPropMsgSetProperty;
     360AssertCompileSize(GuestPropMsgSetProperty, 40 + 3 * (ARCH_BITS == 64 ? 16 : 12));
    364361
    365362/** The guest is requesting to change the value of a property */
    366 typedef struct _SetPropertyValue
     363typedef struct GuestPropMsgSetPropertyValue
    367364{
    368365    VBGLIOCHGCMCALL hdr;
     
    383380     */
    384381    HGCMFunctionParameter value;
    385 } SetPropertyValue;
    386 AssertCompileSize(SetPropertyValue, 40 + 2 * (ARCH_BITS == 64 ? 16 : 12));
     382} GuestPropMsgSetPropertyValue;
     383AssertCompileSize(GuestPropMsgSetPropertyValue, 40 + 2 * (ARCH_BITS == 64 ? 16 : 12));
    387384
    388385/** The guest is requesting to remove a property */
    389 typedef struct _DelProperty
     386typedef struct GuestPropMsgDelProperty
    390387{
    391388    VBGLIOCHGCMCALL hdr;
     
    398395     */
    399396    HGCMFunctionParameter name;
    400 } DelProperty;
    401 AssertCompileSize(DelProperty, 40 + 1 * (ARCH_BITS == 64 ? 16 : 12));
     397} GuestPropMsgDelProperty;
     398AssertCompileSize(GuestPropMsgDelProperty, 40 + 1 * (ARCH_BITS == 64 ? 16 : 12));
    402399
    403400/** The guest is requesting to enumerate properties */
    404 typedef struct _EnumProperties
     401typedef struct GuestPropMsgEnumProperties
    405402{
    406403    VBGLIOCHGCMCALL hdr;
     
    429426     */
    430427    HGCMFunctionParameter size;
    431 } EnumProperties;
    432 AssertCompileSize(EnumProperties, 40 + 3 * (ARCH_BITS == 64 ? 16 : 12));
     428} GuestPropMsgEnumProperties;
     429AssertCompileSize(GuestPropMsgEnumProperties, 40 + 3 * (ARCH_BITS == 64 ? 16 : 12));
    433430
    434431/**
     
    453450 * the outgoing timestamp from the previous call.
    454451 */
    455 typedef struct _GetNotification
     452typedef struct GuestPropMsgGetNotification
    456453{
    457454    VBGLIOCHGCMCALL hdr;
     
    489486     */
    490487    HGCMFunctionParameter size;
    491 } GetNotification;
    492 AssertCompileSize(GetNotification, 40 + 4 * (ARCH_BITS == 64 ? 16 : 12));
    493 
    494 } /* namespace guestProp */
     488} GuestPropMsgGetNotification;
     489AssertCompileSize(GuestPropMsgGetNotification, 40 + 4 * (ARCH_BITS == 64 ? 16 : 12));
     490
    495491
    496492#endif  /* !___VBox_HostService_GuestPropertySvc_h */
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