summaryrefslogtreecommitdiff
path: root/Xi/setbmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'Xi/setbmap.c')
-rw-r--r--Xi/setbmap.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/Xi/setbmap.c b/Xi/setbmap.c
index b5335de05..52553948d 100644
--- a/Xi/setbmap.c
+++ b/Xi/setbmap.c
@@ -45,6 +45,7 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
SOFTWARE.
********************************************************/
+/* $XFree86: xc/programs/Xserver/Xi/setbmap.c,v 3.3 2001/12/14 19:58:59 dawes Exp $ */
/***********************************************************************
*
@@ -62,12 +63,12 @@ SOFTWARE.
#include "inputstr.h" /* DeviceIntPtr */
#include "XI.h"
#include "XIproto.h"
+#include "exevents.h"
+#include "extnsionst.h"
+#include "extinit.h" /* LookupDeviceIntRec */
+#include "exglobals.h"
-extern int IReqCode;
-extern int BadDevice;
-extern int DeviceMappingNotify;
-extern void (* ReplySwapVector[256]) ();
-DeviceIntPtr LookupDeviceIntRec();
+#include "setbmap.h"
/***********************************************************************
*
@@ -92,6 +93,7 @@ SProcXSetDeviceButtonMapping(client)
*
*/
+int
ProcXSetDeviceButtonMapping (client)
register ClientPtr client;
{
@@ -124,7 +126,7 @@ ProcXSetDeviceButtonMapping (client)
return Success;
}
- ret = SetButtonMapping (client, dev, stuff->map_length, &stuff[1]);
+ ret = SetButtonMapping (client, dev, stuff->map_length, (BYTE *)&stuff[1]);
if (ret == BadValue || ret == BadMatch)
{
@@ -150,6 +152,7 @@ ProcXSetDeviceButtonMapping (client)
*
*/
+void
SRepXSetDeviceButtonMapping (client, size, rep)
ClientPtr client;
int size;