VirtualBox

Changeset 71585 in vbox for trunk


Ignore:
Timestamp:
Mar 31, 2018 12:48:37 PM (7 years ago)
Author:
vboxsync
Message:

HGSMI.h: docs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/Graphics/HGSMI.h

    r69307 r71585  
    3939#include "HGSMIMemAlloc.h"
    4040
    41 /*
     41/**
    4242 * Basic mechanism for the HGSMI is to prepare and pass data buffer to the host and the guest.
    4343 * Data inside these buffers are opaque for the HGSMI and are interpreted by higher levels.
     
    7676typedef struct HGSMIHEAP
    7777{
    78     HGSMIAREA area; /* Description. */
    79     HGSMIMADATA ma; /* Memory allocator */
     78    HGSMIAREA area; /**< Description. */
     79    HGSMIMADATA ma; /**< Memory allocator */
    8080} HGSMIHEAP;
    8181
     
    8383#define HGSMI_NUMBER_OF_CHANNELS 0x100
    8484
    85 /* Channel handler called when the guest submits a buffer. */
     85/**
     86 * Channel handler called when the guest submits a buffer.
     87 *
     88 * @returns stuff
     89 * @param   pvHandler       Value specified when registring.
     90 * @param   u16ChannelInfo  Command code.
     91 * @param   pvBuffer        HGSMI buffer with command data.  This is shared with
     92 *                          the guest.  Consider untrusted and volatile!
     93 * @param   cbBuffer        Size of command data.
     94 * @thread  EMT on the host side.
     95 */
    8696typedef DECLCALLBACK(int) FNHGSMICHANNELHANDLER(void *pvHandler, uint16_t u16ChannelInfo, void *pvBuffer, HGSMISIZE cbBuffer);
     97/** Pointer to a channel handler callback. */
    8798typedef FNHGSMICHANNELHANDLER *PFNHGSMICHANNELHANDLER;
    8899
    89 /* Information about a handler: pfn + context. */
     100/** Information about a handler: pfn + context. */
    90101typedef struct _HGSMICHANNELHANDLER
    91102{
     
    94105} HGSMICHANNELHANDLER;
    95106
    96 /* Channel description. */
     107/** Channel description. */
    97108typedef struct _HGSMICHANNEL
    98109{
    99     HGSMICHANNELHANDLER handler;       /* The channel handler. */
    100     const char *pszName;               /* NULL for hardcoded channels or RTStrDup'ed name. */
    101     uint8_t u8Channel;                 /* The channel id, equal to the channel index in the array. */
    102     uint8_t u8Flags;                   /* HGSMI_CH_F_* */
     110    HGSMICHANNELHANDLER handler;       /**< The channel handler. */
     111    const char *pszName;               /**< NULL for hardcoded channels or RTStrDup'ed name. */
     112    uint8_t u8Channel;                 /**< The channel id, equal to the channel index in the array. */
     113    uint8_t u8Flags;                   /**< HGSMI_CH_F_* */
    103114} HGSMICHANNEL;
    104115
    105116typedef struct _HGSMICHANNELINFO
    106117{
    107     HGSMICHANNEL Channels[HGSMI_NUMBER_OF_CHANNELS]; /* Channel handlers indexed by the channel id.
    108                                                       * The array is accessed under the instance lock.
    109                                                       */
     118    /** Channel handlers indexed by the channel id.
     119     * The array is accessed under the instance lock. */
     120    HGSMICHANNEL Channels[HGSMI_NUMBER_OF_CHANNELS];
    110121}  HGSMICHANNELINFO;
    111122
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