summaryrefslogtreecommitdiff
path: root/mi/mi.h
diff options
context:
space:
mode:
authorPeter Hutterer <peter@cs.unisa.edu.au>2008-04-30 17:57:48 +0930
committerPeter Hutterer <peter@cs.unisa.edu.au>2008-04-30 17:57:48 +0930
commita0e6a7d4f507c5c0a0b11adb10394af58a0a6e07 (patch)
tree7e439f054087de4e929839571e923dcb1a7b0c46 /mi/mi.h
parentfea39c94bcc8b635d37530d8a27ee92acab484fe (diff)
dix: resize EQ to minimum size to avoid reallocs during SIGIO.
When a new device is added, calculate the event size needed if a DCCE event is sent and set the EQ's event size to this minimum. This avoids reallocs when a event is sent (which may happen during a SIGIO).
Diffstat (limited to 'mi/mi.h')
-rw-r--r--mi/mi.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/mi/mi.h b/mi/mi.h
index 842edf319..0af1a1bd3 100644
--- a/mi/mi.h
+++ b/mi/mi.h
@@ -153,6 +153,10 @@ extern Bool mieqInit(
void
);
+extern void mieqResize(
+ int /* min_size */
+);
+
extern void mieqEnqueue(
DeviceIntPtr /*pDev*/,
xEventPtr /*e*/