Changeset 13377 in vbox for trunk/src/VBox/Main/ConsoleImpl.cpp
- Timestamp:
- Oct 17, 2008 2:22:07 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl.cpp
r13374 r13377 1003 1003 #ifdef VBOX_WITH_GUEST_PROPS 1004 1004 // static 1005 DECLCALLBACK(void) 1006 Console::doGuestPropNotification (PVBOXHGCMCALLBACKHDR pHeader) 1007 { 1005 DECLCALLBACK(int) 1006 Console::doGuestPropNotification (void *pvExtension, uint32_t, 1007 void *pvParms, uint32_t cbParms) 1008 { 1009 using namespace guestProp; 1010 1008 1011 /* No locking, as this is purely a notification which does not make any 1009 1012 * changes to the object state. */ 1010 guestProp::PHOSTCALLBACKDATA pCBData 1011 = reinterpret_cast<guestProp::PHOSTCALLBACKDATA>(pHeader); 1012 AssertReturnVoid(VBOXHGCMCALLBACKMAGIC == pCBData->hdr.u32Magic); 1013 AssertReturnVoid(sizeof(guestProp::HOSTCALLBACKDATA) == pCBData->hdr.cbStruct); 1014 ComObjPtr <Console> pConsole = reinterpret_cast <Console *> (pCBData->hdr.pvData); 1013 PHOSTCALLBACKDATA pCBData = reinterpret_cast<PHOSTCALLBACKDATA>(pvParms); 1014 AssertReturn(sizeof(HOSTCALLBACKDATA) == cbParms, VERR_INVALID_PARAMETER); 1015 AssertReturn(HOSTCALLBACKMAGIC == pCBData->u32Magic, VERR_INVALID_PARAMETER); 1016 ComObjPtr <Console> pConsole = reinterpret_cast <Console *> (pvExtension); 1015 1017 pConsole->mControl->PushGuestProperty(Bstr(pCBData->pcszName), 1016 1018 Bstr(pCBData->pcszValue), 1017 1019 pCBData->u64Timestamp, 1018 1020 Bstr(pCBData->pcszFlags)); 1021 return VINF_SUCCESS; 1019 1022 } 1020 1023 #endif
Note:
See TracChangeset
for help on using the changeset viewer.