Xi: byte-swap device property requests.
This commit is contained in:
parent
0ce687634f
commit
e6813e8de6
|
@ -519,6 +519,7 @@ ProcXListDeviceProperties (ClientPtr client)
|
|||
int n;
|
||||
swaps (&rep.sequenceNumber, n);
|
||||
swapl (&rep.length, n);
|
||||
swaps (&rep.nAtoms, n);
|
||||
}
|
||||
temppAtoms = pAtoms;
|
||||
for (prop = dev->properties.properties; prop; prop = prop->next)
|
||||
|
@ -823,60 +824,79 @@ ProcXGetDeviceProperty (ClientPtr client)
|
|||
int
|
||||
SProcXListDeviceProperties (ClientPtr client)
|
||||
{
|
||||
char n;
|
||||
REQUEST(xListDevicePropertiesReq);
|
||||
|
||||
swaps(&stuff->length, n);
|
||||
|
||||
REQUEST_SIZE_MATCH(xListDevicePropertiesReq);
|
||||
(void) stuff;
|
||||
return BadImplementation;
|
||||
return (ProcXListDeviceProperties(client));
|
||||
}
|
||||
|
||||
int
|
||||
SProcXQueryDeviceProperty (ClientPtr client)
|
||||
{
|
||||
char n;
|
||||
REQUEST(xQueryDevicePropertyReq);
|
||||
|
||||
swaps(&stuff->length, n);
|
||||
swapl(&stuff->property, n);
|
||||
|
||||
REQUEST_SIZE_MATCH(xQueryDevicePropertyReq);
|
||||
(void) stuff;
|
||||
return BadImplementation;
|
||||
return (ProcXQueryDeviceProperty(client));
|
||||
}
|
||||
|
||||
int
|
||||
SProcXConfigureDeviceProperty (ClientPtr client)
|
||||
{
|
||||
char n;
|
||||
REQUEST(xConfigureDevicePropertyReq);
|
||||
|
||||
swaps(&stuff->length, n);
|
||||
swapl(&stuff->property, n);
|
||||
|
||||
REQUEST_SIZE_MATCH(xConfigureDevicePropertyReq);
|
||||
(void) stuff;
|
||||
return BadImplementation;
|
||||
return (ProcXConfigureDeviceProperty(client));
|
||||
}
|
||||
|
||||
int
|
||||
SProcXChangeDeviceProperty (ClientPtr client)
|
||||
{
|
||||
char n;
|
||||
REQUEST(xChangeDevicePropertyReq);
|
||||
|
||||
swaps(&stuff->length, n);
|
||||
swapl(&stuff->property, n);
|
||||
swapl(&stuff->type, n);
|
||||
swapl(&stuff->nUnits, n);
|
||||
REQUEST_SIZE_MATCH(xChangeDevicePropertyReq);
|
||||
(void) stuff;
|
||||
return BadImplementation;
|
||||
return (ProcXChangeDeviceProperty(client));
|
||||
}
|
||||
|
||||
int
|
||||
SProcXDeleteDeviceProperty (ClientPtr client)
|
||||
{
|
||||
char n;
|
||||
REQUEST(xDeleteDevicePropertyReq);
|
||||
|
||||
swaps(&stuff->length, n);
|
||||
swapl(&stuff->property, n);
|
||||
REQUEST_SIZE_MATCH(xDeleteDevicePropertyReq);
|
||||
(void) stuff;
|
||||
return BadImplementation;
|
||||
return (ProcXDeleteDeviceProperty(client));
|
||||
}
|
||||
|
||||
int
|
||||
SProcXGetDeviceProperty (ClientPtr client)
|
||||
{
|
||||
char n;
|
||||
REQUEST(xGetDevicePropertyReq);
|
||||
|
||||
swaps(&stuff->length, n);
|
||||
swapl(&stuff->property, n);
|
||||
swapl(&stuff->type, n);
|
||||
swapl(&stuff->longOffset, n);
|
||||
swapl(&stuff->longLength, n);
|
||||
REQUEST_SIZE_MATCH(xGetDevicePropertyReq);
|
||||
(void) stuff;
|
||||
return BadImplementation;
|
||||
return (ProcXGetDeviceProperty(client));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user