VirtualBox

Ignore:
Timestamp:
Oct 8, 2019 8:28:31 AM (5 years ago)
Author:
vboxsync
Message:

IPRT/RTSystem*Firmware: Simplified the interface and made it follow the style of the rest of RTSystemQuery*. Added RTSystemFirmwareTypeName() to avoid duplicating enum->string code over and over again.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/RTSystemFirmware-generic.cpp

    r81062 r81137  
    3636
    3737
    38 RTDECL(int) RTSystemFirmwareQueryType(PRTSYSFWTYPE penmFirmwareType)
     38RTDECL(int) RTSystemQueryFirmwareType(PRTSYSFWTYPE penmFirmwareType)
    3939{
    4040    RT_NOREF(penmFirmwareType);
     
    4242    return VERR_NOT_SUPPORTED;
    4343}
    44 RT_EXPORT_SYMBOL(RTSystemFirmwareQueryType);
     44RT_EXPORT_SYMBOL(RTSystemQueryFirmwareType);
    4545
    4646
    47 RTDECL(void) RTSystemFirmwareFreeValue(PRTSYSFWVALUE pValue)
     47RTDECL(int) RTSystemQueryFirmwareBoolean(RTSYSFWPROP enmProp, bool *pfValue)
    4848{
    49     RT_NOREF(pValue);
    50 }
    51 RT_EXPORT_SYMBOL(RTSystemFirmwareFreeValue);
    52 
    53 
    54 RTDECL(int) RTSystemFirmwareQueryValue(RTSYSFWPROP enmProp, PRTSYSFWVALUE pValue)
    55 {
    56     RT_ZERO(*pValue);
    57     RT_NOREF(enmProp);
     49    RT_NOREF(enmProp, pfValue);
    5850    return VERR_NOT_SUPPORTED;
    5951}
    60 RT_EXPORT_SYMBOL(RTSystemFirmwareQueryValue);
     52RT_EXPORT_SYMBOL(RTSystemQueryFirmwareBoolean);
    6153
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