16747b715Smrg/* 26747b715Smrg * Copyright © 2009 Red Hat, Inc. 36747b715Smrg * 46747b715Smrg * Permission is hereby granted, free of charge, to any person obtaining a 56747b715Smrg * copy of this software and associated documentation files (the "Software"), 66747b715Smrg * to deal in the Software without restriction, including without limitation 76747b715Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 86747b715Smrg * and/or sell copies of the Software, and to permit persons to whom the 96747b715Smrg * Software is furnished to do so, subject to the following conditions: 106747b715Smrg * 116747b715Smrg * The above copyright notice and this permission notice (including the next 126747b715Smrg * paragraph) shall be included in all copies or substantial portions of the 136747b715Smrg * Software. 146747b715Smrg * 156747b715Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 166747b715Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 176747b715Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 186747b715Smrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 196747b715Smrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 206747b715Smrg * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 216747b715Smrg * DEALINGS IN THE SOFTWARE. 226747b715Smrg * 236747b715Smrg * Authors: Peter Hutterer 246747b715Smrg * 256747b715Smrg */ 266747b715Smrg 276747b715Smrg#ifdef HAVE_DIX_CONFIG_H 286747b715Smrg#include <dix-config.h> 296747b715Smrg#endif 306747b715Smrg 316747b715Smrg#ifndef QUERYDEV_H 326747b715Smrg#define QUERYDEV_H 1 336747b715Smrg 346747b715Smrg#include <X11/extensions/XI2proto.h> 356747b715Smrg 366747b715Smrgint SProcXIQueryDevice(ClientPtr client); 376747b715Smrgint ProcXIQueryDevice(ClientPtr client); 3835c4bbdfSmrgvoid SRepXIQueryDevice(ClientPtr client, int size, xXIQueryDeviceReply * rep); 396747b715Smrgint SizeDeviceClasses(DeviceIntPtr dev); 406747b715Smrgint ListDeviceClasses(ClientPtr client, DeviceIntPtr dev, 4135c4bbdfSmrg char *any, uint16_t * nclasses); 4235c4bbdfSmrgint GetDeviceUse(DeviceIntPtr dev, uint16_t * attachment); 4335c4bbdfSmrgint ListButtonInfo(DeviceIntPtr dev, xXIButtonInfo * info, Bool reportState); 4435c4bbdfSmrgint ListKeyInfo(DeviceIntPtr dev, xXIKeyInfo * info); 4535c4bbdfSmrgint ListValuatorInfo(DeviceIntPtr dev, xXIValuatorInfo * info, 4635c4bbdfSmrg int axisnumber, Bool reportState); 4735c4bbdfSmrgint ListScrollInfo(DeviceIntPtr dev, xXIScrollInfo * info, int axisnumber); 4835c4bbdfSmrgint ListTouchInfo(DeviceIntPtr dev, xXITouchInfo * info); 4935c4bbdfSmrg#endif /* QUERYDEV_H */ 50