helpers.c revision 16f06f81f7e54b83953048b10cb6f4e3e392d826
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync/* $Id$ */
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync/** @file
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync * VirtualBox X11 Additions graphics driver X server helper functions
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync *
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync * This file contains helpers which call back into the X server, but which are
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync * expected to use server ABIs which remain constant across all supported server
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync * versions. The longer-term idea is to eliminate X server version dependencies
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync * in as many files as possible inside the driver code. Most files should not
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync * directly depend on X server symbols at all, and a single build of this one
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync * should work in all server versions.
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync */
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync/*
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync * Copyright (C) 2014 Oracle Corporation
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync *
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
41c64c31741f70e00de94130927dd5d85ed360a0vboxsync * available from http://www.virtualbox.org. This file is free software;
1e40f57c72c881067b0314f898e1004211bb7650vboxsync * you can redistribute it and/or modify it under the terms of the GNU
1e40f57c72c881067b0314f898e1004211bb7650vboxsync * General Public License (GPL) as published by the Free Software
1e40f57c72c881067b0314f898e1004211bb7650vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
1e40f57c72c881067b0314f898e1004211bb7650vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
1e40f57c72c881067b0314f898e1004211bb7650vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
1e40f57c72c881067b0314f898e1004211bb7650vboxsync */
1e40f57c72c881067b0314f898e1004211bb7650vboxsync
1e40f57c72c881067b0314f898e1004211bb7650vboxsync#include "vboxvideo.h"
1e40f57c72c881067b0314f898e1004211bb7650vboxsync#include <os.h>
1e40f57c72c881067b0314f898e1004211bb7650vboxsync
1e40f57c72c881067b0314f898e1004211bb7650vboxsyncvoid vbvxMsg(const char *pszFormat, ...)
1e40f57c72c881067b0314f898e1004211bb7650vboxsync{
1e40f57c72c881067b0314f898e1004211bb7650vboxsync va_list args;
1e40f57c72c881067b0314f898e1004211bb7650vboxsync
1e40f57c72c881067b0314f898e1004211bb7650vboxsync va_start(args, pszFormat);
1e40f57c72c881067b0314f898e1004211bb7650vboxsync VErrorF(pszFormat, args);
1e40f57c72c881067b0314f898e1004211bb7650vboxsync va_end(args);
1e40f57c72c881067b0314f898e1004211bb7650vboxsync}
1e40f57c72c881067b0314f898e1004211bb7650vboxsync
1e40f57c72c881067b0314f898e1004211bb7650vboxsyncvoid vbvxMsgV(const char *pszFormat, va_list args)
1e40f57c72c881067b0314f898e1004211bb7650vboxsync{
1e40f57c72c881067b0314f898e1004211bb7650vboxsync VErrorF(pszFormat, args);
1e40f57c72c881067b0314f898e1004211bb7650vboxsync}
1e40f57c72c881067b0314f898e1004211bb7650vboxsync
1e40f57c72c881067b0314f898e1004211bb7650vboxsyncvoid vbvxAbortServer(void)
1e40f57c72c881067b0314f898e1004211bb7650vboxsync{
1e40f57c72c881067b0314f898e1004211bb7650vboxsync FatalError("Assertion");
1e40f57c72c881067b0314f898e1004211bb7650vboxsync}
1e40f57c72c881067b0314f898e1004211bb7650vboxsync