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