usb-mouse.h revision f0ab104f070bc7f569404826fea1828ed985638c
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington/*
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Copyright 2002 Red Hat Inc., Durham, North Carolina.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * All Rights Reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Permission is hereby granted, free of charge, to any person obtaining
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * a copy of this software and associated documentation files (the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * "Software"), to deal in the Software without restriction, including
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * without limitation on the rights to use, copy, modify, merge,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * publish, distribute, sublicense, and/or sell copies of the Software,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * and to permit persons to whom the Software is furnished to do so,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * subject to the following conditions:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * The above copyright notice and this permission notice (including the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * next paragraph) shall be included in all copies or substantial
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * portions of the Software.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * NON-INFRINGEMENT. IN NO EVENT SHALL RED HAT AND/OR THEIR SUPPLIERS
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * SOFTWARE.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster */
bee2440354b4bc8796e1de0b6cbd60e1f68deba0Phill Cunnington
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster/*
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Authors:
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Rickard E. (Rik) Faith <faith@redhat.com>
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster *
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster */
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster/** \file
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster * Interface to USB mouse driver. \see usb-mouse.c \see usb-common.c */
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#ifndef _USB_MOU_H_
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#define _USB_MOU_H_
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterextern void mouUSBRead(DevicePtr pDev,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster dmxMotionProcPtr motion,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster dmxEnqueueProcPtr enqueue,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster dmxCheckSpecialProcPtr checkspecial,
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster DMXBlockType block);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterextern void mouUSBInit(DevicePtr pDev);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterextern void mouUSBGetInfo(DevicePtr pDev, DMXLocalInitInfoPtr info);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterextern int mouUSBOn(DevicePtr pDev);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterextern void mouUSBCtrl(DevicePtr pDev, PtrCtrl *ctrl);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#endif
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster