1 | /* $Id: VBoxDispMpLogger.h 98103 2023-01-17 14:15:46Z vboxsync $ */
|
---|
2 | /** @file
|
---|
3 | * VBox WDDM Display backdoor logger API
|
---|
4 | */
|
---|
5 |
|
---|
6 | /*
|
---|
7 | * Copyright (C) 2012-2023 Oracle and/or its affiliates.
|
---|
8 | *
|
---|
9 | * This file is part of VirtualBox base platform packages, as
|
---|
10 | * available from https://www.virtualbox.org.
|
---|
11 | *
|
---|
12 | * This program is free software; you can redistribute it and/or
|
---|
13 | * modify it under the terms of the GNU General Public License
|
---|
14 | * as published by the Free Software Foundation, in version 3 of the
|
---|
15 | * License.
|
---|
16 | *
|
---|
17 | * This program is distributed in the hope that it will be useful, but
|
---|
18 | * WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
19 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
20 | * General Public License for more details.
|
---|
21 | *
|
---|
22 | * You should have received a copy of the GNU General Public License
|
---|
23 | * along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
24 | *
|
---|
25 | * SPDX-License-Identifier: GPL-3.0-only
|
---|
26 | */
|
---|
27 |
|
---|
28 | /* We're unable to use standard r3 vbgl-based backdoor logging API because win8 Metro apps
|
---|
29 | * can not do CreateFile/Read/Write by default
|
---|
30 | * this is why we use miniport escape functionality to issue backdoor log string to the miniport
|
---|
31 | * and submit it to host via standard r0 backdoor logging api accordingly */
|
---|
32 |
|
---|
33 | #ifndef GA_INCLUDED_SRC_WINNT_Graphics_Video_disp_wddm_shared_VBoxDispMpLogger_h
|
---|
34 | #define GA_INCLUDED_SRC_WINNT_Graphics_Video_disp_wddm_shared_VBoxDispMpLogger_h
|
---|
35 | #ifndef RT_WITHOUT_PRAGMA_ONCE
|
---|
36 | # pragma once
|
---|
37 | #endif
|
---|
38 |
|
---|
39 | #include <iprt/cdefs.h>
|
---|
40 |
|
---|
41 | /*enable this in case we include this in a static lib*/
|
---|
42 | # define VBOXDISPMPLOGGER_DECL(a_Type) a_Type RTCALL
|
---|
43 |
|
---|
44 | RT_C_DECLS_BEGIN
|
---|
45 |
|
---|
46 | VBOXDISPMPLOGGER_DECL(int) VBoxDispMpLoggerInit(void);
|
---|
47 |
|
---|
48 | VBOXDISPMPLOGGER_DECL(int) VBoxDispMpLoggerTerm(void);
|
---|
49 |
|
---|
50 | VBOXDISPMPLOGGER_DECL(void) VBoxDispMpLoggerLog(const char *pszString);
|
---|
51 |
|
---|
52 | VBOXDISPMPLOGGER_DECL(void) VBoxDispMpLoggerLogF(const char *pszFormat, ...);
|
---|
53 |
|
---|
54 | DECLCALLBACK(void) VBoxWddmUmLog(const char *pszString);
|
---|
55 |
|
---|
56 | RT_C_DECLS_END
|
---|
57 |
|
---|
58 | #endif /* !GA_INCLUDED_SRC_WINNT_Graphics_Video_disp_wddm_shared_VBoxDispMpLogger_h */
|
---|
59 |
|
---|