[PATCH 0/2] XIPropToInt and XIPropToFloat APIs
peter.hutterer at who-t.net
Wed Dec 17 15:28:50 PST 2008
These two patches add two new APIs to the server.
XIPropToInt - convert the given property into an integer array
XIPropToFloat - convert the given property into an float array
More importantly, the second patch also adds XATOM_FLOAT as a server-defined
property that drivers can use to denote float properties (the synaptics driver
is waiting for exactly that, and so is property support for pointer
Requirement for this to work is that both client and server store floats in
IEEE 754 format and that the client stores float in the same byte ordering as
everything else. Which - unless I misunderstood the material - is more than
I sent them to the list previously, since they have changed a bit to make the
API more robust to abuse or mis-use.
The code was originally written by Simon Thum.
More information about the xorg