Changeset 39242 in vbox for trunk/src/VBox/HostServices
- Timestamp:
- Nov 8, 2011 1:38:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/GuestProperties/service.cpp
r39236 r39242 287 287 * Simply deletes the service object 288 288 */ 289 static DECLCALLBACK(int) svcUnload 289 static DECLCALLBACK(int) svcUnload(void *pvService) 290 290 { 291 291 AssertLogRelReturn(VALID_PTR(pvService), VERR_INVALID_PARAMETER); … … 302 302 * Stub implementation of pfnConnect and pfnDisconnect. 303 303 */ 304 static DECLCALLBACK(int) svcConnectDisconnect 305 306 304 static DECLCALLBACK(int) svcConnectDisconnect(void * /* pvService */, 305 uint32_t /* u32ClientID */, 306 void * /* pvClient */) 307 307 { 308 308 return VINF_SUCCESS; … … 313 313 * Wraps to the call member function 314 314 */ 315 static DECLCALLBACK(void) svcCall 316 317 318 319 320 321 315 static DECLCALLBACK(void) svcCall(void * pvService, 316 VBOXHGCMCALLHANDLE callHandle, 317 uint32_t u32ClientID, 318 void *pvClient, 319 uint32_t u32Function, 320 uint32_t cParms, 321 VBOXHGCMSVCPARM paParms[]) 322 322 { 323 323 AssertLogRelReturnVoid(VALID_PTR(pvService)); 324 LogFlowFunc 324 LogFlowFunc(("pvService=%p, callHandle=%p, u32ClientID=%u, pvClient=%p, u32Function=%u, cParms=%u, paParms=%p\n", pvService, callHandle, u32ClientID, pvClient, u32Function, cParms, paParms)); 325 325 SELF *pSelf = reinterpret_cast<SELF *>(pvService); 326 326 pSelf->call(callHandle, u32ClientID, pvClient, u32Function, cParms, paParms); 327 LogFlowFunc 327 LogFlowFunc(("returning\n")); 328 328 } 329 329 … … 332 332 * Wraps to the hostCall member function 333 333 */ 334 static DECLCALLBACK(int) svcHostCall 335 336 337 334 static DECLCALLBACK(int) svcHostCall(void *pvService, 335 uint32_t u32Function, 336 uint32_t cParms, 337 VBOXHGCMSVCPARM paParms[]) 338 338 { 339 339 AssertLogRelReturn(VALID_PTR(pvService), VERR_INVALID_PARAMETER); 340 LogFlowFunc 340 LogFlowFunc(("pvService=%p, u32Function=%u, cParms=%u, paParms=%p\n", pvService, u32Function, cParms, paParms)); 341 341 SELF *pSelf = reinterpret_cast<SELF *>(pvService); 342 342 int rc = pSelf->hostCall(u32Function, cParms, paParms); 343 LogFlowFunc 343 LogFlowFunc(("rc=%Rrc\n", rc)); 344 344 return rc; 345 345 } … … 349 349 * Installs a host callback for notifications of property changes. 350 350 */ 351 static DECLCALLBACK(int) svcRegisterExtension 352 353 351 static DECLCALLBACK(int) svcRegisterExtension(void *pvService, 352 PFNHGCMSVCEXT pfnExtension, 353 void *pvExtension) 354 354 { 355 355 AssertLogRelReturn(VALID_PTR(pvService), VERR_INVALID_PARAMETER); … … 378 378 uint64_t u64Timestamp, const char *pszFlags); 379 379 380 void call 381 382 383 int hostCall 384 int uninit 380 void call(VBOXHGCMCALLHANDLE callHandle, uint32_t u32ClientID, 381 void *pvClient, uint32_t eFunction, uint32_t cParms, 382 VBOXHGCMSVCPARM paParms[]); 383 int hostCall(uint32_t eFunction, uint32_t cParms, VBOXHGCMSVCPARM paParms[]); 384 int uninit(); 385 385 }; 386 386
Note:
See TracChangeset
for help on using the changeset viewer.