summaryrefslogtreecommitdiff
path: root/dix/events.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2011-10-28 12:55:55 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2011-12-10 17:54:34 +1000
commit6cc0e6a0afa6a87802767d484aa4e68fa935d3eb (patch)
tree31d704b5b77e9bb9a969e52d9d2fa185a578f5f6 /dix/events.c
parent372a6f10dc2d74d2d179e8b92449e9b8636a99ef (diff)
include: add GetXI2MaskByte and GetXI2EventFilterMask to headers
This is needed for touch event processing. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'dix/events.c')
-rw-r--r--dix/events.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dix/events.c b/dix/events.c
index 59caa918f..5dfcbf30e 100644
--- a/dix/events.c
+++ b/dix/events.c
@@ -414,7 +414,7 @@ GetEventFilterMask(DeviceIntPtr dev, int evtype)
return filters[dev ? dev->id : 0][evtype];
}
-static inline Mask
+inline Mask
GetXI2EventFilterMask(int evtype)
{
return (1 << (evtype % 8));
@@ -452,7 +452,7 @@ GetEventFilter(DeviceIntPtr dev, xEvent *event)
* Return the single byte of the device's XI2 mask that contains the mask
* for the event_type.
*/
-static int
+int
GetXI2MaskByte(XI2Mask *mask, DeviceIntPtr dev, int event_type)
{
/* we just return the matching filter because that's the only use