Changeset 43462 in vbox for trunk/include
- Timestamp:
- Sep 28, 2012 10:46:41 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 80995
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/HostServices/VBoxHostChannel.h
r43347 r43462 45 45 #define VBOX_HOST_CHANNEL_FN_SEND 3 /* Send data to the host. */ 46 46 #define VBOX_HOST_CHANNEL_FN_RECV 4 /* Receive data from the host. */ 47 #define VBOX_HOST_CHANNEL_FN_CONTROL 5 /* Generic data exchange . */47 #define VBOX_HOST_CHANNEL_FN_CONTROL 5 /* Generic data exchange using a channel instance. */ 48 48 #define VBOX_HOST_CHANNEL_FN_EVENT_WAIT 6 /* Blocking wait for a host event. */ 49 49 #define VBOX_HOST_CHANNEL_FN_EVENT_CANCEL 7 /* Cancel the blocking wait. */ 50 #define VBOX_HOST_CHANNEL_FN_QUERY 8 /* Generic data exchange using a channel name. */ 50 51 51 52 /* … … 56 57 #define VBOX_HOST_CHANNEL_EVENT_RECV 2 /* Data is available for receiving. */ 57 58 #define VBOX_HOST_CHANNEL_EVENT_USER 1000 /* Base of channel specific events. */ 59 60 /* 61 * The common control code ids for the VBOX_HOST_CHANNEL_FN_[CONTROL|QUERY] 62 */ 63 #define VBOX_HOST_CHANNEL_CTRL_EXISTS 0 /* Whether the channel instance or provider exists. */ 64 #define VBOX_HOST_CHANNEL_CTRL_USER 1000 /* Base of channel specific events. */ 58 65 59 66 #pragma pack(1) … … 122 129 VBoxGuestHGCMCallInfo hdr; 123 130 } VBoxHostChannelEventCancel; 131 132 typedef struct VBoxHostChannelQuery 133 { 134 VBoxGuestHGCMCallInfo hdr; 135 HGCMFunctionParameter name; /* IN linear ptr: Channel name utf8 nul terminated. */ 136 HGCMFunctionParameter code; /* IN uint32_t: The control code. */ 137 HGCMFunctionParameter parm; /* IN linear pointer: Parameters of the function. */ 138 HGCMFunctionParameter data; /* OUT linear pointer: Buffer for results. */ 139 HGCMFunctionParameter sizeDataReturned; /* OUT uint32_t: Bytes returned in the 'data' buffer. */ 140 } VBoxHostChannelQuery; 124 141 125 142 … … 180 197 uint32_t *pcbReceived, uint32_t *pcbRemaining)); 181 198 182 /* The guest talks to the provider of the channel. */ 199 /* The guest talks to the provider of the channel. 200 * @param pvChannel The channel instance. NULL if the target is the provider, rather than a channel. 201 */ 183 202 DECLR3CALLBACKMEMBER(int, HostChannelControl, (void *pvChannel, uint32_t u32Code, 184 203 const void *pvParm, uint32_t cbParm, -
trunk/include/VBox/VBoxGuestLib.h
r43346 r43462 737 737 uint32_t *pu32SizeReturned); 738 738 VBGLR3DECL(int) VbglR3HostChannelEventCancel(uint32_t u32ChannelHandle, uint32_t u32HGCMClientId); 739 VBGLR3DECL(int) VbglR3HostChannelQuery(const char *pszName, uint32_t u32HGCMClientId, uint32_t u32Code, 740 void *pvParm, uint32_t cbParm, void *pvData, uint32_t cbData, 741 uint32_t *pu32SizeDataReturned); 739 742 740 743 #endif /* IN_RING3 */
Note:
See TracChangeset
for help on using the changeset viewer.