Changeset 8700 in vbox
- Timestamp:
- May 8, 2008 11:47:27 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 30638
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuestLib.h
r8155 r8700 150 150 * obtain a client identifier for future access. 151 151 * 152 * @note This function can NOT handle cancelled requests! 153 * 152 154 * @param pConnectInfo The request data. 153 155 * @param pAsyncCallback Required pointer to function that is called when … … 168 170 * the client will not call the service anymore. 169 171 * 172 * @note This function can NOT handle cancelled requests! 173 * 170 174 * @param pDisconnectInfo The request data. 171 175 * @param pAsyncCallback Required pointer to function that is called when … … 181 185 VBGLHGCMCALLBACK *pAsyncCallback, void *pvAsyncData, uint32_t u32AsyncData); 182 186 183 /* Call a HGCM service. 187 /** Call a HGCM service. 188 * 189 * @note This function can deal with cancelled requests. 184 190 * 185 191 * @param pCallInfo The request data. -
trunk/src/VBox/Additions/linux/module/cmc.c
r8693 r8700 30 30 { 31 31 VBoxDevice *dev = pvData; 32 wait_event (dev->eventq, pHeader->fu32Flags & VBOX_HGCM_REQ_DONE); 33 } 34 35 static DECLVBGL(void) 36 vboxadd_hgcm_callback_interruptible (VMMDevHGCMRequestHeader *pHeader, void *pvData, uint32_t u32Data) 37 { 38 VBoxDevice *dev = pvData; 32 39 wait_event_interruptible (dev->eventq, pHeader->fu32Flags & VBOX_HGCM_REQ_DONE); 33 40 } … … 37 44 switch (func) 38 45 { 46 /* this function can NOT handle cancelled requests */ 39 47 case IOCTL_VBOXGUEST_HGCM_CONNECT: 40 48 return VbglHGCMConnect (data, vboxadd_hgcm_callback, opaque, 0); 41 49 50 /* this function can NOT handle cancelled requests */ 42 51 case IOCTL_VBOXGUEST_HGCM_DISCONNECT: 43 52 return VbglHGCMDisconnect (data, vboxadd_hgcm_callback, opaque, 0); 44 53 54 /* this function can handle cancelled requests */ 45 55 case IOCTL_VBOXGUEST_HGCM_CALL: 46 return VbglHGCMCall (data, vboxadd_hgcm_callback , opaque, 0);56 return VbglHGCMCall (data, vboxadd_hgcm_callback_interruptible, opaque, 0); 47 57 48 58 default:
Note:
See TracChangeset
for help on using the changeset viewer.