VirtualBox

Changeset 13157 in vbox


Ignore:
Timestamp:
Oct 10, 2008 8:43:05 AM (16 years ago)
Author:
vboxsync
Message:

HGCM: added callback type

File:
1 edited

Legend:

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

    r10652 r13157  
    8787 * Intended for use on the host side.
    8888 */
    89 typedef DECLCALLBACK(void) FNVBOXHGCMCALLBACK(void *pvParm);
     89typedef struct _VBOXHGCMCALLBACKHDR *PVBOXHGCMCALLBACKHDR;
     90typedef DECLCALLBACK(void) FNVBOXHGCMCALLBACK(PVBOXHGCMCALLBACKHDR pvParm);
    9091typedef FNVBOXHGCMCALLBACK *PFNVBOXHGCMCALLBACK;
     92
     93/**
     94 * Callback parameter structure header for FNVBOXHGCMCALLBACK callback
     95 * functions.  The structure passed as a callback parameter should start
     96 * with this header.
     97 */
     98typedef struct _VBOXHGCMCALLBACKHDR
     99{
     100    /** Magic number for runtime sanity check */
     101    uint32_t  u32Magic;
     102    /** Size of the embedding structure */
     103    uint32_t  cbStruct;
     104    /** Callback user data */
     105    void     *pvData;
     106} VBOXHGCMCALLBACKHDR;
     107
     108enum
     109{
     110    /** Magic number for sanity checking the VBOXHGCMCALLBACKHDR structure */
     111    VBOXHGCMCALLBACKMAGIC = 0x69c87a78
     112};
    91113
    92114#define VBOX_HGCM_SVC_PARM_INVALID  (0U)
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