VirtualBox

Changeset 46074 in vbox for trunk/include/iprt


Ignore:
Timestamp:
May 14, 2013 4:25:57 PM (12 years ago)
Author:
vboxsync
Message:

RTDbgCfg: Added API for setting the log callback.

File:
1 edited

Legend:

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

    r46050 r46074  
    402402RTDECL(int) RTDbgCfgQueryUInt(RTDBGCFG hDbgCfg, RTDBGCFGPROP enmProp, uint64_t *puValue);
    403403
     404/**
     405 * Log callback.
     406 *
     407 * @param   hDbgCfg         The debug config instance.
     408 * @param   iLevel          The message level.
     409 * @param   pszMsg          The message.
     410 * @param   pvUser          User argument.
     411 */
     412typedef DECLCALLBACK(void) FNRTDBGCFGLOG(RTDBGCFG hDbgCfg, uint32_t iLevel, const char *pszMsg, void *pvUser);
     413/** Pointer to a log callback. */
     414typedef FNRTDBGCFGLOG *PFNRTDBGCFGLOG;
     415
     416/**
     417 * Sets the log callback for the configuration.
     418 *
     419 * This will fail if there is already a log callback present, unless pfnCallback
     420 * is NULL.
     421 *
     422 * @returns IPRT status code.
     423 * @param   hDbgCfg             The debugging configuration handle.
     424 * @param   pfnCallback         The callback function.  NULL to unset.
     425 * @param   pvUser              The user argument.
     426 */
     427RTDECL(int) RTDbgCfgSetLogCallback(RTDBGCFG hDbgCfg, PFNRTDBGCFGLOG pfnCallback, void *pvUser);
    404428
    405429/**
     
    434458RTDECL(int) RTDbgCfgOpenDwo(RTDBGCFG hDbgCfg, const char *pszFilename, uint32_t uCrc32,
    435459                            PFNDBGCFGOPEN pfnCallback, void *pvUser1, void *pvUser2);
     460
     461
    436462/** @} */
    437463
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