summaryrefslogtreecommitdiff
path: root/src/plugins/debugger/cdb/cdbdebugoutput.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/debugger/cdb/cdbdebugoutput.h')
-rw-r--r--src/plugins/debugger/cdb/cdbdebugoutput.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/src/plugins/debugger/cdb/cdbdebugoutput.h b/src/plugins/debugger/cdb/cdbdebugoutput.h
new file mode 100644
index 0000000000..273c8afcf1
--- /dev/null
+++ b/src/plugins/debugger/cdb/cdbdebugoutput.h
@@ -0,0 +1,43 @@
+#ifndef DEBUGGER_CDBOUTPUT_H
+#define DEBUGGER_CDBOUTPUT_H
+
+namespace Debugger {
+namespace Internal {
+
+class CdbDebugEngine;
+
+class CdbDebugOutput : public IDebugOutputCallbacks
+{
+public:
+ CdbDebugOutput(CdbDebugEngine* engine)
+ : m_pEngine(engine)
+ {}
+
+ // IUnknown.
+ STDMETHOD(QueryInterface)(
+ THIS_
+ IN REFIID InterfaceId,
+ OUT PVOID* Interface
+ );
+ STDMETHOD_(ULONG, AddRef)(
+ THIS
+ );
+ STDMETHOD_(ULONG, Release)(
+ THIS
+ );
+
+ // IDebugOutputCallbacks.
+ STDMETHOD(Output)(
+ THIS_
+ IN ULONG mask,
+ IN PCSTR text
+ );
+
+private:
+ CdbDebugEngine* m_pEngine;
+};
+
+} // namespace Internal
+} // namespace Debugger
+
+#endif // DEBUGGER_CDBOUTPUT_H