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