Commit graph

2 commits

Author SHA1 Message Date
Uli Schlachter
278a19c566 Implement a working code generator
With this change, the output of the code generator actually compiles and can be
linked into a library. This also changes the API between the generated code and
the library code. Hopefully, this API is nicer.

The code generator generates a function register_extensions() that looks up all
extensions and calls register_extension() for each one. Also, a global variable
xproto_info is exported which contains the information for all core requests and
also provides fallback names for unknown major codes / event codes / error
codes.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-03-24 21:18:53 +01:00
Uli Schlachter
68cf24822c Initial version
This is an initial prototype on how this library might look like. All the parts
which should be auto-generated from XCB's XML protocol description are missing.
The C parts should work fine, but are completely untested.

Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-03-18 21:43:05 +01:00