mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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@who-t.net>
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user