VirtualBox

Changeset 75600 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 19, 2018 9:15:16 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126770
Message:

VBoxGuestLib.h: Forgot to commit VbglR0QueryHostFeatures.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/lib/VBoxGuestR0LibInit.cpp

    r75588 r75600  
    8282 * values and fails if they are unavailable.
    8383 */
    84 static void vbglR0QueryDriverInfo(void)
     84static int vbglR0QueryDriverInfo(void)
    8585{
    8686# ifdef VBGLDATA_USE_FAST_MUTEX
     
    129129# endif
    130130    }
     131    return rc;
    131132}
    132133#endif /* !VBGL_VBOXGUEST */
     
    312313}
    313314
     315
     316DECLR0VBGL(int) VbglR0QueryHostFeatures(uint32_t *pfHostFeatures)
     317{
     318    if (g_vbgldata.status == VbglStatusReady)
     319        *pfHostFeatures = g_vbgldata.hostVersion.features;
     320    else
     321    {
     322        int rc = vbglR0QueryDriverInfo();
     323        if (g_vbgldata.status != VbglStatusReady)
     324            return rc;
     325        *pfHostFeatures = g_vbgldata.hostVersion.features;
     326    }
     327
     328    return VINF_SUCCESS;
     329}
     330
    314331#endif /* !VBGL_VBOXGUEST */
    315332
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