03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync/*
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Copyright © 2009 Red Hat, Inc.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync *
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Permission is hereby granted, free of charge, to any person obtaining a
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * copy of this software and associated documentation files (the "Software"),
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * to deal in the Software without restriction, including without limitation
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * the rights to use, copy, modify, merge, publish, distribute, sublicense,
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * and/or sell copies of the Software, and to permit persons to whom the
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Software is furnished to do so, subject to the following conditions:
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync *
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * The above copyright notice and this permission notice (including the next
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * paragraph) shall be included in all copies or substantial portions of the
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * Software.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync *
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync * DEALINGS IN THE SOFTWARE.
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync *
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync */
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync#ifndef _EVENTCONVERT_H_
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync#include <X11/X.h>
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync#include <X11/extensions/XIproto.h>
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync#include "input.h"
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync#include "events.h"
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync#include "eventstr.h"
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync_X_EXPORT int EventToCore(InternalEvent *event, xEvent **core, int *count);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync_X_EXPORT int EventToXI(InternalEvent *ev, xEvent **xi, int *count);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync_X_EXPORT int EventToXI2(InternalEvent *ev, xEvent **xi);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync_X_INTERNAL int GetCoreType(enum EventType type);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync_X_INTERNAL int GetXIType(enum EventType type);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync_X_INTERNAL int GetXI2Type(enum EventType type);
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync
03532efdc331b598d3dedc8cc7477641c3b0dd12vboxsync#endif /* _EVENTCONVERT_H_ */