VirtualBox

Changeset 34207 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Nov 19, 2010 3:31:50 PM (14 years ago)
Author:
vboxsync
Message:

pdmdrv: introduced PDMDrvHlpDBGFInfoRegister / PDMDrvHlpDBGFInfoDeregister

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/pdmdrv.h

    r33540 r34207  
    985985
    986986    /**
     987     * Register an info handler with DBGF.
     988     *
     989     * @returns VBox status code.
     990     * @param   pDrvIns         Driver instance.
     991     * @param   pszName         Data unit name.
     992     * @param   pszDesc         The description of the info and any arguments
     993     *                          the handler may take.
     994     * @param   pfnHandler      The handler function to be called to display the
     995     *                          info.
     996     */
     997    DECLR3CALLBACKMEMBER(int, pfnDBGFInfoRegister,(PPDMDRVINS pDrvIns, const char *pszName, const char *pszDesc, PFNDBGFHANDLERDRV pfnHandler));
     998
     999    /**
     1000     * Deregister an info handler from DBGF.
     1001     *
     1002     * @returns VBox status code.
     1003     * @param   pDrvIns         Driver instance.
     1004     * @param   pszName         Data unit name.
     1005     */
     1006    DECLR3CALLBACKMEMBER(int, pfnDBGFInfoDeregister,(PPDMDRVINS pDrvIns, const char *pszName));
     1007
     1008    /**
    9871009     * Registers a statistics sample if statistics are enabled.
    9881010     *
     
    14681490
    14691491/**
     1492 * @copydoc PDMDRVHLP::pfnDBGFInfoRegister
     1493 */
     1494DECLINLINE(int) PDMDrvHlpDBGFInfoRegister(PPDMDRVINS pDrvIns, const char *pszName, const char *pszDesc, PFNDBGFHANDLERDRV pfnHandler)
     1495{
     1496    return pDrvIns->pHlpR3->pfnDBGFInfoRegister(pDrvIns, pszName, pszDesc, pfnHandler);
     1497}
     1498
     1499/**
     1500 * @copydoc PDMDRVHLP::pfnDBGFInfoDeregister
     1501 */
     1502DECLINLINE(int) PDMDrvHlpDBGFInfoDeregister(PPDMDRVINS pDrvIns, const char *pszName, const char *pszDesc, PFNDBGFHANDLERDRV pfnHandler)
     1503{
     1504    return pDrvIns->pHlpR3->pfnDBGFInfoRegister(pDrvIns, pszName, pszDesc, pfnHandler);
     1505}
     1506
     1507/**
    14701508 * @copydoc PDMDRVHLP::pfnSTAMRegister
    14711509 */
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