VirtualBox

source: vbox/trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibRuntimeXF86.cpp@ 63206

Last change on this file since 63206 was 62521, checked in by vboxsync, 8 years ago

(C) 2016

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1/* $Id: VBoxGuestR3LibRuntimeXF86.cpp 62521 2016-07-22 19:16:33Z vboxsync $ */
2/** @file
3 * VBoxGuestR3Lib - Ring-3 Support Library for VirtualBox guest additions,
4 * implements the minimum of runtime functions needed for
5 * XFree86 driver code.
6 */
7
8/*
9 * Copyright (C) 2007-2016 Oracle Corporation
10 *
11 * This file is part of VirtualBox Open Source Edition (OSE), as
12 * available from http://www.virtualbox.org. This file is free software;
13 * you can redistribute it and/or modify it under the terms of the GNU
14 * General Public License (GPL) as published by the Free Software
15 * Foundation, in version 2 as it comes in the "COPYING" file of the
16 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18 *
19 * The contents of this file may alternatively be used under the terms
20 * of the Common Development and Distribution License Version 1.0
21 * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
22 * VirtualBox OSE distribution, in which case the provisions of the
23 * CDDL are applicable instead of those of the GPL.
24 *
25 * You may elect to license modified versions of this file under the
26 * terms and conditions of either the GPL or the CDDL or both.
27 */
28
29
30/*********************************************************************************************************************************
31* Header Files *
32*********************************************************************************************************************************/
33#include <iprt/assert.h>
34#include <iprt/log.h>
35#include <iprt/mem.h>
36#if defined(VBOX_VBGLR3_XFREE86)
37extern "C" {
38# define XFree86LOADER
39# include <xf86_ansic.h>
40# undef size_t
41}
42#else
43# include <stdarg.h>
44# include <stdlib.h>
45# define xalloc malloc
46# define xfree free
47extern "C" void ErrorF(const char *f, ...);
48#endif
49
50RTDECL(void) RTAssertMsg1Weak(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
51{
52 ErrorF("Assertion failed! Expression: %s at %s in\n", pszExpr,
53 pszFunction);
54 ErrorF("%s:%u\n", pszFile, uLine);
55}
56
57RTDECL(void) RTAssertMsg2Weak(const char *pszFormat, ...)
58{
59 NOREF(pszFormat);
60}
61
62RTDECL(bool) RTAssertShouldPanic(void)
63{
64 return false;
65}
66
67RTDECL(PRTLOGGER) RTLogDefaultInstanceEx(uint32_t fFlagsAndGroup)
68{
69 NOREF(fFlagsAndGroup);
70 return NULL;
71}
72
73RTDECL(PRTLOGGER) RTLogRelGetDefaultInstance(void)
74{
75 return NULL;
76}
77
78RTDECL(PRTLOGGER) RTLogRelGetDefaultInstanceEx(uint32_t fFlagsAndGroup)
79{
80 NOREF(fFlagsAndGroup);
81 return NULL;
82}
83
84RTDECL(void) RTLogLoggerEx(PRTLOGGER, unsigned, unsigned, const char *pszFormat, ...)
85{
86 NOREF(pszFormat);
87}
88
89RTDECL(void *) RTMemTmpAllocTag(size_t cb, const char *pszTag)
90{
91 NOREF(pszTag);
92 return xalloc(cb);
93}
94
95RTDECL(void) RTMemTmpFree(void *pv)
96{
97 xfree(pv);
98}
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use