Fixing devPrivates

Keith Packard keithp at keithp.com
Thu Apr 29 10:20:38 PDT 2010


On Thu, 29 Apr 2010 14:06:19 +0200, Matthias Hopf <mhopf at suse.de> wrote:
> On Apr 28, 10 23:59:06 -0700, Keith Packard wrote:
> > It's possible to adapt to this change with some very small adjustments
> > in your code; simply replace 'int' in the index variable declaration
> > with 'DevPrivateKeyRec' and make sure dixRegisterPrivateKey is called
> > (potentially replacing an existing call to dixRequestPrivate). The rest
> > of your code should work just fine.
> 
> I suggest that you have some sort of compile-time define available to
> determine the API type - in case some out-of-Xserver part (drivers?)
> wants to be backward compatible and support both APIs.

That's a good idea. I can add a #define to let drivers know that there's
a change in the DevPrivate API. Of course, they could check the ABI
version numbers while building, but having something specific to the
DevPrivate change would make things easier.

> I don't see that in the header file yet.

Nope, just getting stuff working.

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20100429/aa43c782/attachment.pgp>


More information about the xorg-devel mailing list