/* $XFree86$ */
/*
* Copyright 2002,2003 Red Hat Inc., Durham, North Carolina.
*
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation on the rights to use, copy, modify, merge,
* and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice (including the
* next paragraph) shall be included in all copies or substantial
* portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE.
*/
/*
* Authors:
* Rickard E. (Rik) Faith <faith@redhat.com>
*
*/
/** \file
* Interface to functions used by backend and console input devices.
* \see dmxcommon.c \see dmxbackend.c \see dmxconsole.c */
#ifndef _DMXCOMMON_H_
#define _DMXCOMMON_H_
#define DMX_COMMON_OTHER \
DMXScreenInfo *be; \
int initPointerX; \
int initPointerY; \
long eventMask; \
int kctrlset; \
int mctrlset; \
int stateSaved
#ifdef XKB
#define DMX_COMMON_XKB \
XkbDescPtr xkb; \
#else
#endif
#ifdef XINPUT
#define DMX_COMMON_PRIVATE \
#else
#endif
#define GETONLYPRIVFROMPRIVATE \
#define GETPRIVFROMPRIVATE \
#define GETDMXLOCALFROMPDEVICE \
#define GETDMXINPUTFROMPRIV \
#define GETDMXINPUTFROMPDEVICE \
#define GETDMXLOCALFROMPDEV \
#define GETDMXINPUTFROMPDEV \
#define GETPRIVFROMPDEV \
#define DMX_KEYBOARD_EVENT_MASK \
#define DMX_POINTER_EVENT_MASK \
extern int dmxFindPointerScreen(int x, int y);
/* helper functions */
#endif