xserver: Branch 'master'
Peter Hutterer
whot at kemper.freedesktop.org
Tue Feb 24 21:05:33 PST 2009
Xi/extinit.c | 4 ++--
Xi/getvers.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
New commits:
commit 5672e2d66444be74125c71b81373b82f8e1b7dd2
Author: Peter Hutterer <peter.hutterer at who-t.net>
Date: Fri Feb 20 14:55:51 2009 +1000
Xi: remove AllExtensionVersions.
Keeping an AllExtensionVersions array to save all versions of
all extension is rather pointless if only one extension uses it.
Rename to XIVersion, reduce to a single struct.
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
diff --git a/Xi/extinit.c b/Xi/extinit.c
index 78f2168..9a20bfd 100644
--- a/Xi/extinit.c
+++ b/Xi/extinit.c
@@ -343,7 +343,7 @@ int RT_INPUTCLIENT;
*
*/
-extern XExtensionVersion AllExtensionVersions[];
+extern XExtensionVersion XIVersion;
Mask PropagateMask[MAXDEVICES];
@@ -1092,7 +1092,7 @@ XInputExtensionInit(void)
if (extEntry) {
IReqCode = extEntry->base;
IEventBase = extEntry->eventBase;
- AllExtensionVersions[IReqCode - 128] = thisversion;
+ XIVersion = thisversion;
MakeDeviceTypeAtoms();
RT_INPUTCLIENT = CreateNewResourceType((DeleteType) InputClientGone);
RegisterResourceName(RT_INPUTCLIENT, "INPUTCLIENT");
diff --git a/Xi/getvers.c b/Xi/getvers.c
index b4bc468..2ca3bb3 100644
--- a/Xi/getvers.c
+++ b/Xi/getvers.c
@@ -62,7 +62,7 @@ SOFTWARE.
#include "getvers.h"
-XExtensionVersion AllExtensionVersions[128];
+XExtensionVersion XIVersion;
/***********************************************************************
*
@@ -122,8 +122,8 @@ ProcXGetExtensionVersion(ClientPtr client)
rep.length = 0;
rep.sequenceNumber = client->sequence;
rep.present = TRUE;
- rep.major_version = AllExtensionVersions[IReqCode - 128].major_version;
- rep.minor_version = AllExtensionVersions[IReqCode - 128].minor_version;
+ rep.major_version = XIVersion.major_version;
+ rep.minor_version = XIVersion.minor_version;
WriteReplyToClient(client, sizeof(xGetExtensionVersionReply), &rep);
More information about the xorg-commit
mailing list