mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
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:
committed by
Enrico Weigelt
parent
4984b12967
commit
0f0164882f
@@ -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:
|
||||
|
||||
18
Xi/getvers.c
18
Xi/getvers.c
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user