VirtualBox

Changeset 80855 in vbox for trunk


Ignore:
Timestamp:
Sep 17, 2019 12:33:54 PM (5 years ago)
Author:
vboxsync
Message:

RTSystemFirmware-generic.cpp: Kick out unnecessary headers and assertions from the generic code. Enums shall use the 'enm' prefix in IPRT. Leaving the s/RTSystemFirmwareValueGet/RTSystemFirmwareValueQuery/ renaming to the dev working on the code.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/system.h

    r80708 r80855  
    280280 * Queries the system's firmware type.
    281281 *
    282  * @retval  IPRT status code.
    283  * @param   pFirmwareType       Where to store the firmware type on success.
    284  */
    285 RTDECL(int) RTSystemFirmwareQueryType(PRTSYSFWTYPE pFirmwareType);
     282 * @returns  IPRT status code.
     283 * @param   penmType    Where to return the firmware type on success.
     284 */
     285RTDECL(int) RTSystemFirmwareQueryType(PRTSYSFWTYPE penmType);
    286286
    287287/**
  • trunk/src/VBox/Runtime/generic/RTSystemFirmware-generic.cpp

    r80708 r80855  
    2929*   Header Files                                                                                                                 *
    3030*********************************************************************************************************************************/
     31#include "internal/iprt.h"
     32#include <iprt/system.h>
    3133
    32 #include <iprt/assert.h>
    3334#include <iprt/errcore.h>
    34 #include <iprt/ldr.h>
    35 #include <iprt/system.h>
    36 #include "internal/iprt.h"
    3735
    3836
    39 /*********************************************************************************************************************************
    40 *   Structures and Typedefs                                                                                                      *
    41 *********************************************************************************************************************************/
    42 
    43 
    44 RTDECL(int) RTSystemFirmwareQueryType(PRTSYSFWTYPE pFirmwareType)
     37RTDECL(int) RTSystemFirmwareQueryType(PRTSYSFWTYPE penmFirmwareType)
    4538{
    46     AssertPtrReturn(pFirmwareType, VERR_INVALID_POINTER);
    47 
    4839    return VERR_NOT_SUPPORTED;
    4940}
     
    6051RTDECL(int) RTSystemFirmwareValueGet(RTSYSFWPROP enmProp, PRTSYSFWVALUE *ppValue)
    6152{
    62     AssertPtrReturn(ppValue, VERR_INVALID_POINTER);
    63 
    6453    RT_NOREF(enmProp, ppValue);
    65 
    6654    return VERR_NOT_SUPPORTED;
    6755}
    6856RT_EXPORT_SYMBOL(RTSystemFirmwareValueGet);
     57
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