VirtualBox

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

Last change on this file since 69498 was 69498, checked in by vboxsync, 7 years ago

backed out r118835 as it incorrectly updated the 'This file is based on' file headers.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.4 KB
Line 
1/* $Id: VBoxMPCrUtil.cpp 69498 2017-10-28 15:07:25Z vboxsync $ */
2/** @file
3 * VBox WDDM Miniport driver
4 */
5
6/*
7 * Copyright (C) 2012-2016 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#include "VBoxMPWddm.h"
19
20#include <iprt/cdefs.h>
21
22RT_C_DECLS_BEGIN
23
24DECLEXPORT(void *) crAlloc( unsigned int nbytes );
25//extern DECLEXPORT(void *) crCalloc( unsigned int nbytes );
26//extern DECLEXPORT(void) crRealloc( void **ptr, unsigned int bytes );
27DECLEXPORT(void) crFree( void *ptr );
28DECLEXPORT(void) crMemcpy( void *dst, const void *src, unsigned int bytes );
29DECLEXPORT(void) crMemset( void *ptr, int value, unsigned int bytes );
30DECLEXPORT(void) crMemZero( void *ptr, unsigned int bytes );
31DECLEXPORT(int) crMemcmp( const void *p1, const void *p2, unsigned int bytes );
32DECLEXPORT(void) crDebug(const char *format, ... );
33#ifndef DEBUG_misha
34DECLEXPORT(void) crWarning(const char *format, ... );
35#endif
36
37DECLEXPORT(void) crInfo(const char *format, ... );
38DECLEXPORT(void) crError(const char *format, ... );
39
40RT_C_DECLS_END
41
42DECLEXPORT(void *) crAlloc( unsigned int nbytes )
43{
44 return vboxWddmMemAllocZero(nbytes);
45}
46//extern DECLEXPORT(void *) crCalloc( unsigned int nbytes );
47//extern DECLEXPORT(void) crRealloc( void **ptr, unsigned int bytes );
48DECLEXPORT(void) crFree( void *ptr )
49{
50 vboxWddmMemFree(ptr);
51}
52
53DECLEXPORT(void) crMemcpy( void *dst, const void *src, unsigned int bytes )
54{
55 memcpy(dst, src, bytes);
56}
57
58DECLEXPORT(void) crMemset( void *ptr, int value, unsigned int bytes )
59{
60 memset(ptr, value, bytes);
61}
62
63DECLEXPORT(void) crMemZero( void *ptr, unsigned int bytes )
64{
65 memset(ptr, 0, bytes);
66}
67
68DECLEXPORT(int) crMemcmp( const void *p1, const void *p2, unsigned int bytes )
69{
70 return memcmp(p1, p2, bytes);
71}
72
73DECLEXPORT(void) crDebug(const char *format, ... )
74{
75 RT_NOREF(format);
76}
77
78#ifndef DEBUG_misha
79DECLEXPORT(void) crWarning(const char *format, ... )
80{
81 RT_NOREF(format);
82}
83#endif
84
85DECLEXPORT(void) crInfo(const char *format, ... )
86{
87 RT_NOREF(format);
88}
89
90DECLEXPORT(void) crError(const char *format, ... )
91{
92 RT_NOREF(format);
93}
94
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