1d075918cSmrg/* 2d075918cSmrg * Copyright 2002-2006 by VMware, Inc. 3d075918cSmrg * 4d075918cSmrg * Permission is hereby granted, free of charge, to any person obtaining a 5d075918cSmrg * copy of this software and associated documentation files (the "Software"), 6d075918cSmrg * to deal in the Software without restriction, including without limitation 7d075918cSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 8d075918cSmrg * and/or sell copies of the Software, and to permit persons to whom the 9d075918cSmrg * Software is furnished to do so, subject to the following conditions: 10d075918cSmrg * 11d075918cSmrg * The above copyright notice and this permission notice shall be included in 12d075918cSmrg * all copies or substantial portions of the Software. 13d075918cSmrg * 14d075918cSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15d075918cSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16d075918cSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 17d075918cSmrg * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR 18d075918cSmrg * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 19d075918cSmrg * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 20d075918cSmrg * OTHER DEALINGS IN THE SOFTWARE. 21d075918cSmrg * 22d075918cSmrg * Except as contained in this notice, the name of the copyright holder(s) 23d075918cSmrg * and author(s) shall not be used in advertising or otherwise to promote 24d075918cSmrg * the sale, use or other dealings in this Software without prior written 25d075918cSmrg * authorization from the copyright holder(s) and author(s). 26d075918cSmrg */ 27d075918cSmrg 28d075918cSmrg/* 29d075918cSmrg * vmmouse_client.h -- 30d075918cSmrg * 31d075918cSmrg * VMware Virtual Mouse Client 32d075918cSmrg * 33d075918cSmrg * This module provides functions to enable/disable, operate and 34d075918cSmrg * process packets via the VMMouse absolute positioning module 35d075918cSmrg * hosted in the VMX. 36d075918cSmrg * 37d075918cSmrg */ 38d075918cSmrg 39d075918cSmrg#ifndef _VMMOUSE_CLIENT_H_ 40d075918cSmrg#define _VMMOUSE_CLIENT_H_ 41d075918cSmrg 428746cb53Smrg#include "xorg-server.h" 43d075918cSmrg#include "xf86_OSproc.h" 44d075918cSmrg 45d075918cSmrg/* 46d075918cSmrg * VMMouse Input packet data structure 47d075918cSmrg */ 48d075918cSmrgtypedef struct _VMMOUSE_INPUT_DATA { 49d075918cSmrg unsigned short Flags; 50d075918cSmrg unsigned short Buttons; 51d075918cSmrg int X; 52d075918cSmrg int Y; 53d075918cSmrg int Z; 54d075918cSmrg} VMMOUSE_INPUT_DATA, *PVMMOUSE_INPUT_DATA; 55d075918cSmrg 56d075918cSmrg/* 57d075918cSmrg * Public Functions 58d075918cSmrg */ 59d075918cSmrgBool VMMouseClient_Enable(void); 60d075918cSmrgvoid VMMouseClient_Disable(void); 61d075918cSmrgunsigned int VMMouseClient_GetInput(PVMMOUSE_INPUT_DATA pvmmouseInput); 62d075918cSmrgvoid VMMouseClient_RequestRelative(void); 63d075918cSmrgvoid VMMouseClient_RequestAbsolute(void); 64d075918cSmrg 65d075918cSmrg#ifdef VMX86_DEVEL 66d075918cSmrg#define VMwareLog(args) ErrorF args 67d075918cSmrg#else 68d075918cSmrg#define VMwareLog(args) 69d075918cSmrg#endif 70d075918cSmrg 71d075918cSmrg#include "vmmouse_defs.h" 72d075918cSmrg 73d075918cSmrg#endif /* _VMMOUSE_CLIENT_H_ */ 74d075918cSmrg 75