diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:49:22 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:49:22 +0000 |
commit | d568221710959cf7d783e6ff0fb80fb43a231124 (patch) | |
tree | 8d6f039393294c6ffac8533639afdebe5d68bfc1 /Xi/getselev.c | |
parent | 9508a382f8a9f241dab097d921b6d290c1c3a776 (diff) |
XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1
Diffstat (limited to 'Xi/getselev.c')
-rw-r--r-- | Xi/getselev.c | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/Xi/getselev.c b/Xi/getselev.c index 8ac16d1d0..75b9137a6 100644 --- a/Xi/getselev.c +++ b/Xi/getselev.c @@ -1,3 +1,4 @@ +/* $XFree86: xc/programs/Xserver/Xi/getselev.c,v 3.6 2001/12/14 19:58:57 dawes Exp $ */ /************************************************************ Copyright 1989, 1998 The Open Group @@ -60,10 +61,13 @@ SOFTWARE. #include "XIproto.h" #include "inputstr.h" /* DeviceIntPtr */ #include "windowstr.h" /* window struct */ +#include "extnsionst.h" +#include "extinit.h" /* LookupDeviceIntRec */ +#include "exglobals.h" +#include "swaprep.h" -extern int IReqCode; -extern void (* ReplySwapVector[256]) (); -DeviceIntPtr LookupDeviceIntRec(); +#include "getprop.h" +#include "getselev.h" /*********************************************************************** * @@ -99,11 +103,9 @@ ProcXGetSelectedExtensionEvents(client) int total_length = 0; xGetSelectedExtensionEventsReply rep; WindowPtr pWin; - XEventClass *buf; + XEventClass *buf = NULL; XEventClass *tclient; XEventClass *aclient; - XEventClass *ClassFromMask (); - void Swap32Write(); OtherInputMasks *pOthers; InputClientsPtr others; @@ -124,7 +126,7 @@ ProcXGetSelectedExtensionEvents(client) return Success; } - if (pOthers=wOtherInputMasks(pWin)) + if ((pOthers = wOtherInputMasks(pWin)) != 0) { for (others = pOthers->inputClients; others; others=others->next) for (i=0; i<EMASKSIZE; i++) @@ -143,7 +145,7 @@ ProcXGetSelectedExtensionEvents(client) total_length = (rep.all_clients_count + rep.this_client_count) * sizeof (XEventClass); rep.length = (total_length + 3) >> 2; - buf = (XEventClass *) Xalloc (total_length); + buf = (XEventClass *) xalloc (total_length); tclient = buf; aclient = buf + rep.this_client_count; @@ -160,9 +162,9 @@ ProcXGetSelectedExtensionEvents(client) if (total_length) { - client->pSwapReplyFunc = Swap32Write; + client->pSwapReplyFunc = (ReplySwapPtr) Swap32Write; WriteSwappedDataToClient( client, total_length, buf); - Xfree (buf); + xfree (buf); } return Success; } @@ -174,6 +176,7 @@ ProcXGetSelectedExtensionEvents(client) * */ +void SRepXGetSelectedExtensionEvents (client, size, rep) ClientPtr client; int size; |