Changeset 50825 in vbox for trunk/src/VBox
- Timestamp:
- Mar 19, 2014 4:18:24 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestControl/service.cpp
r49349 r50825 5 5 6 6 /* 7 * Copyright (C) 2011-201 3Oracle Corporation7 * Copyright (C) 2011-2014 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 922 922 * Simply deletes the service object 923 923 */ 924 static DECLCALLBACK(int) svcUnload 924 static DECLCALLBACK(int) svcUnload(void *pvService) 925 925 { 926 926 AssertLogRelReturn(VALID_PTR(pvService), VERR_INVALID_PARAMETER); … … 937 937 * Stub implementation of pfnConnect and pfnDisconnect. 938 938 */ 939 static DECLCALLBACK(int) svcConnect 940 941 939 static DECLCALLBACK(int) svcConnect(void *pvService, 940 uint32_t u32ClientID, 941 void *pvClient) 942 942 { 943 943 AssertLogRelReturn(VALID_PTR(pvService), VERR_INVALID_PARAMETER); … … 951 951 * Stub implementation of pfnConnect and pfnDisconnect. 952 952 */ 953 static DECLCALLBACK(int) svcDisconnect 954 955 953 static DECLCALLBACK(int) svcDisconnect(void *pvService, 954 uint32_t u32ClientID, 955 void *pvClient) 956 956 { 957 957 AssertLogRelReturn(VALID_PTR(pvService), VERR_INVALID_PARAMETER); … … 965 965 * Wraps to the call member function 966 966 */ 967 static DECLCALLBACK(void) svcCall 968 969 970 971 972 973 967 static DECLCALLBACK(void) svcCall(void * pvService, 968 VBOXHGCMCALLHANDLE callHandle, 969 uint32_t u32ClientID, 970 void *pvClient, 971 uint32_t u32Function, 972 uint32_t cParms, 973 VBOXHGCMSVCPARM paParms[]) 974 974 { 975 975 AssertLogRelReturnVoid(VALID_PTR(pvService)); … … 983 983 * Wraps to the hostCall member function 984 984 */ 985 static DECLCALLBACK(int) svcHostCall 986 987 988 985 static DECLCALLBACK(int) svcHostCall(void *pvService, 986 uint32_t u32Function, 987 uint32_t cParms, 988 VBOXHGCMSVCPARM paParms[]) 989 989 { 990 990 AssertLogRelReturn(VALID_PTR(pvService), VERR_INVALID_PARAMETER); … … 998 998 * Installs a host callback for notifications of property changes. 999 999 */ 1000 static DECLCALLBACK(int) svcRegisterExtension 1001 1002 1000 static DECLCALLBACK(int) svcRegisterExtension(void *pvService, 1001 PFNHGCMSVCEXT pfnExtension, 1002 void *pvExtension) 1003 1003 { 1004 1004 AssertLogRelReturn(VALID_PTR(pvService), VERR_INVALID_PARAMETER); … … 1075 1075 ClientStateMapIter itClientState = mClientStateMap.find(u32ClientID); 1076 1076 AssertMsg(itClientState != mClientStateMap.end(), 1077 ("Client sID=%RU32 not found in client list when it should be there\n", u32ClientID));1077 ("Client ID=%RU32 not found in client list when it should be there\n", u32ClientID)); 1078 1078 1079 1079 if (itClientState != mClientStateMap.end()) … … 1146 1146 u32ClientID)); 1147 1147 if (itClientState == mClientStateMap.end()) 1148 return VERR_NOT_FOUND; /* Should never happen. */ 1148 { 1149 /* Should never happen. Complete the call on the guest side though. */ 1150 AssertPtr(mpHelpers); 1151 mpHelpers->pfnCallComplete(callHandle, VERR_NOT_FOUND); 1152 1153 return VERR_NOT_FOUND; 1154 } 1149 1155 1150 1156 ClientState &clientState = itClientState->second; … … 1571 1577 } 1572 1578 1573 int Service::uninit( )1579 int Service::uninit(void) 1574 1580 { 1575 1581 return VINF_SUCCESS;
Note:
See TracChangeset
for help on using the changeset viewer.