VirtualBox

Ignore:
Timestamp:
Oct 10, 2008 11:27:30 AM (16 years ago)
Author:
vboxsync
Message:

Main: use the HGCM guest property change notification interface and do some clean ups

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl.cpp

    r13079 r13165  
    10011001    return VINF_SUCCESS;
    10021002}
     1003
     1004#ifdef VBOX_WITH_GUEST_PROPS
     1005// static
     1006DECLCALLBACK(void)
     1007Console::doGuestPropNotification (PVBOXHGCMCALLBACKHDR pHeader)
     1008{
     1009    /* No locking, as this is purely a notification which does not make any
     1010     * changes to the object state. */
     1011    guestProp::PHOSTCALLBACKDATA pCBData
     1012        = reinterpret_cast<guestProp::PHOSTCALLBACKDATA>(pHeader);
     1013    AssertReturnVoid(VBOXHGCMCALLBACKMAGIC == pCBData->hdr.u32Magic);
     1014    AssertReturnVoid(sizeof(guestProp::HOSTCALLBACKDATA) == pCBData->hdr.cbStruct);
     1015    ComObjPtr <Console> pConsole = reinterpret_cast <Console *> (pCBData->hdr.pvData);
     1016    pConsole->mControl->PushGuestProperty(Bstr(pCBData->pcszName),
     1017                                          Bstr(pCBData->pcszValue),
     1018                                          pCBData->u64Timestamp,
     1019                                          Bstr(pCBData->pcszFlags));
     1020}
     1021#endif
     1022
    10031023
    10041024// IConsole properties
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette