diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2011-12-07 14:14:10 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2011-12-10 17:54:34 +1000 |
commit | e5aa00989cda9ebd18063c5e955235123ad37b88 (patch) | |
tree | c835110c16fa436c73b681dda9aadbc511f9b186 /include | |
parent | 6cc0e6a0afa6a87802767d484aa4e68fa935d3eb (diff) |
Change GetXI2/XI/CoreType to just take a type argument
Avoids the dummy-event dance if we have an event type and need to get the
matching XI2 type.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/eventconvert.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/eventconvert.h b/include/eventconvert.h index b000abc4b..571a51109 100644 --- a/include/eventconvert.h +++ b/include/eventconvert.h @@ -27,14 +27,15 @@ #include <X11/extensions/XIproto.h> #include "input.h" #include "events.h" +#include "eventstr.h" #define FP1616(integral, frac) ((integral) * (1 << 16) + (frac) * (1 << 16)) _X_EXPORT int EventToCore(InternalEvent *event, xEvent **core, int *count); _X_EXPORT int EventToXI(InternalEvent *ev, xEvent **xi, int *count); _X_EXPORT int EventToXI2(InternalEvent *ev, xEvent **xi); -_X_INTERNAL int GetCoreType(InternalEvent* ev); -_X_INTERNAL int GetXIType(InternalEvent* ev); -_X_INTERNAL int GetXI2Type(InternalEvent* ev); +_X_INTERNAL int GetCoreType(enum EventType type); +_X_INTERNAL int GetXIType(enum EventType type); +_X_INTERNAL int GetXI2Type(enum EventType type); #endif /* _EVENTCONVERT_H_ */ |