VirtualBox

Changeset 101597 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Oct 26, 2023 9:09:48 AM (19 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159681
Message:

pdmifs.h,DevACPI.cpp,ConsoleImpl.cpp: Move the power button events out of the ACPI port interface into a separate one so it can be re-used elsewhere, bugref:10538

File:
1 edited

Legend:

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

    r101199 r101597  
    27192719        {
    27202720            Assert(pBase);
    2721             PPDMIACPIPORT pPort = PDMIBASE_QUERY_INTERFACE(pBase, PDMIACPIPORT);
     2721            PPDMIEVENTBUTTONPORT pPort = PDMIBASE_QUERY_INTERFACE(pBase, PDMIEVENTBUTTONPORT);
    27222722            if (pPort)
    27232723                vrc = pPort->pfnPowerButtonPress(pPort);
     
    27612761        {
    27622762            Assert(pBase);
    2763             PPDMIACPIPORT pPort = PDMIBASE_QUERY_INTERFACE(pBase, PDMIACPIPORT);
     2763            PPDMIEVENTBUTTONPORT pPort = PDMIBASE_QUERY_INTERFACE(pBase, PDMIEVENTBUTTONPORT);
    27642764            if (pPort)
    27652765            {
    27662766                bool fHandled = false;
    2767                 vrc = pPort->pfnGetPowerButtonHandled(pPort, &fHandled);
     2767                vrc = pPort->pfnQueryPowerButtonHandled(pPort, &fHandled);
    27682768                if (RT_SUCCESS(vrc))
    27692769                    *aHandled = fHandled;
     
    28532853        {
    28542854            Assert(pBase);
    2855             PPDMIACPIPORT pPort = PDMIBASE_QUERY_INTERFACE(pBase, PDMIACPIPORT);
     2855            PPDMIEVENTBUTTONPORT pPort = PDMIBASE_QUERY_INTERFACE(pBase, PDMIEVENTBUTTONPORT);
    28562856            if (pPort)
    28572857                vrc = pPort->pfnSleepButtonPress(pPort);
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