summaryrefslogtreecommitdiff
path: root/include/input.h
diff options
context:
space:
mode:
authorDaniel Stone <daniel@fooishbar.org>2006-08-10 14:00:14 +0300
committerDaniel Stone <daniels@endtroducing.fooishbar.org>2006-08-10 14:00:14 +0300
commit539d1f33475484d35fb5a377efc76dba2d868e3f (patch)
tree2e44651f28b62932a5f5ded46106ce219ebbbcf4 /include/input.h
parent5506b4ad200745236f997c121e8200179c47b749 (diff)
GKVE/GPE: have DDX allocate events
Don't allocate events on every GKE/GKVE/GPE call, just have the DDX manage it instead. Introduce GetMaximumEventsNum(), which is the maximum number of events these functions will ever produce.
Diffstat (limited to 'include/input.h')
-rw-r--r--include/input.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/input.h b/include/input.h
index d1791e7e7..6572db5a3 100644
--- a/include/input.h
+++ b/include/input.h
@@ -377,8 +377,10 @@ extern void InitInput(
int /*argc*/,
char ** /*argv*/);
+extern int GetMaximumEventsNum(void);
+
extern int GetPointerEvents(
- xEvent **xE,
+ xEvent *events,
DeviceIntPtr pDev,
int type,
int buttons,
@@ -387,13 +389,13 @@ extern int GetPointerEvents(
int *valuators);
extern int GetKeyboardEvents(
- xEvent **xE,
+ xEvent *events,
DeviceIntPtr pDev,
int type,
int key_code);
extern int GetKeyboardValuatorEvents(
- xEvent **xE,
+ xEvent *events,
DeviceIntPtr pDev,
int type,
int key_code,