summaryrefslogtreecommitdiff
path: root/src/xcb_errors.c
AgeCommit message (Collapse)AuthorFilesLines
2015-03-24Implement a working code generatorUli Schlachter1-45/+15
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-18Define the "unknown foo" lists as stringsUli Schlachter1-3/+3
This gets rid of lots of relocations that were needed for the pointers into the strings. Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-03-18Add a TODO about round-tripsUli Schlachter1-0/+2
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-03-18Remove pretty much unused member from xcb_errors_context_tUli Schlachter1-6/+4
The xcb_connection_t is only needed during xcb_errors_context_new() and can be passed around via arguments here. Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-03-18Fix memory leak in xcb_errors_context_new()Uli Schlachter1-0/+1
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-03-18Add and use helper macro for range checksUli Schlachter1-4/+4
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-03-18Fix off-by-one in length checkUli Schlachter1-1/+1
Signed-off-by: Uli Schlachter <psychon@znc.in>
2015-03-18Initial versionUli Schlachter1-0/+206
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>