- Timestamp:
- Mar 31, 2018 12:48:37 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/Graphics/HGSMI.h
r69307 r71585 39 39 #include "HGSMIMemAlloc.h" 40 40 41 /* 41 /** 42 42 * Basic mechanism for the HGSMI is to prepare and pass data buffer to the host and the guest. 43 43 * Data inside these buffers are opaque for the HGSMI and are interpreted by higher levels. … … 76 76 typedef struct HGSMIHEAP 77 77 { 78 HGSMIAREA area; /* Description. */79 HGSMIMADATA ma; /* Memory allocator */78 HGSMIAREA area; /**< Description. */ 79 HGSMIMADATA ma; /**< Memory allocator */ 80 80 } HGSMIHEAP; 81 81 … … 83 83 #define HGSMI_NUMBER_OF_CHANNELS 0x100 84 84 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 */ 86 96 typedef DECLCALLBACK(int) FNHGSMICHANNELHANDLER(void *pvHandler, uint16_t u16ChannelInfo, void *pvBuffer, HGSMISIZE cbBuffer); 97 /** Pointer to a channel handler callback. */ 87 98 typedef FNHGSMICHANNELHANDLER *PFNHGSMICHANNELHANDLER; 88 99 89 /* Information about a handler: pfn + context. */100 /** Information about a handler: pfn + context. */ 90 101 typedef struct _HGSMICHANNELHANDLER 91 102 { … … 94 105 } HGSMICHANNELHANDLER; 95 106 96 /* Channel description. */107 /** Channel description. */ 97 108 typedef struct _HGSMICHANNEL 98 109 { 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_* */ 103 114 } HGSMICHANNEL; 104 115 105 116 typedef struct _HGSMICHANNELINFO 106 117 { 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]; 110 121 } HGSMICHANNELINFO; 111 122
Note:
See TracChangeset
for help on using the changeset viewer.