[Xcb] Auto generate xlib bindings?

Carsten Meier cm at trexity.de
Wed Feb 25 03:38:07 PST 2009


Hi,

Am Wed, 25 Feb 2009 05:26:11 -0600
schrieb Eduardo Cavazos <wayo.cavazos at gmail.com>:

> Hello,
> 
> My understanding is that it's possible to autogenerate bindings to
> xcb for other languages due to the XML description of the api.
> 

No, it's actually a protocol-, not an api-description. The xcb-api is
generated due to the XML description.

> I've noticed that you have a compatability layer for xlib. Do you
> have a similar xml facility for xlib? I.e. is it also possible to
> generate bindings for xlib in a similar fashion?

No, that's not possible. The xlib-functions probably send multiple
requests, cache data, etc. There is no 1:1 relationship between the
protocol-requests and the xlib-functions.

Cheers,
Carsten


More information about the Xcb mailing list