VirtualBox

Changeset 90858 in vbox for trunk/include


Ignore:
Timestamp:
Aug 24, 2021 9:21:53 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
146493
Message:

IPRT/log: Added RTLogSetFlushCallback. bugref:10086

Location:
trunk/include/iprt
Files:
2 edited

Legend:

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

    r90857 r90858  
    21042104
    21052105/**
     2106 * Sets the custom flush callback.
     2107 *
     2108 * This can be handy for special loggers like the per-EMT ones in ring-0,
     2109 * but also for implementing a log viewer in the debugger GUI.
     2110 *
     2111 * @returns IPRT status code.
     2112 * @param   pLogger         The logger instance.
     2113 * @param   pfnFlush        The flush callback.
     2114 * @param   ppfnOldFlush    Where to return the old flush callback. Optional.
     2115 */
     2116RTDECL(int) RTLogSetFlushCallback(PRTLOGGER pLogger, PFNRTLOGFLUSH pfnFlush, PFNRTLOGFLUSH *ppfnOldFlush);
     2117
     2118/**
    21062119 * Set the thread name for a thread specific ring-0 logger.
    21072120 *
  • trunk/include/iprt/mangling.h

    r90857 r90858  
    14761476# define RTLogSetBuffering                              RT_MANGLER(RTLogSetBuffering)
    14771477# define RTLogSetCustomPrefixCallback                   RT_MANGLER(RTLogSetCustomPrefixCallback)
     1478# define RTLogSetFlushCallback                          RT_MANGLER(RTLogSetFlushCallback)
    14781479# define RTLogSetDefaultInstance                        RT_MANGLER(RTLogSetDefaultInstance)
    14791480# define RTLogSetDefaultInstanceThread                  RT_MANGLER(RTLogSetDefaultInstanceThread) /* r0drv */
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