VirtualBox

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


Ignore:
Timestamp:
Apr 14, 2010 10:02:30 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60033
Message:

Guest Control: Update (introducing contexts for callbacks).

File:
1 edited

Legend:

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

    r28243 r28286  
    7272};
    7373
     74typedef struct _VBoxGuestCtrlCallbackHeader
     75{
     76    /** Magic number to identify the structure. */
     77    uint32_t u32Magic;
     78    /** Context ID to identify callback data. */
     79    uint32_t u32ContextID;
     80    /** Atomic flag whether callback was called. */
     81    bool bCalled;
     82} HOSTCCALLBACKHEADER, *PHOSTCCALLBACKHEADER;
     83
    7484/**
    7585 * Data structure to pass to the service extension callback.  We use this to
     
    7888typedef struct _VBoxGuestCtrlExecCallbackData
    7989{
    80     /** Magic number to identify the structure. */
    81     uint32_t u32Magic;
     90    /** Callback data header. */
     91    HOSTCCALLBACKHEADER hdr;
    8292    /** The process ID (PID). */
    83     uint32_t pid;
     93    uint32_t u32PID;
    8494    /* The process status. */
    85     uint32_t status;   
     95    uint32_t u32Status;   
    8696    /** Optional flags (not used atm). */
    87     uint32_t flags;
     97    uint32_t u32Flags;
    8898    /** Optional data buffer (not used atm). */
    8999    void *pvData;
    90100    /** Size of optional data buffer (not used atm). */
    91101    uint32_t cbData;
    92     /** Atomic flags whether callback was called. */
    93     bool called;
    94102   
    95103} HOSTEXECCALLBACKDATA, *PHOSTEXECCALLBACKDATA;
     
    97105enum
    98106{
    99     /** Magic number for sanity checking the HOSTCALLBACKDATA structure */
    100     HOSTCALLBACKMAGIC = 0x26011982
     107    /** Magic number for sanity checking the HOSTEXECCALLBACKDATA structure */
     108    HOSTEXECCALLBACKDATAMAGIC = 0x26011982
    101109};
    102110
     
    184192{
    185193    VBoxGuestHGCMCallInfo hdr;
     194
     195    HGCMFunctionParameter context;
    186196
    187197    HGCMFunctionParameter cmd;
     
    216226{
    217227    VBoxGuestHGCMCallInfo hdr;
     228    /** Context ID. */
     229    HGCMFunctionParameter context;
    218230    /** The process ID (PID). */
    219231    HGCMFunctionParameter pid;
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