VirtualBox

Changeset 90693 in vbox for trunk/src/VBox/Runtime/common


Ignore:
Timestamp:
Aug 16, 2021 9:27:25 AM (3 years ago)
Author:
vboxsync
Message:

IPRT,Main: Provide a getter function (RTLogGetFlags) for accessing the RTLOGGER::fFlags member. bugref:10086

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/log/log.cpp

    r90692 r90693  
    21352135
    21362136#ifndef IN_RC
     2137
     2138/**
     2139 * Gets the current flag settings for the given logger.
     2140 *
     2141 * @returns Logger flags, UINT64_MAX if no logger.
     2142 * @param   pLogger             Logger instance (NULL for default logger).
     2143 */
     2144RTDECL(uint64_t) RTLogGetFlags(PRTLOGGER pLogger)
     2145{
     2146    if (!pLogger)
     2147    {
     2148        pLogger = RTLogDefaultInstance();
     2149        if (!pLogger)
     2150            return UINT64_MAX;
     2151    }
     2152    return pLogger->fFlags;
     2153}
     2154RT_EXPORT_SYMBOL(RTLogGetFlags);
     2155
    21372156
    21382157/**
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