Files
xserver/dix
Enrico Weigelt, metux IT consult aa697d6e7c include: dix.h: add macros for request handlers and swapping
add some macros for making request handlers easier:

    * REQUEST_HEAD_STRUCT() declares a struct and checks size (assuming
      length field already had been swapped)
    * REQUEST_FIELD_CARD16() swaps a CARD16 (word) if neccessary
    * REQUEST_FIELD_CARD32() swaps a CARD32 (dword) if neccessary

How to use them:

    1. move swapping of lengths field into the SProc*Dispatch() and drop it
       from the individual SProc*()'s
    2. put REQUEST_HEAD_STRUCT() ontop of each Proc*()
    3. add REQUEST_FIELD_*() below, for all fields to be swapped and
       drop their swapping from the SProc*()'s
    4. clean up unnecessary wrappers (SProc*()'s just be just call the
       corresponding Proc*() by now)
    5. let demux SProc just swap length field and call the normal Proc*Dispatch()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2026-01-31 16:57:20 +01:00
..
2025-11-11 10:46:29 +01:00
2025-11-20 17:42:29 +01:00
2025-11-11 10:46:29 +01:00
2025-12-19 11:58:41 +01:00
2025-12-19 12:01:03 +01:00
2025-07-18 22:24:55 +02:00
2025-11-20 19:22:35 +01:00
2025-12-19 11:58:53 +01:00
2025-11-25 18:26:02 +01:00
2025-12-19 12:01:03 +01:00
2025-12-19 12:01:03 +01:00
2025-12-19 12:01:03 +01:00