VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/VBoxDispMpLogger.h@ 49591

Last change on this file since 49591 was 41374, checked in by vboxsync, 13 years ago

wddm/3d/crogl: backdoor logging

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.6 KB
Line 
1/* $Id: VBoxDispMpLogger.h 41374 2012-05-21 18:04:03Z vboxsync $ */
2
3/** @file
4 * VBox WDDM Display backdoor logger API
5 */
6
7/*
8 * Copyright (C) 2012 Oracle Corporation
9 *
10 * This file is part of VirtualBox Open Source Edition (OSE), as
11 * available from http://www.virtualbox.org. This file is free software;
12 * you can redistribute it and/or modify it under the terms of the GNU
13 * General Public License (GPL) as published by the Free Software
14 * Foundation, in version 2 as it comes in the "COPYING" file of the
15 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
16 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
17 */
18
19/* We're unable to use standard r3 vbgl-based backdoor logging API because win8 Metro apps
20 * can not do CreateFile/Read/Write by default
21 * this is why we use miniport escape functionality to issue backdoor log string to the miniport
22 * and submit it to host via standard r0 backdoor logging api accordingly */
23#ifndef ___VBoxDispMpLogger_h__
24#define ___VBoxDispMpLogger_h__
25
26#include <iprt/cdefs.h>
27
28#if 0
29/* enable this in case we include this in a dll*/
30# ifdef IN_VBOXCRHGSMI
31# define VBOXDISPMPLOGGER_DECL(a_Type) DECLEXPORT(a_Type) RTCALL
32# else
33# define VBOXDISPMPLOGGER_DECL(a_Type) DECLIMPORT(a_Type) RTCALL
34# endif
35#else
36/*enable this in case we include this in a static lib*/
37# define VBOXDISPMPLOGGER_DECL(a_Type) a_Type RTCALL
38#endif
39
40RT_C_DECLS_BEGIN
41
42VBOXDISPMPLOGGER_DECL(int) VBoxDispMpLoggerInit();
43
44VBOXDISPMPLOGGER_DECL(int) VBoxDispMpLoggerTerm();
45
46VBOXDISPMPLOGGER_DECL(void) VBoxDispMpLoggerLog(char * szString);
47
48VBOXDISPMPLOGGER_DECL(void) VBoxDispMpLoggerLogF(char * szString, ...);
49
50RT_C_DECLS_END
51
52#endif /* #ifndef ___VBoxDispMpLogger_h__ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette