summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-08-10 14:14:35 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-08-13 11:19:35 +1000
commit3f161a0aac39fbdeef393a17269486b8dace4672 (patch)
tree9a475dd678a8ed3348958231bd787a5ce41e4da8
parent55e1ea08d03d89ecc0f2db7652a4d15567204696 (diff)
Xi: un-statify XI2EventSwap, it is needed for tests.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--Xi/extinit.c2
-rw-r--r--include/exevents.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/Xi/extinit.c b/Xi/extinit.c
index 1376f4fca..1e7b51e08 100644
--- a/Xi/extinit.c
+++ b/Xi/extinit.c
@@ -810,7 +810,7 @@ static void SXIPropertyEvent(xXIPropertyEvent *from, xXIPropertyEvent *to)
}
/** Event swapping function for XI2 events. */
-static void
+void
XI2EventSwap(xGenericEvent *from, xGenericEvent *to)
{
switch(from->evtype)
diff --git a/include/exevents.h b/include/exevents.h
index f58488d26..8d4b80b5c 100644
--- a/include/exevents.h
+++ b/include/exevents.h
@@ -193,6 +193,10 @@ extern _X_EXPORT void SendEventToAllWindows(
xEvent * /* ev */,
int /* count */);
+extern _X_HIDDEN void XI2EventSwap(
+ xGenericEvent * /* from */,
+ xGenericEvent * /* to */);
+
/* Input device properties */
extern _X_EXPORT void XIDeleteAllDeviceProperties(
DeviceIntPtr /* device */