xiquerydevice.h revision 6747b715
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); 386747b715Smrgvoid SRepXIQueryDevice(ClientPtr client, int size, xXIQueryDeviceReply *rep); 396747b715Smrgint SizeDeviceClasses(DeviceIntPtr dev); 406747b715Smrgint ListDeviceClasses(ClientPtr client, DeviceIntPtr dev, 416747b715Smrg char* any, uint16_t* nclasses); 426747b715Smrgint GetDeviceUse(DeviceIntPtr dev, uint16_t *attachment); 436747b715Smrgint ListButtonInfo(DeviceIntPtr dev, xXIButtonInfo* info, Bool reportState); 446747b715Smrgint ListKeyInfo(DeviceIntPtr dev, xXIKeyInfo* info); 456747b715Smrgint ListValuatorInfo(DeviceIntPtr dev, xXIValuatorInfo* info, 466747b715Smrg int axisnumber, Bool reportState); 476747b715Smrg#endif /* QUERYDEV_H */ 48