dmxconsole.h revision b8e299dddd091ae24e0c08c45d91b8f937bd14d2
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync/* $XFree86$ */
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync/*
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * Copyright 2002 Red Hat Inc., Durham, North Carolina.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync *
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * All Rights Reserved.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync *
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * Permission is hereby granted, free of charge, to any person obtaining
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * a copy of this software and associated documentation files (the
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * "Software"), to deal in the Software without restriction, including
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * without limitation on the rights to use, copy, modify, merge,
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * publish, distribute, sublicense, and/or sell copies of the Software,
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * and to permit persons to whom the Software is furnished to do so,
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * subject to the following conditions:
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync *
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * The above copyright notice and this permission notice (including the
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * next paragraph) shall be included in all copies or substantial
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * portions of the Software.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync *
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * SOFTWARE.
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync */
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync/*
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * Authors:
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * Rickard E. (Rik) Faith <faith@redhat.com>
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync *
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync */
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync/** \file
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync * Interface for console device support. \see dmxconsole.c \see dmxcommon.c */
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#ifndef _DMXCONSOLE_H_
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync#define _DMXCONSOLE_H_
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncextern pointer dmxConsoleCreatePrivate(DeviceIntPtr pDevice);
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncextern void dmxConsoleDestroyPrivate(pointer private);
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncextern void dmxConsoleInit(DevicePtr pDev);
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncextern void dmxConsoleReInit(DevicePtr pDev);
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncextern void dmxConsoleMouGetInfo(DevicePtr pDev, DMXLocalInitInfoPtr info);
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncextern void dmxConsoleKbdGetInfo(DevicePtr pDev, DMXLocalInitInfoPtr info);
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsyncextern void dmxConsoleCollectEvents(DevicePtr pDev,
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync dmxMotionProcPtr motion,
a734c64bff58bda2fa48c2795453e092167b0ff7vboxsync dmxEnqueueProcPtr enqueue,
dmxCheckSpecialProcPtr checkspecial,
DMXBlockType block);
extern int dmxConsoleFunctions(pointer private, DMXFunctionType function);
extern void dmxConsoleUpdatePosition(pointer private, int x, int y);
extern void dmxConsoleKbdSetCtrl(pointer private, KeybdCtrl *ctrl);
extern void dmxConsoleCapture(DMXInputInfo *dmxInput);
extern void dmxConsoleUncapture(DMXInputInfo *dmxInput);
extern void dmxConsoleUpdateInfo(pointer private,
DMXUpdateType, WindowPtr pWindow);
#endif