VirtualBox

Changeset 86057 in vbox for trunk/src/VBox/Main/src-all


Ignore:
Timestamp:
Sep 7, 2020 11:15:45 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140271
Message:

OCI: Add ICloudProfileRegisteredEvent and its implementation for OCI.
The events should be autogenerated a-la VBoxEvents, but the first one
is manual to test what we need to generate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-all/ExtPackManagerImpl.cpp

    r85232 r86057  
    756756        /* pfnWaitOtherProgress = */ ExtPack::i_hlpWaitOtherProgress,
    757757        /* pfnCompleteProgress  = */ ExtPack::i_hlpCompleteProgress,
     758        /* pfnCreateEvent       = */ ExtPack::i_hlpCreateEvent,
    758759        /* pfnReserved1         = */ ExtPack::i_hlpReservedN,
    759760        /* pfnReserved2         = */ ExtPack::i_hlpReservedN,
     
    19201921    return pProgressControl->NotifyComplete((LONG)uResultCode, errorInfo);
    19211922}
     1923
     1924
     1925/*static*/ DECLCALLBACK(uint32_t)
     1926ExtPack::i_hlpCreateEvent(PCVBOXEXTPACKHLP pHlp,
     1927                          VBOXEXTPACK_IF_CS(IEventSource) *aSource,
     1928                          /* VBoxEventType_T */ uint32_t aType, bool aWaitable,
     1929                          VBOXEXTPACK_IF_CS(IEvent) **ppEventOut)
     1930{
     1931    HRESULT hrc;
     1932
     1933    AssertPtrReturn(pHlp, (uint32_t)E_INVALIDARG);
     1934    AssertReturn(pHlp->u32Version == VBOXEXTPACKHLP_VERSION, (uint32_t)E_INVALIDARG);
     1935    AssertPtrReturn(ppEventOut, (uint32_t)E_INVALIDARG);
     1936
     1937    ComObjPtr<VBoxEvent> pEvent;
     1938
     1939    hrc = pEvent.createObject();
     1940    if (FAILED(hrc))
     1941        return hrc;
     1942
     1943    /* default aSource to pVirtualBox? */
     1944    hrc = pEvent->init(aSource, static_cast<VBoxEventType_T>(aType), aWaitable);
     1945    if (FAILED(hrc))
     1946        return hrc;
     1947
     1948    return pEvent.queryInterfaceTo(ppEventOut);
     1949}
     1950
    19221951
    19231952/*static*/ DECLCALLBACK(int)
Note: See TracChangeset for help on using the changeset viewer.

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