1/* 2 * Copyright © 2004 Peter Osterlund 3 * 4 * Permission to use, copy, modify, distribute, and sell this software 5 * and its documentation for any purpose is hereby granted without 6 * fee, provided that the above copyright notice appear in all copies 7 * and that both that copyright notice and this permission notice 8 * appear in supporting documentation, and that the name of Red Hat 9 * not be used in advertising or publicity pertaining to distribution 10 * of the software without specific, written prior permission. Red 11 * Hat makes no representations about the suitability of this software 12 * for any purpose. It is provided "as is" without express or implied 13 * warranty. 14 * 15 * THE AUTHORS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 16 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN 17 * NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY SPECIAL, INDIRECT OR 18 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 19 * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 20 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 21 * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 22 * 23 * Authors: 24 * Peter Osterlund (petero2@telia.com) 25 */ 26 27#ifndef _EVENTCOMM_H_ 28#define _EVENTCOMM_H_ 29 30#include <linux/input.h> 31#include <linux/version.h> 32#include <xf86Xinput.h> 33#include "synproto.h" 34 35/* for auto-dev: */ 36#define DEV_INPUT_EVENT "/dev/input" 37#define EVENT_DEV_NAME "event" 38 39struct eventcomm_proto_data; 40 41extern struct eventcomm_proto_data *EventProtoDataAlloc(void); 42 43extern Bool 44EventReadHwState(InputInfoPtr pInfo, 45 struct CommData *comm, struct SynapticsHwState *hwRet); 46 47#endif /* _EVENTCOMM_H_ */ 48