helpers.c revision 4dfffd317fbef2019753944090bbbab9e53878fd
/* $Id$ */
/** @file
* VirtualBox X11 Additions graphics driver X server helper functions
*
* This file contains helpers which call back into the X server. The longer-
* term idea is to eliminate X server version dependencies in as many files as
* possible inside the driver code. Ideally most files should not directly
* depend on X server symbols at all.
*/
/*
* Copyright (C) 2014 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
#include "vboxvideo.h"
#include <os.h>
#include <propertyst.h>
#include <windowstr.h>
#include <xf86.h>
#ifdef XORG_7X
# include <string.h>
#endif
{
}
{
}
void vbvxAbortServer(void)
{
FatalError("Assertion");
}
{
}
{
/* We can get called early, before the root window is created. */
if (!ROOT_WINDOW(pScrn))
return VERR_NOT_FOUND;
if (atom == BAD_RESOURCE)
return VERR_NOT_FOUND;
return VERR_NOT_FOUND;
return VERR_NOT_FOUND;
return VINF_SUCCESS;
}
void vbvxSetIntegerPropery(ScrnInfoPtr pScrn, char *pszName, size_t cData, int32_t *paData, Bool fSendEvent)
{
int i;
ChangeWindowProperty(ROOT_WINDOW(pScrn), property_name, XA_INTEGER, 32, PropModeReplace, cData, paData, fSendEvent);
}
{
return;
#ifdef XF86_SCRN_INTERFACE
#else
#endif
}