xiquerydevice.h revision f0ab104f070bc7f569404826fea1828ed985638c
341N/A/*
341N/A * Copyright © 2009 Red Hat, Inc.
341N/A *
341N/A * Permission is hereby granted, free of charge, to any person obtaining a
688N/A * copy of this software and associated documentation files (the "Software"),
810N/A * to deal in the Software without restriction, including without limitation
341N/A * the rights to use, copy, modify, merge, publish, distribute, sublicense,
341N/A * and/or sell copies of the Software, and to permit persons to whom the
341N/A * Software is furnished to do so, subject to the following conditions:
341N/A *
341N/A * The above copyright notice and this permission notice (including the next
341N/A * paragraph) shall be included in all copies or substantial portions of the
341N/A * Software.
341N/A *
341N/A * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
341N/A * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
341N/A * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
341N/A * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
341N/A * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
341N/A * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
341N/A * DEALINGS IN THE SOFTWARE.
341N/A *
341N/A * Authors: Peter Hutterer
341N/A *
341N/A */
341N/A
341N/A#ifdef HAVE_DIX_CONFIG_H
341N/A#include <dix-config.h>
341N/A#endif
341N/A
341N/A#ifndef QUERYDEV_H
341N/A#define QUERYDEV_H 1
812N/A
341N/A#include <X11/extensions/XI2proto.h>
341N/A
341N/Aint SProcXIQueryDevice(ClientPtr client);
493N/Aint ProcXIQueryDevice(ClientPtr client);
341N/Avoid SRepXIQueryDevice(ClientPtr client, int size, xXIQueryDeviceReply *rep);
341N/Aint SizeDeviceClasses(DeviceIntPtr dev);
688N/Aint ListDeviceClasses(ClientPtr client, DeviceIntPtr dev,
341N/A char* any, uint16_t* nclasses);
341N/Aint GetDeviceUse(DeviceIntPtr dev, uint16_t *attachment);
341N/Aint ListButtonInfo(DeviceIntPtr dev, xXIButtonInfo* info, Bool reportState);
688N/Aint ListKeyInfo(DeviceIntPtr dev, xXIKeyInfo* info);
688N/Aint ListValuatorInfo(DeviceIntPtr dev, xXIValuatorInfo* info,
341N/A int axisnumber, Bool reportState);
341N/Aint ListScrollInfo(DeviceIntPtr dev, xXIScrollInfo* info, int axisnumber);
341N/Aint ListTouchInfo(DeviceIntPtr dev, xXITouchInfo* info);
341N/A#endif /* QUERYDEV_H */
341N/A