cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync/*
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * Copyright 2002 Red Hat Inc., Durham, North Carolina.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync *
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * All Rights Reserved.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync *
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * Permission is hereby granted, free of charge, to any person obtaining
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * a copy of this software and associated documentation files (the
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * "Software"), to deal in the Software without restriction, including
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * without limitation on the rights to use, copy, modify, merge,
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * publish, distribute, sublicense, and/or sell copies of the Software,
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * and to permit persons to whom the Software is furnished to do so,
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * subject to the following conditions:
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync *
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * The above copyright notice and this permission notice (including the
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * next paragraph) shall be included in all copies or substantial
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * portions of the Software.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync *
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * SOFTWARE.
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync/*
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * Authors:
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * Rickard E. (Rik) Faith <faith@redhat.com>
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync *
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync/** \file
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * Interface to backend input device support. \see dmxbackend.c \see
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync * dmxcommon.c */
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#ifndef _DMXBACKEND_H_
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#define _DMXBACKEND_H_
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncextern pointer dmxBackendCreatePrivate(DeviceIntPtr pDevice);
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncextern void dmxBackendDestroyPrivate(pointer private);
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncextern void dmxBackendInit(DevicePtr pDev);
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncextern void dmxBackendLateReInit(DevicePtr pDev);
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncextern void dmxBackendMouGetInfo(DevicePtr pDev, DMXLocalInitInfoPtr info);
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncextern void dmxBackendKbdGetInfo(DevicePtr pDev, DMXLocalInitInfoPtr info);
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncextern void dmxBackendCollectEvents(DevicePtr pDev,
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync dmxMotionProcPtr motion,
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync dmxEnqueueProcPtr enqueue,
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync dmxCheckSpecialProcPtr checkspecial,
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync DMXBlockType block);
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncextern void dmxBackendProcessInput(pointer private);
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncextern int dmxBackendFunctions(pointer private, DMXFunctionType function);
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsyncextern void dmxBackendUpdatePosition(pointer private, int x, int y);
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync
cabde247f900dcf6e58d009bbdd15099c028c6fcvboxsync#endif