VirtualBox

Changeset 12424 in vbox for trunk/include


Ignore:
Timestamp:
Sep 12, 2008 2:45:16 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
36493
Message:

DBGGui,VirtualBox4: dynamically load the debugger GUI (VBoxDBG).

File:
1 edited

Legend:

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

    r8155 r12424  
    4848typedef struct DBGGUI *PDBGGUI;
    4949
     50/** Virtual method table for the debugger GUI. */
     51typedef struct DBGGUIVT
     52{
     53    /** The version. (DBGGUIVT_VERSION) */
     54    uint32_t u32Version;
     55    /** @copydoc DBGGuiDestroy */
     56    DECLCALLBACKMEMBER(int,  pfnDestroy)(PDBGGUI pGui);
     57    /** @copydoc DBGGuiAdjustRelativePos */
     58    DECLCALLBACKMEMBER(void, pfnAdjustRelativePos)(PDBGGUI pGui, int x, int y, unsigned cx, unsigned cy);
     59    /** @copydoc DBGGuiShowStatistics */
     60    DECLCALLBACKMEMBER(int,  pfnShowStatistics)(PDBGGUI pGui);
     61    /** @copydoc DBGGuiShowCommandLine */
     62    DECLCALLBACKMEMBER(int,  pfnShowCommandLine)(PDBGGUI pGui);
     63    /** The end version. (DBGGUIVT_VERSION) */
     64    uint32_t u32EndVersion;
     65} DBGGUIVT;
     66/** Pointer to the virtual method table for the debugger GUI. */
     67typedef DBGGUIVT const *PCDBGGUIVT;
     68/** The u32Version value.
     69 * The first byte is the minor version, the 2nd byte is major version number.
     70 * The high 16-bit word is a magic.  */
     71#define DBGGUIVT_VERSION 0xbead0100
     72
     73
    5074/**
    5175 * Creates the debugger GUI.
     
    5478 * @param   pSession    The VirtualBox session.
    5579 * @param   ppGui       Where to store the pointer to the debugger instance.
     80 * @param   ppGuiVT     Where to store the virtual method table pointer.
     81 *                      Optional.
    5682 */
    57 DBGDECL(int) DBGGuiCreate(ISession *pSession, PDBGGUI *ppGui);
     83DBGDECL(int) DBGGuiCreate(ISession *pSession, PDBGGUI *ppGui, PCDBGGUIVT *ppGuiVT);
     84/** @copydoc DBGGuiCreate. */
     85typedef DECLCALLBACK(int) FNDBGGUICREATE(ISession *pSession, PDBGGUI *ppGui, PCDBGGUIVT *ppGuiVT);
     86/** Pointer to DBGGuiCreate. */
     87typedef FNDBGGUICREATE *PFNDBGGUICREATE;
    5888
    5989/**
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