VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Video/mp/wddm/VBoxMPCrUtil.cpp@ 54957

Last change on this file since 54957 was 46757, checked in by vboxsync, 11 years ago

wddm/crOpenGL: r0-based visible regions handling, r0-based chromium commands submission debugged, more on new presentation mechanism, cleanup, etc.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.3 KB
Line 
1/* $Id: VBoxMPCrUtil.cpp 46757 2013-06-24 14:30:18Z vboxsync $ */
2
3/** @file
4 * VBox WDDM Miniport driver
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#include "VBoxMPWddm.h"
20
21#include <iprt/cdefs.h>
22
23RT_C_DECLS_BEGIN
24
25DECLEXPORT(void *) crAlloc( unsigned int nbytes );
26//extern DECLEXPORT(void *) crCalloc( unsigned int nbytes );
27//extern DECLEXPORT(void) crRealloc( void **ptr, unsigned int bytes );
28DECLEXPORT(void) crFree( void *ptr );
29DECLEXPORT(void) crMemcpy( void *dst, const void *src, unsigned int bytes );
30DECLEXPORT(void) crMemset( void *ptr, int value, unsigned int bytes );
31DECLEXPORT(void) crMemZero( void *ptr, unsigned int bytes );
32DECLEXPORT(int) crMemcmp( const void *p1, const void *p2, unsigned int bytes );
33DECLEXPORT(void) crDebug(const char *format, ... );
34#ifndef DEBUG_misha
35DECLEXPORT(void) crWarning(const char *format, ... );
36#endif
37
38DECLEXPORT(void) crInfo(const char *format, ... );
39DECLEXPORT(void) crError(const char *format, ... );
40
41RT_C_DECLS_END
42
43DECLEXPORT(void *) crAlloc( unsigned int nbytes )
44{
45 return vboxWddmMemAllocZero(nbytes);
46}
47//extern DECLEXPORT(void *) crCalloc( unsigned int nbytes );
48//extern DECLEXPORT(void) crRealloc( void **ptr, unsigned int bytes );
49DECLEXPORT(void) crFree( void *ptr )
50{
51 vboxWddmMemFree(ptr);
52}
53
54DECLEXPORT(void) crMemcpy( void *dst, const void *src, unsigned int bytes )
55{
56 memcpy(dst, src, bytes);
57}
58
59DECLEXPORT(void) crMemset( void *ptr, int value, unsigned int bytes )
60{
61 memset(ptr, value, bytes);
62}
63
64DECLEXPORT(void) crMemZero( void *ptr, unsigned int bytes )
65{
66 memset(ptr, 0, bytes);
67}
68
69DECLEXPORT(int) crMemcmp( const void *p1, const void *p2, unsigned int bytes )
70{
71 return memcmp(p1, p2, bytes);
72}
73
74DECLEXPORT(void) crDebug(const char *format, ... )
75{
76
77}
78
79#ifndef DEBUG_misha
80DECLEXPORT(void) crWarning(const char *format, ... )
81{
82
83}
84#endif
85
86DECLEXPORT(void) crInfo(const char *format, ... )
87{
88
89}
90
91DECLEXPORT(void) crError(const char *format, ... )
92{
93
94}
95
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