VirtualBox

source: vbox/trunk/include/VBox/dbggui.h@ 12424

Last change on this file since 12424 was 12424, checked in by vboxsync, 16 years ago

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

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.2 KB
Line 
1/** @file
2 * DBGGUI - The VirtualBox Debugger GUI.
3 */
4
5/*
6 * Copyright (C) 2006-2007 Sun Microsystems, Inc.
7 *
8 * This file is part of VirtualBox Open Source Edition (OSE), as
9 * available from http://www.virtualbox.org. This file is free software;
10 * you can redistribute it and/or modify it under the terms of the GNU
11 * General Public License (GPL) as published by the Free Software
12 * Foundation, in version 2 as it comes in the "COPYING" file of the
13 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
14 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
15 *
16 * The contents of this file may alternatively be used under the terms
17 * of the Common Development and Distribution License Version 1.0
18 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
19 * VirtualBox OSE distribution, in which case the provisions of the
20 * CDDL are applicable instead of those of the GPL.
21 *
22 * You may elect to license modified versions of this file under the
23 * terms and conditions of either the GPL or the CDDL or both.
24 *
25 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
26 * Clara, CA 95054 USA or visit http://www.sun.com if you need
27 * additional information or have any questions.
28 */
29
30#ifndef ___VBox_dbggui_h
31#define ___VBox_dbggui_h
32
33#if defined(RT_OS_WINDOWS)
34# include <VirtualBox.h>
35#else
36# include <VirtualBox_XPCOM.h>
37#endif
38
39#include <VBox/types.h>
40
41__BEGIN_DECLS
42
43/** @defgroup grp_dbggui VirtualBox Debugger GUI
44 * @{
45 */
46
47/** Pointer to the debugger GUI instance structure. */
48typedef struct DBGGUI *PDBGGUI;
49
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
74/**
75 * Creates the debugger GUI.
76 *
77 * @returns VBox status code.
78 * @param pSession The VirtualBox session.
79 * @param ppGui Where to store the pointer to the debugger instance.
80 * @param ppGuiVT Where to store the virtual method table pointer.
81 * Optional.
82 */
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;
88
89/**
90 * Destroys the debugger GUI.
91 *
92 * @returns VBox status code.
93 * @param pGui The instance returned by DBGGuiCreate().
94 */
95DBGDECL(int) DBGGuiDestroy(PDBGGUI pGui);
96
97/**
98 * Notifies the debugger GUI that the console window (or whatever) has changed
99 * size or position.
100 *
101 * @param pGui The instance returned by DBGGuiCreate().
102 * @param x The x-coordinate of the window the debugger is relative to.
103 * @param y The y-coordinate of the window the debugger is relative to.
104 * @param cx The width of the window the debugger is relative to.
105 * @param cy The height of the window the debugger is relative to.
106 */
107DBGDECL(void) DBGGuiAdjustRelativePos(PDBGGUI pGui, int x, int y, unsigned cx, unsigned cy);
108
109/**
110 * Shows the default statistics window.
111 *
112 * @returns VBox status code.
113 * @param pGui The instance returned by DBGGuiCreate().
114 */
115DBGDECL(int) DBGGuiShowStatistics(PDBGGUI pGui);
116
117/**
118 * Shows the default command line window.
119 *
120 * @returns VBox status code.
121 * @param pGui The instance returned by DBGGuiCreate().
122 */
123DBGDECL(int) DBGGuiShowCommandLine(PDBGGUI pGui);
124
125/** @} */
126
127__END_DECLS
128
129#endif
130
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use