Changeset 14316 in vbox for trunk/src/VBox
- Timestamp:
- Nov 18, 2008 4:42:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp
r14311 r14316 841 841 842 842 /** Worker for VBoxGuestHGCMAsyncWaitCallback*. */ 843 void 844 VBoxGuestHGCMAsyncWaitCallbackWorker(VMMDevHGCMRequestHeader *pHdrNonVolatile, PVBOXGUESTDEVEXT pDevExt, 845 bool fInterruptible, uint32_t u32Timeout) 846 { 847 VMMDevHGCMRequestHeader volatile *pHdr = (VMMDevHGCMRequestHeader volatile *)pHdrNonVolatile; 843 static void VBoxGuestHGCMAsyncWaitCallbackWorker(VMMDevHGCMRequestHeader volatile *pHdr, PVBOXGUESTDEVEXT pDevExt, 844 bool fInterruptible, uint32_t u32Timeout) 845 { 848 846 849 847 /* … … 918 916 * It operates in a manner similar to VBoxGuestCommonIOCtl_WaitEvent. 919 917 */ 920 static DECLCALLBACK(void) VBoxGuestHGCMAsyncWaitCallback(VMMDevHGCMRequestHeader *pHdrNonVolatile, 921 void *pvUser, uint32_t u32User) 922 { 923 VMMDevHGCMRequestHeader volatile *pHdr = (VMMDevHGCMRequestHeader volatile *)pHdrNonVolatile; 918 static DECLCALLBACK(void) VBoxGuestHGCMAsyncWaitCallback(VMMDevHGCMRequestHeader *pHdr, void *pvUser, uint32_t u32User) 919 { 924 920 const bool fInterruptible = (bool)u32User; 925 921 PVBOXGUESTDEVEXT pDevExt = (PVBOXGUESTDEVEXT)pvUser; 926 922 LogFunc(("requestType=%d\n", pHdr->header.requestType)); 927 VBoxGuestHGCMAsyncWaitCallbackWorker( pHdrNonVolatile, pDevExt, fInterruptible, RT_INDEFINITE_WAIT);923 VBoxGuestHGCMAsyncWaitCallbackWorker((VMMDevHGCMRequestHeader volatile *)pHdr, pDevExt, fInterruptible, RT_INDEFINITE_WAIT); 928 924 } 929 925 … … 934 930 * It operates in a manner similar to VBoxGuestCommonIOCtl_WaitEvent. 935 931 */ 936 static DECLCALLBACK(void) VBoxGuestHGCMAsyncWaitCallbackTimeoutInterruptible(VMMDevHGCMRequestHeader *pHdrNonVolatile, 937 void *pvUser, uint32_t u32User) 932 static DECLCALLBACK(void) VBoxGuestHGCMAsyncWaitCallbackTimeoutInterruptible(VMMDevHGCMRequestHeader *pHdr, void *pvUser, uint32_t u32User) 938 933 { 939 934 PVBOXGUESTDEVEXT pDevExt = (PVBOXGUESTDEVEXT)pvUser; 940 935 LogFunc(("requestType=%d\n", pHdr->header.requestType)); 941 VBoxGuestHGCMAsyncWaitCallbackWorker( pHdrNonVolatile, pDevExt, true /* fInterruptible */, u32user);936 VBoxGuestHGCMAsyncWaitCallbackWorker((VMMDevHGCMRequestHeader volatile *)pHdr, pDevExt, true /* fInterruptible */, u32User); 942 937 } 943 938 … … 948 943 * It operates in a manner similar to VBoxGuestCommonIOCtl_WaitEvent. 949 944 */ 950 static DECLCALLBACK(void) VBoxGuestHGCMAsyncWaitCallbackTimeout(VMMDevHGCMRequestHeader *pHdrNonVolatile, 951 void *pvUser, uint32_t u32User) 945 static DECLCALLBACK(void) VBoxGuestHGCMAsyncWaitCallbackTimeout(VMMDevHGCMRequestHeader *pHdr, void *pvUser, uint32_t u32User) 952 946 { 953 947 PVBOXGUESTDEVEXT pDevExt = (PVBOXGUESTDEVEXT)pvUser; 954 948 LogFunc(("requestType=%d\n", pHdr->header.requestType)); 955 VBoxGuestHGCMAsyncWaitCallbackWorker( pHdrNonVolatile, pDevExt, false /* fInterruptible */, u32user);949 VBoxGuestHGCMAsyncWaitCallbackWorker((VMMDevHGCMRequestHeader volatile *)pHdr, pDevExt, false /* fInterruptible */, u32User); 956 950 } 957 951
Note:
See TracChangeset
for help on using the changeset viewer.