mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-04 13:33:44 +00:00
Some requests using different structs dependending on which protocol version (v1 vs. v2) had been selected. That's is handled by coverting v1 structs into v2, before proceeding with the actual handling. The code flow of this is very complex and hard to understand. Cleaning this up in several smaller steps, that are easier to digest. This part moves the request payload structs (or pointers to them) into the per-version branches. Within each branch following our usual scheme for extension request handlers (eg. using the REQUEST*() macros and having a pointer named `stuff` to the current request struct) Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>