Xi: inline SProcXGetExtensionVersion()

No need to have a hole bunch of extra functions, if we can just easily
inline the few relevant lines.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-09-17 12:18:12 +02:00
committed by Enrico Weigelt
parent 4984b12967
commit 0f0164882f
3 changed files with 4 additions and 17 deletions

View File

@@ -352,7 +352,7 @@ SProcIDispatch(ClientPtr client)
switch (stuff->data) {
case X_GetExtensionVersion:
return SProcXGetExtensionVersion(client);
return ProcXGetExtensionVersion(client);
case X_ListInputDevices:
return ProcXListInputDevices(client);
case X_OpenDevice:

View File

@@ -64,21 +64,6 @@ SOFTWARE.
XExtensionVersion XIVersion;
/***********************************************************************
*
* Handle a request from a client with a different byte order than us.
*
*/
int _X_COLD
SProcXGetExtensionVersion(ClientPtr client)
{
REQUEST(xGetExtensionVersionReq);
REQUEST_AT_LEAST_SIZE(xGetExtensionVersionReq);
swaps(&stuff->nbytes);
return (ProcXGetExtensionVersion(client));
}
/***********************************************************************
*
* This procedure returns the major/minor version of the X Input extension.
@@ -91,6 +76,9 @@ ProcXGetExtensionVersion(ClientPtr client)
REQUEST(xGetExtensionVersionReq);
REQUEST_AT_LEAST_SIZE(xGetExtensionVersionReq);
if (client->swapped)
swaps(&stuff->nbytes);
if (client->req_len != bytes_to_int32(sizeof(xGetExtensionVersionReq) +
stuff->nbytes))
return BadLength;

View File

@@ -70,7 +70,6 @@ int ProcXUngrabDevice(ClientPtr client);
int ProcXUngrabDeviceKey(ClientPtr client);
int SProcXGetDeviceMotionEvents(ClientPtr client);
int SProcXGetExtensionVersion(ClientPtr client);
int SProcXIAllowEvents(ClientPtr client);
int SProcXIBarrierReleasePointer(ClientPtr client);
int SProcXIGetClientPointer(ClientPtr client);